From 95127a65c97901384eb8559cb31882c6567f2b56 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 26 Oct 2026 20:17:48 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Generated/Google.Gemini.Exceptions.g.cs | 26 + ....Gemini.GeminiClient.AuthTokensCreate.g.cs | 18 +- ...Client.BatchesUpdateEmbedContentBatch.g.cs | 30 +- ...ent.BatchesUpdateGenerateContentBatch.g.cs | 28 +- ...ini.GeminiClient.CachedContentsCreate.g.cs | 44 +- ...mini.GeminiClient.CachedContentsPatch.g.cs | 44 +- ...GeminiClient.CorporaPermissionsCreate.g.cs | 10 +- ....GeminiClient.CorporaPermissionsPatch.g.cs | 10 +- ...i.GeminiClient.DynamicGenerateContent.g.cs | 76 +- ...niClient.DynamicStreamGenerateContent.g.cs | 76 +- ....DynamicStreamGenerateContentAsStream.g.cs | 76 +- ...emini.GeminiClient.EnvironmentsCreate.g.cs | 20 +- ...miniClient.FileSearchStoresImportFile.g.cs | 10 +- ...niClient.MediaUploadToFileSearchStore.g.cs | 20 +- ...emini.GeminiClient.ModelsEmbedContent.g.cs | 10 +- ...ni.GeminiClient.ModelsGenerateContent.g.cs | 76 +- ...iniClient.ModelsStreamGenerateContent.g.cs | 76 +- ...t.ModelsStreamGenerateContentAsStream.g.cs | 76 +- ...Gemini.GeminiClient.TunedModelsCreate.g.cs | 46 +- ...miniClient.TunedModelsGenerateContent.g.cs | 76 +- ....Gemini.GeminiClient.TunedModelsPatch.g.cs | 46 +- ...niClient.TunedModelsPermissionsCreate.g.cs | 10 +- ...iniClient.TunedModelsPermissionsPatch.g.cs | 10 +- ...ient.TunedModelsStreamGenerateContent.g.cs | 76 +- ...edModelsStreamGenerateContentAsStream.g.cs | 76 +- .../Generated/Google.Gemini.GeminiClient.g.cs | 4 +- ...Gemini.IGeminiClient.AuthTokensCreate.g.cs | 14 +- ...Client.BatchesUpdateEmbedContentBatch.g.cs | 24 +- ...ent.BatchesUpdateGenerateContentBatch.g.cs | 22 +- ...ni.IGeminiClient.CachedContentsCreate.g.cs | 34 +- ...ini.IGeminiClient.CachedContentsPatch.g.cs | 34 +- ...GeminiClient.CorporaPermissionsCreate.g.cs | 8 +- ...IGeminiClient.CorporaPermissionsPatch.g.cs | 8 +- ....IGeminiClient.DynamicGenerateContent.g.cs | 58 +- ...niClient.DynamicStreamGenerateContent.g.cs | 58 +- ....DynamicStreamGenerateContentAsStream.g.cs | 58 +- ...mini.IGeminiClient.EnvironmentsCreate.g.cs | 16 +- ...miniClient.FileSearchStoresImportFile.g.cs | 8 +- ...niClient.MediaUploadToFileSearchStore.g.cs | 16 +- ...mini.IGeminiClient.ModelsEmbedContent.g.cs | 8 +- ...i.IGeminiClient.ModelsGenerateContent.g.cs | 58 +- ...iniClient.ModelsStreamGenerateContent.g.cs | 58 +- ...t.ModelsStreamGenerateContentAsStream.g.cs | 58 +- ...emini.IGeminiClient.TunedModelsCreate.g.cs | 36 +- ...miniClient.TunedModelsGenerateContent.g.cs | 58 +- ...Gemini.IGeminiClient.TunedModelsPatch.g.cs | 36 +- ...niClient.TunedModelsPermissionsCreate.g.cs | 8 +- ...iniClient.TunedModelsPermissionsPatch.g.cs | 8 +- ...ient.TunedModelsStreamGenerateContent.g.cs | 58 +- ...edModelsStreamGenerateContentAsStream.g.cs | 58 +- .../Google.Gemini.JsonSerializerContext.g.cs | 823 +- ...gle.Gemini.JsonSerializerContextTypes.g.cs | 693 +- ...gle.Gemini.Models.AttributionSourceId.g.cs | 24 +- ...gle.Gemini.Models.AudioResponseFormat.g.cs | 24 +- ...ogle.Gemini.Models.AudioTranscription.g.cs | 22 +- ...emini.Models.AudioTranscriptionConfig.g.cs | 68 +- .../Google.Gemini.Models.AuthToken.g.cs | 50 +- ...ini.Models.AutomaticActivityDetection.g.cs | 48 +- ...ini.Models.BatchEmbedContentsResponse.g.cs | 24 +- .../Google.Gemini.Models.BatchStats.g.cs | 40 +- ...emini.Models.BidiGenerateContentSetup.g.cs | 114 +- .../Generated/Google.Gemini.Models.Blob.g.cs | 24 +- .../Google.Gemini.Models.CachedContent.g.cs | 122 +- .../Google.Gemini.Models.Candidate.g.cs | 156 +- ...gle.Gemini.Models.CodeExecutionResult.g.cs | 30 +- .../Google.Gemini.Models.ComputerUse.g.cs | 22 +- .../Google.Gemini.Models.Corpus.g.cs | 22 +- ...gle.Gemini.Models.CountTokensResponse.g.cs | 50 +- ...emini.Models.CreateEnvironmentRequest.g.cs | 46 +- ...ini.Models.CustomLongRunningOperation.g.cs | 36 +- .../Google.Gemini.Models.CustomMetadata.g.cs | 46 +- .../Google.Gemini.Models.Document.g.cs | 50 +- .../Google.Gemini.Models.EgressRule.g.cs | 38 +- ...oogle.Gemini.Models.EmbedContentBatch.g.cs | 134 +- ....Gemini.Models.EmbedContentBatchStats.g.cs | 28 +- ...ogle.Gemini.Models.EmbedContentConfig.g.cs | 78 +- ...gle.Gemini.Models.EmbedContentRequest.g.cs | 36 +- .../Google.Gemini.Models.Environment.g.cs | 118 +- .../Google.Gemini.Models.EnvironmentFile.g.cs | 68 +- .../Generated/Google.Gemini.Models.File.g.cs | 170 +- .../Google.Gemini.Models.FileData.g.cs | 22 +- .../Google.Gemini.Models.FileSearch.g.cs | 28 +- .../Google.Gemini.Models.FileSearchStore.g.cs | 108 +- .../Google.Gemini.Models.FunctionCall.g.cs | 22 +- ...gle.Gemini.Models.FunctionDeclaration.g.cs | 70 +- ...Google.Gemini.Models.FunctionResponse.g.cs | 50 +- ...le.Gemini.Models.FunctionResponseBlob.g.cs | 24 +- ...le.Gemini.Models.GenerateContentBatch.g.cs | 136 +- ...ini.Models.GenerateContentBatchOutput.g.cs | 24 +- ....Gemini.Models.GenerateContentRequest.g.cs | 138 +- ...Gemini.Models.GenerateContentResponse.g.cs | 76 +- .../Google.Gemini.Models.GeneratedFile.g.cs | 24 +- ...Google.Gemini.Models.GenerationConfig.g.cs | 306 +- ...ni.Models.GetEnvironmentFilesResponse.g.cs | 24 +- ...erativelanguageV1betaGroundingSupport.g.cs | 28 +- ...ogleAiGenerativelanguageV1betaSegment.g.cs | 24 +- .../Google.Gemini.Models.GoogleSearch.g.cs | 24 +- .../Google.Gemini.Models.GroundingChunk.g.cs | 38 +- ...i.Models.GroundingChunkCustomMetadata.g.cs | 38 +- ...oogle.Gemini.Models.GroundingMetadata.g.cs | 64 +- ...ogle.Gemini.Models.GroundingPassageId.g.cs | 26 +- .../Google.Gemini.Models.Hyperparameters.g.cs | 22 +- .../Generated/Google.Gemini.Models.Image.g.cs | 24 +- .../Google.Gemini.Models.ImageConfig.g.cs | 24 +- ...gle.Gemini.Models.ImageResponseFormat.g.cs | 26 +- ...oogle.Gemini.Models.ImportFileRequest.g.cs | 24 +- ...ni.Models.InlinedEmbedContentResponse.g.cs | 24 +- .../Google.Gemini.Models.InlinedResponse.g.cs | 24 +- .../Google.Gemini.Models.InputConfig.g.cs | 24 +- ...Gemini.Models.InputEmbedContentConfig.g.cs | 24 +- .../Google.Gemini.Models.Interval.g.cs | 24 +- ...gle.Gemini.Models.ListCorporaResponse.g.cs | 24 +- ...e.Gemini.Models.ListDocumentsResponse.g.cs | 24 +- ...i.Models.ListFileSearchStoresResponse.g.cs | 24 +- ...oogle.Gemini.Models.ListFilesResponse.g.cs | 24 +- ....Gemini.Models.ListOperationsResponse.g.cs | 24 +- ...Gemini.Models.ListPermissionsResponse.g.cs | 24 +- .../Google.Gemini.Models.LogprobsResult.g.cs | 24 +- ...Gemini.Models.LogprobsResultCandidate.g.cs | 24 +- .../Generated/Google.Gemini.Models.Maps.g.cs | 46 +- .../Generated/Google.Gemini.Models.Model.g.cs | 148 +- .../Google.Gemini.Models.ModelStatus.g.cs | 24 +- .../Google.Gemini.Models.Operation.g.cs | 46 +- .../Generated/Google.Gemini.Models.Part.g.cs | 184 +- .../Google.Gemini.Models.Permission.g.cs | 22 +- .../Google.Gemini.Models.PromptFeedback.g.cs | 24 +- ...gle.Gemini.Models.RealtimeInputConfig.g.cs | 46 +- ...le.Gemini.Models.ResponseFormatConfig.g.cs | 24 +- ...Google.Gemini.Models.RetrievedContext.g.cs | 60 +- .../Google.Gemini.Models.ReviewSnippet.g.cs | 22 +- .../Google.Gemini.Models.SafetyRating.g.cs | 30 +- ...le.Gemini.Models.SafetyRatingCategory.g.cs | 12 +- ...e.Gemini.Models.SafetySettingCategory.g.cs | 12 +- .../Google.Gemini.Models.Schema.g.cs | 262 +- ...Google.Gemini.Models.SearchEntryPoint.g.cs | 24 +- .../Google.Gemini.Models.Source.g.cs | 28 +- ...ogle.Gemini.Models.SpeakerVoiceConfig.g.cs | 24 +- .../Google.Gemini.Models.SpeechMetadata.g.cs | 24 +- .../Google.Gemini.Models.Status.g.cs | 24 +- ...Gemini.Models.StreamableHttpTransport.g.cs | 46 +- .../Google.Gemini.Models.ThinkingConfig.g.cs | 22 +- .../Generated/Google.Gemini.Models.Tool.g.cs | 106 +- .../Google.Gemini.Models.ToolCall.g.cs | 30 +- .../Google.Gemini.Models.ToolConfig.g.cs | 28 +- .../Google.Gemini.Models.ToolResponse.g.cs | 24 +- .../Google.Gemini.Models.TunedModel.g.cs | 130 +- ...Google.Gemini.Models.TunedModelSource.g.cs | 24 +- .../Google.Gemini.Models.TuningExample.g.cs | 24 +- .../Google.Gemini.Models.TuningSnapshot.g.cs | 50 +- .../Google.Gemini.Models.TuningTask.g.cs | 42 +- ...Models.UploadToFileSearchStoreRequest.g.cs | 46 +- .../Google.Gemini.Models.UsageMetadata.g.cs | 118 +- .../Google.Gemini.Models.WordInfo.g.cs | 24 +- ....NextGen.Agents.JsonSerializerContext.g.cs | 70 +- ...ini.NextGen.AgentsClient.CreateAgent.g.cs} | 91 +- ...ini.NextGen.AgentsClient.DeleteAgent.g.cs} | 52 +- ...Gemini.NextGen.AgentsClient.GetAgent.g.cs} | 52 +- ...mini.NextGen.AgentsClient.ListAgents.g.cs} | 80 +- ...Gen.Credentials.JsonSerializerContext.g.cs | 10 +- ...n.CredentialsClient.CreateCredential.g.cs} | 56 +- ...n.CredentialsClient.DeleteCredential.g.cs} | 52 +- ...tGen.CredentialsClient.GetCredential.g.cs} | 52 +- ...en.CredentialsClient.ListCredentials.g.cs} | 68 +- ...n.CredentialsClient.UpdateCredential.g.cs} | 66 +- ...en.Environments.JsonSerializerContext.g.cs | 55 +- ....EnvironmentsClient.CreateEnvironment.g.cs | 22 +- ...Gen.EnvironmentsClient.GetEnvironment.g.cs | 20 +- ...vironmentsFiles.JsonSerializerContext.g.cs | 6 +- ...mentsFilesClient.GetEnvironmentFiles.g.cs} | 52 +- .../Google.Gemini.NextGen.Exceptions.g.cs | 26 + ...GenClient.StartEnvironmentFileUpload.g.cs} | 50 +- ...le.Gemini.NextGen.GeminiNextGenClient.g.cs | 6 +- ...ni.NextGen.IAgentsClient.CreateAgent.g.cs} | 28 +- ...ni.NextGen.IAgentsClient.DeleteAgent.g.cs} | 4 +- ...emini.NextGen.IAgentsClient.GetAgent.g.cs} | 4 +- ...ini.NextGen.IAgentsClient.ListAgents.g.cs} | 8 +- ....ICredentialsClient.CreateCredential.g.cs} | 6 +- ....ICredentialsClient.DeleteCredential.g.cs} | 4 +- ...Gen.ICredentialsClient.GetCredential.g.cs} | 4 +- ...n.ICredentialsClient.ListCredentials.g.cs} | 4 +- ....ICredentialsClient.UpdateCredential.g.cs} | 10 +- ...IEnvironmentsClient.CreateEnvironment.g.cs | 6 +- ...en.IEnvironmentsClient.GetEnvironment.g.cs | 4 +- ...mentsFilesClient.GetEnvironmentFiles.g.cs} | 4 +- ...GenClient.StartEnvironmentFileUpload.g.cs} | 6 +- ...e.Gemini.NextGen.IGeminiNextGenClient.g.cs | 6 +- ...ni.NextGen.IInteractionsClient.Cancel.g.cs | 20 +- ...ni.NextGen.IInteractionsClient.Create.g.cs | 3 + ...en.IInteractionsClient.CreateAsStream.g.cs | 2 + ...ni.NextGen.IInteractionsClient.Delete.g.cs | 10 + ...emini.NextGen.IInteractionsClient.Get.g.cs | 32 +- ...xtGen.IInteractionsClient.GetAsStream.g.cs | 16 +- ...extGen.ITriggersClient.CreateTrigger.g.cs} | 12 +- ...extGen.ITriggersClient.DeleteTrigger.g.cs} | 4 +- ...i.NextGen.ITriggersClient.GetTrigger.g.cs} | 4 +- ...NextGen.ITriggersClient.ListTriggers.g.cs} | 4 +- ...i.NextGen.ITriggersClient.RunTrigger.g.cs} | 4 +- ...extGen.ITriggersClient.UpdateTrigger.g.cs} | 26 +- ...Client.Authorizations.ApiKeyInHeader.g.cs} | 2 +- ...ecutionsClient.ListTriggerExecutions.g.cs} | 10 +- ...ni.NextGen.ITriggersExecutionsClient.g.cs} | 2 +- ...ni.NextGen.IVoicesClient.CreateVoice.g.cs} | 6 +- ...ni.NextGen.IVoicesClient.DeleteVoice.g.cs} | 4 +- ...emini.NextGen.IVoicesClient.GetVoice.g.cs} | 4 +- ...ini.NextGen.IVoicesClient.ListVoices.g.cs} | 12 +- ...Gemini.NextGen.IWebhooksClient.Create.g.cs | 61 - ...NextGen.IWebhooksClient.CreateWebhook.g.cs | 51 + ...extGen.IWebhooksClient.DeleteWebhook.g.cs} | 4 +- ...i.NextGen.IWebhooksClient.GetWebhook.g.cs} | 4 +- ...NextGen.IWebhooksClient.ListWebhooks.g.cs} | 4 +- ...i.NextGen.IWebhooksClient.PingWebhook.g.cs | 30 + ...n.IWebhooksClient.RotateSigningSecret.g.cs | 25 +- ...Gemini.NextGen.IWebhooksClient.Update.g.cs | 77 - ...extGen.IWebhooksClient.UpdateWebhook.g.cs} | 26 +- ...ini.NextGen.InteractionsClient.Cancel.g.cs | 51 +- ...ini.NextGen.InteractionsClient.Create.g.cs | 7 +- ...Gen.InteractionsClient.CreateAsStream.g.cs | 2 + ...ini.NextGen.InteractionsClient.Delete.g.cs | 36 +- ...Gemini.NextGen.InteractionsClient.Get.g.cs | 69 +- ...extGen.InteractionsClient.GetAsStream.g.cs | 45 +- ...mini.NextGen.JsonConverters.AgentTool.g.cs | 34 +- ...verters.CreateAgentInteractionStatus.g.cs} | 14 +- ...CreateAgentInteractionStatusNullable.g.cs} | 14 +- ...sonConverters.CredentialUpdateParams.g.cs} | 8 +- ...nConverters.EnvironmentConfigNetwork.g.cs} | 14 +- ...ers.EnvironmentConfigNetworkNullable.g.cs} | 14 +- ...extGen.JsonConverters.FindRequestMode.g.cs | 53 - ...JsonConverters.ImageConfigAspectRatio.g.cs | 53 - ...erters.ImageConfigAspectRatioNullable.g.cs | 60 - ...nverters.ImageConfigImageSizeNullable.g.cs | 60 - ....Gemini.NextGen.JsonConverters.OneOf4.g.cs | 303 - ...extGen.JsonConverters.ResponseFormat4.g.cs | 1 - ...rters.RetrievalCallDeltaRetrievalType.g.cs | 53 - ...trievalCallDeltaRetrievalTypeNullable.g.cs | 60 - ...erters.RetrievalCallStepRetrievalType.g.cs | 53 - ...etrievalCallStepRetrievalTypeNullable.g.cs | 60 - ...JsonConverters.RetrievalRetrievalType.g.cs | 53 - ...erters.RetrievalRetrievalTypeNullable.g.cs | 60 - ...le.Gemini.NextGen.JsonConverters.Step.g.cs | 224 +- ....NextGen.JsonConverters.StepDeltaData.g.cs | 244 +- ...le.Gemini.NextGen.JsonConverters.Tool.g.cs | 114 +- ...Converters.UrlContextResultItemStatus.g.cs | 53 - ...rs.UrlContextResultItemStatusNullable.g.cs | 60 - ...JsonConverters.WebhookSubscribedEvent.g.cs | 48 - ...erters.WebhookSubscribedEventNullable.g.cs | 55 - ...nverters.WebhookUpdateSubscribedEvent.g.cs | 48 - ....WebhookUpdateSubscribedEventNullable.g.cs | 55 - ....Gemini.NextGen.JsonSerializerContext.g.cs | 278 +- ...ni.NextGen.JsonSerializerContextTypes.g.cs | 885 +- .../Google.Gemini.NextGen.Models.Agent.g.cs | 46 +- ...NextGen.Models.AgentListResponse.Json.g.cs | 141 - ...oogle.Gemini.NextGen.Models.AgentTool.g.cs | 64 +- ...ni.NextGen.Models.AllowlistEntry.Json.g.cs | 141 - ...n.Models.AllowlistEntryTransform.Json.g.cs | 141 - ...extGen.Models.AllowlistEntryTransform.g.cs | 19 - ...le.Gemini.NextGen.Models.AudioContent.g.cs | 3 +- ...ogle.Gemini.NextGen.Models.AudioDelta.g.cs | 20 +- ...ni.NextGen.Models.AudioResponseFormat.g.cs | 3 +- ....NextGen.Models.CodeExecutionCallStep.g.cs | 3 +- ...extGen.Models.CodeExecutionResultStep.g.cs | 3 +- ...Gen.Models.CodeMenderAgentConfig.Json.g.cs | 141 - ....NextGen.Models.CodeMenderAgentConfig.g.cs | 108 - ...Models.CodeMenderAgentConfigType.Json.g.cs | 141 - .../Google.Gemini.NextGen.Models.Content.g.cs | 15 +- ...NextGen.Models.CreateAgentInteraction.g.cs | 159 +- ...n.Models.CreateAgentInteractionStatus.g.cs | 82 + ...NextGen.Models.CreateModelInteraction.g.cs | 152 +- ...n.Models.CreateModelInteractionStatus.g.cs | 6 - ...en.Models.CredentialListResponse.Json.g.cs | 141 - ...n.Models.CredentialUpdateParams.Json.g.cs} | 26 +- ...extGen.Models.CredentialUpdateParams.g.cs} | 38 +- ...extGen.Models.DeepResearchAgentConfig.g.cs | 13 +- ...Gemini.NextGen.Models.DocumentContent.g.cs | 3 +- ...e.Gemini.NextGen.Models.DocumentDelta.g.cs | 22 +- ...tGen.Models.DynamicAgentConfig2.Json.g.cs} | 26 +- ...i.NextGen.Models.DynamicAgentConfig2.g.cs} | 4 +- ...emini.NextGen.Models.EgressRule.Json.g.cs} | 26 +- ...gle.Gemini.NextGen.Models.EgressRule.g.cs} | 23 +- ...tGen.Models.EgressRuleTransform.Json.g.cs} | 26 +- ...i.NextGen.Models.EgressRuleTransform.g.cs} | 6 +- ...le.Gemini.NextGen.Models.Environment2.g.cs | 157 - ...le.Gemini.NextGen.Models.Environment3.g.cs | 135 +- ...extGen.Models.EnvironmentConfig.Json.g.cs} | 26 +- ...mini.NextGen.Models.EnvironmentConfig.g.cs | 91 + ...Gen.Models.EnvironmentConfigEnv.Json.g.cs} | 26 +- ....NextGen.Models.EnvironmentConfigEnv.g.cs} | 2 +- ...tGen.Models.EnvironmentConfigNetwork.g.cs} | 12 +- ...en.Models.EnvironmentConfigType.Json.g.cs} | 26 +- ...NextGen.Models.EnvironmentConfigType.g.cs} | 2 +- ...els.EnvironmentNetworkEgressAllowlist.g.cs | 9 +- ...ogle.Gemini.NextGen.Models.ErrorEvent.g.cs | 2 +- ...NextGen.Models.ExaAISearchConfig.Json.g.cs | 141 - ...mini.NextGen.Models.ExaAISearchConfig.g.cs | 58 - ...ls.ExaAISearchConfigCustomConfig.Json.g.cs | 141 - ....Models.ExaAISearchConfigCustomConfig.g.cs | 19 - ...s.ExaAISearchConfigCustomConfig2.Json.g.cs | 141 - ...Models.ExaAISearchConfigCustomConfig2.g.cs | 19 - ...emini.NextGen.Models.FileContent.Json.g.cs | 141 - ...gle.Gemini.NextGen.Models.FileContent.g.cs | 57 - ...ini.NextGen.Models.FileSearchCallStep.g.cs | 3 +- ...i.NextGen.Models.FileSearchResultStep.g.cs | 3 +- ...gle.Gemini.NextGen.Models.Filter.Json.g.cs | 141 - .../Google.Gemini.NextGen.Models.Filter.g.cs | 72 - ...emini.NextGen.Models.FindRequest.Json.g.cs | 141 - ...gle.Gemini.NextGen.Models.FindRequest.g.cs | 87 - ...Gemini.NextGen.Models.FindRequestMode.g.cs | 51 - ...ogle.Gemini.NextGen.Models.FixRequest.g.cs | 75 - ...emini.NextGen.Models.FunctionCallStep.g.cs | 3 +- ...ini.NextGen.Models.FunctionResultStep.g.cs | 3 +- ...emini.NextGen.Models.GenerationConfig.g.cs | 40 +- ...Gen.Models.GetInteractionRequest.Json.g.cs | 141 - ....NextGen.Models.GetInteractionRequest.g.cs | 82 - ...ini.NextGen.Models.GoogleMapsCallStep.g.cs | 3 +- ...i.NextGen.Models.GoogleMapsResultStep.g.cs | 3 +- ...i.NextGen.Models.GoogleSearchCallStep.g.cs | 3 +- ...Models.GoogleSearchCallStepSearchType.g.cs | 6 - ...NextGen.Models.GoogleSearchResultStep.g.cs | 3 +- ...NextGen.Models.GoogleSearchSearchType.g.cs | 6 - ...NextGen.Models.GroundingToolCountType.g.cs | 6 - ...le.Gemini.NextGen.Models.HarmCategory.g.cs | 30 - ...mini.NextGen.Models.HybridSearch.Json.g.cs | 141 - ...le.Gemini.NextGen.Models.HybridSearch.g.cs | 48 - ...gle.Gemini.NextGen.Models.ImageConfig.g.cs | 10 +- ...NextGen.Models.ImageConfigAspectRatio.g.cs | 126 - ...i.NextGen.Models.ImageConfigImageSize.g.cs | 64 - ...le.Gemini.NextGen.Models.ImageContent.g.cs | 3 +- ...ogle.Gemini.NextGen.Models.ImageDelta.g.cs | 20 +- ...ni.NextGen.Models.ImageResponseFormat.g.cs | 3 +- ...gle.Gemini.NextGen.Models.Interaction.g.cs | 106 +- ...tGen.Models.InteractionCompletedEvent.g.cs | 3 +- ...extGen.Models.InteractionCreatedEvent.g.cs | 3 +- ...ni.NextGen.Models.InteractionSSEEvent.g.cs | 16 +- ...Models.InteractionSseEventInteraction.g.cs | 18 +- ....InteractionSseEventInteractionStatus.g.cs | 12 - ...mini.NextGen.Models.InteractionStatus.g.cs | 6 - ...extGen.Models.InteractionStatusUpdate.g.cs | 8 +- ....Models.InteractionStatusUpdateStatus.g.cs | 6 - ...xtGen.Models.ListAgentsResponse.Json.g.cs} | 26 +- ...ni.NextGen.Models.ListAgentsResponse.g.cs} | 10 +- ....Models.ListCredentialsResponse.Json.g.cs} | 26 +- ...xtGen.Models.ListCredentialsResponse.g.cs} | 10 +- ...xtGen.Models.ListEnvironmentsResponse.g.cs | 4 +- ...Gen.Models.ListWebhooksResponse.Json.g.cs} | 26 +- ....NextGen.Models.ListWebhooksResponse.g.cs} | 10 +- ....Gemini.NextGen.Models.MCPServer.Json.g.cs | 141 - ...Models.MCPServerToolResultDeltaResult.g.cs | 19 - ...n.Models.MCPServerToolResultDeltaType.g.cs | 19 - ....Models.MCPServerToolResultStepResult.g.cs | 19 - ...en.Models.MCPServerToolResultStepType.g.cs | 19 - ...e.Gemini.NextGen.Models.MCPServerType.g.cs | 19 - ...Gemini.NextGen.Models.McpServer.Json.g.cs} | 26 +- ...ogle.Gemini.NextGen.Models.McpServer.g.cs} | 32 +- ...NextGen.Models.McpServerHeaders.Json.g.cs} | 26 +- ...mini.NextGen.Models.McpServerHeaders.g.cs} | 2 +- ...n.Models.McpServerToolCallDelta.Json.g.cs} | 26 +- ...extGen.Models.McpServerToolCallDelta.g.cs} | 10 +- ...McpServerToolCallDeltaArguments.Json.g.cs} | 26 +- ...dels.McpServerToolCallDeltaArguments.g.cs} | 2 +- ...cpServerToolCallDeltaArguments2.Json.g.cs} | 26 +- ...els.McpServerToolCallDeltaArguments2.g.cs} | 2 +- ...dels.McpServerToolCallDeltaType.Json.g.cs} | 26 +- ...en.Models.McpServerToolCallDeltaType.g.cs} | 2 +- ...en.Models.McpServerToolCallStep.Json.g.cs} | 26 +- ...NextGen.Models.McpServerToolCallStep.g.cs} | 13 +- ....McpServerToolCallStepArguments.Json.g.cs} | 26 +- ...odels.McpServerToolCallStepArguments.g.cs} | 2 +- ...McpServerToolCallStepArguments2.Json.g.cs} | 26 +- ...dels.McpServerToolCallStepArguments2.g.cs} | 2 +- ...odels.McpServerToolCallStepType.Json.g.cs} | 26 +- ...Gen.Models.McpServerToolCallStepType.g.cs} | 2 +- ...Models.McpServerToolResultDelta.Json.g.cs} | 26 +- ...tGen.Models.McpServerToolResultDelta.g.cs} | 10 +- ....McpServerToolResultDeltaResult.Json.g.cs} | 26 +- ...Models.McpServerToolResultDeltaResult.g.cs | 19 + ...ls.McpServerToolResultDeltaType.Json.g.cs} | 26 +- ....Models.McpServerToolResultDeltaType.g.cs} | 2 +- ....Models.McpServerToolResultStep.Json.g.cs} | 26 +- ...xtGen.Models.McpServerToolResultStep.g.cs} | 13 +- ...s.McpServerToolResultStepResult.Json.g.cs} | 26 +- ....Models.McpServerToolResultStepResult.g.cs | 19 + ...els.McpServerToolResultStepType.Json.g.cs} | 26 +- ...n.Models.McpServerToolResultStepType.g.cs} | 2 +- ...ni.NextGen.Models.McpServerType.Json.g.cs} | 26 +- ....Gemini.NextGen.Models.McpServerType.g.cs} | 2 +- .../Google.Gemini.NextGen.Models.Model.g.cs | 7 - ...Gemini.NextGen.Models.ModelOutputStep.g.cs | 26 +- ...en.Models.ParallelAISearchConfig.Json.g.cs | 141 - ...NextGen.Models.ParallelAISearchConfig.g.cs | 57 - ...rallelAISearchConfigCustomConfig.Json.g.cs | 141 - ...ls.ParallelAISearchConfigCustomConfig.g.cs | 19 - ...allelAISearchConfigCustomConfig2.Json.g.cs | 141 - ...s.ParallelAISearchConfigCustomConfig2.g.cs | 19 - ...ini.NextGen.Models.PingWebhookRequest.g.cs | 30 + ...tGen.Models.PingWebhookResponse.Json.g.cs} | 26 +- ...i.NextGen.Models.PingWebhookResponse.g.cs} | 2 +- ...emini.NextGen.Models.RagResource.Json.g.cs | 141 - ...gle.Gemini.NextGen.Models.RagResource.g.cs | 59 - ...ini.NextGen.Models.RagRetrievalConfig.g.cs | 79 - ...ni.NextGen.Models.RagStoreConfig.Json.g.cs | 141 - ....Gemini.NextGen.Models.RagStoreConfig.g.cs | 73 - ...emini.NextGen.Models.RankService.Json.g.cs | 141 - ...gle.Gemini.NextGen.Models.RankService.g.cs | 46 - ...le.Gemini.NextGen.Models.Ranking.Json.g.cs | 141 - .../Google.Gemini.NextGen.Models.Ranking.g.cs | 67 - ...tGen.Models.RankingRankingConfig.Json.g.cs | 141 - ...Gemini.NextGen.Models.ReplicatedVoice.g.cs | 3 +- ...Gemini.NextGen.Models.ResponseFormat4.g.cs | 12 +- ...oogle.Gemini.NextGen.Models.Retrieval.g.cs | 100 - ...en.Models.RetrievalCallArguments.Json.g.cs | 141 - ...NextGen.Models.RetrievalCallArguments.g.cs | 46 - ...extGen.Models.RetrievalCallDelta.Json.g.cs | 141 - ...ini.NextGen.Models.RetrievalCallDelta.g.cs | 81 - ...odels.RetrievalCallDeltaRetrievalType.g.cs | 63 - ...en.Models.RetrievalCallDeltaType.Json.g.cs | 141 - ...NextGen.Models.RetrievalCallDeltaType.g.cs | 19 - ...NextGen.Models.RetrievalCallStep.Json.g.cs | 141 - ...mini.NextGen.Models.RetrievalCallStep.g.cs | 94 - ...Models.RetrievalCallStepRetrievalType.g.cs | 63 - ...Gen.Models.RetrievalCallStepType.Json.g.cs | 141 - ...i.NextGen.Models.RetrievalResultDelta.g.cs | 69 - ....Models.RetrievalResultDeltaType.Json.g.cs | 141 - ...xtGen.Models.RetrievalResultDeltaType.g.cs | 19 - ...ni.NextGen.Models.RetrievalResultStep.g.cs | 81 - ...extGen.Models.RetrievalResultStepType.g.cs | 19 - ...NextGen.Models.RetrievalRetrievalType.g.cs | 63 - ...ini.NextGen.Models.RetrievalType.Json.g.cs | 141 - ...e.Gemini.NextGen.Models.RetrievalType.g.cs | 19 - ...Gen.Models.RotateSigningSecretRequest.g.cs | 14 + ...els.RotateSigningSecretResponse.Json.g.cs} | 26 +- ...n.Models.RotateSigningSecretResponse.g.cs} | 10 +- ...NextGen.Models.SafetySettingThreshold.g.cs | 6 - ...gle.Gemini.NextGen.Models.ServiceTier.g.cs | 6 - ...ini.NextGen.Models.SessionConfig.Json.g.cs | 141 - ...e.Gemini.NextGen.Models.SessionConfig.g.cs | 48 - ...ogle.Gemini.NextGen.Models.SourceType.g.cs | 6 - ...e.Gemini.NextGen.Models.SpeakerConfig.g.cs | 4 +- ...ini.NextGen.Models.SpeechConfig.Json.g.cs} | 26 +- ...e.Gemini.NextGen.Models.SpeechConfig.g.cs} | 10 +- ...gle.Gemini.NextGen.Models.Status.Json.g.cs | 141 - .../Google.Gemini.NextGen.Models.Status.g.cs | 79 - ...mini.NextGen.Models.StatusDetail.Json.g.cs | 141 - ...ini.NextGen.Models.StatusDetail2.Json.g.cs | 141 - ...e.Gemini.NextGen.Models.StatusDetail2.g.cs | 19 - .../Google.Gemini.NextGen.Models.Step.g.cs | 395 +- ...oogle.Gemini.NextGen.Models.StepDelta.g.cs | 2 +- ...e.Gemini.NextGen.Models.StepDeltaData.g.cs | 379 +- ...mini.NextGen.Models.StepDeltaMetadata.g.cs | 6 +- ...oogle.Gemini.NextGen.Models.StepStart.g.cs | 2 +- ...Google.Gemini.NextGen.Models.StepStop.g.cs | 14 +- ...gle.Gemini.NextGen.Models.TextContent.g.cs | 3 +- ...ini.NextGen.Models.TextResponseFormat.g.cs | 3 +- ...gle.Gemini.NextGen.Models.ThoughtStep.g.cs | 7 +- ....NextGen.Models.ThoughtSummaryContent.g.cs | 6 +- .../Google.Gemini.NextGen.Models.Tool.g.cs | 159 +- ...ni.NextGen.Models.TranscriptionConfig.g.cs | 33 +- .../Google.Gemini.NextGen.Models.Trigger.g.cs | 22 +- ...ni.NextGen.Models.TriggerCreateParams.g.cs | 119 - ...ini.NextGen.Models.URLContextCallStep.g.cs | 3 +- ...i.NextGen.Models.URLContextResultStep.g.cs | 3 +- ...dels.UrlContextCallStepArguments.Json.g.cs | 141 - ...en.Models.UrlContextCallStepArguments.g.cs | 46 - ...tGen.Models.UrlContextResultItem.Json.g.cs | 141 - ...i.NextGen.Models.UrlContextResultItem.g.cs | 58 - ...Gen.Models.UrlContextResultItemStatus.g.cs | 63 - .../Google.Gemini.NextGen.Models.Usage.g.cs | 3 +- ...e.Gemini.NextGen.Models.UserInputStep.g.cs | 3 +- ...tGen.Models.VertexAISearchConfig.Json.g.cs | 141 - ...i.NextGen.Models.VertexAISearchConfig.g.cs | 57 - ...le.Gemini.NextGen.Models.VideoContent.g.cs | 23 +- ...ogle.Gemini.NextGen.Models.VideoDelta.g.cs | 20 +- ...ni.NextGen.Models.VideoResponseFormat.g.cs | 16 +- .../Google.Gemini.NextGen.Models.Voice.g.cs | 12 +- .../Google.Gemini.NextGen.Models.Webhook.g.cs | 4 +- ...xtGen.Models.WebhookPingResponse.Json.g.cs | 141 - ...bhookRotateSigningSecretResponse.Json.g.cs | 141 - ...NextGen.Models.WebhookSubscribedEvent.g.cs | 155 - ...e.Gemini.NextGen.Models.WebhookUpdate.g.cs | 4 +- ...n.Models.WebhookUpdateSubscribedEvent.g.cs | 155 - .../Google.Gemini.NextGen.OneOf.4.Json.g.cs | 141 - .../Google.Gemini.NextGen.OneOf.4.g.cs | 460 - ...NextGen.TriggersClient.CreateTrigger.g.cs} | 68 +- ...NextGen.TriggersClient.DeleteTrigger.g.cs} | 52 +- ...ni.NextGen.TriggersClient.GetTrigger.g.cs} | 52 +- ....NextGen.TriggersClient.ListTriggers.g.cs} | 52 +- ...ni.NextGen.TriggersClient.RunTrigger.g.cs} | 52 +- ...NextGen.TriggersClient.UpdateTrigger.g.cs} | 87 +- ...ggersExecutions.JsonSerializerContext.g.cs | 164 + ...Client.Authorizations.ApiKeyInHeader.g.cs} | 2 +- ...nsClient.Constructors.ApiKeyInHeader.g.cs} | 6 +- ...ecutionsClient.ListTriggerExecutions.g.cs} | 64 +- ...ini.NextGen.TriggersExecutionsClient.g.cs} | 16 +- ....NextGen.Voices.JsonSerializerContext.g.cs | 10 +- ...ini.NextGen.VoicesClient.CreateVoice.g.cs} | 56 +- ...ini.NextGen.VoicesClient.DeleteVoice.g.cs} | 52 +- ...Gemini.NextGen.VoicesClient.GetVoice.g.cs} | 52 +- ...mini.NextGen.VoicesClient.ListVoices.g.cs} | 72 +- ...extGen.Webhooks.JsonSerializerContext.g.cs | 68 +- ...NextGen.WebhooksClient.CreateWebhook.g.cs} | 107 +- ...NextGen.WebhooksClient.DeleteWebhook.g.cs} | 52 +- ...ni.NextGen.WebhooksClient.GetWebhook.g.cs} | 52 +- ....NextGen.WebhooksClient.ListWebhooks.g.cs} | 68 +- ...le.Gemini.NextGen.WebhooksClient.Ping.g.cs | 503 - ...ni.NextGen.WebhooksClient.PingWebhook.g.cs | 461 + ...en.WebhooksClient.RotateSigningSecret.g.cs | 75 +- ...NextGen.WebhooksClient.UpdateWebhook.g.cs} | 116 +- .../Generated/autosdk.generated-examples.json | 26 +- src/libs/Google.Gemini/nextgen.openapi.json | 4953 +++------ src/libs/Google.Gemini/openapi.json | 9870 ++++++++--------- 508 files changed, 15166 insertions(+), 27971 deletions(-) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.AgentsClient.Create.g.cs => Google.Gemini.NextGen.AgentsClient.CreateAgent.g.cs} (93%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.AgentsClient.Delete.g.cs => Google.Gemini.NextGen.AgentsClient.DeleteAgent.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.AgentsClient.Get.g.cs => Google.Gemini.NextGen.AgentsClient.GetAgent.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.AgentsClient.List.g.cs => Google.Gemini.NextGen.AgentsClient.ListAgents.g.cs} (91%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.CredentialsClient.Create.g.cs => Google.Gemini.NextGen.CredentialsClient.CreateCredential.g.cs} (93%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.CredentialsClient.Delete.g.cs => Google.Gemini.NextGen.CredentialsClient.DeleteCredential.g.cs} (93%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.CredentialsClient.Get.g.cs => Google.Gemini.NextGen.CredentialsClient.GetCredential.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.CredentialsClient.List.g.cs => Google.Gemini.NextGen.CredentialsClient.ListCredentials.g.cs} (91%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.CredentialsClient.Update.g.cs => Google.Gemini.NextGen.CredentialsClient.UpdateCredential.g.cs} (92%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.EnvironmentsFilesClient.List.g.cs => Google.Gemini.NextGen.EnvironmentsFilesClient.GetEnvironmentFiles.g.cs} (93%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.EnvironmentsInternalClient.StartUpload.g.cs => Google.Gemini.NextGen.GeminiNextGenClient.StartEnvironmentFileUpload.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IAgentsClient.Create.g.cs => Google.Gemini.NextGen.IAgentsClient.CreateAgent.g.cs} (92%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IAgentsClient.Delete.g.cs => Google.Gemini.NextGen.IAgentsClient.DeleteAgent.g.cs} (96%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IAgentsClient.Get.g.cs => Google.Gemini.NextGen.IAgentsClient.GetAgent.g.cs} (97%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IAgentsClient.List.g.cs => Google.Gemini.NextGen.IAgentsClient.ListAgents.g.cs} (90%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.ICredentialsClient.Create.g.cs => Google.Gemini.NextGen.ICredentialsClient.CreateCredential.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.ICredentialsClient.Delete.g.cs => Google.Gemini.NextGen.ICredentialsClient.DeleteCredential.g.cs} (95%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.ICredentialsClient.Get.g.cs => Google.Gemini.NextGen.ICredentialsClient.GetCredential.g.cs} (95%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.ICredentialsClient.List.g.cs => Google.Gemini.NextGen.ICredentialsClient.ListCredentials.g.cs} (90%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.ICredentialsClient.Update.g.cs => Google.Gemini.NextGen.ICredentialsClient.UpdateCredential.g.cs} (90%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IEnvironmentsFilesClient.List.g.cs => Google.Gemini.NextGen.IEnvironmentsFilesClient.GetEnvironmentFiles.g.cs} (95%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IEnvironmentsInternalClient.StartUpload.g.cs => Google.Gemini.NextGen.IGeminiNextGenClient.StartEnvironmentFileUpload.g.cs} (95%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.ITriggersClient.Create.g.cs => Google.Gemini.NextGen.ITriggersClient.CreateTrigger.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.ITriggersClient.Delete.g.cs => Google.Gemini.NextGen.ITriggersClient.DeleteTrigger.g.cs} (95%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.ITriggersClient.Get.g.cs => Google.Gemini.NextGen.ITriggersClient.GetTrigger.g.cs} (95%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.ITriggersClient.List.g.cs => Google.Gemini.NextGen.ITriggersClient.ListTriggers.g.cs} (95%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.ITriggersClient.Run.g.cs => Google.Gemini.NextGen.ITriggersClient.RunTrigger.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.ITriggersClient.Update.g.cs => Google.Gemini.NextGen.ITriggersClient.UpdateTrigger.g.cs} (77%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IEnvironmentsInternalClient.Authorizations.ApiKeyInHeader.g.cs => Google.Gemini.NextGen.ITriggersExecutionsClient.Authorizations.ApiKeyInHeader.g.cs} (83%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.ITriggersClient.ListExecutions.g.cs => Google.Gemini.NextGen.ITriggersExecutionsClient.ListTriggerExecutions.g.cs} (84%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IEnvironmentsInternalClient.g.cs => Google.Gemini.NextGen.ITriggersExecutionsClient.g.cs} (95%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IVoicesClient.Create.g.cs => Google.Gemini.NextGen.IVoicesClient.CreateVoice.g.cs} (98%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IVoicesClient.Delete.g.cs => Google.Gemini.NextGen.IVoicesClient.DeleteVoice.g.cs} (95%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IVoicesClient.Get.g.cs => Google.Gemini.NextGen.IVoicesClient.GetVoice.g.cs} (97%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IVoicesClient.List.g.cs => Google.Gemini.NextGen.IVoicesClient.ListVoices.g.cs} (95%) delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Create.g.cs create mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.CreateWebhook.g.cs rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IWebhooksClient.Delete.g.cs => Google.Gemini.NextGen.IWebhooksClient.DeleteWebhook.g.cs} (95%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IWebhooksClient.Get.g.cs => Google.Gemini.NextGen.IWebhooksClient.GetWebhook.g.cs} (95%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IWebhooksClient.List.g.cs => Google.Gemini.NextGen.IWebhooksClient.ListWebhooks.g.cs} (91%) create mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.PingWebhook.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Update.g.cs rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.IWebhooksClient.Ping.g.cs => Google.Gemini.NextGen.IWebhooksClient.UpdateWebhook.g.cs} (74%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.JsonConverters.ImageConfigImageSize.g.cs => Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatus.g.cs} (69%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.JsonConverters.FindRequestModeNullable.g.cs => Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatusNullable.g.cs} (70%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.JsonConverters.CredentialUpdate.g.cs => Google.Gemini.NextGen.JsonConverters.CredentialUpdateParams.g.cs} (97%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.JsonConverters.EnvironmentNetwork2.g.cs => Google.Gemini.NextGen.JsonConverters.EnvironmentConfigNetwork.g.cs} (79%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.JsonConverters.EnvironmentNetwork2Nullable.g.cs => Google.Gemini.NextGen.JsonConverters.EnvironmentConfigNetworkNullable.g.cs} (80%) delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.FindRequestMode.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ImageConfigAspectRatio.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ImageConfigAspectRatioNullable.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ImageConfigImageSizeNullable.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.OneOf4.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallDeltaRetrievalType.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallDeltaRetrievalTypeNullable.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallStepRetrievalType.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallStepRetrievalTypeNullable.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalRetrievalType.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalRetrievalTypeNullable.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.UrlContextResultItemStatus.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.UrlContextResultItemStatusNullable.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEvent.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEventNullable.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookUpdateSubscribedEvent.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookUpdateSubscribedEventNullable.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentListResponse.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntry.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntryTransform.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntryTransform.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfig.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfig.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfigType.Json.g.cs create mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateAgentInteractionStatus.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialListResponse.Json.g.cs rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.CredentialUpdate.Json.g.cs => Google.Gemini.NextGen.Models.CredentialUpdateParams.Json.g.cs} (91%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.CredentialUpdate.g.cs => Google.Gemini.NextGen.Models.CredentialUpdateParams.g.cs} (83%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.TriggerCreateParams.Json.g.cs => Google.Gemini.NextGen.Models.DynamicAgentConfig2.Json.g.cs} (88%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.AllowlistEntryTransformItem.g.cs => Google.Gemini.NextGen.Models.DynamicAgentConfig2.g.cs} (78%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.FixRequest.Json.g.cs => Google.Gemini.NextGen.Models.EgressRule.Json.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.AllowlistEntry.g.cs => Google.Gemini.NextGen.Models.EgressRule.g.cs} (61%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.RetrievalResultStep.Json.g.cs => Google.Gemini.NextGen.Models.EgressRuleTransform.Json.g.cs} (88%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.EnvironmentEnv.g.cs => Google.Gemini.NextGen.Models.EgressRuleTransform.g.cs} (67%) delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment2.g.cs rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.Environment2.Json.g.cs => Google.Gemini.NextGen.Models.EnvironmentConfig.Json.g.cs} (89%) create mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfig.g.cs rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.EnvironmentEnv.Json.g.cs => Google.Gemini.NextGen.Models.EnvironmentConfigEnv.Json.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.RankingRankingConfig.g.cs => Google.Gemini.NextGen.Models.EnvironmentConfigEnv.g.cs} (90%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.EnvironmentNetwork2.g.cs => Google.Gemini.NextGen.Models.EnvironmentConfigNetwork.g.cs} (67%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.EnvironmentType.Json.g.cs => Google.Gemini.NextGen.Models.EnvironmentConfigType.Json.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.RetrievalCallStepType.g.cs => Google.Gemini.NextGen.Models.EnvironmentConfigType.g.cs} (90%) delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfig.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfig.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig2.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig2.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileContent.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileContent.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Filter.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Filter.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequest.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequest.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequestMode.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FixRequest.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GetInteractionRequest.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GetInteractionRequest.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HybridSearch.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HybridSearch.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageConfigAspectRatio.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageConfigImageSize.g.cs rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.RagRetrievalConfig.Json.g.cs => Google.Gemini.NextGen.Models.ListAgentsResponse.Json.g.cs} (88%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.AgentListResponse.g.cs => Google.Gemini.NextGen.Models.ListAgentsResponse.g.cs} (84%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.RetrievalResultStepType.Json.g.cs => Google.Gemini.NextGen.Models.ListCredentialsResponse.Json.g.cs} (87%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.CredentialListResponse.g.cs => Google.Gemini.NextGen.Models.ListCredentialsResponse.g.cs} (82%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.RetrievalResultDelta.Json.g.cs => Google.Gemini.NextGen.Models.ListWebhooksResponse.Json.g.cs} (88%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.WebhookListResponse.g.cs => Google.Gemini.NextGen.Models.ListWebhooksResponse.g.cs} (86%) delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServer.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDeltaResult.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDeltaType.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStepResult.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStepType.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerType.g.cs rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.Retrieval.Json.g.cs => Google.Gemini.NextGen.Models.McpServer.Json.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServer.g.cs => Google.Gemini.NextGen.Models.McpServer.g.cs} (93%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerHeaders.Json.g.cs => Google.Gemini.NextGen.Models.McpServerHeaders.Json.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerHeaders.g.cs => Google.Gemini.NextGen.Models.McpServerHeaders.g.cs} (91%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallDelta.Json.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallDelta.Json.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallDelta.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallDelta.g.cs} (90%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments.Json.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments.Json.g.cs} (88%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments.g.cs} (88%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments2.Json.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments2.Json.g.cs} (88%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments2.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments2.g.cs} (88%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallDeltaType.Json.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallDeltaType.Json.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallStepType.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallDeltaType.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallStep.Json.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallStep.Json.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallStep.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallStep.g.cs} (87%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments.Json.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallStepArguments.Json.g.cs} (88%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallStepArguments.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments2.Json.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallStepArguments2.Json.g.cs} (88%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments2.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallStepArguments2.g.cs} (88%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallStepType.Json.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallStepType.Json.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.CodeMenderAgentConfigType.g.cs => Google.Gemini.NextGen.Models.McpServerToolCallStepType.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolResultDelta.Json.g.cs => Google.Gemini.NextGen.Models.McpServerToolResultDelta.Json.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolResultDelta.g.cs => Google.Gemini.NextGen.Models.McpServerToolResultDelta.g.cs} (91%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolResultDeltaResult.Json.g.cs => Google.Gemini.NextGen.Models.McpServerToolResultDeltaResult.Json.g.cs} (88%) create mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDeltaResult.g.cs rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolResultDeltaType.Json.g.cs => Google.Gemini.NextGen.Models.McpServerToolResultDeltaType.Json.g.cs} (88%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolCallDeltaType.g.cs => Google.Gemini.NextGen.Models.McpServerToolResultDeltaType.g.cs} (88%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolResultStep.Json.g.cs => Google.Gemini.NextGen.Models.McpServerToolResultStep.Json.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolResultStep.g.cs => Google.Gemini.NextGen.Models.McpServerToolResultStep.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolResultStepResult.Json.g.cs => Google.Gemini.NextGen.Models.McpServerToolResultStepResult.Json.g.cs} (88%) create mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStepResult.g.cs rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerToolResultStepType.Json.g.cs => Google.Gemini.NextGen.Models.McpServerToolResultStepType.Json.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.EnvironmentType.g.cs => Google.Gemini.NextGen.Models.McpServerToolResultStepType.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.MCPServerType.Json.g.cs => Google.Gemini.NextGen.Models.McpServerType.Json.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.StatusDetail.g.cs => Google.Gemini.NextGen.Models.McpServerType.g.cs} (91%) delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfig.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfig.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig2.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig2.g.cs rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.WebhookListResponse.Json.g.cs => Google.Gemini.NextGen.Models.PingWebhookResponse.Json.g.cs} (89%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.WebhookPingResponse.g.cs => Google.Gemini.NextGen.Models.PingWebhookResponse.g.cs} (91%) delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagResource.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagResource.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagRetrievalConfig.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagStoreConfig.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagStoreConfig.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RankService.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RankService.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Ranking.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Ranking.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RankingRankingConfig.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Retrieval.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallArguments.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallArguments.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDelta.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDelta.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDeltaRetrievalType.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDeltaType.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDeltaType.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStep.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStep.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStepRetrievalType.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStepType.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDelta.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDeltaType.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDeltaType.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStep.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStepType.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalRetrievalType.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalType.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalType.g.cs rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.AllowlistEntryTransformItem.Json.g.cs => Google.Gemini.NextGen.Models.RotateSigningSecretResponse.Json.g.cs} (87%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.WebhookRotateSigningSecretResponse.g.cs => Google.Gemini.NextGen.Models.RotateSigningSecretResponse.g.cs} (77%) delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SessionConfig.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SessionConfig.g.cs rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.SpeechConfig2.Json.g.cs => Google.Gemini.NextGen.Models.SpeechConfig.Json.g.cs} (93%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.Models.SpeechConfig2.g.cs => Google.Gemini.NextGen.Models.SpeechConfig.g.cs} (93%) delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Status.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Status.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StatusDetail.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StatusDetail2.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StatusDetail2.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TriggerCreateParams.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextCallStepArguments.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextCallStepArguments.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItem.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItem.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItemStatus.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VertexAISearchConfig.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VertexAISearchConfig.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookPingResponse.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookRotateSigningSecretResponse.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookSubscribedEvent.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookUpdateSubscribedEvent.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.4.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.4.g.cs rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.TriggersClient.Create.g.cs => Google.Gemini.NextGen.TriggersClient.CreateTrigger.g.cs} (93%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.TriggersClient.Delete.g.cs => Google.Gemini.NextGen.TriggersClient.DeleteTrigger.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.TriggersClient.Get.g.cs => Google.Gemini.NextGen.TriggersClient.GetTrigger.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.TriggersClient.List.g.cs => Google.Gemini.NextGen.TriggersClient.ListTriggers.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.TriggersClient.Run.g.cs => Google.Gemini.NextGen.TriggersClient.RunTrigger.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.TriggersClient.Update.g.cs => Google.Gemini.NextGen.TriggersClient.UpdateTrigger.g.cs} (91%) create mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutions.JsonSerializerContext.g.cs rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.EnvironmentsInternalClient.Authorizations.ApiKeyInHeader.g.cs => Google.Gemini.NextGen.TriggersExecutionsClient.Authorizations.ApiKeyInHeader.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.EnvironmentsInternalClient.Constructors.ApiKeyInHeader.g.cs => Google.Gemini.NextGen.TriggersExecutionsClient.Constructors.ApiKeyInHeader.g.cs} (71%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.TriggersClient.ListExecutions.g.cs => Google.Gemini.NextGen.TriggersExecutionsClient.ListTriggerExecutions.g.cs} (92%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.EnvironmentsInternalClient.g.cs => Google.Gemini.NextGen.TriggersExecutionsClient.g.cs} (91%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.VoicesClient.Create.g.cs => Google.Gemini.NextGen.VoicesClient.CreateVoice.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.VoicesClient.Delete.g.cs => Google.Gemini.NextGen.VoicesClient.DeleteVoice.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.VoicesClient.Get.g.cs => Google.Gemini.NextGen.VoicesClient.GetVoice.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.VoicesClient.List.g.cs => Google.Gemini.NextGen.VoicesClient.ListVoices.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.WebhooksClient.Create.g.cs => Google.Gemini.NextGen.WebhooksClient.CreateWebhook.g.cs} (90%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.WebhooksClient.Delete.g.cs => Google.Gemini.NextGen.WebhooksClient.DeleteWebhook.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.WebhooksClient.Get.g.cs => Google.Gemini.NextGen.WebhooksClient.GetWebhook.g.cs} (94%) rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.WebhooksClient.List.g.cs => Google.Gemini.NextGen.WebhooksClient.ListWebhooks.g.cs} (91%) delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Ping.g.cs create mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.PingWebhook.g.cs rename src/libs/Google.Gemini/NextGen/Generated/{Google.Gemini.NextGen.WebhooksClient.Update.g.cs => Google.Gemini.NextGen.WebhooksClient.UpdateWebhook.g.cs} (88%) diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Exceptions.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Exceptions.g.cs index fcb423238..0310e27fb 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Exceptions.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Exceptions.g.cs @@ -20,6 +20,32 @@ public partial class ApiException : global::System.Exception /// public string? ResponseBody { get; set; } + /// + /// Successful HTTP responses that fail during processing put the cause before a bounded body preview. + /// Inspect ResponseBody for the full response; HTTP service-error messages retain their existing format. + /// + public override string Message + { + get + { + if ((int)StatusCode < 200 || (int)StatusCode >= 300 || InnerException == null) + { + return base.Message; + } + + string? path = (InnerException as global::System.Text.Json.JsonException)?.Path; + return "Response processing failed after successful HTTP " + + ((int)StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture) + ": " + + InnerException.GetType().FullName + ": " + BoundDiagnosticText(InnerException.Message) + + (string.IsNullOrEmpty(path) ? string.Empty : " Path: " + BoundDiagnosticText(path, 256)) + + "\nResponse preview: " + BoundDiagnosticText(base.Message); + } + } + + private static string BoundDiagnosticText(string? value, int maximumLength = 512) => + value == null ? string.Empty : + value.Length <= maximumLength ? value : value.Substring(0, maximumLength) + "... [truncated]"; + /// /// The response headers. /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.AuthTokensCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.AuthTokensCreate.g.cs index 8aa166aab..400c2e86f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.AuthTokensCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.AuthTokensCreate.g.cs @@ -425,40 +425,40 @@ partial void ProcessAuthTokensCreateResponseContent( /// /// Creates a token that can be used to constrain the behavior of a BidiGenerateContent session. /// + /// + /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. + /// /// /// Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages. /// - /// - /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. - /// /// /// Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection. /// /// /// Optional. Input only. Immutable. An optional time after which, when using the resulting token, messages in BidiGenerateContent sessions will be rejected. (Gemini may preemptively close the session after this time.) If not set then this defaults to 30 minutes in the future. If set, this value must be less than 20 hours in the future. /// - /// - /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. + /// + /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task AuthTokensCreateAsync( + int? uses = default, global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup = default, - string? newSessionExpireTime = default, string? fieldMask = default, string? expireTime = default, - int? uses = default, + string? newSessionExpireTime = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.AuthToken { + Uses = uses, BidiGenerateContentSetup = bidiGenerateContentSetup, - NewSessionExpireTime = newSessionExpireTime, FieldMask = fieldMask, ExpireTime = expireTime, - Uses = uses, + NewSessionExpireTime = newSessionExpireTime, }; return await AuthTokensCreateAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs index 37ae3e66e..470cae80f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs @@ -448,47 +448,47 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent( /// /// /// - /// - /// Stats about the batch. - /// - /// - /// Configures the input to the batch request. - /// - /// - /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. - /// /// /// Required. The user-defined name of this batch. /// /// /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// + /// + /// Stats about the batch. + /// + /// + /// Configures the input to the batch request. + /// /// /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. /// + /// + /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task BatchesUpdateEmbedContentBatchAsync( string batchesId, string? updateMask = default, - global::Google.Gemini.EmbedContentBatchStats? batchStats = default, - global::Google.Gemini.InputEmbedContentConfig? inputConfig = default, - global::Google.Gemini.EmbedContentBatchOutput? output = default, string? displayName = default, string? model = default, + global::Google.Gemini.EmbedContentBatchStats? batchStats = default, + global::Google.Gemini.InputEmbedContentConfig? inputConfig = default, string? priority = default, + global::Google.Gemini.EmbedContentBatchOutput? output = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.EmbedContentBatch { - BatchStats = batchStats, - InputConfig = inputConfig, - Output = output, DisplayName = displayName, Model = model, + BatchStats = batchStats, + InputConfig = inputConfig, Priority = priority, + Output = output, }; return await BatchesUpdateEmbedContentBatchAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs index fe2bdc735..e95c6a2e8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs @@ -448,47 +448,47 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent( /// /// /// + /// + /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. + /// /// /// Required. The user-defined name of this batch. /// - /// - /// Stats about the batch. - /// /// /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. /// - /// - /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. - /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Stats about the batch. /// /// /// Configures the input to the batch request. /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task BatchesUpdateGenerateContentBatchAsync( string batchesId, string? updateMask = default, + string? priority = default, string? displayName = default, - global::Google.Gemini.BatchStats? batchStats = default, global::Google.Gemini.GenerateContentBatchOutput? output = default, - string? priority = default, - string? model = default, + global::Google.Gemini.BatchStats? batchStats = default, global::Google.Gemini.InputConfig? inputConfig = default, + string? model = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentBatch { + Priority = priority, DisplayName = displayName, - BatchStats = batchStats, Output = output, - Priority = priority, - Model = model, + BatchStats = batchStats, InputConfig = inputConfig, + Model = model, }; return await BatchesUpdateGenerateContentBatchAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs index 8bce8a3d3..04c5eeade 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs @@ -425,17 +425,17 @@ partial void ProcessCachedContentsCreateResponseContent( /// /// Creates CachedContent resource. /// + /// + /// Metadata on the usage of the cached content. + /// /// /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. - /// - /// - /// Metadata on the usage of the cached content. + /// + /// Input only. New TTL for this resource, input only. /// - /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// Optional. Input only. Immutable. The content to cache. /// /// /// The Tool configuration containing parameters for specifying `Tool` use in the request. @@ -443,42 +443,42 @@ partial void ProcessCachedContentsCreateResponseContent( /// /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response /// - /// - /// Input only. New TTL for this resource, input only. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. /// /// /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. /// - /// - /// Optional. Input only. Immutable. The content to cache. - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CachedContentsCreateAsync( - string? model = default, - global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, - string? displayName = default, + string? model = default, + string? ttl = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.ToolConfig? toolConfig = default, global::System.Collections.Generic.IList? tools = default, - string? ttl = default, + global::Google.Gemini.Content? systemInstruction = default, + string? displayName = default, string? expireTime = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.CachedContent { - Model = model, - SystemInstruction = systemInstruction, UsageMetadata = usageMetadata, - DisplayName = displayName, + Model = model, + Ttl = ttl, + Contents = contents, ToolConfig = toolConfig, Tools = tools, - Ttl = ttl, + SystemInstruction = systemInstruction, + DisplayName = displayName, ExpireTime = expireTime, - Contents = contents, }; return await CachedContentsCreateAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs index 46637cef4..7c345c3f8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs @@ -448,17 +448,17 @@ partial void ProcessCachedContentsPatchResponseContent( /// /// /// + /// + /// Metadata on the usage of the cached content. + /// /// /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. - /// - /// - /// Metadata on the usage of the cached content. + /// + /// Input only. New TTL for this resource, input only. /// - /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// Optional. Input only. Immutable. The content to cache. /// /// /// The Tool configuration containing parameters for specifying `Tool` use in the request. @@ -466,44 +466,44 @@ partial void ProcessCachedContentsPatchResponseContent( /// /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response /// - /// - /// Input only. New TTL for this resource, input only. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. /// /// /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. /// - /// - /// Optional. Input only. Immutable. The content to cache. - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CachedContentsPatchAsync( string cachedContentsId, string? updateMask = default, - string? model = default, - global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, - string? displayName = default, + string? model = default, + string? ttl = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.ToolConfig? toolConfig = default, global::System.Collections.Generic.IList? tools = default, - string? ttl = default, + global::Google.Gemini.Content? systemInstruction = default, + string? displayName = default, string? expireTime = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.CachedContent { - Model = model, - SystemInstruction = systemInstruction, UsageMetadata = usageMetadata, - DisplayName = displayName, + Model = model, + Ttl = ttl, + Contents = contents, ToolConfig = toolConfig, Tools = tools, - Ttl = ttl, + SystemInstruction = systemInstruction, + DisplayName = displayName, ExpireTime = expireTime, - Contents = contents, }; return await CachedContentsPatchAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs index fd285c79a..82956ef8a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs @@ -435,12 +435,12 @@ partial void ProcessCorporaPermissionsCreateResponseContent( /// Create a permission to a specific resource. /// /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// /// Required. The role granted by this permission. /// @@ -449,16 +449,16 @@ partial void ProcessCorporaPermissionsCreateResponseContent( /// public async global::System.Threading.Tasks.Task CorporaPermissionsCreateAsync( string corporaId, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.PermissionRole? role = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.Permission { - EmailAddress = emailAddress, GranteeType = granteeType, + EmailAddress = emailAddress, Role = role, }; diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs index 0652752bb..2457798bf 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs @@ -458,12 +458,12 @@ partial void ProcessCorporaPermissionsPatchResponseContent( /// /// /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// /// Required. The role granted by this permission. /// @@ -474,16 +474,16 @@ partial void ProcessCorporaPermissionsPatchResponseContent( string permissionsId, string corporaId, string? updateMask = default, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.PermissionRole? role = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.Permission { - EmailAddress = emailAddress, GranteeType = granteeType, + EmailAddress = emailAddress, Role = role, }; diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs index e5769a687..fc20d0343 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs @@ -435,76 +435,76 @@ partial void ProcessDynamicGenerateContentResponseContent( /// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task DynamicGenerateContentAsync( string dynamicId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { - GenerationConfig = generationConfig, - Contents = contents, + ToolConfig = toolConfig, + Tools = tools, Store = store, - CachedContent = cachedContent, - SystemInstruction = systemInstruction, - Model = model, ContinuationToken = continuationToken, - ToolConfig = toolConfig, - Labels = labels, - ServiceTier = serviceTier, + GenerationConfig = generationConfig, SafetySettings = safetySettings, - Tools = tools, + ServiceTier = serviceTier, + SystemInstruction = systemInstruction, + Labels = labels, + Model = model, + CachedContent = cachedContent, + Contents = contents, }; return await DynamicGenerateContentAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs index bc4b04a4e..1ac51f6fe 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs @@ -439,76 +439,76 @@ partial void ProcessDynamicStreamGenerateContentResponseContent( /// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task DynamicStreamGenerateContentAsync( string dynamicId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { - GenerationConfig = generationConfig, - Contents = contents, + ToolConfig = toolConfig, + Tools = tools, Store = store, - CachedContent = cachedContent, - SystemInstruction = systemInstruction, - Model = model, ContinuationToken = continuationToken, - ToolConfig = toolConfig, - Labels = labels, - ServiceTier = serviceTier, + GenerationConfig = generationConfig, SafetySettings = safetySettings, - Tools = tools, + ServiceTier = serviceTier, + SystemInstruction = systemInstruction, + Labels = labels, + Model = model, + CachedContent = cachedContent, + Contents = contents, }; return await DynamicStreamGenerateContentAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs index bff14d73c..8a4fa646d 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs @@ -380,76 +380,76 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse( /// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync( string dynamicId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { - GenerationConfig = generationConfig, - Contents = contents, + ToolConfig = toolConfig, + Tools = tools, Store = store, - CachedContent = cachedContent, - SystemInstruction = systemInstruction, - Model = model, ContinuationToken = continuationToken, - ToolConfig = toolConfig, - Labels = labels, - ServiceTier = serviceTier, + GenerationConfig = generationConfig, SafetySettings = safetySettings, - Tools = tools, + ServiceTier = serviceTier, + SystemInstruction = systemInstruction, + Labels = labels, + Model = model, + CachedContent = cachedContent, + Contents = contents, }; var __enumerable = DynamicStreamGenerateContentAsStreamAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsCreate.g.cs index e9d930d7e..3fa0971a9 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsCreate.g.cs @@ -425,35 +425,35 @@ partial void ProcessEnvironmentsCreateResponseContent( /// /// Creates an environment. /// - /// - /// Network egress mode. - /// /// /// Sources to be mounted into the environment. /// - /// - /// Network egress configuration for the environment. - /// /// /// Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty. /// + /// + /// Network egress mode. + /// + /// + /// Network egress configuration for the environment. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task EnvironmentsCreateAsync( - global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default, global::System.Collections.Generic.IList? sources = default, - global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist = default, string? fromEnvironment = default, + global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default, + global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.CreateEnvironmentRequest { - NetworkMode = networkMode, Sources = sources, - NetworkAllowlist = networkAllowlist, FromEnvironment = fromEnvironment, + NetworkMode = networkMode, + NetworkAllowlist = networkAllowlist, }; return await EnvironmentsCreateAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs index c0ad62f16..e591dfc87 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs @@ -435,31 +435,31 @@ partial void ProcessFileSearchStoresImportFileResponseContent( /// Imports a `File` from File Service to a `FileSearchStore`. /// /// - /// - /// Required. The name of the `File` to import. Example: `files/abc-123` - /// /// /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto /// /// /// Custom metadata to be associated with the file. /// + /// + /// Required. The name of the `File` to import. Example: `files/abc-123` + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task FileSearchStoresImportFileAsync( string fileSearchStoresId, - string? fileName = default, global::Google.Gemini.ChunkingConfig? chunkingConfig = default, global::System.Collections.Generic.IList? customMetadata = default, + string? fileName = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.ImportFileRequest { - FileName = fileName, ChunkingConfig = chunkingConfig, CustomMetadata = customMetadata, + FileName = fileName, }; return await FileSearchStoresImportFileAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs index 00789e0f2..67b9caec7 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs @@ -435,36 +435,36 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent( /// Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document. /// /// + /// + /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto + /// + /// + /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. + /// /// /// Optional. Display name of the created document. /// /// /// Custom metadata to be associated with the data. /// - /// - /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. - /// - /// - /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task MediaUploadToFileSearchStoreAsync( string fileSearchStoresId, + global::Google.Gemini.ChunkingConfig? chunkingConfig = default, + string? mimeType = default, string? displayName = default, global::System.Collections.Generic.IList? customMetadata = default, - string? mimeType = default, - global::Google.Gemini.ChunkingConfig? chunkingConfig = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.UploadToFileSearchStoreRequest { + ChunkingConfig = chunkingConfig, + MimeType = mimeType, DisplayName = displayName, CustomMetadata = customMetadata, - MimeType = mimeType, - ChunkingConfig = chunkingConfig, }; return await MediaUploadToFileSearchStoreAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs index 1fae5f57e..8e9e97753 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs @@ -437,12 +437,12 @@ partial void ProcessModelsEmbedContentResponseContent( /// Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding). /// /// - /// - /// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}` - /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// + /// + /// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}` + /// /// /// Configurations for the EmbedContent request. /// @@ -451,16 +451,16 @@ partial void ProcessModelsEmbedContentResponseContent( /// public async global::System.Threading.Tasks.Task ModelsEmbedContentAsync( string modelsId, - string? model = default, global::Google.Gemini.Content? content = default, + string? model = default, global::Google.Gemini.EmbedContentConfig? embedContentConfig = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.EmbedContentRequest { - Model = model, Content = content, + Model = model, EmbedContentConfig = embedContentConfig, }; diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs index 24b355fae..b0535e863 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs @@ -435,76 +435,76 @@ partial void ProcessModelsGenerateContentResponseContent( /// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ModelsGenerateContentAsync( string modelsId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { - GenerationConfig = generationConfig, - Contents = contents, + ToolConfig = toolConfig, + Tools = tools, Store = store, - CachedContent = cachedContent, - SystemInstruction = systemInstruction, - Model = model, ContinuationToken = continuationToken, - ToolConfig = toolConfig, - Labels = labels, - ServiceTier = serviceTier, + GenerationConfig = generationConfig, SafetySettings = safetySettings, - Tools = tools, + ServiceTier = serviceTier, + SystemInstruction = systemInstruction, + Labels = labels, + Model = model, + CachedContent = cachedContent, + Contents = contents, }; return await ModelsGenerateContentAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs index aa106e4d4..af173dec3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs @@ -439,76 +439,76 @@ partial void ProcessModelsStreamGenerateContentResponseContent( /// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ModelsStreamGenerateContentAsync( string modelsId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { - GenerationConfig = generationConfig, - Contents = contents, + ToolConfig = toolConfig, + Tools = tools, Store = store, - CachedContent = cachedContent, - SystemInstruction = systemInstruction, - Model = model, ContinuationToken = continuationToken, - ToolConfig = toolConfig, - Labels = labels, - ServiceTier = serviceTier, + GenerationConfig = generationConfig, SafetySettings = safetySettings, - Tools = tools, + ServiceTier = serviceTier, + SystemInstruction = systemInstruction, + Labels = labels, + Model = model, + CachedContent = cachedContent, + Contents = contents, }; return await ModelsStreamGenerateContentAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs index 954887d8e..0438f54da 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs @@ -380,76 +380,76 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse( /// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync( string modelsId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { - GenerationConfig = generationConfig, - Contents = contents, + ToolConfig = toolConfig, + Tools = tools, Store = store, - CachedContent = cachedContent, - SystemInstruction = systemInstruction, - Model = model, ContinuationToken = continuationToken, - ToolConfig = toolConfig, - Labels = labels, - ServiceTier = serviceTier, + GenerationConfig = generationConfig, SafetySettings = safetySettings, - Tools = tools, + ServiceTier = serviceTier, + SystemInstruction = systemInstruction, + Labels = labels, + Model = model, + CachedContent = cachedContent, + Contents = contents, }; var __enumerable = ModelsStreamGenerateContentAsStreamAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs index 2a7f368b1..3324447bf 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs @@ -438,61 +438,61 @@ partial void ProcessTunedModelsCreateResponseContent( /// Creates a tuned model. Check intermediate tuning progress (if any) through the [google.longrunning.Operations] service. Access status and results through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222 /// /// + /// + /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. + /// /// /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. /// + /// + /// Optional. A short description of this model. + /// /// /// Tuning tasks that create tuned models. /// + /// + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` + /// /// /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model. /// - /// - /// Optional. A short description of this model. - /// - /// - /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. + /// + /// Tuned model as a source for training a new model. /// /// /// Optional. List of project numbers that have read access to the tuned model. /// - /// - /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. - /// - /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` - /// - /// - /// Tuned model as a source for training a new model. + /// + /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task TunedModelsCreateAsync( string? tunedModelId = default, + int? topK = default, string? displayName = default, - global::Google.Gemini.TuningTask? tuningTask = default, - float? temperature = default, string? description = default, - float? topP = default, - global::System.Collections.Generic.IList? readerProjectNumbers = default, - int? topK = default, + global::Google.Gemini.TuningTask? tuningTask = default, string? baseModel = default, + float? temperature = default, global::Google.Gemini.TunedModelSource? tunedModelSource = default, + global::System.Collections.Generic.IList? readerProjectNumbers = default, + float? topP = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.TunedModel { + TopK = topK, DisplayName = displayName, - TuningTask = tuningTask, - Temperature = temperature, Description = description, - TopP = topP, - ReaderProjectNumbers = readerProjectNumbers, - TopK = topK, + TuningTask = tuningTask, BaseModel = baseModel, + Temperature = temperature, TunedModelSource = tunedModelSource, + ReaderProjectNumbers = readerProjectNumbers, + TopP = topP, }; return await TunedModelsCreateAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs index 9f9e0ccc8..6daf5d172 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs @@ -435,76 +435,76 @@ partial void ProcessTunedModelsGenerateContentResponseContent( /// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task TunedModelsGenerateContentAsync( string tunedModelsId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { - GenerationConfig = generationConfig, - Contents = contents, + ToolConfig = toolConfig, + Tools = tools, Store = store, - CachedContent = cachedContent, - SystemInstruction = systemInstruction, - Model = model, ContinuationToken = continuationToken, - ToolConfig = toolConfig, - Labels = labels, - ServiceTier = serviceTier, + GenerationConfig = generationConfig, SafetySettings = safetySettings, - Tools = tools, + ServiceTier = serviceTier, + SystemInstruction = systemInstruction, + Labels = labels, + Model = model, + CachedContent = cachedContent, + Contents = contents, }; return await TunedModelsGenerateContentAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs index 896c74e3a..9efbb5377 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs @@ -448,32 +448,32 @@ partial void ProcessTunedModelsPatchResponseContent( /// /// /// + /// + /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. + /// /// /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. /// + /// + /// Optional. A short description of this model. + /// /// /// Tuning tasks that create tuned models. /// + /// + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` + /// /// /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model. /// - /// - /// Optional. A short description of this model. - /// - /// - /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. + /// + /// Tuned model as a source for training a new model. /// /// /// Optional. List of project numbers that have read access to the tuned model. /// - /// - /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. - /// - /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` - /// - /// - /// Tuned model as a source for training a new model. + /// + /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -481,29 +481,29 @@ partial void ProcessTunedModelsPatchResponseContent( public async global::System.Threading.Tasks.Task TunedModelsPatchAsync( string tunedModelsId, string? updateMask = default, + int? topK = default, string? displayName = default, - global::Google.Gemini.TuningTask? tuningTask = default, - float? temperature = default, string? description = default, - float? topP = default, - global::System.Collections.Generic.IList? readerProjectNumbers = default, - int? topK = default, + global::Google.Gemini.TuningTask? tuningTask = default, string? baseModel = default, + float? temperature = default, global::Google.Gemini.TunedModelSource? tunedModelSource = default, + global::System.Collections.Generic.IList? readerProjectNumbers = default, + float? topP = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.TunedModel { + TopK = topK, DisplayName = displayName, - TuningTask = tuningTask, - Temperature = temperature, Description = description, - TopP = topP, - ReaderProjectNumbers = readerProjectNumbers, - TopK = topK, + TuningTask = tuningTask, BaseModel = baseModel, + Temperature = temperature, TunedModelSource = tunedModelSource, + ReaderProjectNumbers = readerProjectNumbers, + TopP = topP, }; return await TunedModelsPatchAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs index f327145de..b26b735e8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs @@ -435,12 +435,12 @@ partial void ProcessTunedModelsPermissionsCreateResponseContent( /// Create a permission to a specific resource. /// /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// /// Required. The role granted by this permission. /// @@ -449,16 +449,16 @@ partial void ProcessTunedModelsPermissionsCreateResponseContent( /// public async global::System.Threading.Tasks.Task TunedModelsPermissionsCreateAsync( string tunedModelsId, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.PermissionRole? role = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.Permission { - EmailAddress = emailAddress, GranteeType = granteeType, + EmailAddress = emailAddress, Role = role, }; diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs index 86e3e1547..a06091b6f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs @@ -458,12 +458,12 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent( /// /// /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// /// Required. The role granted by this permission. /// @@ -474,16 +474,16 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent( string tunedModelsId, string permissionsId, string? updateMask = default, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.PermissionRole? role = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.Permission { - EmailAddress = emailAddress, GranteeType = granteeType, + EmailAddress = emailAddress, Role = role, }; diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs index e1049279c..819511b2a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs @@ -439,76 +439,76 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent( /// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task TunedModelsStreamGenerateContentAsync( string tunedModelsId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { - GenerationConfig = generationConfig, - Contents = contents, + ToolConfig = toolConfig, + Tools = tools, Store = store, - CachedContent = cachedContent, - SystemInstruction = systemInstruction, - Model = model, ContinuationToken = continuationToken, - ToolConfig = toolConfig, - Labels = labels, - ServiceTier = serviceTier, + GenerationConfig = generationConfig, SafetySettings = safetySettings, - Tools = tools, + ServiceTier = serviceTier, + SystemInstruction = systemInstruction, + Labels = labels, + Model = model, + CachedContent = cachedContent, + Contents = contents, }; return await TunedModelsStreamGenerateContentAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs index 83f930899..25bc56f16 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs @@ -380,76 +380,76 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse( /// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync( string tunedModelsId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { - GenerationConfig = generationConfig, - Contents = contents, + ToolConfig = toolConfig, + Tools = tools, Store = store, - CachedContent = cachedContent, - SystemInstruction = systemInstruction, - Model = model, ContinuationToken = continuationToken, - ToolConfig = toolConfig, - Labels = labels, - ServiceTier = serviceTier, + GenerationConfig = generationConfig, SafetySettings = safetySettings, - Tools = tools, + ServiceTier = serviceTier, + SystemInstruction = systemInstruction, + Labels = labels, + Model = model, + CachedContent = cachedContent, + Contents = contents, }; var __enumerable = TunedModelsStreamGenerateContentAsStreamAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.g.cs index e4ab9619d..ca12f0adc 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.g.cs @@ -35,14 +35,14 @@ public sealed partial class GeminiClient : global::Google.Gemini.IGeminiClient, /// public global::Google.Gemini.AutoSDKClientOptions Options { get; } - internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Google.Gemini.SourceGenerationContext.Default); + internal global::System.Lazy? JsonSerializerContextProvider { get; set; } /// /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider.Value; + get => JsonSerializerContextProvider?.Value ?? global::Google.Gemini.SourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.AuthTokensCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.AuthTokensCreate.g.cs index 259af4a5c..dc295aad8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.AuthTokensCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.AuthTokensCreate.g.cs @@ -31,30 +31,30 @@ public partial interface IGeminiClient /// /// Creates a token that can be used to constrain the behavior of a BidiGenerateContent session. /// + /// + /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. + /// /// /// Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages. /// - /// - /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. - /// /// /// Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection. /// /// /// Optional. Input only. Immutable. An optional time after which, when using the resulting token, messages in BidiGenerateContent sessions will be rejected. (Gemini may preemptively close the session after this time.) If not set then this defaults to 30 minutes in the future. If set, this value must be less than 20 hours in the future. /// - /// - /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. + /// + /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task AuthTokensCreateAsync( + int? uses = default, global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup = default, - string? newSessionExpireTime = default, string? fieldMask = default, string? expireTime = default, - int? uses = default, + string? newSessionExpireTime = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs index 6e116b00b..5708cc33a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs @@ -41,36 +41,36 @@ public partial interface IGeminiClient /// /// /// - /// - /// Stats about the batch. - /// - /// - /// Configures the input to the batch request. - /// - /// - /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. - /// /// /// Required. The user-defined name of this batch. /// /// /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// + /// + /// Stats about the batch. + /// + /// + /// Configures the input to the batch request. + /// /// /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. /// + /// + /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task BatchesUpdateEmbedContentBatchAsync( string batchesId, string? updateMask = default, - global::Google.Gemini.EmbedContentBatchStats? batchStats = default, - global::Google.Gemini.InputEmbedContentConfig? inputConfig = default, - global::Google.Gemini.EmbedContentBatchOutput? output = default, string? displayName = default, string? model = default, + global::Google.Gemini.EmbedContentBatchStats? batchStats = default, + global::Google.Gemini.InputEmbedContentConfig? inputConfig = default, string? priority = default, + global::Google.Gemini.EmbedContentBatchOutput? output = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs index dc50ea19e..1049d75da 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs @@ -41,36 +41,36 @@ public partial interface IGeminiClient /// /// /// + /// + /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. + /// /// /// Required. The user-defined name of this batch. /// - /// - /// Stats about the batch. - /// /// /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. /// - /// - /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. - /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Stats about the batch. /// /// /// Configures the input to the batch request. /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task BatchesUpdateGenerateContentBatchAsync( string batchesId, string? updateMask = default, + string? priority = default, string? displayName = default, - global::Google.Gemini.BatchStats? batchStats = default, global::Google.Gemini.GenerateContentBatchOutput? output = default, - string? priority = default, - string? model = default, + global::Google.Gemini.BatchStats? batchStats = default, global::Google.Gemini.InputConfig? inputConfig = default, + string? model = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs index bb691c171..e503377cf 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs @@ -31,17 +31,17 @@ public partial interface IGeminiClient /// /// Creates CachedContent resource. /// + /// + /// Metadata on the usage of the cached content. + /// /// /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. - /// - /// - /// Metadata on the usage of the cached content. + /// + /// Input only. New TTL for this resource, input only. /// - /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// Optional. Input only. Immutable. The content to cache. /// /// /// The Tool configuration containing parameters for specifying `Tool` use in the request. @@ -49,28 +49,28 @@ public partial interface IGeminiClient /// /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response /// - /// - /// Input only. New TTL for this resource, input only. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. /// /// /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. /// - /// - /// Optional. Input only. Immutable. The content to cache. - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CachedContentsCreateAsync( - string? model = default, - global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, - string? displayName = default, + string? model = default, + string? ttl = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.ToolConfig? toolConfig = default, global::System.Collections.Generic.IList? tools = default, - string? ttl = default, + global::Google.Gemini.Content? systemInstruction = default, + string? displayName = default, string? expireTime = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs index a7a8f19b8..994cdb793 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs @@ -41,17 +41,17 @@ public partial interface IGeminiClient /// /// /// + /// + /// Metadata on the usage of the cached content. + /// /// /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. - /// - /// - /// Metadata on the usage of the cached content. + /// + /// Input only. New TTL for this resource, input only. /// - /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// Optional. Input only. Immutable. The content to cache. /// /// /// The Tool configuration containing parameters for specifying `Tool` use in the request. @@ -59,30 +59,30 @@ public partial interface IGeminiClient /// /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response /// - /// - /// Input only. New TTL for this resource, input only. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. /// /// /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. /// - /// - /// Optional. Input only. Immutable. The content to cache. - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CachedContentsPatchAsync( string cachedContentsId, string? updateMask = default, - string? model = default, - global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, - string? displayName = default, + string? model = default, + string? ttl = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.ToolConfig? toolConfig = default, global::System.Collections.Generic.IList? tools = default, - string? ttl = default, + global::Google.Gemini.Content? systemInstruction = default, + string? displayName = default, string? expireTime = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsCreate.g.cs index 5ec2145a9..742c7e66a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsCreate.g.cs @@ -36,12 +36,12 @@ public partial interface IGeminiClient /// Create a permission to a specific resource. /// /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// /// Required. The role granted by this permission. /// @@ -50,8 +50,8 @@ public partial interface IGeminiClient /// global::System.Threading.Tasks.Task CorporaPermissionsCreateAsync( string corporaId, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.PermissionRole? role = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsPatch.g.cs index deb5b41f4..b57a43d00 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsPatch.g.cs @@ -46,12 +46,12 @@ public partial interface IGeminiClient /// /// /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// /// Required. The role granted by this permission. /// @@ -62,8 +62,8 @@ public partial interface IGeminiClient string permissionsId, string corporaId, string? updateMask = default, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.PermissionRole? role = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs index 75f1444d0..0667b9ced 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs @@ -36,59 +36,59 @@ public partial interface IGeminiClient /// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task DynamicGenerateContentAsync( string dynamicId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs index 2a3b6b792..45460e359 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs @@ -36,59 +36,59 @@ public partial interface IGeminiClient /// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task DynamicStreamGenerateContentAsync( string dynamicId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs index e5d8aef65..07024fd17 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs @@ -22,59 +22,59 @@ public partial interface IGeminiClient /// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync( string dynamicId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsCreate.g.cs index 1b5c95ff8..71cccd6f8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsCreate.g.cs @@ -31,26 +31,26 @@ public partial interface IGeminiClient /// /// Creates an environment. /// - /// - /// Network egress mode. - /// /// /// Sources to be mounted into the environment. /// - /// - /// Network egress configuration for the environment. - /// /// /// Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty. /// + /// + /// Network egress mode. + /// + /// + /// Network egress configuration for the environment. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task EnvironmentsCreateAsync( - global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default, global::System.Collections.Generic.IList? sources = default, - global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist = default, string? fromEnvironment = default, + global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default, + global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresImportFile.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresImportFile.g.cs index 95c834be9..0b601d4b4 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresImportFile.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresImportFile.g.cs @@ -36,23 +36,23 @@ public partial interface IGeminiClient /// Imports a `File` from File Service to a `FileSearchStore`. /// /// - /// - /// Required. The name of the `File` to import. Example: `files/abc-123` - /// /// /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto /// /// /// Custom metadata to be associated with the file. /// + /// + /// Required. The name of the `File` to import. Example: `files/abc-123` + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task FileSearchStoresImportFileAsync( string fileSearchStoresId, - string? fileName = default, global::Google.Gemini.ChunkingConfig? chunkingConfig = default, global::System.Collections.Generic.IList? customMetadata = default, + string? fileName = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs index aa3dc1adb..b3f64a781 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs @@ -36,27 +36,27 @@ public partial interface IGeminiClient /// Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document. /// /// + /// + /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto + /// + /// + /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. + /// /// /// Optional. Display name of the created document. /// /// /// Custom metadata to be associated with the data. /// - /// - /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. - /// - /// - /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task MediaUploadToFileSearchStoreAsync( string fileSearchStoresId, + global::Google.Gemini.ChunkingConfig? chunkingConfig = default, + string? mimeType = default, string? displayName = default, global::System.Collections.Generic.IList? customMetadata = default, - string? mimeType = default, - global::Google.Gemini.ChunkingConfig? chunkingConfig = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs index 2f5b194ef..c9ec16717 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs @@ -38,12 +38,12 @@ public partial interface IGeminiClient /// Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding). /// /// - /// - /// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}` - /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// + /// + /// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}` + /// /// /// Configurations for the EmbedContent request. /// @@ -52,8 +52,8 @@ public partial interface IGeminiClient /// global::System.Threading.Tasks.Task ModelsEmbedContentAsync( string modelsId, - string? model = default, global::Google.Gemini.Content? content = default, + string? model = default, global::Google.Gemini.EmbedContentConfig? embedContentConfig = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs index 4773e1894..13d03dc58 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs @@ -36,59 +36,59 @@ public partial interface IGeminiClient /// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ModelsGenerateContentAsync( string modelsId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs index 012d4b335..88913c735 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs @@ -36,59 +36,59 @@ public partial interface IGeminiClient /// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ModelsStreamGenerateContentAsync( string modelsId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs index 2c44be4d4..e1593267d 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs @@ -22,59 +22,59 @@ public partial interface IGeminiClient /// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync( string modelsId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs index 6f9bb631a..ac94ce268 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs @@ -36,47 +36,47 @@ public partial interface IGeminiClient /// Creates a tuned model. Check intermediate tuning progress (if any) through the [google.longrunning.Operations] service. Access status and results through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222 /// /// + /// + /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. + /// /// /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. /// + /// + /// Optional. A short description of this model. + /// /// /// Tuning tasks that create tuned models. /// + /// + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` + /// /// /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model. /// - /// - /// Optional. A short description of this model. - /// - /// - /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. + /// + /// Tuned model as a source for training a new model. /// /// /// Optional. List of project numbers that have read access to the tuned model. /// - /// - /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. - /// - /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` - /// - /// - /// Tuned model as a source for training a new model. + /// + /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task TunedModelsCreateAsync( string? tunedModelId = default, + int? topK = default, string? displayName = default, - global::Google.Gemini.TuningTask? tuningTask = default, - float? temperature = default, string? description = default, - float? topP = default, - global::System.Collections.Generic.IList? readerProjectNumbers = default, - int? topK = default, + global::Google.Gemini.TuningTask? tuningTask = default, string? baseModel = default, + float? temperature = default, global::Google.Gemini.TunedModelSource? tunedModelSource = default, + global::System.Collections.Generic.IList? readerProjectNumbers = default, + float? topP = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs index c9f4e9f56..3e2e78dcf 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs @@ -36,59 +36,59 @@ public partial interface IGeminiClient /// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task TunedModelsGenerateContentAsync( string tunedModelsId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs index c08e636c7..d2025d469 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs @@ -41,32 +41,32 @@ public partial interface IGeminiClient /// /// /// + /// + /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. + /// /// /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. /// + /// + /// Optional. A short description of this model. + /// /// /// Tuning tasks that create tuned models. /// + /// + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` + /// /// /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model. /// - /// - /// Optional. A short description of this model. - /// - /// - /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. + /// + /// Tuned model as a source for training a new model. /// /// /// Optional. List of project numbers that have read access to the tuned model. /// - /// - /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. - /// - /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` - /// - /// - /// Tuned model as a source for training a new model. + /// + /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -74,15 +74,15 @@ public partial interface IGeminiClient global::System.Threading.Tasks.Task TunedModelsPatchAsync( string tunedModelsId, string? updateMask = default, + int? topK = default, string? displayName = default, - global::Google.Gemini.TuningTask? tuningTask = default, - float? temperature = default, string? description = default, - float? topP = default, - global::System.Collections.Generic.IList? readerProjectNumbers = default, - int? topK = default, + global::Google.Gemini.TuningTask? tuningTask = default, string? baseModel = default, + float? temperature = default, global::Google.Gemini.TunedModelSource? tunedModelSource = default, + global::System.Collections.Generic.IList? readerProjectNumbers = default, + float? topP = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsCreate.g.cs index 37eaa38e7..6d247e33f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsCreate.g.cs @@ -36,12 +36,12 @@ public partial interface IGeminiClient /// Create a permission to a specific resource. /// /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// /// Required. The role granted by this permission. /// @@ -50,8 +50,8 @@ public partial interface IGeminiClient /// global::System.Threading.Tasks.Task TunedModelsPermissionsCreateAsync( string tunedModelsId, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.PermissionRole? role = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsPatch.g.cs index 6e5c8adbb..065efa6e8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsPatch.g.cs @@ -46,12 +46,12 @@ public partial interface IGeminiClient /// /// /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// /// Required. The role granted by this permission. /// @@ -62,8 +62,8 @@ public partial interface IGeminiClient string tunedModelsId, string permissionsId, string? updateMask = default, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.PermissionRole? role = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs index fce7d4b79..453ef9b36 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs @@ -36,59 +36,59 @@ public partial interface IGeminiClient /// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task TunedModelsStreamGenerateContentAsync( string tunedModelsId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs index 6158884aa..7fc799aeb 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs @@ -22,59 +22,59 @@ public partial interface IGeminiClient /// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`. /// /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync( string tunedModelsId, - global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, bool? store = default, - string? cachedContent = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, byte[]? continuationToken = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::System.Collections.Generic.IList? safetySettings = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::Google.Gemini.Content? systemInstruction = default, + global::System.Collections.Generic.Dictionary? labels = default, + string? model = default, + string? cachedContent = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs index 2a939b0f3..b3edab44b 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs @@ -11,584 +11,585 @@ namespace Google.Gemini DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] { - typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter), - - typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter), - - typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter), + typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EgressRuleModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EgressRuleModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EgressRuleModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EgressRuleModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter), - typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SourceTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SourceTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter), + typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SourceTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SourceTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryNullableJsonConverter), typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeJsonConverter), typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter), + typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter), - typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter), + + typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter), + + typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter), typeof(global::Google.Gemini.JsonConverters.UnixTimestampJsonConverter), })] #pragma warning restore CS3016 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.JsonSerializerContextTypes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Operation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.V1mainMediaResolution))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.V1mainMediaResolutionLevel), TypeInfoPropertyName = "V1mainMediaResolutionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ContextWindowCompressionConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SlidingWindow))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleAiGenerativelanguageV1betaGroundingSupport))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Blob))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WordInfo))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CustomMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.StringList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GetEnvironmentFilesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Status))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Empty))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.HistoryConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlContext))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySetting))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySettingCategory), TypeInfoPropertyName = "SafetySettingCategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySettingThreshold), TypeInfoPropertyName = "SafetySettingThreshold2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListFilesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TransferOwnershipRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContentUsageMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DynamicRetrievalConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DynamicRetrievalConfigMode), TypeInfoPropertyName = "DynamicRetrievalConfigMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Web))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListDocumentsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Document))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.StreamableHttpTransport))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UploadToFileSearchStoreRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ChunkingConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VoiceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PrebuiltVoiceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateFileResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.File))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Schema))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EgressRule))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EgressRuleMode), TypeInfoPropertyName = "EgressRuleMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UploadEnvironmentFileRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AuthToken))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BidiGenerateContentSetup))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecutionResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecutionResultOutcome), TypeInfoPropertyName = "CodeExecutionResultOutcome2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LogprobsResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LogprobsResultCandidate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TopCandidates))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ReviewSnippet))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningExample))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListTunedModelsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CitationMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CitationSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunkCustomMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunkStringList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Content))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Part))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListGeneratedFilesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GeneratedFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUseDisabledSafetyPolicie), TypeInfoPropertyName = "ComputerUseDisabledSafetyPolicie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUseEnvironment), TypeInfoPropertyName = "ComputerUseEnvironment2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlContext))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListFileSearchStoresResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileSearchStore))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentRequests))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Candidate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingAttribution))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingMetadata))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SchemaType), TypeInfoPropertyName = "SchemaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponseScheduling), TypeInfoPropertyName = "FunctionResponseScheduling2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponsePart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GeneratedFile))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GeneratedFileState), TypeInfoPropertyName = "GeneratedFileState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.MultiSpeakerVoiceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeakerVoiceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCallingConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCallingConfigMode), TypeInfoPropertyName = "FunctionCallingConfigMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlContextMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetyRating))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CandidateFinishReason), TypeInfoPropertyName = "CandidateFinishReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListCorporaResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Corpus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateEnvironmentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Source))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateEnvironmentRequestNetworkMode), TypeInfoPropertyName = "CreateEnvironmentRequestNetworkMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentNetworkEgressAllowlist))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListPermissionsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Permission))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TranslationConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RegisterFilesRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchEmbedContentsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ContentEmbedding))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievalMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySetting))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySettingCategory), TypeInfoPropertyName = "SafetySettingCategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySettingThreshold), TypeInfoPropertyName = "SafetySettingThreshold2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Dataset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningExamples))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentResponses))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WebSearch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCall))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCallToolType), TypeInfoPropertyName = "ToolCallToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunkStringList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContentUsageMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UploadToFileSearchStoreRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CustomMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ChunkingConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EgressRule))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EgressRuleMode), TypeInfoPropertyName = "EgressRuleMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PromptFeedback))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PromptFeedbackBlockReason), TypeInfoPropertyName = "PromptFeedbackBlockReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetyRating))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclaration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclarationBehavior), TypeInfoPropertyName = "FunctionDeclarationBehavior2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CountTokensRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Content))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievalConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListDocumentsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Document))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievedContext))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunkCustomMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioResponseFormat))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioResponseFormatMimeType), TypeInfoPropertyName = "AudioResponseFormatMimeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioResponseFormatDelivery), TypeInfoPropertyName = "AudioResponseFormatDelivery2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WordInfo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioTranscriptionConfig))] - #pragma warning disable CS0618 // This registration names a deprecated API model. - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LanguageHints))] - #pragma warning restore CS0618 - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioTranscriptionConfigMode), TypeInfoPropertyName = "AudioTranscriptionConfigMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ExecutableCode))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ExecutableCodeLanguage), TypeInfoPropertyName = "ExecutableCodeLanguage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchStats))] #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LanguageAuto))] #pragma warning restore CS0618 - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchGenerateContentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningExamples))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningExample))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolResponseToolType), TypeInfoPropertyName = "ToolResponseToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModalityTokenCount))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModalityTokenCountModality), TypeInfoPropertyName = "ModalityTokenCountModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleAiGenerativelanguageV1betaGroundingSupport))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SessionResumptionConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Hyperparameters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListPermissionsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Permission))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.V1mainMediaResolution))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.V1mainMediaResolutionLevel), TypeInfoPropertyName = "V1mainMediaResolutionLevel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ReviewSnippet))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponseBlob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SearchEntryPoint))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievalMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.McpServer))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.StreamableHttpTransport))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Tool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecution))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleMaps))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleSearchRetrieval))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Interval))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SearchTypes))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UsageMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModelStatus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Candidate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LatLng))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CitationMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CitationSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateFileRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Dataset))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ResponseFormatConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TextResponseFormat))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WebSearch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormat))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InputConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedRequests))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfigMediaResolution), TypeInfoPropertyName = "GenerationConfigMediaResolution2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TranslationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeechConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfigResponseModalitie), TypeInfoPropertyName = "GenerationConfigResponseModalitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecutionResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecutionResultOutcome), TypeInfoPropertyName = "CodeExecutionResultOutcome2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileSearchStore))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GetEnvironmentFilesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentFile))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LogprobsResultCandidate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatImageSize), TypeInfoPropertyName = "ImageResponseFormatImageSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatMimeType), TypeInfoPropertyName = "ImageResponseFormatMimeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatDelivery), TypeInfoPropertyName = "ImageResponseFormatDelivery2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatAspectRatio), TypeInfoPropertyName = "ImageResponseFormatAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchStats))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InputEmbedContentConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchState), TypeInfoPropertyName = "EmbedContentBatchState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Model))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingPassageId))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfigThinkingLevel), TypeInfoPropertyName = "ThinkingConfigThinkingLevel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Blob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Source))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SourceType), TypeInfoPropertyName = "SourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Maps))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Image))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Web))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentRequestServiceTier), TypeInfoPropertyName = "GenerateContentRequestServiceTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PermissionGranteeType), TypeInfoPropertyName = "PermissionGranteeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PermissionRole), TypeInfoPropertyName = "PermissionRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListFileSearchStoresResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Hyperparameters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentResponses))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponseScheduling), TypeInfoPropertyName = "FunctionResponseScheduling2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponsePart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LatLng))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VideoFileMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImportFileRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SearchTypes))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningTask))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningSnapshot))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileSource), TypeInfoPropertyName = "FileSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileState), TypeInfoPropertyName = "FileState2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DocumentState), TypeInfoPropertyName = "DocumentState2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WhiteSpaceConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AttributionSourceId))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SemanticRetrieverChunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImportFileRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileState), TypeInfoPropertyName = "FileState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileSource), TypeInfoPropertyName = "FileSource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VideoFileMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.StringList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UploadEnvironmentFileResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlMetadataUrlRetrievalStatus), TypeInfoPropertyName = "UrlMetadataUrlRetrievalStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbeddingUsageMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Part))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentFileType), TypeInfoPropertyName = "EnvironmentFileType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DynamicRetrievalConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModelSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ContentEmbedding))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VideoMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AsyncBatchEmbedContentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SlidingWindow))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentRequests))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModelStatusModelStage), TypeInfoPropertyName = "ModelStatusModelStage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModel))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningTask))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingPassageId))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RealtimeInputConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RealtimeInputConfigActivityHandling), TypeInfoPropertyName = "RealtimeInputConfigActivityHandling2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RealtimeInputConfigTurnCoverage), TypeInfoPropertyName = "RealtimeInputConfigTurnCoverage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetection))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModelState), TypeInfoPropertyName = "TunedModelState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TransferOwnershipResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListTunedModelsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PrebuiltVoiceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModelSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SourceType), TypeInfoPropertyName = "SourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetyRatingProbability), TypeInfoPropertyName = "SafetyRatingProbability2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetyRatingCategory), TypeInfoPropertyName = "SafetyRatingCategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListFilesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentFileType), TypeInfoPropertyName = "EnvironmentFileType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeechConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.MultiSpeakerVoiceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponseBlob))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity), TypeInfoPropertyName = "AutomaticActivityDetectionEndOfSpeechSensitivity2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity), TypeInfoPropertyName = "AutomaticActivityDetectionStartOfSpeechSensitivity2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeakerVoiceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AsyncBatchEmbedContentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Schema))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SchemaType), TypeInfoPropertyName = "SchemaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleSearchRetrieval))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TextResponseFormat))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TextResponseFormatMimeType), TypeInfoPropertyName = "TextResponseFormatMimeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UploadEnvironmentFileResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclaration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclarationBehavior), TypeInfoPropertyName = "FunctionDeclarationBehavior2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Empty))] #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentRequestTaskType), TypeInfoPropertyName = "EmbedContentRequestTaskType2")] #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PlaceAnswerSources))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UsageMetadataServiceTier), TypeInfoPropertyName = "UsageMetadataServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.McpServer))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunk))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Maps))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievedContext))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Image))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleMaps))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioTranscriptionConfig))] + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LanguageHints))] + #pragma warning restore CS0618 + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioTranscriptionConfigMode), TypeInfoPropertyName = "AudioTranscriptionConfigMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Tool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentRequestServiceTier), TypeInfoPropertyName = "GenerateContentRequestServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PartMediaProcessing), TypeInfoPropertyName = "PartMediaProcessing2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VideoMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeechMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioTranscription))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GeneratedFileState), TypeInfoPropertyName = "GeneratedFileState2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Operation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListOperationsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.HistoryConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbeddingUsageMetadata))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListModelsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentNetworkEgressAllowlist))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Model))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlMetadataUrlRetrievalStatus), TypeInfoPropertyName = "UrlMetadataUrlRetrievalStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchGenerateContentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SessionResumptionConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PermissionGranteeType), TypeInfoPropertyName = "PermissionGranteeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PermissionRole), TypeInfoPropertyName = "PermissionRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecution))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DynamicRetrievalConfigMode), TypeInfoPropertyName = "DynamicRetrievalConfigMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TextResponseFormatMimeType), TypeInfoPropertyName = "TextResponseFormatMimeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListGeneratedFilesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VoiceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ExecutableCode))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ExecutableCodeLanguage), TypeInfoPropertyName = "ExecutableCodeLanguage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ContextWindowCompressionConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioTranscription))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfigMediaResolution), TypeInfoPropertyName = "GenerationConfigMediaResolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfigResponseModalitie), TypeInfoPropertyName = "GenerationConfigResponseModalitie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ResponseFormatConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UsageMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModalityTokenCount))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UsageMetadataServiceTier), TypeInfoPropertyName = "UsageMetadataServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TransferOwnershipResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SearchEntryPoint))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Environment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentStatus), TypeInfoPropertyName = "EnvironmentStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentNetworkMode), TypeInfoPropertyName = "EnvironmentNetworkMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CountTokensResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingAttribution))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetyRatingCategory), TypeInfoPropertyName = "SafetyRatingCategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetyRatingProbability), TypeInfoPropertyName = "SafetyRatingProbability2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WhiteSpaceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateFileResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListCachedContentsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RegisterFilesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UploadEnvironmentFileRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListEnvironmentsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Environment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CountTokensRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CountTokensResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCallingConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCallingConfigMode), TypeInfoPropertyName = "FunctionCallingConfigMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolResponseToolType), TypeInfoPropertyName = "ToolResponseToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedResponses))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUseEnvironment), TypeInfoPropertyName = "ComputerUseEnvironment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUseDisabledSafetyPolicie), TypeInfoPropertyName = "ComputerUseDisabledSafetyPolicie2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievalConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PlaceAnswerSources))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModelStatus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PromptFeedback))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModelStatusModelStage), TypeInfoPropertyName = "ModelStatusModelStage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentConfigTaskType), TypeInfoPropertyName = "EmbedContentConfigTaskType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedRequests))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioResponseFormat))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioResponseFormatMimeType), TypeInfoPropertyName = "AudioResponseFormatMimeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioResponseFormatDelivery), TypeInfoPropertyName = "AudioResponseFormatDelivery2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateFileRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Interval))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RegisterFilesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfigThinkingLevel), TypeInfoPropertyName = "ThinkingConfigThinkingLevel2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LogprobsResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CandidateFinishReason), TypeInfoPropertyName = "CandidateFinishReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlContextMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TopCandidates))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TransferOwnershipRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetection))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity), TypeInfoPropertyName = "AutomaticActivityDetectionStartOfSpeechSensitivity2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity), TypeInfoPropertyName = "AutomaticActivityDetectionEndOfSpeechSensitivity2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DocumentState), TypeInfoPropertyName = "DocumentState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RealtimeInputConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RealtimeInputConfigActivityHandling), TypeInfoPropertyName = "RealtimeInputConfigActivityHandling2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RealtimeInputConfigTurnCoverage), TypeInfoPropertyName = "RealtimeInputConfigTurnCoverage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListOperationsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BidiGenerateContentSetup))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateEnvironmentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateEnvironmentRequestNetworkMode), TypeInfoPropertyName = "CreateEnvironmentRequestNetworkMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AuthToken))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentNetworkMode), TypeInfoPropertyName = "EnvironmentNetworkMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentStatus), TypeInfoPropertyName = "EnvironmentStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModalityTokenCountModality), TypeInfoPropertyName = "ModalityTokenCountModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InputConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PromptFeedbackBlockReason), TypeInfoPropertyName = "PromptFeedbackBlockReason2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchEmbedContentsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeechMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PartMediaProcessing), TypeInfoPropertyName = "PartMediaProcessing2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchState), TypeInfoPropertyName = "GenerateContentBatchState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatAspectRatio), TypeInfoPropertyName = "ImageResponseFormatAspectRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatImageSize), TypeInfoPropertyName = "ImageResponseFormatImageSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatMimeType), TypeInfoPropertyName = "ImageResponseFormatMimeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatDelivery), TypeInfoPropertyName = "ImageResponseFormatDelivery2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchEmbedContentsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CustomLongRunningOperation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListEnvironmentsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentConfigTaskType), TypeInfoPropertyName = "EmbedContentConfigTaskType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchState), TypeInfoPropertyName = "GenerateContentBatchState2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContextTypes.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContextTypes.g.cs index c71de25cb..8f6b89ce2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContextTypes.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContextTypes.g.cs @@ -25,6 +25,11 @@ public sealed partial class JsonSerializerContextTypes /// public global::System.Collections.Generic.List? ObjectList { get; set; } + /// + /// String arrays used by dynamic JSON option values. + /// + public string[]? StringArray { get; set; } + /// /// /// @@ -33,1379 +38,1379 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.Operation? Type0 { get; set; } + public global::Google.Gemini.V1mainMediaResolution? Type0 { get; set; } /// /// /// - public global::Google.Gemini.Status? Type1 { get; set; } + public global::Google.Gemini.V1mainMediaResolutionLevel? Type1 { get; set; } /// /// /// - public object? Type2 { get; set; } + public global::Google.Gemini.ContextWindowCompressionConfig? Type2 { get; set; } /// /// /// - public string? Type3 { get; set; } + public global::Google.Gemini.SlidingWindow? Type3 { get; set; } /// /// /// - public bool? Type4 { get; set; } + public string? Type4 { get; set; } /// /// /// - public global::Google.Gemini.Empty? Type5 { get; set; } + public global::Google.Gemini.GoogleAiGenerativelanguageV1betaGroundingSupport? Type5 { get; set; } /// /// /// - public global::Google.Gemini.HistoryConfig? Type6 { get; set; } + public global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? Type6 { get; set; } /// /// /// - public global::Google.Gemini.UrlContext? Type7 { get; set; } + public global::System.Collections.Generic.IList? Type7 { get; set; } /// /// /// - public global::Google.Gemini.SafetySetting? Type8 { get; set; } + public float? Type8 { get; set; } /// /// /// - public global::Google.Gemini.SafetySettingCategory? Type9 { get; set; } + public global::System.Collections.Generic.IList? Type9 { get; set; } /// /// /// - public global::Google.Gemini.SafetySettingThreshold? Type10 { get; set; } + public int? Type10 { get; set; } /// /// /// - public global::Google.Gemini.ListFilesResponse? Type11 { get; set; } + public global::Google.Gemini.Blob? Type11 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type12 { get; set; } + public byte[]? Type12 { get; set; } /// /// /// - public global::Google.Gemini.File? Type13 { get; set; } + public global::Google.Gemini.WordInfo? Type13 { get; set; } /// /// /// - public global::Google.Gemini.Schema? Type14 { get; set; } + public global::Google.Gemini.CustomMetadata? Type14 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type15 { get; set; } + public global::Google.Gemini.StringList? Type15 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type16 { get; set; } + public global::Google.Gemini.GetEnvironmentFilesResponse? Type16 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type17 { get; set; } + public global::System.Collections.Generic.IList? Type17 { get; set; } /// /// /// - public double? Type18 { get; set; } + public global::Google.Gemini.EnvironmentFile? Type18 { get; set; } /// /// /// - public global::Google.Gemini.SchemaType? Type19 { get; set; } + public global::Google.Gemini.InlinedEmbedContentResponse? Type19 { get; set; } /// /// /// - public global::Google.Gemini.FunctionResponse? Type20 { get; set; } + public global::Google.Gemini.EmbedContentResponse? Type20 { get; set; } /// /// /// - public global::Google.Gemini.FunctionResponseScheduling? Type21 { get; set; } + public global::Google.Gemini.Status? Type21 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type22 { get; set; } + public object? Type22 { get; set; } /// /// /// - public global::Google.Gemini.FunctionResponsePart? Type23 { get; set; } + public global::Google.Gemini.TransferOwnershipRequest? Type23 { get; set; } /// /// /// - public global::Google.Gemini.GeneratedFile? Type24 { get; set; } + public global::Google.Gemini.CachedContentUsageMetadata? Type24 { get; set; } /// /// /// - public global::Google.Gemini.GeneratedFileState? Type25 { get; set; } + public global::Google.Gemini.InlinedResponse? Type25 { get; set; } /// /// /// - public global::Google.Gemini.MultiSpeakerVoiceConfig? Type26 { get; set; } + public global::Google.Gemini.GenerateContentResponse? Type26 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type27 { get; set; } + public global::Google.Gemini.DynamicRetrievalConfig? Type27 { get; set; } /// /// /// - public global::Google.Gemini.SpeakerVoiceConfig? Type28 { get; set; } + public global::Google.Gemini.DynamicRetrievalConfigMode? Type28 { get; set; } /// /// /// - public global::Google.Gemini.FunctionCallingConfig? Type29 { get; set; } + public global::Google.Gemini.Web? Type29 { get; set; } /// /// /// - public global::Google.Gemini.FunctionCallingConfigMode? Type30 { get; set; } + public global::Google.Gemini.ListDocumentsResponse? Type30 { get; set; } /// /// /// - public global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? Type31 { get; set; } + public global::System.Collections.Generic.IList? Type31 { get; set; } /// /// /// - public int? Type32 { get; set; } + public global::Google.Gemini.Document? Type32 { get; set; } /// /// /// - public global::Google.Gemini.ListCorporaResponse? Type33 { get; set; } + public global::Google.Gemini.StreamableHttpTransport? Type33 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type34 { get; set; } + public global::System.Collections.Generic.Dictionary? Type34 { get; set; } /// /// /// - public global::Google.Gemini.Corpus? Type35 { get; set; } + public bool? Type35 { get; set; } /// /// /// - public global::Google.Gemini.RegisterFilesRequest? Type36 { get; set; } + public global::Google.Gemini.UploadToFileSearchStoreRequest? Type36 { get; set; } /// /// /// - public global::Google.Gemini.BatchEmbedContentsRequest? Type37 { get; set; } + public global::Google.Gemini.ChunkingConfig? Type37 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type38 { get; set; } + public global::System.Collections.Generic.IList? Type38 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentRequest? Type39 { get; set; } + public global::Google.Gemini.FunctionCall? Type39 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentBatchOutput? Type40 { get; set; } + public global::Google.Gemini.VoiceConfig? Type40 { get; set; } /// /// /// - public global::Google.Gemini.InlinedEmbedContentResponses? Type41 { get; set; } + public global::Google.Gemini.PrebuiltVoiceConfig? Type41 { get; set; } /// /// /// - public global::Google.Gemini.WebSearch? Type42 { get; set; } + public global::Google.Gemini.CreateFileResponse? Type42 { get; set; } /// /// /// - public global::Google.Gemini.ToolCall? Type43 { get; set; } + public global::Google.Gemini.File? Type43 { get; set; } /// /// /// - public global::Google.Gemini.ToolCallToolType? Type44 { get; set; } + public global::Google.Gemini.EgressRule? Type44 { get; set; } /// /// /// - public global::Google.Gemini.GroundingChunkStringList? Type45 { get; set; } + public global::Google.Gemini.EgressRuleMode? Type45 { get; set; } /// /// /// - public global::Google.Gemini.CachedContentUsageMetadata? Type46 { get; set; } + public global::Google.Gemini.UploadEnvironmentFileRequest? Type46 { get; set; } /// /// /// - public global::Google.Gemini.UploadToFileSearchStoreRequest? Type47 { get; set; } + public global::Google.Gemini.AuthToken? Type47 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type48 { get; set; } + public global::Google.Gemini.BidiGenerateContentSetup? Type48 { get; set; } /// /// /// - public global::Google.Gemini.CustomMetadata? Type49 { get; set; } + public global::Google.Gemini.CodeExecutionResult? Type49 { get; set; } /// /// /// - public global::Google.Gemini.ChunkingConfig? Type50 { get; set; } + public global::Google.Gemini.CodeExecutionResultOutcome? Type50 { get; set; } /// /// /// - public global::Google.Gemini.EgressRule? Type51 { get; set; } + public global::Google.Gemini.LogprobsResult? Type51 { get; set; } /// /// /// - public global::Google.Gemini.EgressRuleMode? Type52 { get; set; } + public global::System.Collections.Generic.IList? Type52 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type53 { get; set; } + public global::Google.Gemini.LogprobsResultCandidate? Type53 { get; set; } /// /// /// - public global::Google.Gemini.PromptFeedback? Type54 { get; set; } + public global::System.Collections.Generic.IList? Type54 { get; set; } /// /// /// - public global::Google.Gemini.PromptFeedbackBlockReason? Type55 { get; set; } + public global::Google.Gemini.TopCandidates? Type55 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type56 { get; set; } + public global::Google.Gemini.ReviewSnippet? Type56 { get; set; } /// /// /// - public global::Google.Gemini.SafetyRating? Type57 { get; set; } + public global::Google.Gemini.TuningExample? Type57 { get; set; } /// /// /// - public global::Google.Gemini.FunctionDeclaration? Type58 { get; set; } + public global::Google.Gemini.ListTunedModelsResponse? Type58 { get; set; } /// /// /// - public global::Google.Gemini.FunctionDeclarationBehavior? Type59 { get; set; } + public global::System.Collections.Generic.IList? Type59 { get; set; } /// /// /// - public global::Google.Gemini.CountTokensRequest? Type60 { get; set; } + public global::Google.Gemini.TunedModel? Type60 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentRequest? Type61 { get; set; } + public global::Google.Gemini.CitationMetadata? Type61 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type62 { get; set; } + public global::System.Collections.Generic.IList? Type62 { get; set; } /// /// /// - public global::Google.Gemini.Content? Type63 { get; set; } + public global::Google.Gemini.CitationSource? Type63 { get; set; } /// /// /// - public global::Google.Gemini.ToolConfig? Type64 { get; set; } + public global::Google.Gemini.GroundingChunkCustomMetadata? Type64 { get; set; } /// /// /// - public global::Google.Gemini.RetrievalConfig? Type65 { get; set; } + public global::Google.Gemini.GroundingChunkStringList? Type65 { get; set; } /// /// /// - public global::Google.Gemini.ListDocumentsResponse? Type66 { get; set; } + public global::Google.Gemini.Content? Type66 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type67 { get; set; } + public global::System.Collections.Generic.IList? Type67 { get; set; } /// /// /// - public global::Google.Gemini.Document? Type68 { get; set; } + public global::Google.Gemini.Part? Type68 { get; set; } /// /// /// - public global::Google.Gemini.RetrievedContext? Type69 { get; set; } + public global::Google.Gemini.ListGeneratedFilesResponse? Type69 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type70 { get; set; } + public global::System.Collections.Generic.IList? Type70 { get; set; } /// /// /// - public global::Google.Gemini.GroundingChunkCustomMetadata? Type71 { get; set; } + public global::Google.Gemini.GeneratedFile? Type71 { get; set; } /// /// /// - public global::Google.Gemini.AudioResponseFormat? Type72 { get; set; } + public global::Google.Gemini.ComputerUse? Type72 { get; set; } /// /// /// - public global::Google.Gemini.AudioResponseFormatMimeType? Type73 { get; set; } + public global::System.Collections.Generic.IList? Type73 { get; set; } /// /// /// - public global::Google.Gemini.AudioResponseFormatDelivery? Type74 { get; set; } + public global::Google.Gemini.ComputerUseDisabledSafetyPolicie? Type74 { get; set; } /// /// /// - public global::Google.Gemini.WordInfo? Type75 { get; set; } + public global::Google.Gemini.ComputerUseEnvironment? Type75 { get; set; } /// /// /// - public global::Google.Gemini.AudioTranscriptionConfig? Type76 { get; set; } + public global::System.Collections.Generic.IList? Type76 { get; set; } /// /// /// - public global::Google.Gemini.LanguageHints? Type77 { get; set; } + public global::Google.Gemini.UrlContext? Type77 { get; set; } /// /// /// - public global::Google.Gemini.AudioTranscriptionConfigMode? Type78 { get; set; } + public global::Google.Gemini.ListFileSearchStoresResponse? Type78 { get; set; } /// /// /// - public global::Google.Gemini.LanguageAuto? Type79 { get; set; } + public global::System.Collections.Generic.IList? Type79 { get; set; } /// /// /// - public global::Google.Gemini.InlinedResponse? Type80 { get; set; } + public global::Google.Gemini.FileSearchStore? Type80 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentResponse? Type81 { get; set; } + public global::Google.Gemini.InlinedEmbedContentRequests? Type81 { get; set; } /// /// /// - public global::Google.Gemini.BatchGenerateContentRequest? Type82 { get; set; } + public global::System.Collections.Generic.IList? Type82 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentBatch? Type83 { get; set; } + public global::Google.Gemini.InlinedEmbedContentRequest? Type83 { get; set; } /// /// /// - public global::Google.Gemini.TuningExamples? Type84 { get; set; } + public global::Google.Gemini.Candidate? Type84 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type85 { get; set; } + public global::System.Collections.Generic.IList? Type85 { get; set; } /// /// /// - public global::Google.Gemini.TuningExample? Type86 { get; set; } + public global::Google.Gemini.GroundingAttribution? Type86 { get; set; } /// /// /// - public global::Google.Gemini.ToolResponse? Type87 { get; set; } + public global::Google.Gemini.GroundingMetadata? Type87 { get; set; } /// /// /// - public global::Google.Gemini.ToolResponseToolType? Type88 { get; set; } + public double? Type88 { get; set; } /// /// /// - public global::Google.Gemini.FileData? Type89 { get; set; } + public global::Google.Gemini.UrlContextMetadata? Type89 { get; set; } /// /// /// - public global::Google.Gemini.ModalityTokenCount? Type90 { get; set; } + public global::System.Collections.Generic.IList? Type90 { get; set; } /// /// /// - public global::Google.Gemini.ModalityTokenCountModality? Type91 { get; set; } + public global::Google.Gemini.SafetyRating? Type91 { get; set; } /// /// /// - public global::Google.Gemini.GoogleAiGenerativelanguageV1betaGroundingSupport? Type92 { get; set; } + public global::Google.Gemini.CandidateFinishReason? Type92 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type93 { get; set; } + public global::Google.Gemini.ListCorporaResponse? Type93 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type94 { get; set; } + public global::System.Collections.Generic.IList? Type94 { get; set; } /// /// /// - public float? Type95 { get; set; } + public global::Google.Gemini.Corpus? Type95 { get; set; } /// /// /// - public global::Google.Gemini.SessionResumptionConfig? Type96 { get; set; } + public global::Google.Gemini.CreateEnvironmentRequest? Type96 { get; set; } /// /// /// - public global::Google.Gemini.Hyperparameters? Type97 { get; set; } + public global::System.Collections.Generic.IList? Type97 { get; set; } /// /// /// - public global::Google.Gemini.ListPermissionsResponse? Type98 { get; set; } + public global::Google.Gemini.Source? Type98 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type99 { get; set; } + public global::Google.Gemini.CreateEnvironmentRequestNetworkMode? Type99 { get; set; } /// /// /// - public global::Google.Gemini.Permission? Type100 { get; set; } + public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? Type100 { get; set; } /// /// /// - public global::Google.Gemini.V1mainMediaResolution? Type101 { get; set; } + public global::Google.Gemini.ListPermissionsResponse? Type101 { get; set; } /// /// /// - public global::Google.Gemini.V1mainMediaResolutionLevel? Type102 { get; set; } + public global::System.Collections.Generic.IList? Type102 { get; set; } /// /// /// - public global::Google.Gemini.ReviewSnippet? Type103 { get; set; } + public global::Google.Gemini.Permission? Type103 { get; set; } /// /// /// - public global::Google.Gemini.FunctionResponseBlob? Type104 { get; set; } + public global::Google.Gemini.TranslationConfig? Type104 { get; set; } /// /// /// - public byte[]? Type105 { get; set; } + public global::Google.Gemini.RegisterFilesRequest? Type105 { get; set; } /// /// /// - public global::Google.Gemini.GroundingMetadata? Type106 { get; set; } + public global::Google.Gemini.ContentEmbedding? Type106 { get; set; } /// /// /// - public global::Google.Gemini.SearchEntryPoint? Type107 { get; set; } + public global::Google.Gemini.RetrievalMetadata? Type107 { get; set; } /// /// /// - public global::Google.Gemini.RetrievalMetadata? Type108 { get; set; } + public global::Google.Gemini.SafetySetting? Type108 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type109 { get; set; } + public global::Google.Gemini.SafetySettingCategory? Type109 { get; set; } /// /// /// - public global::Google.Gemini.GroundingChunk? Type110 { get; set; } + public global::Google.Gemini.SafetySettingThreshold? Type110 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type111 { get; set; } + public global::Google.Gemini.Dataset? Type111 { get; set; } /// /// /// - public global::Google.Gemini.McpServer? Type112 { get; set; } + public global::Google.Gemini.TuningExamples? Type112 { get; set; } /// /// /// - public global::Google.Gemini.StreamableHttpTransport? Type113 { get; set; } + public global::Google.Gemini.EmbedContentRequest? Type113 { get; set; } /// /// /// - public global::Google.Gemini.Tool? Type114 { get; set; } + public global::Google.Gemini.ToolCall? Type114 { get; set; } /// /// /// - public global::Google.Gemini.CodeExecution? Type115 { get; set; } + public global::Google.Gemini.ToolCallToolType? Type115 { get; set; } /// /// /// - public global::Google.Gemini.GoogleMaps? Type116 { get; set; } + public global::Google.Gemini.ExecutableCode? Type116 { get; set; } /// /// /// - public global::Google.Gemini.GoogleSearchRetrieval? Type117 { get; set; } + public global::Google.Gemini.ExecutableCodeLanguage? Type117 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type118 { get; set; } + public global::Google.Gemini.BatchStats? Type118 { get; set; } /// /// /// - public global::Google.Gemini.ComputerUse? Type119 { get; set; } + public global::Google.Gemini.LanguageAuto? Type119 { get; set; } /// /// /// - public global::Google.Gemini.FileSearch? Type120 { get; set; } + public global::Google.Gemini.WebSearch? Type120 { get; set; } /// /// /// - public global::Google.Gemini.GoogleSearch? Type121 { get; set; } + public global::Google.Gemini.ImageResponseFormat? Type121 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type122 { get; set; } + public global::Google.Gemini.ImageResponseFormatImageSize? Type122 { get; set; } /// /// /// - public global::Google.Gemini.Interval? Type123 { get; set; } + public global::Google.Gemini.ImageResponseFormatMimeType? Type123 { get; set; } /// /// /// - public global::Google.Gemini.SearchTypes? Type124 { get; set; } + public global::Google.Gemini.ImageResponseFormatDelivery? Type124 { get; set; } /// /// /// - public global::Google.Gemini.UsageMetadata? Type125 { get; set; } + public global::Google.Gemini.ImageResponseFormatAspectRatio? Type125 { get; set; } /// /// /// - public global::Google.Gemini.ModelStatus? Type126 { get; set; } + public global::Google.Gemini.EmbedContentBatch? Type126 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type127 { get; set; } + public global::Google.Gemini.EmbedContentBatchStats? Type127 { get; set; } /// /// /// - public global::Google.Gemini.Candidate? Type128 { get; set; } + public global::Google.Gemini.InputEmbedContentConfig? Type128 { get; set; } /// /// /// - public global::Google.Gemini.LatLng? Type129 { get; set; } + public global::Google.Gemini.EmbedContentBatchOutput? Type129 { get; set; } /// /// /// - public global::Google.Gemini.CitationMetadata? Type130 { get; set; } + public global::Google.Gemini.EmbedContentBatchState? Type130 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type131 { get; set; } + public global::Google.Gemini.Hyperparameters? Type131 { get; set; } /// /// /// - public global::Google.Gemini.CitationSource? Type132 { get; set; } + public global::Google.Gemini.InlinedEmbedContentResponses? Type132 { get; set; } /// /// /// - public global::Google.Gemini.CreateFileRequest? Type133 { get; set; } + public global::Google.Gemini.FunctionResponse? Type133 { get; set; } /// /// /// - public global::Google.Gemini.Dataset? Type134 { get; set; } + public global::Google.Gemini.FunctionResponseScheduling? Type134 { get; set; } /// /// /// - public global::Google.Gemini.ResponseFormatConfig? Type135 { get; set; } + public global::System.Collections.Generic.IList? Type135 { get; set; } /// /// /// - public global::Google.Gemini.TextResponseFormat? Type136 { get; set; } + public global::Google.Gemini.FunctionResponsePart? Type136 { get; set; } /// /// /// - public global::Google.Gemini.ImageResponseFormat? Type137 { get; set; } + public global::Google.Gemini.LatLng? Type137 { get; set; } /// /// /// - public global::Google.Gemini.InputConfig? Type138 { get; set; } + public global::Google.Gemini.FileData? Type138 { get; set; } /// /// /// - public global::Google.Gemini.InlinedRequests? Type139 { get; set; } + public global::Google.Gemini.VideoFileMetadata? Type139 { get; set; } /// /// /// - public global::Google.Gemini.GenerationConfig? Type140 { get; set; } + public global::Google.Gemini.ImportFileRequest? Type140 { get; set; } /// /// /// - public global::Google.Gemini.GenerationConfigMediaResolution? Type141 { get; set; } + public global::System.Collections.Generic.IList? Type141 { get; set; } /// /// /// - public global::Google.Gemini.ImageConfig? Type142 { get; set; } + public global::Google.Gemini.SearchTypes? Type142 { get; set; } /// /// /// - public global::Google.Gemini.ThinkingConfig? Type143 { get; set; } + public global::Google.Gemini.ImageSearch? Type143 { get; set; } /// /// /// - public global::Google.Gemini.TranslationConfig? Type144 { get; set; } + public global::Google.Gemini.TuningTask? Type144 { get; set; } /// /// /// - public global::Google.Gemini.SpeechConfig? Type145 { get; set; } + public global::System.Collections.Generic.IList? Type145 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type146 { get; set; } + public global::Google.Gemini.TuningSnapshot? Type146 { get; set; } /// /// /// - public global::Google.Gemini.GenerationConfigResponseModalitie? Type147 { get; set; } + public global::System.Collections.Generic.IList? Type147 { get; set; } /// /// /// - public global::Google.Gemini.CodeExecutionResult? Type148 { get; set; } + public global::Google.Gemini.FileSource? Type148 { get; set; } /// /// /// - public global::Google.Gemini.CodeExecutionResultOutcome? Type149 { get; set; } + public global::Google.Gemini.FileState? Type149 { get; set; } /// /// /// - public global::Google.Gemini.FileSearchStore? Type150 { get; set; } + public global::Google.Gemini.DocumentState? Type150 { get; set; } /// /// /// - public global::Google.Gemini.GetEnvironmentFilesResponse? Type151 { get; set; } + public global::Google.Gemini.WhiteSpaceConfig? Type151 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type152 { get; set; } + public global::Google.Gemini.AttributionSourceId? Type152 { get; set; } /// /// /// - public global::Google.Gemini.EnvironmentFile? Type153 { get; set; } + public global::Google.Gemini.SemanticRetrieverChunk? Type153 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentBatchStats? Type154 { get; set; } + public global::Google.Gemini.GroundingPassageId? Type154 { get; set; } /// /// /// - public global::Google.Gemini.LogprobsResultCandidate? Type155 { get; set; } + public global::Google.Gemini.RealtimeInputConfig? Type155 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentBatch? Type156 { get; set; } + public global::Google.Gemini.RealtimeInputConfigActivityHandling? Type156 { get; set; } /// /// /// - public global::Google.Gemini.InputEmbedContentConfig? Type157 { get; set; } + public global::Google.Gemini.RealtimeInputConfigTurnCoverage? Type157 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentBatchState? Type158 { get; set; } + public global::Google.Gemini.AutomaticActivityDetection? Type158 { get; set; } /// /// /// - public global::Google.Gemini.Model? Type159 { get; set; } + public global::Google.Gemini.TunedModelState? Type159 { get; set; } /// /// /// - public global::Google.Gemini.GroundingPassageId? Type160 { get; set; } + public global::Google.Gemini.TunedModelSource? Type160 { get; set; } /// /// /// - public global::Google.Gemini.ThinkingConfigThinkingLevel? Type161 { get; set; } + public global::Google.Gemini.SourceType? Type161 { get; set; } /// /// /// - public global::Google.Gemini.Blob? Type162 { get; set; } + public global::Google.Gemini.SafetyRatingProbability? Type162 { get; set; } /// /// /// - public global::Google.Gemini.Source? Type163 { get; set; } + public global::Google.Gemini.SafetyRatingCategory? Type163 { get; set; } /// /// /// - public global::Google.Gemini.SourceType? Type164 { get; set; } + public global::Google.Gemini.ListFilesResponse? Type164 { get; set; } /// /// /// - public global::Google.Gemini.Maps? Type165 { get; set; } + public global::System.Collections.Generic.IList? Type165 { get; set; } /// /// /// - public global::Google.Gemini.Image? Type166 { get; set; } + public global::Google.Gemini.EnvironmentFileType? Type166 { get; set; } /// /// /// - public global::Google.Gemini.Web? Type167 { get; set; } + public global::Google.Gemini.SpeechConfig? Type167 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentRequestServiceTier? Type168 { get; set; } + public global::Google.Gemini.MultiSpeakerVoiceConfig? Type168 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type169 { get; set; } + public global::Google.Gemini.FunctionResponseBlob? Type169 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type170 { get; set; } + public global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? Type170 { get; set; } /// /// /// - public global::Google.Gemini.PermissionGranteeType? Type171 { get; set; } + public global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? Type171 { get; set; } /// /// /// - public global::Google.Gemini.PermissionRole? Type172 { get; set; } + public global::Google.Gemini.SpeakerVoiceConfig? Type172 { get; set; } /// /// /// - public global::Google.Gemini.ListFileSearchStoresResponse? Type173 { get; set; } + public global::Google.Gemini.AsyncBatchEmbedContentRequest? Type173 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type174 { get; set; } + public global::Google.Gemini.Schema? Type174 { get; set; } /// /// /// - public global::Google.Gemini.TuningSnapshot? Type175 { get; set; } + public global::System.Collections.Generic.IList? Type175 { get; set; } /// /// /// - public global::Google.Gemini.AttributionSourceId? Type176 { get; set; } + public global::System.Collections.Generic.Dictionary? Type176 { get; set; } /// /// /// - public global::Google.Gemini.SemanticRetrieverChunk? Type177 { get; set; } + public global::Google.Gemini.SchemaType? Type177 { get; set; } /// /// /// - public global::Google.Gemini.ImportFileRequest? Type178 { get; set; } + public global::Google.Gemini.GoogleSearchRetrieval? Type178 { get; set; } /// /// /// - public global::Google.Gemini.FileState? Type179 { get; set; } + public global::Google.Gemini.TextResponseFormat? Type179 { get; set; } /// /// /// - public global::Google.Gemini.FileSource? Type180 { get; set; } + public global::Google.Gemini.TextResponseFormatMimeType? Type180 { get; set; } /// /// /// - public global::Google.Gemini.VideoFileMetadata? Type181 { get; set; } + public global::Google.Gemini.UploadEnvironmentFileResponse? Type181 { get; set; } /// /// /// - public global::Google.Gemini.StringList? Type182 { get; set; } + public global::Google.Gemini.ImageConfig? Type182 { get; set; } /// /// /// - public global::Google.Gemini.UploadEnvironmentFileResponse? Type183 { get; set; } + public global::Google.Gemini.FunctionDeclaration? Type183 { get; set; } /// /// /// - public global::Google.Gemini.UrlMetadata? Type184 { get; set; } + public global::Google.Gemini.FunctionDeclarationBehavior? Type184 { get; set; } /// /// /// - public global::Google.Gemini.UrlMetadataUrlRetrievalStatus? Type185 { get; set; } + public global::Google.Gemini.Empty? Type185 { get; set; } /// /// /// - public global::Google.Gemini.EmbeddingUsageMetadata? Type186 { get; set; } + public global::Google.Gemini.EmbedContentRequestTaskType? Type186 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type187 { get; set; } + public global::Google.Gemini.EmbedContentConfig? Type187 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type188 { get; set; } + public global::System.Collections.Generic.IList? Type188 { get; set; } /// /// /// - public global::Google.Gemini.Part? Type189 { get; set; } + public global::Google.Gemini.UrlMetadata? Type189 { get; set; } /// /// /// - public global::Google.Gemini.EnvironmentFileType? Type190 { get; set; } + public global::Google.Gemini.McpServer? Type190 { get; set; } /// /// /// - public global::Google.Gemini.DynamicRetrievalConfig? Type191 { get; set; } + public global::Google.Gemini.GroundingChunk? Type191 { get; set; } /// /// /// - public global::Google.Gemini.TunedModelSource? Type192 { get; set; } + public global::Google.Gemini.Maps? Type192 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentResponse? Type193 { get; set; } + public global::Google.Gemini.RetrievedContext? Type193 { get; set; } /// /// /// - public global::Google.Gemini.ContentEmbedding? Type194 { get; set; } + public global::Google.Gemini.Image? Type194 { get; set; } /// /// /// - public global::Google.Gemini.VideoMetadata? Type195 { get; set; } + public global::Google.Gemini.GoogleMaps? Type195 { get; set; } /// /// /// - public global::Google.Gemini.AsyncBatchEmbedContentRequest? Type196 { get; set; } + public global::Google.Gemini.AudioTranscriptionConfig? Type196 { get; set; } /// /// /// - public global::Google.Gemini.BatchStats? Type197 { get; set; } + public global::Google.Gemini.LanguageHints? Type197 { get; set; } /// /// /// - public global::Google.Gemini.SlidingWindow? Type198 { get; set; } + public global::Google.Gemini.AudioTranscriptionConfigMode? Type198 { get; set; } /// /// /// - public global::Google.Gemini.InlinedEmbedContentRequests? Type199 { get; set; } + public global::Google.Gemini.GenerateContentRequest? Type199 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type200 { get; set; } + public global::Google.Gemini.ToolConfig? Type200 { get; set; } /// /// /// - public global::Google.Gemini.InlinedEmbedContentRequest? Type201 { get; set; } + public global::System.Collections.Generic.IList? Type201 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type202 { get; set; } + public global::Google.Gemini.Tool? Type202 { get; set; } /// /// /// - public global::Google.Gemini.InlinedRequest? Type203 { get; set; } + public global::Google.Gemini.GenerationConfig? Type203 { get; set; } /// /// /// - public global::Google.Gemini.ModelStatusModelStage? Type204 { get; set; } + public global::System.Collections.Generic.IList? Type204 { get; set; } /// /// /// - public global::Google.Gemini.TunedModel? Type205 { get; set; } + public global::Google.Gemini.GenerateContentRequestServiceTier? Type205 { get; set; } /// /// /// - public global::Google.Gemini.TuningTask? Type206 { get; set; } + public global::System.Collections.Generic.IList? Type206 { get; set; } /// /// /// - public global::Google.Gemini.TunedModelState? Type207 { get; set; } + public global::Google.Gemini.PartMediaProcessing? Type207 { get; set; } /// /// /// - public global::Google.Gemini.ImageSearch? Type208 { get; set; } + public global::Google.Gemini.VideoMetadata? Type208 { get; set; } /// /// /// - public global::Google.Gemini.TransferOwnershipResponse? Type209 { get; set; } + public global::Google.Gemini.ToolResponse? Type209 { get; set; } /// /// /// - public global::Google.Gemini.ListTunedModelsResponse? Type210 { get; set; } + public global::Google.Gemini.SpeechMetadata? Type210 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type211 { get; set; } + public global::Google.Gemini.AudioTranscription? Type211 { get; set; } /// /// /// - public global::Google.Gemini.PrebuiltVoiceConfig? Type212 { get; set; } + public global::Google.Gemini.GeneratedFileState? Type212 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentRequestTaskType? Type213 { get; set; } + public global::Google.Gemini.Operation? Type213 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentConfig? Type214 { get; set; } + public global::Google.Gemini.FileSearch? Type214 { get; set; } /// /// /// - public global::Google.Gemini.PlaceAnswerSources? Type215 { get; set; } + public global::Google.Gemini.ListOperationsResponse? Type215 { get; set; } /// /// /// - public global::Google.Gemini.UsageMetadataServiceTier? Type216 { get; set; } + public global::System.Collections.Generic.IList? Type216 { get; set; } /// /// /// - public global::Google.Gemini.ListModelsResponse? Type217 { get; set; } + public global::Google.Gemini.HistoryConfig? Type217 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type218 { get; set; } + public global::Google.Gemini.EmbeddingUsageMetadata? Type218 { get; set; } /// /// /// - public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? Type219 { get; set; } + public global::Google.Gemini.ListModelsResponse? Type219 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type220 { get; set; } + public global::System.Collections.Generic.IList? Type220 { get; set; } /// /// /// - public global::Google.Gemini.DynamicRetrievalConfigMode? Type221 { get; set; } + public global::Google.Gemini.Model? Type221 { get; set; } /// /// /// - public global::Google.Gemini.TextResponseFormatMimeType? Type222 { get; set; } + public global::Google.Gemini.UrlMetadataUrlRetrievalStatus? Type222 { get; set; } /// /// /// - public global::Google.Gemini.ListGeneratedFilesResponse? Type223 { get; set; } + public global::Google.Gemini.BatchGenerateContentRequest? Type223 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type224 { get; set; } + public global::Google.Gemini.GenerateContentBatch? Type224 { get; set; } /// /// /// - public global::Google.Gemini.VoiceConfig? Type225 { get; set; } + public global::Google.Gemini.SessionResumptionConfig? Type225 { get; set; } /// /// /// - public global::Google.Gemini.ExecutableCode? Type226 { get; set; } + public global::System.Collections.Generic.IList? Type226 { get; set; } /// /// /// - public global::Google.Gemini.ExecutableCodeLanguage? Type227 { get; set; } + public global::Google.Gemini.PermissionGranteeType? Type227 { get; set; } /// /// /// - public global::Google.Gemini.ContextWindowCompressionConfig? Type228 { get; set; } + public global::Google.Gemini.PermissionRole? Type228 { get; set; } /// /// /// - public global::Google.Gemini.AudioTranscription? Type229 { get; set; } + public global::System.Collections.Generic.IList? Type229 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type230 { get; set; } + public global::Google.Gemini.CodeExecution? Type230 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type231 { get; set; } + public global::System.Collections.Generic.IList? Type231 { get; set; } /// /// /// - public global::Google.Gemini.Environment? Type232 { get; set; } + public global::Google.Gemini.GenerationConfigMediaResolution? Type232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type233 { get; set; } + public global::System.Collections.Generic.IList? Type233 { get; set; } /// /// /// - public global::Google.Gemini.EnvironmentStatus? Type234 { get; set; } + public global::Google.Gemini.GenerationConfigResponseModalitie? Type234 { get; set; } /// /// /// - public global::Google.Gemini.EnvironmentNetworkMode? Type235 { get; set; } + public global::Google.Gemini.ThinkingConfig? Type235 { get; set; } /// /// /// - public global::Google.Gemini.InlinedEmbedContentResponse? Type236 { get; set; } + public global::Google.Gemini.ResponseFormatConfig? Type236 { get; set; } /// /// /// - public global::Google.Gemini.CountTokensResponse? Type237 { get; set; } + public global::Google.Gemini.UsageMetadata? Type237 { get; set; } /// /// /// - public global::Google.Gemini.GroundingAttribution? Type238 { get; set; } + public global::System.Collections.Generic.IList? Type238 { get; set; } /// /// /// - public global::Google.Gemini.CachedContent? Type239 { get; set; } + public global::Google.Gemini.ModalityTokenCount? Type239 { get; set; } /// /// /// - public global::Google.Gemini.SafetyRatingCategory? Type240 { get; set; } + public global::Google.Gemini.UsageMetadataServiceTier? Type240 { get; set; } /// /// /// - public global::Google.Gemini.SafetyRatingProbability? Type241 { get; set; } + public global::Google.Gemini.TransferOwnershipResponse? Type241 { get; set; } /// /// /// - public global::Google.Gemini.WhiteSpaceConfig? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type242 { get; set; } /// /// /// - public global::Google.Gemini.CreateFileResponse? Type243 { get; set; } + public global::System.Collections.Generic.IList? Type243 { get; set; } /// /// /// - public global::Google.Gemini.ListCachedContentsResponse? Type244 { get; set; } + public global::Google.Gemini.SearchEntryPoint? Type244 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type245 { get; set; } + public global::System.Collections.Generic.IList? Type245 { get; set; } /// /// /// - public global::Google.Gemini.RegisterFilesResponse? Type246 { get; set; } + public global::Google.Gemini.ListCachedContentsResponse? Type246 { get; set; } /// /// /// - public global::Google.Gemini.UploadEnvironmentFileRequest? Type247 { get; set; } + public global::System.Collections.Generic.IList? Type247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type248 { get; set; } + public global::Google.Gemini.CachedContent? Type248 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentBatchOutput? Type249 { get; set; } + public global::Google.Gemini.ListEnvironmentsResponse? Type249 { get; set; } /// /// /// - public global::Google.Gemini.InlinedResponses? Type250 { get; set; } + public global::System.Collections.Generic.IList? Type250 { get; set; } /// /// /// - public global::Google.Gemini.ComputerUseEnvironment? Type251 { get; set; } + public global::Google.Gemini.Environment? Type251 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type252 { get; set; } + public global::Google.Gemini.CountTokensRequest? Type252 { get; set; } /// /// /// - public global::Google.Gemini.ComputerUseDisabledSafetyPolicie? Type253 { get; set; } + public global::Google.Gemini.CountTokensResponse? Type253 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type254 { get; set; } + public global::System.Collections.Generic.IList? Type254 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type255 { get; set; } + public global::Google.Gemini.GoogleSearch? Type255 { get; set; } /// /// /// - public global::Google.Gemini.LogprobsResult? Type256 { get; set; } + public global::System.Collections.Generic.IList? Type256 { get; set; } /// /// /// - public global::Google.Gemini.CandidateFinishReason? Type257 { get; set; } + public global::Google.Gemini.FunctionCallingConfig? Type257 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type258 { get; set; } + public global::Google.Gemini.FunctionCallingConfigMode? Type258 { get; set; } /// /// /// - public global::Google.Gemini.UrlContextMetadata? Type259 { get; set; } + public global::Google.Gemini.ToolResponseToolType? Type259 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type260 { get; set; } + public global::Google.Gemini.InlinedResponses? Type260 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type261 { get; set; } + public global::System.Collections.Generic.IList? Type261 { get; set; } /// /// /// - public global::Google.Gemini.TopCandidates? Type262 { get; set; } + public global::Google.Gemini.RetrievalConfig? Type262 { get; set; } /// /// /// - public global::Google.Gemini.TransferOwnershipRequest? Type263 { get; set; } + public global::Google.Gemini.PlaceAnswerSources? Type263 { get; set; } /// /// /// - public global::Google.Gemini.AutomaticActivityDetection? Type264 { get; set; } + public global::System.Collections.Generic.IList? Type264 { get; set; } /// /// /// - public global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? Type265 { get; set; } + public global::Google.Gemini.GenerateContentBatchOutput? Type265 { get; set; } /// /// /// - public global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? Type266 { get; set; } + public global::System.Collections.Generic.IList? Type266 { get; set; } /// /// /// - public global::Google.Gemini.DocumentState? Type267 { get; set; } + public global::Google.Gemini.ModelStatus? Type267 { get; set; } /// /// /// - public global::Google.Gemini.RealtimeInputConfig? Type268 { get; set; } + public global::Google.Gemini.PromptFeedback? Type268 { get; set; } /// /// /// - public global::Google.Gemini.RealtimeInputConfigActivityHandling? Type269 { get; set; } + public global::Google.Gemini.ModelStatusModelStage? Type269 { get; set; } /// /// /// - public global::Google.Gemini.RealtimeInputConfigTurnCoverage? Type270 { get; set; } + public global::Google.Gemini.EmbedContentConfigTaskType? Type270 { get; set; } /// /// /// - public global::Google.Gemini.ListOperationsResponse? Type271 { get; set; } + public global::Google.Gemini.InlinedRequests? Type271 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type272 { get; set; } + public global::System.Collections.Generic.IList? Type272 { get; set; } /// /// /// - public global::Google.Gemini.BidiGenerateContentSetup? Type273 { get; set; } + public global::Google.Gemini.InlinedRequest? Type273 { get; set; } /// /// /// - public global::Google.Gemini.CreateEnvironmentRequest? Type274 { get; set; } + public global::Google.Gemini.AudioResponseFormat? Type274 { get; set; } /// /// /// - public global::Google.Gemini.CreateEnvironmentRequestNetworkMode? Type275 { get; set; } + public global::Google.Gemini.AudioResponseFormatMimeType? Type275 { get; set; } /// /// /// - public global::Google.Gemini.AuthToken? Type276 { get; set; } + public global::Google.Gemini.AudioResponseFormatDelivery? Type276 { get; set; } /// /// /// - public global::Google.Gemini.BatchEmbedContentsResponse? Type277 { get; set; } + public global::Google.Gemini.CreateFileRequest? Type277 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type278 { get; set; } + public global::Google.Gemini.Interval? Type278 { get; set; } /// /// /// - public global::Google.Gemini.FunctionCall? Type279 { get; set; } + public global::Google.Gemini.RegisterFilesResponse? Type279 { get; set; } /// /// /// - public global::Google.Gemini.SpeechMetadata? Type280 { get; set; } + public global::Google.Gemini.ThinkingConfigThinkingLevel? Type280 { get; set; } /// /// /// - public global::Google.Gemini.PartMediaProcessing? Type281 { get; set; } + public global::System.Collections.Generic.IList? Type281 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentBatchState? Type282 { get; set; } + public global::Google.Gemini.EnvironmentNetworkMode? Type282 { get; set; } /// /// /// - public global::Google.Gemini.ImageResponseFormatAspectRatio? Type283 { get; set; } + public global::Google.Gemini.EnvironmentStatus? Type283 { get; set; } /// /// /// - public global::Google.Gemini.ImageResponseFormatImageSize? Type284 { get; set; } + public global::Google.Gemini.ModalityTokenCountModality? Type284 { get; set; } /// /// /// - public global::Google.Gemini.ImageResponseFormatMimeType? Type285 { get; set; } + public global::Google.Gemini.InputConfig? Type285 { get; set; } /// /// /// - public global::Google.Gemini.ImageResponseFormatDelivery? Type286 { get; set; } + public global::Google.Gemini.PromptFeedbackBlockReason? Type286 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type287 { get; set; } + public global::Google.Gemini.BatchEmbedContentsResponse? Type287 { get; set; } /// /// /// - public global::Google.Gemini.CustomLongRunningOperation? Type288 { get; set; } + public global::System.Collections.Generic.IList? Type288 { get; set; } /// /// /// - public global::Google.Gemini.ListEnvironmentsResponse? Type289 { get; set; } + public global::Google.Gemini.BatchEmbedContentsRequest? Type289 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type290 { get; set; } + public global::System.Collections.Generic.IList? Type290 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentConfigTaskType? Type291 { get; set; } + public global::Google.Gemini.CustomLongRunningOperation? Type291 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type292 { get; set; } + public global::Google.Gemini.GenerateContentBatchState? Type292 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType0 { get; set; } + public global::System.Collections.Generic.List? ListType0 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType1 { get; set; } + public global::System.Collections.Generic.List? ListType1 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType2 { get; set; } + public global::System.Collections.Generic.List? ListType2 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType3 { get; set; } + public global::System.Collections.Generic.List? ListType3 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType4 { get; set; } + public global::System.Collections.Generic.List? ListType4 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType5 { get; set; } + public global::System.Collections.Generic.List? ListType5 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType6 { get; set; } + public global::System.Collections.Generic.List? ListType6 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType7 { get; set; } + public global::System.Collections.Generic.List? ListType7 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType8 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType9 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType10 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType11 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType12 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType13 { get; set; } + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType14 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType17 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType18 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType19 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType50 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AttributionSourceId.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AttributionSourceId.g.cs index 31aabb542..5f9a1bf97 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AttributionSourceId.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AttributionSourceId.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class AttributionSourceId { - /// - /// Identifier for a part within a `GroundingPassage`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("groundingPassage")] - public global::Google.Gemini.GroundingPassageId? GroundingPassage { get; set; } - /// /// Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`. /// [global::System.Text.Json.Serialization.JsonPropertyName("semanticRetrieverChunk")] public global::Google.Gemini.SemanticRetrieverChunk? SemanticRetrieverChunk { get; set; } + /// + /// Identifier for a part within a `GroundingPassage`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("groundingPassage")] + public global::Google.Gemini.GroundingPassageId? GroundingPassage { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class AttributionSourceId /// /// Initializes a new instance of the class. /// - /// - /// Identifier for a part within a `GroundingPassage`. - /// /// /// Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`. /// + /// + /// Identifier for a part within a `GroundingPassage`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AttributionSourceId( - global::Google.Gemini.GroundingPassageId? groundingPassage, - global::Google.Gemini.SemanticRetrieverChunk? semanticRetrieverChunk) + global::Google.Gemini.SemanticRetrieverChunk? semanticRetrieverChunk, + global::Google.Gemini.GroundingPassageId? groundingPassage) { - this.GroundingPassage = groundingPassage; this.SemanticRetrieverChunk = semanticRetrieverChunk; + this.GroundingPassage = groundingPassage; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioResponseFormat.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioResponseFormat.g.cs index 895f2f95c..fde136348 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioResponseFormat.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioResponseFormat.g.cs @@ -21,6 +21,12 @@ public sealed partial class AudioResponseFormat [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeJsonConverter))] public global::Google.Gemini.AudioResponseFormatMimeType? MimeType { get; set; } + /// + /// Optional. Sample rate in Hz. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampleRate")] + public int? SampleRate { get; set; } + /// /// Optional. The delivery mode for the audio output. /// @@ -28,12 +34,6 @@ public sealed partial class AudioResponseFormat [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryJsonConverter))] public global::Google.Gemini.AudioResponseFormatDelivery? Delivery { get; set; } - /// - /// Optional. Sample rate in Hz. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sampleRate")] - public int? SampleRate { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -49,25 +49,25 @@ public sealed partial class AudioResponseFormat /// /// Optional. The MIME type of the audio output. /// - /// - /// Optional. The delivery mode for the audio output. - /// /// /// Optional. Sample rate in Hz. /// + /// + /// Optional. The delivery mode for the audio output. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AudioResponseFormat( int? bitRate, global::Google.Gemini.AudioResponseFormatMimeType? mimeType, - global::Google.Gemini.AudioResponseFormatDelivery? delivery, - int? sampleRate) + int? sampleRate, + global::Google.Gemini.AudioResponseFormatDelivery? delivery) { this.BitRate = bitRate; this.MimeType = mimeType; - this.Delivery = delivery; this.SampleRate = sampleRate; + this.Delivery = delivery; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioTranscription.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioTranscription.g.cs index 463335ee2..8e93ae6c9 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioTranscription.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioTranscription.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class AudioTranscription { - /// - /// Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("words")] - public global::System.Collections.Generic.IList? Words { get; set; } - /// /// Optional. A label identifying the speaker of this audio segment (e.g. "spk_1", "spk_2"). Present when diarization is set. /// [global::System.Text.Json.Serialization.JsonPropertyName("speakerLabel")] public string? SpeakerLabel { get; set; } + /// + /// Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("words")] + public global::System.Collections.Generic.IList? Words { get; set; } + /// /// Required. The transcription text of this audio segment. /// @@ -35,12 +35,12 @@ public sealed partial class AudioTranscription /// /// Initializes a new instance of the class. /// - /// - /// Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set. - /// /// /// Optional. A label identifying the speaker of this audio segment (e.g. "spk_1", "spk_2"). Present when diarization is set. /// + /// + /// Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set. + /// /// /// Required. The transcription text of this audio segment. /// @@ -48,12 +48,12 @@ public sealed partial class AudioTranscription [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AudioTranscription( - global::System.Collections.Generic.IList? words, string? speakerLabel, + global::System.Collections.Generic.IList? words, string? text) { - this.Words = words; this.SpeakerLabel = speakerLabel; + this.Words = words; this.Text = text; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioTranscriptionConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioTranscriptionConfig.g.cs index 448954f9e..aebfcf9dc 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioTranscriptionConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioTranscriptionConfig.g.cs @@ -11,11 +11,10 @@ namespace Google.Gemini public sealed partial class AudioTranscriptionConfig { /// - /// Provides hints to the model about possible languages present in the audio. + /// Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon). /// - [global::System.Text.Json.Serialization.JsonPropertyName("languageHints")] - [global::System.Obsolete("This property marked as deprecated.")] - public global::Google.Gemini.LanguageHints? LanguageHints { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("customVocabulary")] + public global::System.Collections.Generic.IList? CustomVocabulary { get; set; } /// /// Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms. @@ -25,11 +24,17 @@ public sealed partial class AudioTranscriptionConfig public global::System.Collections.Generic.IList? AdaptationPhrases { get; set; } /// - /// Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`. + /// Optional. Configures speaker diarization. /// - [global::System.Text.Json.Serialization.JsonPropertyName("mode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeJsonConverter))] - public global::Google.Gemini.AudioTranscriptionConfigMode? Mode { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("diarization")] + public bool? Diarization { get; set; } + + /// + /// Provides hints to the model about possible languages present in the audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("languageHints")] + [global::System.Obsolete("This property marked as deprecated.")] + public global::Google.Gemini.LanguageHints? LanguageHints { get; set; } /// /// Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection. @@ -38,10 +43,17 @@ public sealed partial class AudioTranscriptionConfig public global::System.Collections.Generic.IList? LanguageCodes { get; set; } /// - /// Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon). + /// Optional. Configures word-level timestamp generation. /// - [global::System.Text.Json.Serialization.JsonPropertyName("customVocabulary")] - public global::System.Collections.Generic.IList? CustomVocabulary { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("wordTimestamp")] + public bool? WordTimestamp { get; set; } + + /// + /// Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeJsonConverter))] + public global::Google.Gemini.AudioTranscriptionConfigMode? Mode { get; set; } /// /// Indicates the language of the audio should be automatically detected. @@ -50,18 +62,6 @@ public sealed partial class AudioTranscriptionConfig [global::System.Obsolete("This property marked as deprecated.")] public global::Google.Gemini.LanguageAuto? LanguageAuto { get; set; } - /// - /// Optional. Configures speaker diarization. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("diarization")] - public bool? Diarization { get; set; } - - /// - /// Optional. Configures word-level timestamp generation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("wordTimestamp")] - public bool? WordTimestamp { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -71,36 +71,36 @@ public sealed partial class AudioTranscriptionConfig /// /// Initializes a new instance of the class. /// - /// - /// Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`. - /// - /// - /// Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection. - /// /// /// Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon). /// /// /// Optional. Configures speaker diarization. /// + /// + /// Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection. + /// /// /// Optional. Configures word-level timestamp generation. /// + /// + /// Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AudioTranscriptionConfig( - global::Google.Gemini.AudioTranscriptionConfigMode? mode, - global::System.Collections.Generic.IList? languageCodes, global::System.Collections.Generic.IList? customVocabulary, bool? diarization, - bool? wordTimestamp) + global::System.Collections.Generic.IList? languageCodes, + bool? wordTimestamp, + global::Google.Gemini.AudioTranscriptionConfigMode? mode) { - this.Mode = mode; - this.LanguageCodes = languageCodes; this.CustomVocabulary = customVocabulary; this.Diarization = diarization; + this.LanguageCodes = languageCodes; this.WordTimestamp = wordTimestamp; + this.Mode = mode; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AuthToken.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AuthToken.g.cs index e6b074971..790923ba9 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AuthToken.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AuthToken.g.cs @@ -9,16 +9,10 @@ namespace Google.Gemini public sealed partial class AuthToken { /// - /// Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("bidiGenerateContentSetup")] - public global::Google.Gemini.BidiGenerateContentSetup? BidiGenerateContentSetup { get; set; } - - /// - /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. + /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. /// - [global::System.Text.Json.Serialization.JsonPropertyName("newSessionExpireTime")] - public string? NewSessionExpireTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uses")] + public int? Uses { get; set; } /// /// Output only. Identifier. The token itself.
@@ -27,6 +21,12 @@ public sealed partial class AuthToken [global::System.Text.Json.Serialization.JsonPropertyName("name")] public string? Name { get; set; } + /// + /// Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bidiGenerateContentSetup")] + public global::Google.Gemini.BidiGenerateContentSetup? BidiGenerateContentSetup { get; set; } + /// /// Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection. /// @@ -40,10 +40,10 @@ public sealed partial class AuthToken public string? ExpireTime { get; set; } /// - /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. + /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. /// - [global::System.Text.Json.Serialization.JsonPropertyName("uses")] - public int? Uses { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("newSessionExpireTime")] + public string? NewSessionExpireTime { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -54,42 +54,42 @@ public sealed partial class AuthToken /// /// Initializes a new instance of the class. /// - /// - /// Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages. - /// - /// - /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. + /// + /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. /// /// /// Output only. Identifier. The token itself.
/// Included only in responses /// + /// + /// Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages. + /// /// /// Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection. /// /// /// Optional. Input only. Immutable. An optional time after which, when using the resulting token, messages in BidiGenerateContent sessions will be rejected. (Gemini may preemptively close the session after this time.) If not set then this defaults to 30 minutes in the future. If set, this value must be less than 20 hours in the future. /// - /// - /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. + /// + /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AuthToken( - global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup, - string? newSessionExpireTime, + int? uses, string? name, + global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup, string? fieldMask, string? expireTime, - int? uses) + string? newSessionExpireTime) { - this.BidiGenerateContentSetup = bidiGenerateContentSetup; - this.NewSessionExpireTime = newSessionExpireTime; + this.Uses = uses; this.Name = name; + this.BidiGenerateContentSetup = bidiGenerateContentSetup; this.FieldMask = fieldMask; this.ExpireTime = expireTime; - this.Uses = uses; + this.NewSessionExpireTime = newSessionExpireTime; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AutomaticActivityDetection.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AutomaticActivityDetection.g.cs index 11ecfca0d..e7e517627 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AutomaticActivityDetection.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AutomaticActivityDetection.g.cs @@ -14,19 +14,6 @@ public sealed partial class AutomaticActivityDetection [global::System.Text.Json.Serialization.JsonPropertyName("disabled")] public bool? Disabled { get; set; } - /// - /// Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prefixPaddingMs")] - public int? PrefixPaddingMs { get; set; } - - /// - /// Optional. Determines how likely speech is to be detected. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("startOfSpeechSensitivity")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityJsonConverter))] - public global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? StartOfSpeechSensitivity { get; set; } - /// /// Optional. The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency. /// @@ -40,6 +27,19 @@ public sealed partial class AutomaticActivityDetection [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter))] public global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? EndOfSpeechSensitivity { get; set; } + /// + /// Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prefixPaddingMs")] + public int? PrefixPaddingMs { get; set; } + + /// + /// Optional. Determines how likely speech is to be detected. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("startOfSpeechSensitivity")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityJsonConverter))] + public global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? StartOfSpeechSensitivity { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -52,33 +52,33 @@ public sealed partial class AutomaticActivityDetection /// /// Optional. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals. /// - /// - /// Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives. - /// - /// - /// Optional. Determines how likely speech is to be detected. - /// /// /// Optional. The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency. /// /// /// Optional. Determines how likely detected speech is ended. /// + /// + /// Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives. + /// + /// + /// Optional. Determines how likely speech is to be detected. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AutomaticActivityDetection( bool? disabled, - int? prefixPaddingMs, - global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? startOfSpeechSensitivity, int? silenceDurationMs, - global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? endOfSpeechSensitivity) + global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? endOfSpeechSensitivity, + int? prefixPaddingMs, + global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? startOfSpeechSensitivity) { this.Disabled = disabled; - this.PrefixPaddingMs = prefixPaddingMs; - this.StartOfSpeechSensitivity = startOfSpeechSensitivity; this.SilenceDurationMs = silenceDurationMs; this.EndOfSpeechSensitivity = endOfSpeechSensitivity; + this.PrefixPaddingMs = prefixPaddingMs; + this.StartOfSpeechSensitivity = startOfSpeechSensitivity; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchEmbedContentsResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchEmbedContentsResponse.g.cs index 1bd6145a2..7db4b5ba8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchEmbedContentsResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchEmbedContentsResponse.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class BatchEmbedContentsResponse { + /// + /// Metadata on the usage of the embedding request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("usageMetadata")] + public global::Google.Gemini.EmbeddingUsageMetadata? UsageMetadata { get; set; } + /// /// Output only. The embeddings for each request, in the same order as provided in the batch request.
/// Included only in responses @@ -15,12 +21,6 @@ public sealed partial class BatchEmbedContentsResponse [global::System.Text.Json.Serialization.JsonPropertyName("embeddings")] public global::System.Collections.Generic.IList? Embeddings { get; set; } - /// - /// Metadata on the usage of the embedding request. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("usageMetadata")] - public global::Google.Gemini.EmbeddingUsageMetadata? UsageMetadata { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,22 +30,22 @@ public sealed partial class BatchEmbedContentsResponse /// /// Initializes a new instance of the class. /// + /// + /// Metadata on the usage of the embedding request. + /// /// /// Output only. The embeddings for each request, in the same order as provided in the batch request.
/// Included only in responses /// - /// - /// Metadata on the usage of the embedding request. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BatchEmbedContentsResponse( - global::System.Collections.Generic.IList? embeddings, - global::Google.Gemini.EmbeddingUsageMetadata? usageMetadata) + global::Google.Gemini.EmbeddingUsageMetadata? usageMetadata, + global::System.Collections.Generic.IList? embeddings) { - this.Embeddings = embeddings; this.UsageMetadata = usageMetadata; + this.Embeddings = embeddings; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchStats.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchStats.g.cs index c5a0cdf3b..18fe9535f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchStats.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchStats.g.cs @@ -9,11 +9,11 @@ namespace Google.Gemini public sealed partial class BatchStats { /// - /// Output only. The number of requests that were successfully processed.
+ /// Output only. The number of requests in the batch.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("successfulRequestCount")] - public string? SuccessfulRequestCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("requestCount")] + public string? RequestCount { get; set; } /// /// Output only. The number of requests that are still pending processing.
@@ -23,18 +23,18 @@ public sealed partial class BatchStats public string? PendingRequestCount { get; set; } /// - /// Output only. The number of requests in the batch.
+ /// Output only. The number of requests that failed to be processed.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("requestCount")] - public string? RequestCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("failedRequestCount")] + public string? FailedRequestCount { get; set; } /// - /// Output only. The number of requests that failed to be processed.
+ /// Output only. The number of requests that were successfully processed.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("failedRequestCount")] - public string? FailedRequestCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("successfulRequestCount")] + public string? SuccessfulRequestCount { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -45,35 +45,35 @@ public sealed partial class BatchStats /// /// Initializes a new instance of the class. /// - /// - /// Output only. The number of requests that were successfully processed.
+ /// + /// Output only. The number of requests in the batch.
/// Included only in responses /// /// /// Output only. The number of requests that are still pending processing.
/// Included only in responses /// - /// - /// Output only. The number of requests in the batch.
- /// Included only in responses - /// /// /// Output only. The number of requests that failed to be processed.
/// Included only in responses /// + /// + /// Output only. The number of requests that were successfully processed.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BatchStats( - string? successfulRequestCount, - string? pendingRequestCount, string? requestCount, - string? failedRequestCount) + string? pendingRequestCount, + string? failedRequestCount, + string? successfulRequestCount) { - this.SuccessfulRequestCount = successfulRequestCount; - this.PendingRequestCount = pendingRequestCount; this.RequestCount = requestCount; + this.PendingRequestCount = pendingRequestCount; this.FailedRequestCount = failedRequestCount; + this.SuccessfulRequestCount = successfulRequestCount; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BidiGenerateContentSetup.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BidiGenerateContentSetup.g.cs index fccaf626b..6e7323775 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BidiGenerateContentSetup.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BidiGenerateContentSetup.g.cs @@ -9,28 +9,22 @@ namespace Google.Gemini public sealed partial class BidiGenerateContentSetup { /// - /// History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("historyConfig")] - public global::Google.Gemini.HistoryConfig? HistoryConfig { get; set; } - - /// - /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) + /// The audio transcription configuration. /// - [global::System.Text.Json.Serialization.JsonPropertyName("labels")] - public global::System.Collections.Generic.Dictionary? Labels { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("outputAudioTranscription")] + public global::Google.Gemini.AudioTranscriptionConfig? OutputAudioTranscription { get; set; } /// /// The audio transcription configuration. /// - [global::System.Text.Json.Serialization.JsonPropertyName("outputAudioTranscription")] - public global::Google.Gemini.AudioTranscriptionConfig? OutputAudioTranscription { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("inputAudioTranscription")] + public global::Google.Gemini.AudioTranscriptionConfig? InputAudioTranscription { get; set; } /// - /// Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length. + /// Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}` /// - [global::System.Text.Json.Serialization.JsonPropertyName("contextWindowCompression")] - public global::Google.Gemini.ContextWindowCompressionConfig? ContextWindowCompression { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. @@ -45,34 +39,40 @@ public sealed partial class BidiGenerateContentSetup public global::Google.Gemini.Content? SystemInstruction { get; set; } /// - /// Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. + /// Configures the realtime input behavior in `BidiGenerateContent`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("realtimeInputConfig")] + public global::Google.Gemini.RealtimeInputConfig? RealtimeInputConfig { get; set; } /// - /// Session resumption configuration. This message is included in the session configuration as `BidiGenerateContentSetup.session_resumption`. If configured, the server will send `SessionResumptionUpdate` messages. + /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - [global::System.Text.Json.Serialization.JsonPropertyName("sessionResumption")] - public global::Google.Gemini.SessionResumptionConfig? SessionResumption { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("labels")] + public global::System.Collections.Generic.Dictionary? Labels { get; set; } /// - /// Configures the realtime input behavior in `BidiGenerateContent`. + /// History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages. /// - [global::System.Text.Json.Serialization.JsonPropertyName("realtimeInputConfig")] - public global::Google.Gemini.RealtimeInputConfig? RealtimeInputConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("historyConfig")] + public global::Google.Gemini.HistoryConfig? HistoryConfig { get; set; } /// - /// The audio transcription configuration. + /// Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("inputAudioTranscription")] - public global::Google.Gemini.AudioTranscriptionConfig? InputAudioTranscription { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } /// - /// Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}` + /// Session resumption configuration. This message is included in the session configuration as `BidiGenerateContentSetup.session_resumption`. If configured, the server will send `SessionResumptionUpdate` messages. /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sessionResumption")] + public global::Google.Gemini.SessionResumptionConfig? SessionResumption { get; set; } + + /// + /// Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("contextWindowCompression")] + public global::Google.Gemini.ContextWindowCompressionConfig? ContextWindowCompression { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -83,17 +83,14 @@ public sealed partial class BidiGenerateContentSetup /// /// Initializes a new instance of the class. /// - /// - /// History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages. - /// - /// - /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) - /// /// /// The audio transcription configuration. /// - /// - /// Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length. + /// + /// The audio transcription configuration. + /// + /// + /// Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}` /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. @@ -101,48 +98,51 @@ public sealed partial class BidiGenerateContentSetup /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// + /// + /// Configures the realtime input behavior in `BidiGenerateContent`. + /// + /// + /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) + /// + /// + /// History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages. + /// /// /// Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. /// /// /// Session resumption configuration. This message is included in the session configuration as `BidiGenerateContentSetup.session_resumption`. If configured, the server will send `SessionResumptionUpdate` messages. /// - /// - /// Configures the realtime input behavior in `BidiGenerateContent`. - /// - /// - /// The audio transcription configuration. - /// - /// - /// Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}` + /// + /// Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BidiGenerateContentSetup( - global::Google.Gemini.HistoryConfig? historyConfig, - global::System.Collections.Generic.Dictionary? labels, global::Google.Gemini.AudioTranscriptionConfig? outputAudioTranscription, - global::Google.Gemini.ContextWindowCompressionConfig? contextWindowCompression, + global::Google.Gemini.AudioTranscriptionConfig? inputAudioTranscription, + string? model, global::Google.Gemini.GenerationConfig? generationConfig, global::Google.Gemini.Content? systemInstruction, + global::Google.Gemini.RealtimeInputConfig? realtimeInputConfig, + global::System.Collections.Generic.Dictionary? labels, + global::Google.Gemini.HistoryConfig? historyConfig, global::System.Collections.Generic.IList? tools, global::Google.Gemini.SessionResumptionConfig? sessionResumption, - global::Google.Gemini.RealtimeInputConfig? realtimeInputConfig, - global::Google.Gemini.AudioTranscriptionConfig? inputAudioTranscription, - string? model) + global::Google.Gemini.ContextWindowCompressionConfig? contextWindowCompression) { - this.HistoryConfig = historyConfig; - this.Labels = labels; this.OutputAudioTranscription = outputAudioTranscription; - this.ContextWindowCompression = contextWindowCompression; + this.InputAudioTranscription = inputAudioTranscription; + this.Model = model; this.GenerationConfig = generationConfig; this.SystemInstruction = systemInstruction; + this.RealtimeInputConfig = realtimeInputConfig; + this.Labels = labels; + this.HistoryConfig = historyConfig; this.Tools = tools; this.SessionResumption = sessionResumption; - this.RealtimeInputConfig = realtimeInputConfig; - this.InputAudioTranscription = inputAudioTranscription; - this.Model = model; + this.ContextWindowCompression = contextWindowCompression; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Blob.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Blob.g.cs index e54a3b556..05d81aa8d 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Blob.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Blob.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class Blob { + /// + /// Raw bytes for media formats. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + public byte[]? Data { get; set; } + /// /// The IANA standard MIME type of the source data. Examples of supported types: - Images: image/png, image/jpeg, image/jpg, image/webp, image/heic, image/heif, image/gif, image/avif - Audio: audio/*, video/audio/s16le, video/audio/wav - Video: video/* - Text: text/plain, text/html, text/css, text/javascript, text/x-typescript, text/csv, text/markdown, text/x-python, text/xml, text/rtf, video/text/timestamp - Applications: application/x-javascript, application/x-typescript, application/x-python-code, application/json, application/x-ipynb+json, application/rtf, application/pdf For additional context, see [Supported file formats](https://ai.google.dev/gemini-api/docs/file-input-methods#supported-content-types). // /// @@ -20,12 +26,6 @@ public sealed partial class Blob [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] public string? DisplayName { get; set; } - /// - /// Raw bytes for media formats. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public byte[]? Data { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -35,26 +35,26 @@ public sealed partial class Blob /// /// Initializes a new instance of the class. /// + /// + /// Raw bytes for media formats. + /// /// /// The IANA standard MIME type of the source data. Examples of supported types: - Images: image/png, image/jpeg, image/jpg, image/webp, image/heic, image/heif, image/gif, image/avif - Audio: audio/*, video/audio/s16le, video/audio/wav - Video: video/* - Text: text/plain, text/html, text/css, text/javascript, text/x-typescript, text/csv, text/markdown, text/x-python, text/xml, text/rtf, video/text/timestamp - Applications: application/x-javascript, application/x-typescript, application/x-python-code, application/json, application/x-ipynb+json, application/rtf, application/pdf For additional context, see [Supported file formats](https://ai.google.dev/gemini-api/docs/file-input-methods#supported-content-types). // /// /// /// Optional. Specifies the name used to refer to this blob to the model (e.g. "my_blob.png"). Used as the blob reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`. /// - /// - /// Raw bytes for media formats. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Blob( + byte[]? data, string? mimeType, - string? displayName, - byte[]? data) + string? displayName) { + this.Data = data; this.MimeType = mimeType; this.DisplayName = displayName; - this.Data = data; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CachedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CachedContent.g.cs index 77e697fe7..fbf216a7f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CachedContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CachedContent.g.cs @@ -9,28 +9,35 @@ namespace Google.Gemini public sealed partial class CachedContent { /// - /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` + /// Metadata on the usage of the cached content. /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("usageMetadata")] + public global::Google.Gemini.CachedContentUsageMetadata? UsageMetadata { get; set; } /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// Output only. Creation time of the cache entry.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("systemInstruction")] - public global::Google.Gemini.Content? SystemInstruction { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } /// - /// Metadata on the usage of the cached content. + /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` /// - [global::System.Text.Json.Serialization.JsonPropertyName("usageMetadata")] - public global::Google.Gemini.CachedContentUsageMetadata? UsageMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// Input only. New TTL for this resource, input only. /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("ttl")] + public string? Ttl { get; set; } + + /// + /// Optional. Input only. Immutable. The content to cache. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("contents")] + public global::System.Collections.Generic.IList? Contents { get; set; } /// /// Output only. When the cache entry was last updated in UTC time.
@@ -52,36 +59,29 @@ public sealed partial class CachedContent public global::System.Collections.Generic.IList? Tools { get; set; } /// - /// Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// Input only. New TTL for this resource, input only. + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// - [global::System.Text.Json.Serialization.JsonPropertyName("ttl")] - public string? Ttl { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("systemInstruction")] + public global::Google.Gemini.Content? SystemInstruction { get; set; } /// - /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. /// - [global::System.Text.Json.Serialization.JsonPropertyName("expireTime")] - public string? ExpireTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } /// - /// Output only. Creation time of the cache entry.
+ /// Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// - /// Optional. Input only. Immutable. The content to cache. + /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. /// - [global::System.Text.Json.Serialization.JsonPropertyName("contents")] - public global::System.Collections.Generic.IList? Contents { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("expireTime")] + public string? ExpireTime { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -92,17 +92,21 @@ public sealed partial class CachedContent /// /// Initializes a new instance of the class. /// + /// + /// Metadata on the usage of the cached content. + /// + /// + /// Output only. Creation time of the cache entry.
+ /// Included only in responses + /// /// /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. - /// - /// - /// Metadata on the usage of the cached content. + /// + /// Input only. New TTL for this resource, input only. /// - /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// Optional. Input only. Immutable. The content to cache. /// /// /// Output only. When the cache entry was last updated in UTC time.
@@ -114,52 +118,48 @@ public sealed partial class CachedContent /// /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response /// + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// /// /// Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`
/// Included only in responses /// - /// - /// Input only. New TTL for this resource, input only. - /// /// /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. /// - /// - /// Output only. Creation time of the cache entry.
- /// Included only in responses - /// - /// - /// Optional. Input only. Immutable. The content to cache. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CachedContent( - string? model, - global::Google.Gemini.Content? systemInstruction, global::Google.Gemini.CachedContentUsageMetadata? usageMetadata, - string? displayName, + string? createTime, + string? model, + string? ttl, + global::System.Collections.Generic.IList? contents, string? updateTime, global::Google.Gemini.ToolConfig? toolConfig, global::System.Collections.Generic.IList? tools, + global::Google.Gemini.Content? systemInstruction, + string? displayName, string? name, - string? ttl, - string? expireTime, - string? createTime, - global::System.Collections.Generic.IList? contents) + string? expireTime) { - this.Model = model; - this.SystemInstruction = systemInstruction; this.UsageMetadata = usageMetadata; - this.DisplayName = displayName; + this.CreateTime = createTime; + this.Model = model; + this.Ttl = ttl; + this.Contents = contents; this.UpdateTime = updateTime; this.ToolConfig = toolConfig; this.Tools = tools; + this.SystemInstruction = systemInstruction; + this.DisplayName = displayName; this.Name = name; - this.Ttl = ttl; this.ExpireTime = expireTime; - this.CreateTime = createTime; - this.Contents = contents; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Candidate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Candidate.g.cs index 647f6b253..272c576e8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Candidate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Candidate.g.cs @@ -9,36 +9,17 @@ namespace Google.Gemini public sealed partial class Candidate { /// - /// Logprobs Result + /// A collection of source attributions for a piece of content. /// - [global::System.Text.Json.Serialization.JsonPropertyName("logprobsResult")] - public global::Google.Gemini.LogprobsResult? LogprobsResult { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("citationMetadata")] + public global::Google.Gemini.CitationMetadata? CitationMetadata { get; set; } /// - /// Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.
+ /// Output only. Token count for this candidate.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("finishReason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter))] - public global::Google.Gemini.CandidateFinishReason? FinishReason { get; set; } - - /// - /// Metadata returned to client when grounding is enabled. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("groundingMetadata")] - public global::Google.Gemini.GroundingMetadata? GroundingMetadata { get; set; } - - /// - /// List of ratings for the safety of a response candidate. There is at most one rating per category. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("safetyRatings")] - public global::System.Collections.Generic.IList? SafetyRatings { get; set; } - - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public global::Google.Gemini.Content? Content { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tokenCount")] + public int? TokenCount { get; set; } /// /// Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set.
@@ -47,6 +28,12 @@ public sealed partial class Candidate [global::System.Text.Json.Serialization.JsonPropertyName("finishMessage")] public string? FinishMessage { get; set; } + /// + /// An optional opaque continuation token returned when `finish_reason` is `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to continue generation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("continuationToken")] + public byte[]? ContinuationToken { get; set; } + /// /// Output only. Index of the candidate in the list of response candidates.
/// Included only in responses @@ -62,17 +49,29 @@ public sealed partial class Candidate public global::System.Collections.Generic.IList? GroundingAttributions { get; set; } /// - /// Output only. Token count for this candidate.
- /// Included only in responses + /// Metadata returned to client when grounding is enabled. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("tokenCount")] - public int? TokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("groundingMetadata")] + public global::Google.Gemini.GroundingMetadata? GroundingMetadata { get; set; } /// - /// An optional opaque continuation token returned when `finish_reason` is `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to continue generation. + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// - [global::System.Text.Json.Serialization.JsonPropertyName("continuationToken")] - public byte[]? ContinuationToken { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public global::Google.Gemini.Content? Content { get; set; } + + /// + /// Logprobs Result + /// + [global::System.Text.Json.Serialization.JsonPropertyName("logprobsResult")] + public global::Google.Gemini.LogprobsResult? LogprobsResult { get; set; } + + /// + /// Output only. Average log probability score of the candidate.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("avgLogprobs")] + public double? AvgLogprobs { get; set; } /// /// Metadata related to url context retrieval tool. @@ -81,17 +80,18 @@ public sealed partial class Candidate public global::Google.Gemini.UrlContextMetadata? UrlContextMetadata { get; set; } /// - /// A collection of source attributions for a piece of content. + /// List of ratings for the safety of a response candidate. There is at most one rating per category. /// - [global::System.Text.Json.Serialization.JsonPropertyName("citationMetadata")] - public global::Google.Gemini.CitationMetadata? CitationMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("safetyRatings")] + public global::System.Collections.Generic.IList? SafetyRatings { get; set; } /// - /// Output only. Average log probability score of the candidate.
+ /// Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("avgLogprobs")] - public double? AvgLogprobs { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("finishReason")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter))] + public global::Google.Gemini.CandidateFinishReason? FinishReason { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -102,26 +102,20 @@ public sealed partial class Candidate /// /// Initializes a new instance of the class. /// - /// - /// Logprobs Result + /// + /// A collection of source attributions for a piece of content. /// - /// - /// Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.
+ /// + /// Output only. Token count for this candidate.
/// Included only in responses /// - /// - /// Metadata returned to client when grounding is enabled. - /// - /// - /// List of ratings for the safety of a response candidate. There is at most one rating per category. - /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. - /// /// /// Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set.
/// Included only in responses /// + /// + /// An optional opaque continuation token returned when `finish_reason` is `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to continue generation. + /// /// /// Output only. Index of the candidate in the list of response candidates.
/// Included only in responses @@ -130,54 +124,60 @@ public sealed partial class Candidate /// Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.
/// Included only in responses /// - /// - /// Output only. Token count for this candidate.
- /// Included only in responses + /// + /// Metadata returned to client when grounding is enabled. /// - /// - /// An optional opaque continuation token returned when `finish_reason` is `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to continue generation. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// + /// Logprobs Result + /// + /// + /// Output only. Average log probability score of the candidate.
+ /// Included only in responses /// /// /// Metadata related to url context retrieval tool. /// - /// - /// A collection of source attributions for a piece of content. + /// + /// List of ratings for the safety of a response candidate. There is at most one rating per category. /// - /// - /// Output only. Average log probability score of the candidate.
+ /// + /// Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.
/// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Candidate( - global::Google.Gemini.LogprobsResult? logprobsResult, - global::Google.Gemini.CandidateFinishReason? finishReason, - global::Google.Gemini.GroundingMetadata? groundingMetadata, - global::System.Collections.Generic.IList? safetyRatings, - global::Google.Gemini.Content? content, + global::Google.Gemini.CitationMetadata? citationMetadata, + int? tokenCount, string? finishMessage, + byte[]? continuationToken, int? index, global::System.Collections.Generic.IList? groundingAttributions, - int? tokenCount, - byte[]? continuationToken, + global::Google.Gemini.GroundingMetadata? groundingMetadata, + global::Google.Gemini.Content? content, + global::Google.Gemini.LogprobsResult? logprobsResult, + double? avgLogprobs, global::Google.Gemini.UrlContextMetadata? urlContextMetadata, - global::Google.Gemini.CitationMetadata? citationMetadata, - double? avgLogprobs) + global::System.Collections.Generic.IList? safetyRatings, + global::Google.Gemini.CandidateFinishReason? finishReason) { - this.LogprobsResult = logprobsResult; - this.FinishReason = finishReason; - this.GroundingMetadata = groundingMetadata; - this.SafetyRatings = safetyRatings; - this.Content = content; + this.CitationMetadata = citationMetadata; + this.TokenCount = tokenCount; this.FinishMessage = finishMessage; + this.ContinuationToken = continuationToken; this.Index = index; this.GroundingAttributions = groundingAttributions; - this.TokenCount = tokenCount; - this.ContinuationToken = continuationToken; - this.UrlContextMetadata = urlContextMetadata; - this.CitationMetadata = citationMetadata; + this.GroundingMetadata = groundingMetadata; + this.Content = content; + this.LogprobsResult = logprobsResult; this.AvgLogprobs = avgLogprobs; + this.UrlContextMetadata = urlContextMetadata; + this.SafetyRatings = safetyRatings; + this.FinishReason = finishReason; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CodeExecutionResult.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CodeExecutionResult.g.cs index a1771d2d4..75d575811 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CodeExecutionResult.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CodeExecutionResult.g.cs @@ -9,10 +9,11 @@ namespace Google.Gemini public sealed partial class CodeExecutionResult { /// - /// Optional. Contains stdout when code execution is successful, stderr or other description otherwise. + /// Required. Outcome of the code execution. /// - [global::System.Text.Json.Serialization.JsonPropertyName("output")] - public string? Output { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("outcome")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter))] + public global::Google.Gemini.CodeExecutionResultOutcome? Outcome { get; set; } /// /// Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id. @@ -21,11 +22,10 @@ public sealed partial class CodeExecutionResult public string? Id { get; set; } /// - /// Required. Outcome of the code execution. + /// Optional. Contains stdout when code execution is successful, stderr or other description otherwise. /// - [global::System.Text.Json.Serialization.JsonPropertyName("outcome")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter))] - public global::Google.Gemini.CodeExecutionResultOutcome? Outcome { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + public string? Output { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -36,26 +36,26 @@ public sealed partial class CodeExecutionResult /// /// Initializes a new instance of the class. /// - /// - /// Optional. Contains stdout when code execution is successful, stderr or other description otherwise. + /// + /// Required. Outcome of the code execution. /// /// /// Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id. /// - /// - /// Required. Outcome of the code execution. + /// + /// Optional. Contains stdout when code execution is successful, stderr or other description otherwise. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CodeExecutionResult( - string? output, + global::Google.Gemini.CodeExecutionResultOutcome? outcome, string? id, - global::Google.Gemini.CodeExecutionResultOutcome? outcome) + string? output) { - this.Output = output; - this.Id = id; this.Outcome = outcome; + this.Id = id; + this.Output = output; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUse.g.cs index e99db76e5..a24d70947 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUse.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class ComputerUse { + /// + /// Optional. Disabled safety policies for computer use. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("disabledSafetyPolicies")] + public global::System.Collections.Generic.IList? DisabledSafetyPolicies { get; set; } + /// /// Required. The environment being operated. /// @@ -21,12 +27,6 @@ public sealed partial class ComputerUse [global::System.Text.Json.Serialization.JsonPropertyName("enablePromptInjectionDetection")] public bool? EnablePromptInjectionDetection { get; set; } - /// - /// Optional. Disabled safety policies for computer use. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("disabledSafetyPolicies")] - public global::System.Collections.Generic.IList? DisabledSafetyPolicies { get; set; } - /// /// Optional. By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions. /// @@ -42,15 +42,15 @@ public sealed partial class ComputerUse /// /// Initializes a new instance of the class. /// + /// + /// Optional. Disabled safety policies for computer use. + /// /// /// Required. The environment being operated. /// /// /// Optional. Whether enable the prompt injection detection check on computer-use request. /// - /// - /// Optional. Disabled safety policies for computer use. - /// /// /// Optional. By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions. /// @@ -58,14 +58,14 @@ public sealed partial class ComputerUse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ComputerUse( + global::System.Collections.Generic.IList? disabledSafetyPolicies, global::Google.Gemini.ComputerUseEnvironment? environment, bool? enablePromptInjectionDetection, - global::System.Collections.Generic.IList? disabledSafetyPolicies, global::System.Collections.Generic.IList? excludedPredefinedFunctions) { + this.DisabledSafetyPolicies = disabledSafetyPolicies; this.Environment = environment; this.EnablePromptInjectionDetection = enablePromptInjectionDetection; - this.DisabledSafetyPolicies = disabledSafetyPolicies; this.ExcludedPredefinedFunctions = excludedPredefinedFunctions; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Corpus.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Corpus.g.cs index 3297f3ca0..ac6c974b0 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Corpus.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Corpus.g.cs @@ -15,6 +15,12 @@ public sealed partial class Corpus [global::System.Text.Json.Serialization.JsonPropertyName("name")] public string? Name { get; set; } + /// + /// Optional. The human-readable display name for the `Corpus`. The display name must be no more than 512 characters in length, including spaces. Example: "Docs on Semantic Retriever" + /// + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } + /// /// Output only. The Timestamp of when the `Corpus` was created.
/// Included only in responses @@ -22,12 +28,6 @@ public sealed partial class Corpus [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] public string? CreateTime { get; set; } - /// - /// Optional. The human-readable display name for the `Corpus`. The display name must be no more than 512 characters in length, including spaces. Example: "Docs on Semantic Retriever" - /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } - /// /// Output only. The Timestamp of when the `Corpus` was last updated.
/// Included only in responses @@ -48,13 +48,13 @@ public sealed partial class Corpus /// Output only. Immutable. Identifier. The `Corpus` resource name. The ID (name excluding the "corpora/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `corpora/my-awesome-corpora-123a456b789c`
/// Included only in responses /// + /// + /// Optional. The human-readable display name for the `Corpus`. The display name must be no more than 512 characters in length, including spaces. Example: "Docs on Semantic Retriever" + /// /// /// Output only. The Timestamp of when the `Corpus` was created.
/// Included only in responses /// - /// - /// Optional. The human-readable display name for the `Corpus`. The display name must be no more than 512 characters in length, including spaces. Example: "Docs on Semantic Retriever" - /// /// /// Output only. The Timestamp of when the `Corpus` was last updated.
/// Included only in responses @@ -64,13 +64,13 @@ public sealed partial class Corpus #endif public Corpus( string? name, - string? createTime, string? displayName, + string? createTime, string? updateTime) { this.Name = name; - this.CreateTime = createTime; this.DisplayName = displayName; + this.CreateTime = createTime; this.UpdateTime = updateTime; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensResponse.g.cs index 311248e09..bb73d8bb2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensResponse.g.cs @@ -9,17 +9,10 @@ namespace Google.Gemini public sealed partial class CountTokensResponse { /// - /// Output only. List of modalities that were processed in the request input.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("promptTokensDetails")] - public global::System.Collections.Generic.IList? PromptTokensDetails { get; set; } - - /// - /// The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative. + /// Number of tokens in the cached part of the prompt (the cached content). /// - [global::System.Text.Json.Serialization.JsonPropertyName("totalTokens")] - public int? TotalTokens { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("cachedContentTokenCount")] + public int? CachedContentTokenCount { get; set; } /// /// Output only. List of modalities that were processed in the cached content.
@@ -29,10 +22,17 @@ public sealed partial class CountTokensResponse public global::System.Collections.Generic.IList? CacheTokensDetails { get; set; } /// - /// Number of tokens in the cached part of the prompt (the cached content). + /// Output only. List of modalities that were processed in the request input.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("cachedContentTokenCount")] - public int? CachedContentTokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("promptTokensDetails")] + public global::System.Collections.Generic.IList? PromptTokensDetails { get; set; } + + /// + /// The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("totalTokens")] + public int? TotalTokens { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -43,6 +43,13 @@ public sealed partial class CountTokensResponse /// /// Initializes a new instance of the class. /// + /// + /// Number of tokens in the cached part of the prompt (the cached content). + /// + /// + /// Output only. List of modalities that were processed in the cached content.
+ /// Included only in responses + /// /// /// Output only. List of modalities that were processed in the request input.
/// Included only in responses @@ -50,26 +57,19 @@ public sealed partial class CountTokensResponse /// /// The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative. /// - /// - /// Output only. List of modalities that were processed in the cached content.
- /// Included only in responses - /// - /// - /// Number of tokens in the cached part of the prompt (the cached content). - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CountTokensResponse( - global::System.Collections.Generic.IList? promptTokensDetails, - int? totalTokens, + int? cachedContentTokenCount, global::System.Collections.Generic.IList? cacheTokensDetails, - int? cachedContentTokenCount) + global::System.Collections.Generic.IList? promptTokensDetails, + int? totalTokens) { + this.CachedContentTokenCount = cachedContentTokenCount; + this.CacheTokensDetails = cacheTokensDetails; this.PromptTokensDetails = promptTokensDetails; this.TotalTokens = totalTokens; - this.CacheTokensDetails = cacheTokensDetails; - this.CachedContentTokenCount = cachedContentTokenCount; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CreateEnvironmentRequest.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CreateEnvironmentRequest.g.cs index d6fe7798b..2c9657846 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CreateEnvironmentRequest.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CreateEnvironmentRequest.g.cs @@ -8,6 +8,18 @@ namespace Google.Gemini /// public sealed partial class CreateEnvironmentRequest { + /// + /// Sources to be mounted into the environment. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sources")] + public global::System.Collections.Generic.IList? Sources { get; set; } + + /// + /// Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fromEnvironment")] + public string? FromEnvironment { get; set; } + /// /// Network egress mode. /// @@ -15,24 +27,12 @@ public sealed partial class CreateEnvironmentRequest [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter))] public global::Google.Gemini.CreateEnvironmentRequestNetworkMode? NetworkMode { get; set; } - /// - /// Sources to be mounted into the environment. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sources")] - public global::System.Collections.Generic.IList? Sources { get; set; } - /// /// Network egress configuration for the environment. /// [global::System.Text.Json.Serialization.JsonPropertyName("networkAllowlist")] public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? NetworkAllowlist { get; set; } - /// - /// Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fromEnvironment")] - public string? FromEnvironment { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -42,31 +42,31 @@ public sealed partial class CreateEnvironmentRequest /// /// Initializes a new instance of the class. /// - /// - /// Network egress mode. - /// /// /// Sources to be mounted into the environment. /// - /// - /// Network egress configuration for the environment. - /// /// /// Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty. /// + /// + /// Network egress mode. + /// + /// + /// Network egress configuration for the environment. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateEnvironmentRequest( - global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode, global::System.Collections.Generic.IList? sources, - global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist, - string? fromEnvironment) + string? fromEnvironment, + global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode, + global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist) { - this.NetworkMode = networkMode; this.Sources = sources; - this.NetworkAllowlist = networkAllowlist; this.FromEnvironment = fromEnvironment; + this.NetworkMode = networkMode; + this.NetworkAllowlist = networkAllowlist; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomLongRunningOperation.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomLongRunningOperation.g.cs index 054029905..b2583a35f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomLongRunningOperation.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomLongRunningOperation.g.cs @@ -9,16 +9,16 @@ namespace Google.Gemini public sealed partial class CustomLongRunningOperation { /// - /// Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. + /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). /// - [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] - public object? Metadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public global::Google.Gemini.Status? Error { get; set; } /// - /// The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. + /// Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public object? Metadata { get; set; } /// /// If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. @@ -27,10 +27,10 @@ public sealed partial class CustomLongRunningOperation public bool? Done { get; set; } /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public global::Google.Gemini.Status? Error { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. @@ -47,17 +47,17 @@ public sealed partial class CustomLongRunningOperation /// /// Initializes a new instance of the class. /// + /// + /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// /// /// Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. /// - /// - /// The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. - /// /// /// If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. /// - /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// + /// The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. /// /// /// The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. @@ -66,16 +66,16 @@ public sealed partial class CustomLongRunningOperation [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CustomLongRunningOperation( + global::Google.Gemini.Status? error, object? metadata, - string? name, bool? done, - global::Google.Gemini.Status? error, + string? name, object? response) { + this.Error = error; this.Metadata = metadata; - this.Name = name; this.Done = done; - this.Error = error; + this.Name = name; this.Response = response; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomMetadata.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomMetadata.g.cs index d30ea6b09..86f89125e 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomMetadata.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomMetadata.g.cs @@ -9,16 +9,10 @@ namespace Google.Gemini public sealed partial class CustomMetadata { /// - /// Required. The key of the metadata to store. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("key")] - public string? Key { get; set; } - - /// - /// User provided string values assigned to a single metadata key. + /// The numeric value of the metadata to store. /// - [global::System.Text.Json.Serialization.JsonPropertyName("stringListValue")] - public global::Google.Gemini.StringList? StringListValue { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("numericValue")] + public float? NumericValue { get; set; } /// /// The string value of the metadata to store. @@ -27,10 +21,16 @@ public sealed partial class CustomMetadata public string? StringValue { get; set; } /// - /// The numeric value of the metadata to store. + /// Required. The key of the metadata to store. /// - [global::System.Text.Json.Serialization.JsonPropertyName("numericValue")] - public float? NumericValue { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + public string? Key { get; set; } + + /// + /// User provided string values assigned to a single metadata key. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stringListValue")] + public global::Google.Gemini.StringList? StringListValue { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -41,31 +41,31 @@ public sealed partial class CustomMetadata /// /// Initializes a new instance of the class. /// + /// + /// The numeric value of the metadata to store. + /// + /// + /// The string value of the metadata to store. + /// /// /// Required. The key of the metadata to store. /// /// /// User provided string values assigned to a single metadata key. /// - /// - /// The string value of the metadata to store. - /// - /// - /// The numeric value of the metadata to store. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CustomMetadata( - string? key, - global::Google.Gemini.StringList? stringListValue, + float? numericValue, string? stringValue, - float? numericValue) + string? key, + global::Google.Gemini.StringList? stringListValue) { + this.NumericValue = numericValue; + this.StringValue = stringValue; this.Key = key; this.StringListValue = stringListValue; - this.StringValue = stringValue; - this.NumericValue = numericValue; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Document.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Document.g.cs index 90335dc75..0035a8691 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Document.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Document.g.cs @@ -14,6 +14,13 @@ public sealed partial class Document [global::System.Text.Json.Serialization.JsonPropertyName("name")] public string? Name { get; set; } + /// + /// Output only. The Timestamp of when the `Document` was last updated.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } + /// /// Output only. Current state of the `Document`.
/// Included only in responses @@ -29,19 +36,6 @@ public sealed partial class Document [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] public string? MimeType { get; set; } - /// - /// Output only. The Timestamp of when the `Document` was last updated.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } - - /// - /// Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: "Semantic Retriever Documentation" - /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } - /// /// Output only. The size of raw bytes ingested into the Document.
/// Included only in responses @@ -62,6 +56,12 @@ public sealed partial class Document [global::System.Text.Json.Serialization.JsonPropertyName("customMetadata")] public global::System.Collections.Generic.IList? CustomMetadata { get; set; } + /// + /// Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: "Semantic Retriever Documentation" + /// + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -74,6 +74,10 @@ public sealed partial class Document /// /// Immutable. Identifier. The `Document` resource name. The ID (name excluding the "fileSearchStores/*/documents/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/{file_search_store_id}/documents/my-awesome-doc-123a456b789c` /// + /// + /// Output only. The Timestamp of when the `Document` was last updated.
+ /// Included only in responses + /// /// /// Output only. Current state of the `Document`.
/// Included only in responses @@ -82,13 +86,6 @@ public sealed partial class Document /// Output only. The mime type of the Document.
/// Included only in responses /// - /// - /// Output only. The Timestamp of when the `Document` was last updated.
- /// Included only in responses - /// - /// - /// Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: "Semantic Retriever Documentation" - /// /// /// Output only. The size of raw bytes ingested into the Document.
/// Included only in responses @@ -100,27 +97,30 @@ public sealed partial class Document /// /// Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`. /// + /// + /// Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: "Semantic Retriever Documentation" + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Document( string? name, + string? updateTime, global::Google.Gemini.DocumentState? state, string? mimeType, - string? updateTime, - string? displayName, string? sizeBytes, string? createTime, - global::System.Collections.Generic.IList? customMetadata) + global::System.Collections.Generic.IList? customMetadata, + string? displayName) { this.Name = name; + this.UpdateTime = updateTime; this.State = state; this.MimeType = mimeType; - this.UpdateTime = updateTime; - this.DisplayName = displayName; this.SizeBytes = sizeBytes; this.CreateTime = createTime; this.CustomMetadata = customMetadata; + this.DisplayName = displayName; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EgressRule.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EgressRule.g.cs index 817700063..19f3d1fab 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EgressRule.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EgressRule.g.cs @@ -9,17 +9,16 @@ namespace Google.Gemini public sealed partial class EgressRule { /// - /// Optional. Reference to a server-managed Credential resource by ID. + /// Domain to allow outbound requests to. Supports wildcards (e.g. '*.googleapis.com'). Use '*' to allow all domains. /// - [global::System.Text.Json.Serialization.JsonPropertyName("credential")] - public string? Credential { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("domain")] + public string? Domain { get; set; } /// - /// Network egress mode. Set via the `"allowlist": "disabled"` short form; must be the only rule in the allowlist and cannot be combined with `domain`, `transform` or `credential`. + /// Optional. Reference to a server-managed Credential resource by ID. /// - [global::System.Text.Json.Serialization.JsonPropertyName("mode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EgressRuleModeJsonConverter))] - public global::Google.Gemini.EgressRuleMode? Mode { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("credential")] + public string? Credential { get; set; } /// /// Headers to inject into requests matching this rule. Key: header name (e.g., "Authorization"). Value: header value (e.g., "Bearer your-token"). @@ -28,10 +27,11 @@ public sealed partial class EgressRule public global::System.Collections.Generic.Dictionary? Transform { get; set; } /// - /// Domain to allow outbound requests to. Supports wildcards (e.g. '*.googleapis.com'). Use '*' to allow all domains. + /// Network egress mode. Set via the `"allowlist": "disabled"` short form; must be the only rule in the allowlist and cannot be combined with `domain`, `transform` or `credential`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("domain")] - public string? Domain { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EgressRuleModeJsonConverter))] + public global::Google.Gemini.EgressRuleMode? Mode { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,31 +42,31 @@ public sealed partial class EgressRule /// /// Initializes a new instance of the class. /// + /// + /// Domain to allow outbound requests to. Supports wildcards (e.g. '*.googleapis.com'). Use '*' to allow all domains. + /// /// /// Optional. Reference to a server-managed Credential resource by ID. /// - /// - /// Network egress mode. Set via the `"allowlist": "disabled"` short form; must be the only rule in the allowlist and cannot be combined with `domain`, `transform` or `credential`. - /// /// /// Headers to inject into requests matching this rule. Key: header name (e.g., "Authorization"). Value: header value (e.g., "Bearer your-token"). /// - /// - /// Domain to allow outbound requests to. Supports wildcards (e.g. '*.googleapis.com'). Use '*' to allow all domains. + /// + /// Network egress mode. Set via the `"allowlist": "disabled"` short form; must be the only rule in the allowlist and cannot be combined with `domain`, `transform` or `credential`. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EgressRule( + string? domain, string? credential, - global::Google.Gemini.EgressRuleMode? mode, global::System.Collections.Generic.Dictionary? transform, - string? domain) + global::Google.Gemini.EgressRuleMode? mode) { + this.Domain = domain; this.Credential = credential; - this.Mode = mode; this.Transform = transform; - this.Domain = domain; + this.Mode = mode; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatch.g.cs index 7ac58198b..c891e80a7 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatch.g.cs @@ -9,16 +9,11 @@ namespace Google.Gemini public sealed partial class EmbedContentBatch { /// - /// Stats about the batch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("batchStats")] - public global::Google.Gemini.EmbedContentBatchStats? BatchStats { get; set; } - - /// - /// Configures the input to the batch request. + /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("inputConfig")] - public global::Google.Gemini.InputEmbedContentConfig? InputConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// Output only. The time at which the batch was last updated.
@@ -28,37 +23,41 @@ public sealed partial class EmbedContentBatch public string? UpdateTime { get; set; } /// - /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. + /// Required. The user-defined name of this batch. /// - [global::System.Text.Json.Serialization.JsonPropertyName("output")] - public global::Google.Gemini.EmbedContentBatchOutput? Output { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } /// - /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
+ /// Output only. The time at which the batch was created.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } /// - /// Output only. The state of the batch.
- /// Included only in responses + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("state")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter))] - public global::Google.Gemini.EmbedContentBatchState? State { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } /// - /// Required. The user-defined name of this batch. + /// Stats about the batch. /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("batchStats")] + public global::Google.Gemini.EmbedContentBatchStats? BatchStats { get; set; } /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// Configures the input to the batch request. /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("inputConfig")] + public global::Google.Gemini.InputEmbedContentConfig? InputConfig { get; set; } + + /// + /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("priority")] + public string? Priority { get; set; } /// /// Output only. The time at which the batch processing completed.
@@ -68,17 +67,18 @@ public sealed partial class EmbedContentBatch public string? EndTime { get; set; } /// - /// Output only. The time at which the batch was created.
- /// Included only in responses + /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + public global::Google.Gemini.EmbedContentBatchOutput? Output { get; set; } /// - /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. + /// Output only. The state of the batch.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("priority")] - public string? Priority { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("state")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter))] + public global::Google.Gemini.EmbedContentBatchState? State { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -89,71 +89,71 @@ public sealed partial class EmbedContentBatch /// /// Initializes a new instance of the class. /// - /// - /// Stats about the batch. - /// - /// - /// Configures the input to the batch request. - /// - /// - /// Output only. The time at which the batch was last updated.
- /// Included only in responses - /// - /// - /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. - /// /// /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
/// Included only in responses /// - /// - /// Output only. The state of the batch.
+ /// + /// Output only. The time at which the batch was last updated.
/// Included only in responses /// /// /// Required. The user-defined name of this batch. /// + /// + /// Output only. The time at which the batch was created.
+ /// Included only in responses + /// /// /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// + /// + /// Stats about the batch. + /// + /// + /// Configures the input to the batch request. + /// + /// + /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. + /// /// /// Output only. The time at which the batch processing completed.
/// Included only in responses /// - /// - /// Output only. The time at which the batch was created.
- /// Included only in responses + /// + /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. /// - /// - /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. + /// + /// Output only. The state of the batch.
+ /// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentBatch( - global::Google.Gemini.EmbedContentBatchStats? batchStats, - global::Google.Gemini.InputEmbedContentConfig? inputConfig, - string? updateTime, - global::Google.Gemini.EmbedContentBatchOutput? output, string? name, - global::Google.Gemini.EmbedContentBatchState? state, + string? updateTime, string? displayName, + string? createTime, string? model, + global::Google.Gemini.EmbedContentBatchStats? batchStats, + global::Google.Gemini.InputEmbedContentConfig? inputConfig, + string? priority, string? endTime, - string? createTime, - string? priority) + global::Google.Gemini.EmbedContentBatchOutput? output, + global::Google.Gemini.EmbedContentBatchState? state) { - this.BatchStats = batchStats; - this.InputConfig = inputConfig; - this.UpdateTime = updateTime; - this.Output = output; this.Name = name; - this.State = state; + this.UpdateTime = updateTime; this.DisplayName = displayName; - this.Model = model; - this.EndTime = endTime; this.CreateTime = createTime; + this.Model = model; + this.BatchStats = batchStats; + this.InputConfig = inputConfig; this.Priority = priority; + this.EndTime = endTime; + this.Output = output; + this.State = state; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchStats.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchStats.g.cs index ce1155a9d..2f706f435 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchStats.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchStats.g.cs @@ -15,6 +15,13 @@ public sealed partial class EmbedContentBatchStats [global::System.Text.Json.Serialization.JsonPropertyName("failedRequestCount")] public string? FailedRequestCount { get; set; } + /// + /// Output only. The number of requests that were successfully processed.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("successfulRequestCount")] + public string? SuccessfulRequestCount { get; set; } + /// /// Output only. The number of requests in the batch.
/// Included only in responses @@ -29,13 +36,6 @@ public sealed partial class EmbedContentBatchStats [global::System.Text.Json.Serialization.JsonPropertyName("pendingRequestCount")] public string? PendingRequestCount { get; set; } - /// - /// Output only. The number of requests that were successfully processed.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("successfulRequestCount")] - public string? SuccessfulRequestCount { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -49,6 +49,10 @@ public sealed partial class EmbedContentBatchStats /// Output only. The number of requests that failed to be processed.
/// Included only in responses /// + /// + /// Output only. The number of requests that were successfully processed.
+ /// Included only in responses + /// /// /// Output only. The number of requests in the batch.
/// Included only in responses @@ -57,23 +61,19 @@ public sealed partial class EmbedContentBatchStats /// Output only. The number of requests that are still pending processing.
/// Included only in responses /// - /// - /// Output only. The number of requests that were successfully processed.
- /// Included only in responses - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentBatchStats( string? failedRequestCount, + string? successfulRequestCount, string? requestCount, - string? pendingRequestCount, - string? successfulRequestCount) + string? pendingRequestCount) { this.FailedRequestCount = failedRequestCount; + this.SuccessfulRequestCount = successfulRequestCount; this.RequestCount = requestCount; this.PendingRequestCount = pendingRequestCount; - this.SuccessfulRequestCount = successfulRequestCount; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentConfig.g.cs index a47f86af9..aa33f5afd 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentConfig.g.cs @@ -9,22 +9,17 @@ namespace Google.Gemini public sealed partial class EmbedContentConfig { /// - /// Optional. Whether to enable OCR for document content. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("documentOcr")] - public bool? DocumentOcr { get; set; } - - /// - /// Optional. The title for the text. + /// Optional. The task type of the embedding. /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("taskType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter))] + public global::Google.Gemini.EmbedContentConfigTaskType? TaskType { get; set; } /// - /// Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length. + /// Optional. Whether to extract audio from video content. /// - [global::System.Text.Json.Serialization.JsonPropertyName("autoTruncate")] - public bool? AutoTruncate { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("audioTrackExtraction")] + public bool? AudioTrackExtraction { get; set; } /// /// Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. @@ -33,17 +28,22 @@ public sealed partial class EmbedContentConfig public int? OutputDimensionality { get; set; } /// - /// Optional. Whether to extract audio from video content. + /// Optional. The title for the text. /// - [global::System.Text.Json.Serialization.JsonPropertyName("audioTrackExtraction")] - public bool? AudioTrackExtraction { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } /// - /// Optional. The task type of the embedding. + /// Optional. Whether to enable OCR for document content. /// - [global::System.Text.Json.Serialization.JsonPropertyName("taskType")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter))] - public global::Google.Gemini.EmbedContentConfigTaskType? TaskType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("documentOcr")] + public bool? DocumentOcr { get; set; } + + /// + /// Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("autoTruncate")] + public bool? AutoTruncate { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -54,41 +54,41 @@ public sealed partial class EmbedContentConfig /// /// Initializes a new instance of the class. /// - /// - /// Optional. Whether to enable OCR for document content. - /// - /// - /// Optional. The title for the text. + /// + /// Optional. The task type of the embedding. /// - /// - /// Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length. + /// + /// Optional. Whether to extract audio from video content. /// /// /// Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. /// - /// - /// Optional. Whether to extract audio from video content. + /// + /// Optional. The title for the text. /// - /// - /// Optional. The task type of the embedding. + /// + /// Optional. Whether to enable OCR for document content. + /// + /// + /// Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentConfig( - bool? documentOcr, - string? title, - bool? autoTruncate, - int? outputDimensionality, + global::Google.Gemini.EmbedContentConfigTaskType? taskType, bool? audioTrackExtraction, - global::Google.Gemini.EmbedContentConfigTaskType? taskType) + int? outputDimensionality, + string? title, + bool? documentOcr, + bool? autoTruncate) { - this.DocumentOcr = documentOcr; + this.TaskType = taskType; + this.AudioTrackExtraction = audioTrackExtraction; + this.OutputDimensionality = outputDimensionality; this.Title = title; + this.DocumentOcr = documentOcr; this.AutoTruncate = autoTruncate; - this.OutputDimensionality = outputDimensionality; - this.AudioTrackExtraction = audioTrackExtraction; - this.TaskType = taskType; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentRequest.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentRequest.g.cs index c45e1cd7a..453eac29a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentRequest.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentRequest.g.cs @@ -11,11 +11,16 @@ namespace Google.Gemini public sealed partial class EmbedContentRequest { /// - /// Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024 only. You cannot set this value if using the earlier model (`models/embedding-001`). + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// - [global::System.Text.Json.Serialization.JsonPropertyName("outputDimensionality")] - [global::System.Obsolete("This property marked as deprecated.")] - public int? OutputDimensionality { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public global::Google.Gemini.Content? Content { get; set; } + + /// + /// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}` + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } /// /// Optional. Deprecated: Please use EmbedContentConfig.task_type instead. Optional task type for which the embeddings will be used. Not supported on earlier models (`models/embedding-001`). @@ -25,12 +30,6 @@ public sealed partial class EmbedContentRequest [global::System.Obsolete("This property marked as deprecated.")] public global::Google.Gemini.EmbedContentRequestTaskType? TaskType { get; set; } - /// - /// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}` - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - /// /// Optional. Deprecated: Please use EmbedContentConfig.title instead. An optional title for the text. Only applicable when TaskType is `RETRIEVAL_DOCUMENT`. Note: Specifying a `title` for `RETRIEVAL_DOCUMENT` provides better quality embeddings for retrieval. /// @@ -39,10 +38,11 @@ public sealed partial class EmbedContentRequest public string? Title { get; set; } /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024 only. You cannot set this value if using the earlier model (`models/embedding-001`). /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public global::Google.Gemini.Content? Content { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("outputDimensionality")] + [global::System.Obsolete("This property marked as deprecated.")] + public int? OutputDimensionality { get; set; } /// /// Configurations for the EmbedContent request. @@ -59,12 +59,12 @@ public sealed partial class EmbedContentRequest /// /// Initializes a new instance of the class. /// - /// - /// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}` - /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// + /// + /// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}` + /// /// /// Configurations for the EmbedContent request. /// @@ -72,12 +72,12 @@ public sealed partial class EmbedContentRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentRequest( - string? model, global::Google.Gemini.Content? content, + string? model, global::Google.Gemini.EmbedContentConfig? embedContentConfig) { - this.Model = model; this.Content = content; + this.Model = model; this.EmbedContentConfig = embedContentConfig; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Environment.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Environment.g.cs index c9af98fb9..b00bfdcd3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Environment.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Environment.g.cs @@ -8,20 +8,6 @@ namespace Google.Gemini /// public sealed partial class Environment { - /// - /// Required. Output only. The ID of the environment.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } - - /// - /// Output only. The number of files in the environment, output only.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("fileCount")] - public string? FileCount { get; set; } - /// /// Sources to be mounted into the environment. /// @@ -29,18 +15,25 @@ public sealed partial class Environment public global::System.Collections.Generic.IList? Sources { get; set; } /// - /// Output only. The total size of the environment files in bytes, output only.
+ /// Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] - public string? SizeBytes { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updated")] + public string? Updated { get; set; } /// - /// Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
+ /// Network egress mode. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("networkMode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeJsonConverter))] + public global::Google.Gemini.EnvironmentNetworkMode? NetworkMode { get; set; } + + /// + /// Required. Output only. The ID of the environment.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updated")] - public string? Updated { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// /// Network egress configuration for the environment. @@ -49,12 +42,11 @@ public sealed partial class Environment public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? NetworkAllowlist { get; set; } /// - /// Output only. The status of the environment container.
+ /// Output only. The number of files in the environment, output only.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusJsonConverter))] - public global::Google.Gemini.EnvironmentStatus? Status { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("fileCount")] + public string? FileCount { get; set; } /// /// Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
@@ -63,13 +55,6 @@ public sealed partial class Environment [global::System.Text.Json.Serialization.JsonPropertyName("lastAccessed")] public string? LastAccessed { get; set; } - /// - /// Network egress mode. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("networkMode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeJsonConverter))] - public global::Google.Gemini.EnvironmentNetworkMode? NetworkMode { get; set; } - /// /// Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses @@ -77,6 +62,21 @@ public sealed partial class Environment [global::System.Text.Json.Serialization.JsonPropertyName("created")] public string? Created { get; set; } + /// + /// Output only. The status of the environment container.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusJsonConverter))] + public global::Google.Gemini.EnvironmentStatus? Status { get; set; } + + /// + /// Output only. The total size of the environment files in bytes, output only.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] + public string? SizeBytes { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -86,68 +86,68 @@ public sealed partial class Environment /// /// Initializes a new instance of the class. /// - /// - /// Required. Output only. The ID of the environment.
- /// Included only in responses - /// - /// - /// Output only. The number of files in the environment, output only.
- /// Included only in responses - /// /// /// Sources to be mounted into the environment. /// - /// - /// Output only. The total size of the environment files in bytes, output only.
- /// Included only in responses - /// /// /// Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses /// + /// + /// Network egress mode. + /// + /// + /// Required. Output only. The ID of the environment.
+ /// Included only in responses + /// /// /// Network egress configuration for the environment. /// - /// - /// Output only. The status of the environment container.
+ /// + /// Output only. The number of files in the environment, output only.
/// Included only in responses /// /// /// Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses /// - /// - /// Network egress mode. - /// /// /// Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses /// + /// + /// Output only. The status of the environment container.
+ /// Included only in responses + /// + /// + /// Output only. The total size of the environment files in bytes, output only.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Environment( - string? id, - string? fileCount, global::System.Collections.Generic.IList? sources, - string? sizeBytes, string? updated, + global::Google.Gemini.EnvironmentNetworkMode? networkMode, + string? id, global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist, - global::Google.Gemini.EnvironmentStatus? status, + string? fileCount, string? lastAccessed, - global::Google.Gemini.EnvironmentNetworkMode? networkMode, - string? created) + string? created, + global::Google.Gemini.EnvironmentStatus? status, + string? sizeBytes) { - this.Id = id; - this.FileCount = fileCount; this.Sources = sources; - this.SizeBytes = sizeBytes; this.Updated = updated; + this.NetworkMode = networkMode; + this.Id = id; this.NetworkAllowlist = networkAllowlist; - this.Status = status; + this.FileCount = fileCount; this.LastAccessed = lastAccessed; - this.NetworkMode = networkMode; this.Created = created; + this.Status = status; + this.SizeBytes = sizeBytes; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFile.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFile.g.cs index e8e22dc4a..5dd984e64 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFile.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFile.g.cs @@ -9,26 +9,25 @@ namespace Google.Gemini public sealed partial class EnvironmentFile { /// - /// Output only. The size of the file/directory in bytes. NOLINT
+ /// Output only. The MIME type of the file (e.g., "text/python", "image/png"). Empty for directories. NOLINT
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("size_bytes")] - public string? SizeBytes { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + public string? MimeType { get; set; } /// - /// Output only. The name of the file or directory (e.g., "main.py" or "src").
+ /// Output only. The full relative path within the environment (e.g., "workspace/src/main.py").
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + public string? Path { get; set; } /// - /// Output only. The type of the entry.
+ /// Output only. The size of the file/directory in bytes. NOLINT
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeJsonConverter))] - public global::Google.Gemini.EnvironmentFileType? Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("size_bytes")] + public string? SizeBytes { get; set; } /// /// Output only. The modification time of the file/directory.
@@ -38,11 +37,12 @@ public sealed partial class EnvironmentFile public string? Modified { get; set; } /// - /// Output only. The full relative path within the environment (e.g., "workspace/src/main.py").
+ /// Output only. The type of the entry.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("path")] - public string? Path { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeJsonConverter))] + public global::Google.Gemini.EnvironmentFileType? Type { get; set; } /// /// Output only. The creation time of the file/directory.
@@ -52,11 +52,11 @@ public sealed partial class EnvironmentFile public string? Created { get; set; } /// - /// Output only. The MIME type of the file (e.g., "text/python", "image/png"). Empty for directories. NOLINT
+ /// Output only. The name of the file or directory (e.g., "main.py" or "src").
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] - public string? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -67,53 +67,53 @@ public sealed partial class EnvironmentFile /// /// Initializes a new instance of the class. /// - /// - /// Output only. The size of the file/directory in bytes. NOLINT
+ /// + /// Output only. The MIME type of the file (e.g., "text/python", "image/png"). Empty for directories. NOLINT
/// Included only in responses /// - /// - /// Output only. The name of the file or directory (e.g., "main.py" or "src").
+ /// + /// Output only. The full relative path within the environment (e.g., "workspace/src/main.py").
/// Included only in responses /// - /// - /// Output only. The type of the entry.
+ /// + /// Output only. The size of the file/directory in bytes. NOLINT
/// Included only in responses /// /// /// Output only. The modification time of the file/directory.
/// Included only in responses /// - /// - /// Output only. The full relative path within the environment (e.g., "workspace/src/main.py").
+ /// + /// Output only. The type of the entry.
/// Included only in responses /// /// /// Output only. The creation time of the file/directory.
/// Included only in responses /// - /// - /// Output only. The MIME type of the file (e.g., "text/python", "image/png"). Empty for directories. NOLINT
+ /// + /// Output only. The name of the file or directory (e.g., "main.py" or "src").
/// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EnvironmentFile( + string? mimeType, + string? path, string? sizeBytes, - string? name, - global::Google.Gemini.EnvironmentFileType? type, string? modified, - string? path, + global::Google.Gemini.EnvironmentFileType? type, string? created, - string? mimeType) + string? name) { + this.MimeType = mimeType; + this.Path = path; this.SizeBytes = sizeBytes; - this.Name = name; - this.Type = type; this.Modified = modified; - this.Path = path; + this.Type = type; this.Created = created; - this.MimeType = mimeType; + this.Name = name; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.File.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.File.g.cs index 5c1c6726c..f0ba45d0c 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.File.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.File.g.cs @@ -9,19 +9,30 @@ namespace Google.Gemini public sealed partial class File { /// - /// Output only. Processing state of the File.
+ /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public global::Google.Gemini.Status? Error { get; set; } + + /// + /// Output only. The uri of the `File`.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("state")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter))] - public global::Google.Gemini.FileState? State { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// - /// Output only. The timestamp of when the `File` was last updated.
+ /// Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: "Welcome Image" + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } + + /// + /// Output only. The timestamp of when the `File` was created.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } /// /// Output only. SHA-256 hash of the uploaded bytes.
@@ -30,12 +41,6 @@ public sealed partial class File [global::System.Text.Json.Serialization.JsonPropertyName("sha256Hash")] public byte[]? Sha256Hash { get; set; } - /// - /// Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: "Welcome Image" - /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } - /// /// Output only. The download uri of the `File`.
/// Included only in responses @@ -44,52 +49,46 @@ public sealed partial class File public string? DownloadUri { get; set; } /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// Source of the File. /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public global::Google.Gemini.Status? Error { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter))] + public global::Google.Gemini.FileSource? Source { get; set; } /// - /// Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.
+ /// Output only. The timestamp of when the `File` was last updated.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("expirationTime")] - public string? ExpirationTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } /// - /// Output only. MIME type of the file.
+ /// Output only. Size of the file in bytes.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] - public string? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] + public string? SizeBytes { get; set; } /// - /// Output only. The uri of the `File`.
+ /// Output only. MIME type of the file.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] + public string? MimeType { get; set; } /// - /// Output only. The timestamp of when the `File` was created.
- /// Included only in responses + /// Immutable. Identifier. The `File` resource name. The ID (name excluding the "files/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456` ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// - /// Output only. Size of the file in bytes.
+ /// Output only. Processing state of the File.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] - public string? SizeBytes { get; set; } - - /// - /// Source of the File. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("source")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter))] - public global::Google.Gemini.FileSource? Source { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("state")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter))] + public global::Google.Gemini.FileState? State { get; set; } /// /// Metadata for a video `File`. @@ -98,10 +97,11 @@ public sealed partial class File public global::Google.Gemini.VideoFileMetadata? VideoMetadata { get; set; } /// - /// Immutable. Identifier. The `File` resource name. The ID (name excluding the "files/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456` + /// Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("expirationTime")] + public string? ExpirationTime { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -112,90 +112,90 @@ public sealed partial class File /// /// Initializes a new instance of the class. /// - /// - /// Output only. Processing state of the File.
+ /// + /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// + /// + /// Output only. The uri of the `File`.
/// Included only in responses /// - /// - /// Output only. The timestamp of when the `File` was last updated.
+ /// + /// Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: "Welcome Image" + /// + /// + /// Output only. The timestamp of when the `File` was created.
/// Included only in responses /// /// /// Output only. SHA-256 hash of the uploaded bytes.
/// Included only in responses /// - /// - /// Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: "Welcome Image" - /// /// /// Output only. The download uri of the `File`.
/// Included only in responses /// - /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// + /// Source of the File. /// - /// - /// Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.
+ /// + /// Output only. The timestamp of when the `File` was last updated.
/// Included only in responses /// - /// - /// Output only. MIME type of the file.
+ /// + /// Output only. Size of the file in bytes.
/// Included only in responses /// - /// - /// Output only. The uri of the `File`.
+ /// + /// Output only. MIME type of the file.
/// Included only in responses /// - /// - /// Output only. The timestamp of when the `File` was created.
- /// Included only in responses + /// + /// Immutable. Identifier. The `File` resource name. The ID (name excluding the "files/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456` /// - /// - /// Output only. Size of the file in bytes.
+ /// + /// Output only. Processing state of the File.
/// Included only in responses /// - /// - /// Source of the File. - /// /// /// Metadata for a video `File`. /// - /// - /// Immutable. Identifier. The `File` resource name. The ID (name excluding the "files/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456` + /// + /// Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.
+ /// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public File( - global::Google.Gemini.FileState? state, - string? updateTime, - byte[]? sha256Hash, - string? displayName, - string? downloadUri, global::Google.Gemini.Status? error, - string? expirationTime, - string? mimeType, string? uri, + string? displayName, string? createTime, - string? sizeBytes, + byte[]? sha256Hash, + string? downloadUri, global::Google.Gemini.FileSource? source, + string? updateTime, + string? sizeBytes, + string? mimeType, + string? name, + global::Google.Gemini.FileState? state, global::Google.Gemini.VideoFileMetadata? videoMetadata, - string? name) + string? expirationTime) { - this.State = state; - this.UpdateTime = updateTime; - this.Sha256Hash = sha256Hash; - this.DisplayName = displayName; - this.DownloadUri = downloadUri; this.Error = error; - this.ExpirationTime = expirationTime; - this.MimeType = mimeType; this.Uri = uri; + this.DisplayName = displayName; this.CreateTime = createTime; - this.SizeBytes = sizeBytes; + this.Sha256Hash = sha256Hash; + this.DownloadUri = downloadUri; this.Source = source; - this.VideoMetadata = videoMetadata; + this.UpdateTime = updateTime; + this.SizeBytes = sizeBytes; + this.MimeType = mimeType; this.Name = name; + this.State = state; + this.VideoMetadata = videoMetadata; + this.ExpirationTime = expirationTime; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileData.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileData.g.cs index 78677422c..de35677b1 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileData.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileData.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class FileData { - /// - /// Required. URI. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileUri")] - public string? FileUri { get; set; } - /// /// Optional. Specifies the name used to refer to this file to the model (e.g. "my_file.pdf"). Used as the file reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`. /// [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] public string? DisplayName { get; set; } + /// + /// Required. URI. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fileUri")] + public string? FileUri { get; set; } + /// /// Optional. The IANA standard MIME type of the source data. /// @@ -35,12 +35,12 @@ public sealed partial class FileData /// /// Initializes a new instance of the class. /// - /// - /// Required. URI. - /// /// /// Optional. Specifies the name used to refer to this file to the model (e.g. "my_file.pdf"). Used as the file reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`. /// + /// + /// Required. URI. + /// /// /// Optional. The IANA standard MIME type of the source data. /// @@ -48,12 +48,12 @@ public sealed partial class FileData [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FileData( - string? fileUri, string? displayName, + string? fileUri, string? mimeType) { - this.FileUri = fileUri; this.DisplayName = displayName; + this.FileUri = fileUri; this.MimeType = mimeType; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearch.g.cs index 0cb34874d..9d971733c 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearch.g.cs @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class FileSearch { /// - /// Optional. Metadata filter to apply to the semantic retrieval documents and chunks. + /// Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123` /// - [global::System.Text.Json.Serialization.JsonPropertyName("metadataFilter")] - public string? MetadataFilter { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStoreNames")] + public global::System.Collections.Generic.IList? FileSearchStoreNames { get; set; } /// /// Optional. The number of semantic retrieval chunks to retrieve. @@ -21,10 +21,10 @@ public sealed partial class FileSearch public int? TopK { get; set; } /// - /// Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123` + /// Optional. Metadata filter to apply to the semantic retrieval documents and chunks. /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStoreNames")] - public global::System.Collections.Generic.IList? FileSearchStoreNames { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("metadataFilter")] + public string? MetadataFilter { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -35,26 +35,26 @@ public sealed partial class FileSearch /// /// Initializes a new instance of the class. /// - /// - /// Optional. Metadata filter to apply to the semantic retrieval documents and chunks. + /// + /// Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123` /// /// /// Optional. The number of semantic retrieval chunks to retrieve. /// - /// - /// Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123` + /// + /// Optional. Metadata filter to apply to the semantic retrieval documents and chunks. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FileSearch( - string? metadataFilter, + global::System.Collections.Generic.IList? fileSearchStoreNames, int? topK, - global::System.Collections.Generic.IList? fileSearchStoreNames) + string? metadataFilter) { - this.MetadataFilter = metadataFilter; - this.TopK = topK; this.FileSearchStoreNames = fileSearchStoreNames; + this.TopK = topK; + this.MetadataFilter = metadataFilter; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearchStore.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearchStore.g.cs index f63b87f1d..b07f665fc 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearchStore.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearchStore.g.cs @@ -8,6 +8,27 @@ namespace Google.Gemini /// public sealed partial class FileSearchStore { + /// + /// Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("activeDocumentsCount")] + public string? ActiveDocumentsCount { get; set; } + + /// + /// Output only. The Timestamp of when the `FileSearchStore` was last updated.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } + + /// + /// Output only. The number of documents in the `FileSearchStore` that are being processed.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("pendingDocumentsCount")] + public string? PendingDocumentsCount { get; set; } + /// /// Output only. The Timestamp of when the `FileSearchStore` was created.
/// Included only in responses @@ -16,11 +37,11 @@ public sealed partial class FileSearchStore public string? CreateTime { get; set; } /// - /// Output only. Immutable. Identifier. The `FileSearchStore` resource name. It is an ID (name excluding the "fileSearchStores/" prefix) that can contain up to 40 characters that are lowercase alphanumeric or dashes (-). It is output only. The unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/my-awesome-file-search-store-123a456b789c` If `display_name` is not provided, the name will be randomly generated.
+ /// Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] + public string? SizeBytes { get; set; } /// /// Optional. The human-readable display name for the `FileSearchStore`. The display name must be no more than 512 characters in length, including spaces. Example: "Docs on Semantic Retriever" @@ -35,18 +56,11 @@ public sealed partial class FileSearchStore public string? EmbeddingModel { get; set; } /// - /// Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("activeDocumentsCount")] - public string? ActiveDocumentsCount { get; set; } - - /// - /// Output only. The number of documents in the `FileSearchStore` that are being processed.
+ /// Output only. Immutable. Identifier. The `FileSearchStore` resource name. It is an ID (name excluding the "fileSearchStores/" prefix) that can contain up to 40 characters that are lowercase alphanumeric or dashes (-). It is output only. The unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/my-awesome-file-search-store-123a456b789c` If `display_name` is not provided, the name will be randomly generated.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("pendingDocumentsCount")] - public string? PendingDocumentsCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// Output only. The number of documents in the `FileSearchStore` that have failed processing.
@@ -55,20 +69,6 @@ public sealed partial class FileSearchStore [global::System.Text.Json.Serialization.JsonPropertyName("failedDocumentsCount")] public string? FailedDocumentsCount { get; set; } - /// - /// Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] - public string? SizeBytes { get; set; } - - /// - /// Output only. The Timestamp of when the `FileSearchStore` was last updated.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -78,12 +78,24 @@ public sealed partial class FileSearchStore /// /// Initializes a new instance of the class. /// + /// + /// Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.
+ /// Included only in responses + /// + /// + /// Output only. The Timestamp of when the `FileSearchStore` was last updated.
+ /// Included only in responses + /// + /// + /// Output only. The number of documents in the `FileSearchStore` that are being processed.
+ /// Included only in responses + /// /// /// Output only. The Timestamp of when the `FileSearchStore` was created.
/// Included only in responses /// - /// - /// Output only. Immutable. Identifier. The `FileSearchStore` resource name. It is an ID (name excluding the "fileSearchStores/" prefix) that can contain up to 40 characters that are lowercase alphanumeric or dashes (-). It is output only. The unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/my-awesome-file-search-store-123a456b789c` If `display_name` is not provided, the name will be randomly generated.
+ /// + /// Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.
/// Included only in responses /// /// @@ -92,49 +104,37 @@ public sealed partial class FileSearchStore /// /// Optional. The embedding model to use for the `FileSearchStore`. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`. If not specified, the default embedding model will be used. /// - /// - /// Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.
- /// Included only in responses - /// - /// - /// Output only. The number of documents in the `FileSearchStore` that are being processed.
+ /// + /// Output only. Immutable. Identifier. The `FileSearchStore` resource name. It is an ID (name excluding the "fileSearchStores/" prefix) that can contain up to 40 characters that are lowercase alphanumeric or dashes (-). It is output only. The unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/my-awesome-file-search-store-123a456b789c` If `display_name` is not provided, the name will be randomly generated.
/// Included only in responses /// /// /// Output only. The number of documents in the `FileSearchStore` that have failed processing.
/// Included only in responses /// - /// - /// Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.
- /// Included only in responses - /// - /// - /// Output only. The Timestamp of when the `FileSearchStore` was last updated.
- /// Included only in responses - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FileSearchStore( - string? createTime, - string? name, - string? displayName, - string? embeddingModel, string? activeDocumentsCount, + string? updateTime, string? pendingDocumentsCount, - string? failedDocumentsCount, + string? createTime, string? sizeBytes, - string? updateTime) + string? displayName, + string? embeddingModel, + string? name, + string? failedDocumentsCount) { + this.ActiveDocumentsCount = activeDocumentsCount; + this.UpdateTime = updateTime; + this.PendingDocumentsCount = pendingDocumentsCount; this.CreateTime = createTime; - this.Name = name; + this.SizeBytes = sizeBytes; this.DisplayName = displayName; this.EmbeddingModel = embeddingModel; - this.ActiveDocumentsCount = activeDocumentsCount; - this.PendingDocumentsCount = pendingDocumentsCount; + this.Name = name; this.FailedDocumentsCount = failedDocumentsCount; - this.SizeBytes = sizeBytes; - this.UpdateTime = updateTime; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCall.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCall.g.cs index ca8d29af4..f039747f0 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCall.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCall.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class FunctionCall { - /// - /// Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } - /// /// Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128. /// [global::System.Text.Json.Serialization.JsonPropertyName("name")] public string? Name { get; set; } + /// + /// Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + /// /// Optional. The function parameters and values in JSON object format. /// @@ -35,12 +35,12 @@ public sealed partial class FunctionCall /// /// Initializes a new instance of the class. /// - /// - /// Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`. - /// /// /// Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128. /// + /// + /// Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`. + /// /// /// Optional. The function parameters and values in JSON object format. /// @@ -48,12 +48,12 @@ public sealed partial class FunctionCall [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionCall( - string? id, string? name, + string? id, object? args) { - this.Id = id; this.Name = name; + this.Id = id; this.Args = args; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionDeclaration.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionDeclaration.g.cs index ec48b1384..6943eddcc 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionDeclaration.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionDeclaration.g.cs @@ -8,6 +8,13 @@ namespace Google.Gemini ///
public sealed partial class FunctionDeclaration { + /// + /// Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("behavior")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter))] + public global::Google.Gemini.FunctionDeclarationBehavior? Behavior { get; set; } + /// /// Required. The name of the function. Must be a-z, A-Z, 0-9, or contain underscores, colons, dots, and dashes, with a maximum length of 128. /// @@ -21,23 +28,10 @@ public sealed partial class FunctionDeclaration public global::Google.Gemini.Schema? Parameters { get; set; } /// - /// Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "integer" } }, "additionalProperties": false, "required": ["name", "age"], "propertyOrdering": ["name", "age"] } ``` This field is mutually exclusive with `parameters`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parametersJsonSchema")] - public object? ParametersJsonSchema { get; set; } - - /// - /// Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseJsonSchema")] - public object? ResponseJsonSchema { get; set; } - - /// - /// Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. + /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). /// - [global::System.Text.Json.Serialization.JsonPropertyName("behavior")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter))] - public global::Google.Gemini.FunctionDeclarationBehavior? Behavior { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + public global::Google.Gemini.Schema? Response { get; set; } /// /// Required. A brief description of the function. @@ -46,10 +40,16 @@ public sealed partial class FunctionDeclaration public string? Description { get; set; } /// - /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). + /// Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "integer" } }, "additionalProperties": false, "required": ["name", "age"], "propertyOrdering": ["name", "age"] } ``` This field is mutually exclusive with `parameters`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - public global::Google.Gemini.Schema? Response { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("parametersJsonSchema")] + public object? ParametersJsonSchema { get; set; } + + /// + /// Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("responseJsonSchema")] + public object? ResponseJsonSchema { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -60,46 +60,46 @@ public sealed partial class FunctionDeclaration /// /// Initializes a new instance of the class. /// + /// + /// Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. + /// /// /// Required. The name of the function. Must be a-z, A-Z, 0-9, or contain underscores, colons, dots, and dashes, with a maximum length of 128. /// /// /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). /// + /// + /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). + /// + /// + /// Required. A brief description of the function. + /// /// /// Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "integer" } }, "additionalProperties": false, "required": ["name", "age"], "propertyOrdering": ["name", "age"] } ``` This field is mutually exclusive with `parameters`. /// /// /// Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`. /// - /// - /// Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. - /// - /// - /// Required. A brief description of the function. - /// - /// - /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionDeclaration( + global::Google.Gemini.FunctionDeclarationBehavior? behavior, string? name, global::Google.Gemini.Schema? parameters, - object? parametersJsonSchema, - object? responseJsonSchema, - global::Google.Gemini.FunctionDeclarationBehavior? behavior, + global::Google.Gemini.Schema? response, string? description, - global::Google.Gemini.Schema? response) + object? parametersJsonSchema, + object? responseJsonSchema) { + this.Behavior = behavior; this.Name = name; this.Parameters = parameters; + this.Response = response; + this.Description = description; this.ParametersJsonSchema = parametersJsonSchema; this.ResponseJsonSchema = responseJsonSchema; - this.Behavior = behavior; - this.Description = description; - this.Response = response; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponse.g.cs index e99635a20..f9999886c 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponse.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class FunctionResponse { - /// - /// Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - /// /// Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE. /// @@ -22,10 +16,10 @@ public sealed partial class FunctionResponse public global::Google.Gemini.FunctionResponseScheduling? Scheduling { get; set; } /// - /// Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`. + /// Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types. /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("parts")] + public global::System.Collections.Generic.IList? Parts { get; set; } /// /// Required. The function response in JSON object format. Callers can use any keys of their choice that fit the function's syntax to return the function output, e.g. "output", "result", etc. In particular, if the function call failed to execute, the response can have an "error" key to return error details to the model. Multimedia can be included by using a subobject containing a single "$ref" key whose value is the `inline_data.display_name` of a `FunctionResponsePart` holding the multimedia. See https://ai.google.dev/gemini-api/docs/function-calling#multimodal. @@ -34,10 +28,16 @@ public sealed partial class FunctionResponse public object? Response { get; set; } /// - /// Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types. + /// Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("parts")] - public global::System.Collections.Generic.IList? Parts { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// Optional. Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished. This may still trigger the model generation. To avoid triggering the generation and finish the function call, additionally set `scheduling` to `SILENT`. @@ -54,20 +54,20 @@ public sealed partial class FunctionResponse /// /// Initializes a new instance of the class. /// - /// - /// Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128. - /// /// /// Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE. /// - /// - /// Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`. + /// + /// Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types. /// /// /// Required. The function response in JSON object format. Callers can use any keys of their choice that fit the function's syntax to return the function output, e.g. "output", "result", etc. In particular, if the function call failed to execute, the response can have an "error" key to return error details to the model. Multimedia can be included by using a subobject containing a single "$ref" key whose value is the `inline_data.display_name` of a `FunctionResponsePart` holding the multimedia. See https://ai.google.dev/gemini-api/docs/function-calling#multimodal. /// - /// - /// Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types. + /// + /// Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`. + /// + /// + /// Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128. /// /// /// Optional. Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished. This may still trigger the model generation. To avoid triggering the generation and finish the function call, additionally set `scheduling` to `SILENT`. @@ -76,18 +76,18 @@ public sealed partial class FunctionResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionResponse( - string? name, global::Google.Gemini.FunctionResponseScheduling? scheduling, - string? id, - object? response, global::System.Collections.Generic.IList? parts, + object? response, + string? id, + string? name, bool? willContinue) { - this.Name = name; this.Scheduling = scheduling; - this.Id = id; - this.Response = response; this.Parts = parts; + this.Response = response; + this.Id = id; + this.Name = name; this.WillContinue = willContinue; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponseBlob.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponseBlob.g.cs index 16da0f84b..de617a0d8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponseBlob.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponseBlob.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class FunctionResponseBlob { - /// - /// The IANA standard MIME type of the source data. Examples: - image/png - image/jpeg If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Supported file formats](https://ai.google.dev/gemini-api/docs/prompting_with_media#supported_file_formats). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] - public string? MimeType { get; set; } - /// /// Raw bytes for media formats. /// [global::System.Text.Json.Serialization.JsonPropertyName("data")] public byte[]? Data { get; set; } + /// + /// The IANA standard MIME type of the source data. Examples: - image/png - image/jpeg If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Supported file formats](https://ai.google.dev/gemini-api/docs/prompting_with_media#supported_file_formats). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] + public string? MimeType { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class FunctionResponseBlob /// /// Initializes a new instance of the class. /// - /// - /// The IANA standard MIME type of the source data. Examples: - image/png - image/jpeg If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Supported file formats](https://ai.google.dev/gemini-api/docs/prompting_with_media#supported_file_formats). - /// /// /// Raw bytes for media formats. /// + /// + /// The IANA standard MIME type of the source data. Examples: - image/png - image/jpeg If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Supported file formats](https://ai.google.dev/gemini-api/docs/prompting_with_media#supported_file_formats). + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionResponseBlob( - string? mimeType, - byte[]? data) + byte[]? data, + string? mimeType) { - this.MimeType = mimeType; this.Data = data; + this.MimeType = mimeType; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatch.g.cs index bfee259b7..18ea6ff8f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatch.g.cs @@ -9,33 +9,25 @@ namespace Google.Gemini public sealed partial class GenerateContentBatch { /// - /// Output only. The state of the batch.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("state")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter))] - public global::Google.Gemini.GenerateContentBatchState? State { get; set; } - - /// - /// Output only. The time at which the batch was created.
+ /// Output only. The time at which the batch was last updated.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } /// - /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
- /// Included only in responses + /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("priority")] + public string? Priority { get; set; } /// - /// Output only. The time at which the batch processing completed.
+ /// Output only. The state of the batch.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("endTime")] - public string? EndTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("state")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter))] + public global::Google.Gemini.GenerateContentBatchState? State { get; set; } /// /// Required. The user-defined name of this batch. @@ -43,12 +35,6 @@ public sealed partial class GenerateContentBatch [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] public string? DisplayName { get; set; } - /// - /// Stats about the batch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("batchStats")] - public global::Google.Gemini.BatchStats? BatchStats { get; set; } - /// /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. /// @@ -56,23 +42,31 @@ public sealed partial class GenerateContentBatch public global::Google.Gemini.GenerateContentBatchOutput? Output { get; set; } /// - /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. + /// Output only. The time at which the batch was created.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("priority")] - public string? Priority { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// Stats about the batch. /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("batchStats")] + public global::Google.Gemini.BatchStats? BatchStats { get; set; } /// - /// Output only. The time at which the batch was last updated.
+ /// Output only. The time at which the batch processing completed.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("endTime")] + public string? EndTime { get; set; } + + /// + /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// Configures the input to the batch request. @@ -80,6 +74,12 @@ public sealed partial class GenerateContentBatch [global::System.Text.Json.Serialization.JsonPropertyName("inputConfig")] public global::Google.Gemini.InputConfig? InputConfig { get; set; } + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -89,71 +89,71 @@ public sealed partial class GenerateContentBatch /// /// Initializes a new instance of the class. /// - /// - /// Output only. The state of the batch.
- /// Included only in responses - /// - /// - /// Output only. The time at which the batch was created.
+ /// + /// Output only. The time at which the batch was last updated.
/// Included only in responses /// - /// - /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
- /// Included only in responses + /// + /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. /// - /// - /// Output only. The time at which the batch processing completed.
+ /// + /// Output only. The state of the batch.
/// Included only in responses /// /// /// Required. The user-defined name of this batch. /// - /// - /// Stats about the batch. - /// /// /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. /// - /// - /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. + /// + /// Output only. The time at which the batch was created.
+ /// Included only in responses /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Stats about the batch. /// - /// - /// Output only. The time at which the batch was last updated.
+ /// + /// Output only. The time at which the batch processing completed.
+ /// Included only in responses + /// + /// + /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
/// Included only in responses /// /// /// Configures the input to the batch request. /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerateContentBatch( + string? updateTime, + string? priority, global::Google.Gemini.GenerateContentBatchState? state, - string? createTime, - string? name, - string? endTime, string? displayName, - global::Google.Gemini.BatchStats? batchStats, global::Google.Gemini.GenerateContentBatchOutput? output, - string? priority, - string? model, - string? updateTime, - global::Google.Gemini.InputConfig? inputConfig) + string? createTime, + global::Google.Gemini.BatchStats? batchStats, + string? endTime, + string? name, + global::Google.Gemini.InputConfig? inputConfig, + string? model) { + this.UpdateTime = updateTime; + this.Priority = priority; this.State = state; - this.CreateTime = createTime; - this.Name = name; - this.EndTime = endTime; this.DisplayName = displayName; - this.BatchStats = batchStats; this.Output = output; - this.Priority = priority; - this.Model = model; - this.UpdateTime = updateTime; + this.CreateTime = createTime; + this.BatchStats = batchStats; + this.EndTime = endTime; + this.Name = name; this.InputConfig = inputConfig; + this.Model = model; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatchOutput.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatchOutput.g.cs index bb0201655..c34eb311c 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatchOutput.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatchOutput.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class GenerateContentBatchOutput { + /// + /// The responses to the requests in the batch. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inlinedResponses")] + public global::Google.Gemini.InlinedResponses? InlinedResponses { get; set; } + /// /// Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `GenerateContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests.
/// Included only in responses @@ -15,12 +21,6 @@ public sealed partial class GenerateContentBatchOutput [global::System.Text.Json.Serialization.JsonPropertyName("responsesFile")] public string? ResponsesFile { get; set; } - /// - /// The responses to the requests in the batch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("inlinedResponses")] - public global::Google.Gemini.InlinedResponses? InlinedResponses { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,22 +30,22 @@ public sealed partial class GenerateContentBatchOutput /// /// Initializes a new instance of the class. /// + /// + /// The responses to the requests in the batch. + /// /// /// Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `GenerateContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests.
/// Included only in responses /// - /// - /// The responses to the requests in the batch. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerateContentBatchOutput( - string? responsesFile, - global::Google.Gemini.InlinedResponses? inlinedResponses) + global::Google.Gemini.InlinedResponses? inlinedResponses, + string? responsesFile) { - this.ResponsesFile = responsesFile; this.InlinedResponses = inlinedResponses; + this.ResponsesFile = responsesFile; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentRequest.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentRequest.g.cs index 117754a1e..51898e1e4 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentRequest.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentRequest.g.cs @@ -9,16 +9,16 @@ namespace Google.Gemini public sealed partial class GenerateContentRequest { /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - [global::System.Text.Json.Serialization.JsonPropertyName("generationConfig")] - public global::Google.Gemini.GenerationConfig? GenerationConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("toolConfig")] + public global::Google.Gemini.ToolConfig? ToolConfig { get; set; } /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// - [global::System.Text.Json.Serialization.JsonPropertyName("contents")] - public global::System.Collections.Generic.IList? Contents { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. @@ -27,34 +27,35 @@ public sealed partial class GenerateContentRequest public bool? Store { get; set; } /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - [global::System.Text.Json.Serialization.JsonPropertyName("cachedContent")] - public string? CachedContent { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("continuationToken")] + public byte[]? ContinuationToken { get; set; } /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("systemInstruction")] - public global::Google.Gemini.Content? SystemInstruction { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("generationConfig")] + public global::Google.Gemini.GenerationConfig? GenerationConfig { get; set; } /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("safetySettings")] + public global::System.Collections.Generic.IList? SafetySettings { get; set; } /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// Optional. The service tier of the request. /// - [global::System.Text.Json.Serialization.JsonPropertyName("continuationToken")] - public byte[]? ContinuationToken { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("serviceTier")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter))] + public global::Google.Gemini.GenerateContentRequestServiceTier? ServiceTier { get; set; } /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolConfig")] - public global::Google.Gemini.ToolConfig? ToolConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("systemInstruction")] + public global::Google.Gemini.Content? SystemInstruction { get; set; } /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) @@ -63,23 +64,22 @@ public sealed partial class GenerateContentRequest public global::System.Collections.Generic.Dictionary? Labels { get; set; } /// - /// Optional. The service tier of the request. + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("serviceTier")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter))] - public global::Google.Gemini.GenerateContentRequestServiceTier? ServiceTier { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - [global::System.Text.Json.Serialization.JsonPropertyName("safetySettings")] - public global::System.Collections.Generic.IList? SafetySettings { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("cachedContent")] + public string? CachedContent { get; set; } /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("contents")] + public global::System.Collections.Generic.IList? Contents { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -90,71 +90,71 @@ public sealed partial class GenerateContentRequest /// /// Initializes a new instance of the class. /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. + /// + /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request. + /// + /// Optional. The service tier of the request. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`) /// - /// - /// Optional. The service tier of the request. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - /// - /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. + /// + /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerateContentRequest( - global::Google.Gemini.GenerationConfig? generationConfig, - global::System.Collections.Generic.IList? contents, + global::Google.Gemini.ToolConfig? toolConfig, + global::System.Collections.Generic.IList? tools, bool? store, - string? cachedContent, - global::Google.Gemini.Content? systemInstruction, - string? model, byte[]? continuationToken, - global::Google.Gemini.ToolConfig? toolConfig, - global::System.Collections.Generic.Dictionary? labels, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier, + global::Google.Gemini.GenerationConfig? generationConfig, global::System.Collections.Generic.IList? safetySettings, - global::System.Collections.Generic.IList? tools) + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier, + global::Google.Gemini.Content? systemInstruction, + global::System.Collections.Generic.Dictionary? labels, + string? model, + string? cachedContent, + global::System.Collections.Generic.IList? contents) { - this.GenerationConfig = generationConfig; - this.Contents = contents; + this.ToolConfig = toolConfig; + this.Tools = tools; this.Store = store; - this.CachedContent = cachedContent; - this.SystemInstruction = systemInstruction; - this.Model = model; this.ContinuationToken = continuationToken; - this.ToolConfig = toolConfig; - this.Labels = labels; - this.ServiceTier = serviceTier; + this.GenerationConfig = generationConfig; this.SafetySettings = safetySettings; - this.Tools = tools; + this.ServiceTier = serviceTier; + this.SystemInstruction = systemInstruction; + this.Labels = labels; + this.Model = model; + this.CachedContent = cachedContent; + this.Contents = contents; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentResponse.g.cs index bee32ad6b..f80f35659 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentResponse.g.cs @@ -9,23 +9,17 @@ namespace Google.Gemini public sealed partial class GenerateContentResponse { /// - /// Metadata on the generation request's token usage. + /// Candidate responses from the model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("usageMetadata")] - public global::Google.Gemini.UsageMetadata? UsageMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("candidates")] + public global::System.Collections.Generic.IList? Candidates { get; set; } /// - /// Output only. The model version used to generate the response.
+ /// Output only. response_id is used to identify each response.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("modelVersion")] - public string? ModelVersion { get; set; } - - /// - /// A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("promptFeedback")] - public global::Google.Gemini.PromptFeedback? PromptFeedback { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseId")] + public string? ResponseId { get; set; } /// /// The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable. @@ -34,17 +28,23 @@ public sealed partial class GenerateContentResponse public global::Google.Gemini.ModelStatus? ModelStatus { get; set; } /// - /// Candidate responses from the model. + /// Output only. The model version used to generate the response.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("candidates")] - public global::System.Collections.Generic.IList? Candidates { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("modelVersion")] + public string? ModelVersion { get; set; } /// - /// Output only. response_id is used to identify each response.
- /// Included only in responses + /// A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("responseId")] - public string? ResponseId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("promptFeedback")] + public global::Google.Gemini.PromptFeedback? PromptFeedback { get; set; } + + /// + /// Metadata on the generation request's token usage. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("usageMetadata")] + public global::Google.Gemini.UsageMetadata? UsageMetadata { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -55,8 +55,15 @@ public sealed partial class GenerateContentResponse /// /// Initializes a new instance of the class. /// - /// - /// Metadata on the generation request's token usage. + /// + /// Candidate responses from the model. + /// + /// + /// Output only. response_id is used to identify each response.
+ /// Included only in responses + /// + /// + /// The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable. /// /// /// Output only. The model version used to generate the response.
@@ -65,33 +72,26 @@ public sealed partial class GenerateContentResponse /// /// A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`. /// - /// - /// The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable. - /// - /// - /// Candidate responses from the model. - /// - /// - /// Output only. response_id is used to identify each response.
- /// Included only in responses + /// + /// Metadata on the generation request's token usage. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerateContentResponse( - global::Google.Gemini.UsageMetadata? usageMetadata, + global::System.Collections.Generic.IList? candidates, + string? responseId, + global::Google.Gemini.ModelStatus? modelStatus, string? modelVersion, global::Google.Gemini.PromptFeedback? promptFeedback, - global::Google.Gemini.ModelStatus? modelStatus, - global::System.Collections.Generic.IList? candidates, - string? responseId) + global::Google.Gemini.UsageMetadata? usageMetadata) { - this.UsageMetadata = usageMetadata; - this.ModelVersion = modelVersion; - this.PromptFeedback = promptFeedback; - this.ModelStatus = modelStatus; this.Candidates = candidates; this.ResponseId = responseId; + this.ModelStatus = modelStatus; + this.ModelVersion = modelVersion; + this.PromptFeedback = promptFeedback; + this.UsageMetadata = usageMetadata; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GeneratedFile.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GeneratedFile.g.cs index 892e937f5..c0eca73d8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GeneratedFile.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GeneratedFile.g.cs @@ -14,12 +14,6 @@ public sealed partial class GeneratedFile [global::System.Text.Json.Serialization.JsonPropertyName("name")] public string? Name { get; set; } - /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public global::Google.Gemini.Status? Error { get; set; } - /// /// MIME type of the generatedFile. /// @@ -34,6 +28,12 @@ public sealed partial class GeneratedFile [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter))] public global::Google.Gemini.GeneratedFileState? State { get; set; } + /// + /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public global::Google.Gemini.Status? Error { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -46,9 +46,6 @@ public sealed partial class GeneratedFile /// /// Identifier. The name of the generated file. Example: `generatedFiles/abc-123` /// - /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). - /// /// /// MIME type of the generatedFile. /// @@ -56,19 +53,22 @@ public sealed partial class GeneratedFile /// Output only. The state of the GeneratedFile.
/// Included only in responses /// + /// + /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GeneratedFile( string? name, - global::Google.Gemini.Status? error, string? mimeType, - global::Google.Gemini.GeneratedFileState? state) + global::Google.Gemini.GeneratedFileState? state, + global::Google.Gemini.Status? error) { this.Name = name; - this.Error = error; this.MimeType = mimeType; this.State = state; + this.Error = error; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfig.g.cs index 025115120..3aba26ea2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfig.g.cs @@ -9,149 +9,149 @@ namespace Google.Gemini public sealed partial class GenerationConfig { /// - /// Optional. The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a `stop_sequence`. The stop sequence will not be included as part of the response. + /// Config for image generation features. /// - [global::System.Text.Json.Serialization.JsonPropertyName("stopSequences")] - public global::System.Collections.Generic.IList? StopSequences { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("imageConfig")] + public global::Google.Gemini.ImageConfig? ImageConfig { get; set; } /// - /// Optional. The maximum number of tokens to include in a response candidate. Note: The default value varies by model, see the `Model.output_token_limit` attribute of the `Model` returned from the `getModel` function. + /// Optional. If true, export the logprobs results in response. /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxOutputTokens")] - public int? MaxOutputTokens { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseLogprobs")] + public bool? ResponseLogprobs { get; set; } /// - /// Optional. If specified, the media resolution specified will be used. + /// The audio transcription configuration. /// - [global::System.Text.Json.Serialization.JsonPropertyName("mediaResolution")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter))] - public global::Google.Gemini.GenerationConfigMediaResolution? MediaResolution { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("audioTranscriptionConfig")] + public global::Google.Gemini.AudioTranscriptionConfig? AudioTranscriptionConfig { get; set; } /// - /// Optional. Seed used in decoding. If not set, the request uses a randomly generated seed. + /// Optional. The maximum number of tokens to include in a response candidate. Note: The default value varies by model, see the `Model.output_token_limit` attribute of the `Model` returned from the `getModel` function. /// - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public int? Seed { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxOutputTokens")] + public int? MaxOutputTokens { get; set; } /// - /// Optional. Only valid if response_logprobs=True. This sets the number of top logprobs, including the chosen candidate, to return at each decoding step in the Candidate.logprobs_result. The number must be in the range of [0, 20]. + /// Optional. Enables enhanced civic answers. It may not be available for all models. /// - [global::System.Text.Json.Serialization.JsonPropertyName("logprobs")] - public int? Logprobs { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enableEnhancedCivicAnswers")] + public bool? EnableEnhancedCivicAnswers { get; set; } /// - /// Config for image generation features. + /// Optional. Only valid if response_logprobs=True. This sets the number of top logprobs, including the chosen candidate, to return at each decoding step in the Candidate.logprobs_result. The number must be in the range of [0, 20]. /// - [global::System.Text.Json.Serialization.JsonPropertyName("imageConfig")] - public global::Google.Gemini.ImageConfig? ImageConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("logprobs")] + public int? Logprobs { get; set; } /// - /// Config for thinking features. + /// Optional. Presence penalty applied to the next token's logprobs if the token has already been seen in the response. This penalty is binary on/off and not dependant on the number of times the token is used (after the first). Use frequency_penalty for a penalty that increases with each use. A positive penalty will discourage the use of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will encourage the use of tokens that have already been used in the response, decreasing the vocabulary. /// - [global::System.Text.Json.Serialization.JsonPropertyName("thinkingConfig")] - public global::Google.Gemini.ThinkingConfig? ThinkingConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("presencePenalty")] + public float? PresencePenalty { get; set; } /// - /// Optional. Enables enhanced civic answers. It may not be available for all models. + /// Optional. Frequency penalty applied to the next token's logprobs, multiplied by the number of times each token has been seen in the respponse so far. A positive penalty will discourage the use of tokens that have already been used, proportional to the number of times the token has been used: The more a token is used, the more difficult it is for the model to use that token again increasing the vocabulary of responses. Caution: A _negative_ penalty will encourage the model to reuse tokens proportional to the number of times the token has been used. Small negative values will reduce the vocabulary of a response. Larger negative values will cause the model to start repeating a common token until it hits the max_output_tokens limit. /// - [global::System.Text.Json.Serialization.JsonPropertyName("enableEnhancedCivicAnswers")] - public bool? EnableEnhancedCivicAnswers { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("frequencyPenalty")] + public float? FrequencyPenalty { get; set; } /// - /// Optional. The maximum number of tokens to consider when sampling. Gemini models use Top-p (nucleus) sampling or a combination of Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Models running with nucleus sampling don't allow top_k setting. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models. + /// Optional. If specified, the media resolution specified will be used. /// - [global::System.Text.Json.Serialization.JsonPropertyName("topK")] - public int? TopK { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mediaResolution")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter))] + public global::Google.Gemini.GenerationConfigMediaResolution? MediaResolution { get; set; } /// - /// Config for translation features. + /// Optional. The requested modalities of the response. Represents the set of modalities that the model can return, and should be expected in the response. This is an exact match to the modalities of the response. A model may have multiple combinations of supported modalities. If the requested modalities do not match any of the supported combinations, an error will be returned. An empty list is equivalent to requesting only text. /// - [global::System.Text.Json.Serialization.JsonPropertyName("translationConfig")] - public global::Google.Gemini.TranslationConfig? TranslationConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseModalities")] + public global::System.Collections.Generic.IList? ResponseModalities { get; set; } /// - /// Optional. If enabled, the model will detect emotions and adapt its responses accordingly. + /// Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and Top-p (nucleus) sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits the number of tokens based on the cumulative probability. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models. /// - [global::System.Text.Json.Serialization.JsonPropertyName("enableAffectiveDialog")] - public bool? EnableAffectiveDialog { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("topP")] + public float? TopP { get; set; } /// - /// Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0]. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models. + /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public float? Temperature { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseSchema")] + public global::Google.Gemini.Schema? ResponseSchema { get; set; } /// - /// Optional. An internal detail. Use `responseJsonSchema` rather than this field. + /// Config for speech generation and transcription. /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseJsonSchema")] - public object? ResponseJsonSchema { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("speechConfig")] + public global::Google.Gemini.SpeechConfig? SpeechConfig { get; set; } /// - /// Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality. + /// Optional. Seed used in decoding. If not set, the request uses a randomly generated seed. /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseFormat")] - public global::Google.Gemini.ResponseFormatConfig? ResponseFormat { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("seed")] + public int? Seed { get; set; } /// - /// Optional. MIME type of the generated candidate text. Supported MIME types are: `text/plain`: (default) Text output. `application/json`: JSON response in the response candidates. `text/x.enum`: ENUM as a string response in the response candidates. Refer to the [docs](https://ai.google.dev/gemini-api/docs/prompting_with_media#plain_text_formats) for a list of all supported text MIME types. + /// Optional. The maximum number of tokens to consider when sampling. Gemini models use Top-p (nucleus) sampling or a combination of Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Models running with nucleus sampling don't allow top_k setting. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models. /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseMimeType")] - public string? ResponseMimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("topK")] + public int? TopK { get; set; } /// - /// Optional. Frequency penalty applied to the next token's logprobs, multiplied by the number of times each token has been seen in the respponse so far. A positive penalty will discourage the use of tokens that have already been used, proportional to the number of times the token has been used: The more a token is used, the more difficult it is for the model to use that token again increasing the vocabulary of responses. Caution: A _negative_ penalty will encourage the model to reuse tokens proportional to the number of times the token has been used. Small negative values will reduce the vocabulary of a response. Larger negative values will cause the model to start repeating a common token until it hits the max_output_tokens limit. + /// Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family) /// - [global::System.Text.Json.Serialization.JsonPropertyName("frequencyPenalty")] - public float? FrequencyPenalty { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("candidateCount")] + public int? CandidateCount { get; set; } /// - /// Optional. If true, export the logprobs results in response. + /// Config for thinking features. /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseLogprobs")] - public bool? ResponseLogprobs { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("thinkingConfig")] + public global::Google.Gemini.ThinkingConfig? ThinkingConfig { get; set; } /// - /// Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and Top-p (nucleus) sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits the number of tokens based on the cumulative probability. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models. + /// Optional. An internal detail. Use `responseJsonSchema` rather than this field. /// - [global::System.Text.Json.Serialization.JsonPropertyName("topP")] - public float? TopP { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseJsonSchema")] + public object? ResponseJsonSchema { get; set; } /// - /// Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family) + /// Optional. MIME type of the generated candidate text. Supported MIME types are: `text/plain`: (default) Text output. `application/json`: JSON response in the response candidates. `text/x.enum`: ENUM as a string response in the response candidates. Refer to the [docs](https://ai.google.dev/gemini-api/docs/prompting_with_media#plain_text_formats) for a list of all supported text MIME types. /// - [global::System.Text.Json.Serialization.JsonPropertyName("candidateCount")] - public int? CandidateCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseMimeType")] + public string? ResponseMimeType { get; set; } /// - /// Optional. Presence penalty applied to the next token's logprobs if the token has already been seen in the response. This penalty is binary on/off and not dependant on the number of times the token is used (after the first). Use frequency_penalty for a penalty that increases with each use. A positive penalty will discourage the use of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will encourage the use of tokens that have already been used in the response, decreasing the vocabulary. + /// Config for translation features. /// - [global::System.Text.Json.Serialization.JsonPropertyName("presencePenalty")] - public float? PresencePenalty { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("translationConfig")] + public global::Google.Gemini.TranslationConfig? TranslationConfig { get; set; } /// - /// The audio transcription configuration. + /// Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality. /// - [global::System.Text.Json.Serialization.JsonPropertyName("audioTranscriptionConfig")] - public global::Google.Gemini.AudioTranscriptionConfig? AudioTranscriptionConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseFormat")] + public global::Google.Gemini.ResponseFormatConfig? ResponseFormat { get; set; } /// - /// Config for speech generation and transcription. + /// Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0]. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models. /// - [global::System.Text.Json.Serialization.JsonPropertyName("speechConfig")] - public global::Google.Gemini.SpeechConfig? SpeechConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public float? Temperature { get; set; } /// - /// Optional. The requested modalities of the response. Represents the set of modalities that the model can return, and should be expected in the response. This is an exact match to the modalities of the response. A model may have multiple combinations of supported modalities. If the requested modalities do not match any of the supported combinations, an error will be returned. An empty list is equivalent to requesting only text. + /// Optional. The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a `stop_sequence`. The stop sequence will not be included as part of the response. /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseModalities")] - public global::System.Collections.Generic.IList? ResponseModalities { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("stopSequences")] + public global::System.Collections.Generic.IList? StopSequences { get; set; } /// - /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). + /// Optional. If enabled, the model will detect emotions and adapt its responses accordingly. /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseSchema")] - public global::Google.Gemini.Schema? ResponseSchema { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enableAffectiveDialog")] + public bool? EnableAffectiveDialog { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -162,131 +162,131 @@ public sealed partial class GenerationConfig /// /// Initializes a new instance of the class. /// - /// - /// Optional. The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a `stop_sequence`. The stop sequence will not be included as part of the response. + /// + /// Config for image generation features. + /// + /// + /// Optional. If true, export the logprobs results in response. + /// + /// + /// The audio transcription configuration. /// /// /// Optional. The maximum number of tokens to include in a response candidate. Note: The default value varies by model, see the `Model.output_token_limit` attribute of the `Model` returned from the `getModel` function. /// + /// + /// Optional. Enables enhanced civic answers. It may not be available for all models. + /// + /// + /// Optional. Only valid if response_logprobs=True. This sets the number of top logprobs, including the chosen candidate, to return at each decoding step in the Candidate.logprobs_result. The number must be in the range of [0, 20]. + /// + /// + /// Optional. Presence penalty applied to the next token's logprobs if the token has already been seen in the response. This penalty is binary on/off and not dependant on the number of times the token is used (after the first). Use frequency_penalty for a penalty that increases with each use. A positive penalty will discourage the use of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will encourage the use of tokens that have already been used in the response, decreasing the vocabulary. + /// + /// + /// Optional. Frequency penalty applied to the next token's logprobs, multiplied by the number of times each token has been seen in the respponse so far. A positive penalty will discourage the use of tokens that have already been used, proportional to the number of times the token has been used: The more a token is used, the more difficult it is for the model to use that token again increasing the vocabulary of responses. Caution: A _negative_ penalty will encourage the model to reuse tokens proportional to the number of times the token has been used. Small negative values will reduce the vocabulary of a response. Larger negative values will cause the model to start repeating a common token until it hits the max_output_tokens limit. + /// /// /// Optional. If specified, the media resolution specified will be used. /// - /// - /// Optional. Seed used in decoding. If not set, the request uses a randomly generated seed. + /// + /// Optional. The requested modalities of the response. Represents the set of modalities that the model can return, and should be expected in the response. This is an exact match to the modalities of the response. A model may have multiple combinations of supported modalities. If the requested modalities do not match any of the supported combinations, an error will be returned. An empty list is equivalent to requesting only text. /// - /// - /// Optional. Only valid if response_logprobs=True. This sets the number of top logprobs, including the chosen candidate, to return at each decoding step in the Candidate.logprobs_result. The number must be in the range of [0, 20]. + /// + /// Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and Top-p (nucleus) sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits the number of tokens based on the cumulative probability. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models. /// - /// - /// Config for image generation features. + /// + /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). /// - /// - /// Config for thinking features. + /// + /// Config for speech generation and transcription. /// - /// - /// Optional. Enables enhanced civic answers. It may not be available for all models. + /// + /// Optional. Seed used in decoding. If not set, the request uses a randomly generated seed. /// /// /// Optional. The maximum number of tokens to consider when sampling. Gemini models use Top-p (nucleus) sampling or a combination of Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Models running with nucleus sampling don't allow top_k setting. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models. /// - /// - /// Config for translation features. - /// - /// - /// Optional. If enabled, the model will detect emotions and adapt its responses accordingly. + /// + /// Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family) /// - /// - /// Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0]. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models. + /// + /// Config for thinking features. /// /// /// Optional. An internal detail. Use `responseJsonSchema` rather than this field. /// - /// - /// Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality. - /// /// /// Optional. MIME type of the generated candidate text. Supported MIME types are: `text/plain`: (default) Text output. `application/json`: JSON response in the response candidates. `text/x.enum`: ENUM as a string response in the response candidates. Refer to the [docs](https://ai.google.dev/gemini-api/docs/prompting_with_media#plain_text_formats) for a list of all supported text MIME types. /// - /// - /// Optional. Frequency penalty applied to the next token's logprobs, multiplied by the number of times each token has been seen in the respponse so far. A positive penalty will discourage the use of tokens that have already been used, proportional to the number of times the token has been used: The more a token is used, the more difficult it is for the model to use that token again increasing the vocabulary of responses. Caution: A _negative_ penalty will encourage the model to reuse tokens proportional to the number of times the token has been used. Small negative values will reduce the vocabulary of a response. Larger negative values will cause the model to start repeating a common token until it hits the max_output_tokens limit. - /// - /// - /// Optional. If true, export the logprobs results in response. - /// - /// - /// Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and Top-p (nucleus) sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits the number of tokens based on the cumulative probability. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models. - /// - /// - /// Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family) - /// - /// - /// Optional. Presence penalty applied to the next token's logprobs if the token has already been seen in the response. This penalty is binary on/off and not dependant on the number of times the token is used (after the first). Use frequency_penalty for a penalty that increases with each use. A positive penalty will discourage the use of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will encourage the use of tokens that have already been used in the response, decreasing the vocabulary. + /// + /// Config for translation features. /// - /// - /// The audio transcription configuration. + /// + /// Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality. /// - /// - /// Config for speech generation and transcription. + /// + /// Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0]. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models. /// - /// - /// Optional. The requested modalities of the response. Represents the set of modalities that the model can return, and should be expected in the response. This is an exact match to the modalities of the response. A model may have multiple combinations of supported modalities. If the requested modalities do not match any of the supported combinations, an error will be returned. An empty list is equivalent to requesting only text. + /// + /// Optional. The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a `stop_sequence`. The stop sequence will not be included as part of the response. /// - /// - /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). + /// + /// Optional. If enabled, the model will detect emotions and adapt its responses accordingly. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerationConfig( - global::System.Collections.Generic.IList? stopSequences, + global::Google.Gemini.ImageConfig? imageConfig, + bool? responseLogprobs, + global::Google.Gemini.AudioTranscriptionConfig? audioTranscriptionConfig, int? maxOutputTokens, + bool? enableEnhancedCivicAnswers, + int? logprobs, + float? presencePenalty, + float? frequencyPenalty, global::Google.Gemini.GenerationConfigMediaResolution? mediaResolution, + global::System.Collections.Generic.IList? responseModalities, + float? topP, + global::Google.Gemini.Schema? responseSchema, + global::Google.Gemini.SpeechConfig? speechConfig, int? seed, - int? logprobs, - global::Google.Gemini.ImageConfig? imageConfig, - global::Google.Gemini.ThinkingConfig? thinkingConfig, - bool? enableEnhancedCivicAnswers, int? topK, - global::Google.Gemini.TranslationConfig? translationConfig, - bool? enableAffectiveDialog, - float? temperature, + int? candidateCount, + global::Google.Gemini.ThinkingConfig? thinkingConfig, object? responseJsonSchema, - global::Google.Gemini.ResponseFormatConfig? responseFormat, string? responseMimeType, - float? frequencyPenalty, - bool? responseLogprobs, - float? topP, - int? candidateCount, - float? presencePenalty, - global::Google.Gemini.AudioTranscriptionConfig? audioTranscriptionConfig, - global::Google.Gemini.SpeechConfig? speechConfig, - global::System.Collections.Generic.IList? responseModalities, - global::Google.Gemini.Schema? responseSchema) + global::Google.Gemini.TranslationConfig? translationConfig, + global::Google.Gemini.ResponseFormatConfig? responseFormat, + float? temperature, + global::System.Collections.Generic.IList? stopSequences, + bool? enableAffectiveDialog) { - this.StopSequences = stopSequences; + this.ImageConfig = imageConfig; + this.ResponseLogprobs = responseLogprobs; + this.AudioTranscriptionConfig = audioTranscriptionConfig; this.MaxOutputTokens = maxOutputTokens; + this.EnableEnhancedCivicAnswers = enableEnhancedCivicAnswers; + this.Logprobs = logprobs; + this.PresencePenalty = presencePenalty; + this.FrequencyPenalty = frequencyPenalty; this.MediaResolution = mediaResolution; + this.ResponseModalities = responseModalities; + this.TopP = topP; + this.ResponseSchema = responseSchema; + this.SpeechConfig = speechConfig; this.Seed = seed; - this.Logprobs = logprobs; - this.ImageConfig = imageConfig; - this.ThinkingConfig = thinkingConfig; - this.EnableEnhancedCivicAnswers = enableEnhancedCivicAnswers; this.TopK = topK; - this.TranslationConfig = translationConfig; - this.EnableAffectiveDialog = enableAffectiveDialog; - this.Temperature = temperature; + this.CandidateCount = candidateCount; + this.ThinkingConfig = thinkingConfig; this.ResponseJsonSchema = responseJsonSchema; - this.ResponseFormat = responseFormat; this.ResponseMimeType = responseMimeType; - this.FrequencyPenalty = frequencyPenalty; - this.ResponseLogprobs = responseLogprobs; - this.TopP = topP; - this.CandidateCount = candidateCount; - this.PresencePenalty = presencePenalty; - this.AudioTranscriptionConfig = audioTranscriptionConfig; - this.SpeechConfig = speechConfig; - this.ResponseModalities = responseModalities; - this.ResponseSchema = responseSchema; + this.TranslationConfig = translationConfig; + this.ResponseFormat = responseFormat; + this.Temperature = temperature; + this.StopSequences = stopSequences; + this.EnableAffectiveDialog = enableAffectiveDialog; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GetEnvironmentFilesResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GetEnvironmentFilesResponse.g.cs index 7453fb0f8..7e418d9f4 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GetEnvironmentFilesResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GetEnvironmentFilesResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class GetEnvironmentFilesResponse { - /// - /// Pagination token for directory listing. NOLINT - /// - [global::System.Text.Json.Serialization.JsonPropertyName("next_page_token")] - public string? NextPageToken { get; set; } - /// /// If the requested path is a directory, this contains its contents. If the requested path is a file, this contains a single entry with the file's metadata. If alt=media was specified, this is empty (content is served via `blob`). /// [global::System.Text.Json.Serialization.JsonPropertyName("files")] public global::System.Collections.Generic.IList? Files { get; set; } + /// + /// Pagination token for directory listing. NOLINT + /// + [global::System.Text.Json.Serialization.JsonPropertyName("next_page_token")] + public string? NextPageToken { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class GetEnvironmentFilesResponse /// /// Initializes a new instance of the class. /// - /// - /// Pagination token for directory listing. NOLINT - /// /// /// If the requested path is a directory, this contains its contents. If the requested path is a file, this contains a single entry with the file's metadata. If alt=media was specified, this is empty (content is served via `blob`). /// + /// + /// Pagination token for directory listing. NOLINT + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetEnvironmentFilesResponse( - string? nextPageToken, - global::System.Collections.Generic.IList? files) + global::System.Collections.Generic.IList? files, + string? nextPageToken) { - this.NextPageToken = nextPageToken; this.Files = files; + this.NextPageToken = nextPageToken; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaGroundingSupport.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaGroundingSupport.g.cs index da37cfc24..b34f65568 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaGroundingSupport.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaGroundingSupport.g.cs @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class GoogleAiGenerativelanguageV1betaGroundingSupport { /// - /// Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. If the response is streaming, the grounding_chunk_indices refer to the indices across all responses. It is the client's responsibility to accumulate the grounding chunks from all responses (while maintaining the same order). + /// Segment of the content. /// - [global::System.Text.Json.Serialization.JsonPropertyName("groundingChunkIndices")] - public global::System.Collections.Generic.IList? GroundingChunkIndices { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("segment")] + public global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? Segment { get; set; } /// /// Optional. Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices. @@ -28,10 +28,10 @@ public sealed partial class GoogleAiGenerativelanguageV1betaGroundingSupport public global::System.Collections.Generic.IList? RenderedParts { get; set; } /// - /// Segment of the content. + /// Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. If the response is streaming, the grounding_chunk_indices refer to the indices across all responses. It is the client's responsibility to accumulate the grounding chunks from all responses (while maintaining the same order). /// - [global::System.Text.Json.Serialization.JsonPropertyName("segment")] - public global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? Segment { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("groundingChunkIndices")] + public global::System.Collections.Generic.IList? GroundingChunkIndices { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,8 +42,8 @@ public sealed partial class GoogleAiGenerativelanguageV1betaGroundingSupport /// /// Initializes a new instance of the class. /// - /// - /// Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. If the response is streaming, the grounding_chunk_indices refer to the indices across all responses. It is the client's responsibility to accumulate the grounding chunks from all responses (while maintaining the same order). + /// + /// Segment of the content. /// /// /// Optional. Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices. @@ -52,22 +52,22 @@ public sealed partial class GoogleAiGenerativelanguageV1betaGroundingSupport /// Output only. Indices into the `parts` field of the candidate's content. These indices specify which rendered parts are associated with this support source.
/// Included only in responses /// - /// - /// Segment of the content. + /// + /// Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. If the response is streaming, the grounding_chunk_indices refer to the indices across all responses. It is the client's responsibility to accumulate the grounding chunks from all responses (while maintaining the same order). /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GoogleAiGenerativelanguageV1betaGroundingSupport( - global::System.Collections.Generic.IList? groundingChunkIndices, + global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? segment, global::System.Collections.Generic.IList? confidenceScores, global::System.Collections.Generic.IList? renderedParts, - global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? segment) + global::System.Collections.Generic.IList? groundingChunkIndices) { - this.GroundingChunkIndices = groundingChunkIndices; + this.Segment = segment; this.ConfidenceScores = confidenceScores; this.RenderedParts = renderedParts; - this.Segment = segment; + this.GroundingChunkIndices = groundingChunkIndices; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaSegment.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaSegment.g.cs index 62fe2d98e..35f4c76c1 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaSegment.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaSegment.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class GoogleAiGenerativelanguageV1betaSegment { + /// + /// The index of a Part object within its parent Content object. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("partIndex")] + public int? PartIndex { get; set; } + /// /// The text corresponding to the segment from the response. /// @@ -26,12 +32,6 @@ public sealed partial class GoogleAiGenerativelanguageV1betaSegment [global::System.Text.Json.Serialization.JsonPropertyName("startIndex")] public int? StartIndex { get; set; } - /// - /// The index of a Part object within its parent Content object. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("partIndex")] - public int? PartIndex { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,6 +41,9 @@ public sealed partial class GoogleAiGenerativelanguageV1betaSegment /// /// Initializes a new instance of the class. /// + /// + /// The index of a Part object within its parent Content object. + /// /// /// The text corresponding to the segment from the response. /// @@ -50,22 +53,19 @@ public sealed partial class GoogleAiGenerativelanguageV1betaSegment /// /// Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero. /// - /// - /// The index of a Part object within its parent Content object. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GoogleAiGenerativelanguageV1betaSegment( + int? partIndex, string? text, int? endIndex, - int? startIndex, - int? partIndex) + int? startIndex) { + this.PartIndex = partIndex; this.Text = text; this.EndIndex = endIndex; this.StartIndex = startIndex; - this.PartIndex = partIndex; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleSearch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleSearch.g.cs index 72c070046..74828ec0c 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleSearch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleSearch.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class GoogleSearch { - /// - /// Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("timeRangeFilter")] - public global::Google.Gemini.Interval? TimeRangeFilter { get; set; } - /// /// Different types of search that can be enabled on the GoogleSearch tool. /// [global::System.Text.Json.Serialization.JsonPropertyName("searchTypes")] public global::Google.Gemini.SearchTypes? SearchTypes { get; set; } + /// + /// Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("timeRangeFilter")] + public global::Google.Gemini.Interval? TimeRangeFilter { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class GoogleSearch /// /// Initializes a new instance of the class. /// - /// - /// Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. - /// /// /// Different types of search that can be enabled on the GoogleSearch tool. /// + /// + /// Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GoogleSearch( - global::Google.Gemini.Interval? timeRangeFilter, - global::Google.Gemini.SearchTypes? searchTypes) + global::Google.Gemini.SearchTypes? searchTypes, + global::Google.Gemini.Interval? timeRangeFilter) { - this.TimeRangeFilter = timeRangeFilter; this.SearchTypes = searchTypes; + this.TimeRangeFilter = timeRangeFilter; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunk.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunk.g.cs index 0b0ac7e6b..ab9609b02 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunk.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunk.g.cs @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class GroundingChunk { /// - /// Chunk from context retrieved by the file search tool. + /// Chunk from the web. /// - [global::System.Text.Json.Serialization.JsonPropertyName("retrievedContext")] - public global::Google.Gemini.RetrievedContext? RetrievedContext { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("web")] + public global::Google.Gemini.Web? Web { get; set; } /// /// A grounding chunk from Google Maps. A Maps chunk corresponds to a single place. @@ -21,16 +21,16 @@ public sealed partial class GroundingChunk public global::Google.Gemini.Maps? Maps { get; set; } /// - /// Chunk from image search. + /// Chunk from context retrieved by the file search tool. /// - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - public global::Google.Gemini.Image? Image { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("retrievedContext")] + public global::Google.Gemini.RetrievedContext? RetrievedContext { get; set; } /// - /// Chunk from the web. + /// Chunk from image search. /// - [global::System.Text.Json.Serialization.JsonPropertyName("web")] - public global::Google.Gemini.Web? Web { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("image")] + public global::Google.Gemini.Image? Image { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -41,31 +41,31 @@ public sealed partial class GroundingChunk /// /// Initializes a new instance of the class. /// - /// - /// Chunk from context retrieved by the file search tool. + /// + /// Chunk from the web. /// /// /// A grounding chunk from Google Maps. A Maps chunk corresponds to a single place. /// + /// + /// Chunk from context retrieved by the file search tool. + /// /// /// Chunk from image search. /// - /// - /// Chunk from the web. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GroundingChunk( - global::Google.Gemini.RetrievedContext? retrievedContext, + global::Google.Gemini.Web? web, global::Google.Gemini.Maps? maps, - global::Google.Gemini.Image? image, - global::Google.Gemini.Web? web) + global::Google.Gemini.RetrievedContext? retrievedContext, + global::Google.Gemini.Image? image) { - this.RetrievedContext = retrievedContext; + this.Web = web; this.Maps = maps; + this.RetrievedContext = retrievedContext; this.Image = image; - this.Web = web; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunkCustomMetadata.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunkCustomMetadata.g.cs index 406aef06f..446443220 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunkCustomMetadata.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunkCustomMetadata.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class GroundingChunkCustomMetadata { - /// - /// Optional. The string value of the metadata. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("stringValue")] - public string? StringValue { get; set; } - /// /// Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used. /// @@ -21,10 +15,10 @@ public sealed partial class GroundingChunkCustomMetadata public float? NumericValue { get; set; } /// - /// A list of string values. + /// Optional. The string value of the metadata. /// - [global::System.Text.Json.Serialization.JsonPropertyName("stringListValue")] - public global::Google.Gemini.GroundingChunkStringList? StringListValue { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("stringValue")] + public string? StringValue { get; set; } /// /// The key of the metadata. @@ -32,6 +26,12 @@ public sealed partial class GroundingChunkCustomMetadata [global::System.Text.Json.Serialization.JsonPropertyName("key")] public string? Key { get; set; } + /// + /// A list of string values. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stringListValue")] + public global::Google.Gemini.GroundingChunkStringList? StringListValue { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,31 +41,31 @@ public sealed partial class GroundingChunkCustomMetadata /// /// Initializes a new instance of the class. /// - /// - /// Optional. The string value of the metadata. - /// /// /// Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used. /// - /// - /// A list of string values. + /// + /// Optional. The string value of the metadata. /// /// /// The key of the metadata. /// + /// + /// A list of string values. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GroundingChunkCustomMetadata( - string? stringValue, float? numericValue, - global::Google.Gemini.GroundingChunkStringList? stringListValue, - string? key) + string? stringValue, + string? key, + global::Google.Gemini.GroundingChunkStringList? stringListValue) { - this.StringValue = stringValue; this.NumericValue = numericValue; - this.StringListValue = stringListValue; + this.StringValue = stringValue; this.Key = key; + this.StringListValue = stringListValue; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingMetadata.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingMetadata.g.cs index 7b97339b7..9b4cc1ff8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingMetadata.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingMetadata.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class GroundingMetadata { - /// - /// Google search entry point. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("searchEntryPoint")] - public global::Google.Gemini.SearchEntryPoint? SearchEntryPoint { get; set; } - /// /// Web search queries for the following-up web search. /// @@ -21,10 +15,10 @@ public sealed partial class GroundingMetadata public global::System.Collections.Generic.IList? WebSearchQueries { get; set; } /// - /// Optional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled. + /// List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses. /// - [global::System.Text.Json.Serialization.JsonPropertyName("googleMapsWidgetContextToken")] - public string? GoogleMapsWidgetContextToken { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("groundingChunks")] + public global::System.Collections.Generic.IList? GroundingChunks { get; set; } /// /// Metadata related to retrieval in the grounding flow. @@ -33,10 +27,10 @@ public sealed partial class GroundingMetadata public global::Google.Gemini.RetrievalMetadata? RetrievalMetadata { get; set; } /// - /// List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses. + /// List of grounding support. /// - [global::System.Text.Json.Serialization.JsonPropertyName("groundingChunks")] - public global::System.Collections.Generic.IList? GroundingChunks { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("groundingSupports")] + public global::System.Collections.Generic.IList? GroundingSupports { get; set; } /// /// Image search queries used for grounding. @@ -45,10 +39,16 @@ public sealed partial class GroundingMetadata public global::System.Collections.Generic.IList? ImageSearchQueries { get; set; } /// - /// List of grounding support. + /// Optional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled. /// - [global::System.Text.Json.Serialization.JsonPropertyName("groundingSupports")] - public global::System.Collections.Generic.IList? GroundingSupports { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("googleMapsWidgetContextToken")] + public string? GoogleMapsWidgetContextToken { get; set; } + + /// + /// Google search entry point. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("searchEntryPoint")] + public global::Google.Gemini.SearchEntryPoint? SearchEntryPoint { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -59,46 +59,46 @@ public sealed partial class GroundingMetadata /// /// Initializes a new instance of the class. /// - /// - /// Google search entry point. - /// /// /// Web search queries for the following-up web search. /// - /// - /// Optional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled. + /// + /// List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses. /// /// /// Metadata related to retrieval in the grounding flow. /// - /// - /// List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses. + /// + /// List of grounding support. /// /// /// Image search queries used for grounding. /// - /// - /// List of grounding support. + /// + /// Optional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled. + /// + /// + /// Google search entry point. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GroundingMetadata( - global::Google.Gemini.SearchEntryPoint? searchEntryPoint, global::System.Collections.Generic.IList? webSearchQueries, - string? googleMapsWidgetContextToken, - global::Google.Gemini.RetrievalMetadata? retrievalMetadata, global::System.Collections.Generic.IList? groundingChunks, + global::Google.Gemini.RetrievalMetadata? retrievalMetadata, + global::System.Collections.Generic.IList? groundingSupports, global::System.Collections.Generic.IList? imageSearchQueries, - global::System.Collections.Generic.IList? groundingSupports) + string? googleMapsWidgetContextToken, + global::Google.Gemini.SearchEntryPoint? searchEntryPoint) { - this.SearchEntryPoint = searchEntryPoint; this.WebSearchQueries = webSearchQueries; - this.GoogleMapsWidgetContextToken = googleMapsWidgetContextToken; - this.RetrievalMetadata = retrievalMetadata; this.GroundingChunks = groundingChunks; - this.ImageSearchQueries = imageSearchQueries; + this.RetrievalMetadata = retrievalMetadata; this.GroundingSupports = groundingSupports; + this.ImageSearchQueries = imageSearchQueries; + this.GoogleMapsWidgetContextToken = googleMapsWidgetContextToken; + this.SearchEntryPoint = searchEntryPoint; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingPassageId.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingPassageId.g.cs index c11ba70eb..90cec8645 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingPassageId.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingPassageId.g.cs @@ -9,18 +9,18 @@ namespace Google.Gemini public sealed partial class GroundingPassageId { /// - /// Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.
+ /// Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("partIndex")] - public int? PartIndex { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("passageId")] + public string? PassageId { get; set; } /// - /// Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.
+ /// Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("passageId")] - public string? PassageId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("partIndex")] + public int? PartIndex { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -31,23 +31,23 @@ public sealed partial class GroundingPassageId /// /// Initializes a new instance of the class. /// - /// - /// Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.
- /// Included only in responses - /// /// /// Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.
/// Included only in responses /// + /// + /// Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GroundingPassageId( - int? partIndex, - string? passageId) + string? passageId, + int? partIndex) { - this.PartIndex = partIndex; this.PassageId = passageId; + this.PartIndex = partIndex; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Hyperparameters.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Hyperparameters.g.cs index 3a1a9d503..44bfd83d0 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Hyperparameters.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Hyperparameters.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class Hyperparameters { - /// - /// Immutable. The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("batchSize")] - public int? BatchSize { get; set; } - /// /// Immutable. The number of training epochs. An epoch is one pass through the training data. If not set, a default of 5 will be used. /// [global::System.Text.Json.Serialization.JsonPropertyName("epochCount")] public int? EpochCount { get; set; } + /// + /// Immutable. The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("batchSize")] + public int? BatchSize { get; set; } + /// /// Optional. Immutable. The learning rate multiplier is used to calculate a final learning_rate based on the default (recommended) value. Actual learning rate := learning_rate_multiplier * default learning rate Default learning rate is dependent on base model and dataset size. If not set, a default of 1.0 will be used. /// @@ -41,12 +41,12 @@ public sealed partial class Hyperparameters /// /// Initializes a new instance of the class. /// - /// - /// Immutable. The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples. - /// /// /// Immutable. The number of training epochs. An epoch is one pass through the training data. If not set, a default of 5 will be used. /// + /// + /// Immutable. The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples. + /// /// /// Optional. Immutable. The learning rate multiplier is used to calculate a final learning_rate based on the default (recommended) value. Actual learning rate := learning_rate_multiplier * default learning rate Default learning rate is dependent on base model and dataset size. If not set, a default of 1.0 will be used. /// @@ -57,13 +57,13 @@ public sealed partial class Hyperparameters [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Hyperparameters( - int? batchSize, int? epochCount, + int? batchSize, float? learningRateMultiplier, float? learningRate) { - this.BatchSize = batchSize; this.EpochCount = epochCount; + this.BatchSize = batchSize; this.LearningRateMultiplier = learningRateMultiplier; this.LearningRate = learningRate; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Image.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Image.g.cs index 2f6341e54..7c29ac4c9 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Image.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Image.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini ///
public sealed partial class Image { + /// + /// The root domain of the web page that the image is from, e.g. "example.com". + /// + [global::System.Text.Json.Serialization.JsonPropertyName("domain")] + public string? Domain { get; set; } + /// /// The image asset URL. /// @@ -26,12 +32,6 @@ public sealed partial class Image [global::System.Text.Json.Serialization.JsonPropertyName("sourceUri")] public string? SourceUri { get; set; } - /// - /// The root domain of the web page that the image is from, e.g. "example.com". - /// - [global::System.Text.Json.Serialization.JsonPropertyName("domain")] - public string? Domain { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,6 +41,9 @@ public sealed partial class Image /// /// Initializes a new instance of the class. /// + /// + /// The root domain of the web page that the image is from, e.g. "example.com". + /// /// /// The image asset URL. /// @@ -50,22 +53,19 @@ public sealed partial class Image /// /// The web page URI for attribution. /// - /// - /// The root domain of the web page that the image is from, e.g. "example.com". - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Image( + string? domain, string? imageUri, string? title, - string? sourceUri, - string? domain) + string? sourceUri) { + this.Domain = domain; this.ImageUri = imageUri; this.Title = title; this.SourceUri = sourceUri; - this.Domain = domain; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImageConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImageConfig.g.cs index a4122a061..e98aec4e7 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImageConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImageConfig.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ImageConfig { - /// - /// Optional. The aspect ratio of the image to generate. Supported aspect ratios: `1:1`, `1:4`, `4:1`, `1:8`, `8:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, or `21:9`. If not specified, the model will choose a default aspect ratio based on any reference images provided. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aspectRatio")] - public string? AspectRatio { get; set; } - /// /// Optional. Specifies the size of generated images. Supported values are `512`, `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`. /// [global::System.Text.Json.Serialization.JsonPropertyName("imageSize")] public string? ImageSize { get; set; } + /// + /// Optional. The aspect ratio of the image to generate. Supported aspect ratios: `1:1`, `1:4`, `4:1`, `1:8`, `8:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, or `21:9`. If not specified, the model will choose a default aspect ratio based on any reference images provided. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aspectRatio")] + public string? AspectRatio { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class ImageConfig /// /// Initializes a new instance of the class. /// - /// - /// Optional. The aspect ratio of the image to generate. Supported aspect ratios: `1:1`, `1:4`, `4:1`, `1:8`, `8:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, or `21:9`. If not specified, the model will choose a default aspect ratio based on any reference images provided. - /// /// /// Optional. Specifies the size of generated images. Supported values are `512`, `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`. /// + /// + /// Optional. The aspect ratio of the image to generate. Supported aspect ratios: `1:1`, `1:4`, `4:1`, `1:8`, `8:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, or `21:9`. If not specified, the model will choose a default aspect ratio based on any reference images provided. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ImageConfig( - string? aspectRatio, - string? imageSize) + string? imageSize, + string? aspectRatio) { - this.AspectRatio = aspectRatio; this.ImageSize = imageSize; + this.AspectRatio = aspectRatio; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImageResponseFormat.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImageResponseFormat.g.cs index f68b90d63..a99d13520 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImageResponseFormat.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImageResponseFormat.g.cs @@ -8,13 +8,6 @@ namespace Google.Gemini /// public sealed partial class ImageResponseFormat { - /// - /// Optional. The aspect ratio for the image output. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aspectRatio")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter))] - public global::Google.Gemini.ImageResponseFormatAspectRatio? AspectRatio { get; set; } - /// /// Optional. The size of the image output. /// @@ -36,6 +29,13 @@ public sealed partial class ImageResponseFormat [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter))] public global::Google.Gemini.ImageResponseFormatDelivery? Delivery { get; set; } + /// + /// Optional. The aspect ratio for the image output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aspectRatio")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter))] + public global::Google.Gemini.ImageResponseFormatAspectRatio? AspectRatio { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,9 +45,6 @@ public sealed partial class ImageResponseFormat /// /// Initializes a new instance of the class. /// - /// - /// Optional. The aspect ratio for the image output. - /// /// /// Optional. The size of the image output. /// @@ -57,19 +54,22 @@ public sealed partial class ImageResponseFormat /// /// Optional. The delivery mode for the image output. /// + /// + /// Optional. The aspect ratio for the image output. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ImageResponseFormat( - global::Google.Gemini.ImageResponseFormatAspectRatio? aspectRatio, global::Google.Gemini.ImageResponseFormatImageSize? imageSize, global::Google.Gemini.ImageResponseFormatMimeType? mimeType, - global::Google.Gemini.ImageResponseFormatDelivery? delivery) + global::Google.Gemini.ImageResponseFormatDelivery? delivery, + global::Google.Gemini.ImageResponseFormatAspectRatio? aspectRatio) { - this.AspectRatio = aspectRatio; this.ImageSize = imageSize; this.MimeType = mimeType; this.Delivery = delivery; + this.AspectRatio = aspectRatio; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImportFileRequest.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImportFileRequest.g.cs index 5cc698754..b80600084 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImportFileRequest.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImportFileRequest.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class ImportFileRequest { - /// - /// Required. The name of the `File` to import. Example: `files/abc-123` - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileName")] - public string? FileName { get; set; } - /// /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto /// @@ -26,6 +20,12 @@ public sealed partial class ImportFileRequest [global::System.Text.Json.Serialization.JsonPropertyName("customMetadata")] public global::System.Collections.Generic.IList? CustomMetadata { get; set; } + /// + /// Required. The name of the `File` to import. Example: `files/abc-123` + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fileName")] + public string? FileName { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -35,26 +35,26 @@ public sealed partial class ImportFileRequest /// /// Initializes a new instance of the class. /// - /// - /// Required. The name of the `File` to import. Example: `files/abc-123` - /// /// /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto /// /// /// Custom metadata to be associated with the file. /// + /// + /// Required. The name of the `File` to import. Example: `files/abc-123` + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ImportFileRequest( - string? fileName, global::Google.Gemini.ChunkingConfig? chunkingConfig, - global::System.Collections.Generic.IList? customMetadata) + global::System.Collections.Generic.IList? customMetadata, + string? fileName) { - this.FileName = fileName; this.ChunkingConfig = chunkingConfig; this.CustomMetadata = customMetadata; + this.FileName = fileName; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedEmbedContentResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedEmbedContentResponse.g.cs index 1dc7eb0f0..3217b11a2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedEmbedContentResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedEmbedContentResponse.g.cs @@ -14,6 +14,12 @@ public sealed partial class InlinedEmbedContentResponse [global::System.Text.Json.Serialization.JsonPropertyName("response")] public global::Google.Gemini.EmbedContentResponse? Response { get; set; } + /// + /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public global::Google.Gemini.Status? Error { get; set; } + /// /// Output only. The metadata associated with the request.
/// Included only in responses @@ -21,12 +27,6 @@ public sealed partial class InlinedEmbedContentResponse [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] public object? Metadata { get; set; } - /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public global::Google.Gemini.Status? Error { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -39,24 +39,24 @@ public sealed partial class InlinedEmbedContentResponse /// /// The response to an `EmbedContentRequest`. /// + /// + /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// /// /// Output only. The metadata associated with the request.
/// Included only in responses /// - /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InlinedEmbedContentResponse( global::Google.Gemini.EmbedContentResponse? response, - object? metadata, - global::Google.Gemini.Status? error) + global::Google.Gemini.Status? error, + object? metadata) { this.Response = response; - this.Metadata = metadata; this.Error = error; + this.Metadata = metadata; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedResponse.g.cs index 291135b24..1eefda6a8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedResponse.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class InlinedResponse { - /// - /// Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API: - Returns either all requested candidates or none of them - Returns no candidates at all only if there was something wrong with the prompt (check `prompt_feedback`) - Reports feedback on each candidate in `finish_reason` and `safety_ratings`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - public global::Google.Gemini.GenerateContentResponse? Response { get; set; } - /// /// Output only. The metadata associated with the request.
/// Included only in responses @@ -27,6 +21,12 @@ public sealed partial class InlinedResponse [global::System.Text.Json.Serialization.JsonPropertyName("error")] public global::Google.Gemini.Status? Error { get; set; } + /// + /// Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API: - Returns either all requested candidates or none of them - Returns no candidates at all only if there was something wrong with the prompt (check `prompt_feedback`) - Reports feedback on each candidate in `finish_reason` and `safety_ratings`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + public global::Google.Gemini.GenerateContentResponse? Response { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -36,9 +36,6 @@ public sealed partial class InlinedResponse /// /// Initializes a new instance of the class. /// - /// - /// Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API: - Returns either all requested candidates or none of them - Returns no candidates at all only if there was something wrong with the prompt (check `prompt_feedback`) - Reports feedback on each candidate in `finish_reason` and `safety_ratings`. - /// /// /// Output only. The metadata associated with the request.
/// Included only in responses @@ -46,17 +43,20 @@ public sealed partial class InlinedResponse /// /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). /// + /// + /// Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API: - Returns either all requested candidates or none of them - Returns no candidates at all only if there was something wrong with the prompt (check `prompt_feedback`) - Reports feedback on each candidate in `finish_reason` and `safety_ratings`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InlinedResponse( - global::Google.Gemini.GenerateContentResponse? response, object? metadata, - global::Google.Gemini.Status? error) + global::Google.Gemini.Status? error, + global::Google.Gemini.GenerateContentResponse? response) { - this.Response = response; this.Metadata = metadata; this.Error = error; + this.Response = response; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InputConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InputConfig.g.cs index 736a29fe4..3d0f91ff6 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InputConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InputConfig.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class InputConfig { - /// - /// The requests to be processed in the batch if provided as part of the batch creation request. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("requests")] - public global::Google.Gemini.InlinedRequests? Requests { get; set; } - /// /// The name of the `File` containing the input requests. /// [global::System.Text.Json.Serialization.JsonPropertyName("fileName")] public string? FileName { get; set; } + /// + /// The requests to be processed in the batch if provided as part of the batch creation request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("requests")] + public global::Google.Gemini.InlinedRequests? Requests { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class InputConfig /// /// Initializes a new instance of the class. /// - /// - /// The requests to be processed in the batch if provided as part of the batch creation request. - /// /// /// The name of the `File` containing the input requests. /// + /// + /// The requests to be processed in the batch if provided as part of the batch creation request. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InputConfig( - global::Google.Gemini.InlinedRequests? requests, - string? fileName) + string? fileName, + global::Google.Gemini.InlinedRequests? requests) { - this.Requests = requests; this.FileName = fileName; + this.Requests = requests; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InputEmbedContentConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InputEmbedContentConfig.g.cs index 05a50bda8..2ca5e4b2a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InputEmbedContentConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InputEmbedContentConfig.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class InputEmbedContentConfig { - /// - /// The requests to be processed in the batch if provided as part of the batch creation request. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("requests")] - public global::Google.Gemini.InlinedEmbedContentRequests? Requests { get; set; } - /// /// The name of the `File` containing the input requests. /// [global::System.Text.Json.Serialization.JsonPropertyName("fileName")] public string? FileName { get; set; } + /// + /// The requests to be processed in the batch if provided as part of the batch creation request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("requests")] + public global::Google.Gemini.InlinedEmbedContentRequests? Requests { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class InputEmbedContentConfig /// /// Initializes a new instance of the class. /// - /// - /// The requests to be processed in the batch if provided as part of the batch creation request. - /// /// /// The name of the `File` containing the input requests. /// + /// + /// The requests to be processed in the batch if provided as part of the batch creation request. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InputEmbedContentConfig( - global::Google.Gemini.InlinedEmbedContentRequests? requests, - string? fileName) + string? fileName, + global::Google.Gemini.InlinedEmbedContentRequests? requests) { - this.Requests = requests; this.FileName = fileName; + this.Requests = requests; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Interval.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Interval.g.cs index afe10fd05..5ce34e69e 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Interval.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Interval.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class Interval { - /// - /// Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("endTime")] - public string? EndTime { get; set; } - /// /// Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start. /// [global::System.Text.Json.Serialization.JsonPropertyName("startTime")] public string? StartTime { get; set; } + /// + /// Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("endTime")] + public string? EndTime { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class Interval /// /// Initializes a new instance of the class. /// - /// - /// Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. - /// /// /// Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start. /// + /// + /// Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Interval( - string? endTime, - string? startTime) + string? startTime, + string? endTime) { - this.EndTime = endTime; this.StartTime = startTime; + this.EndTime = endTime; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListCorporaResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListCorporaResponse.g.cs index 7bff62709..6a5dbdc25 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListCorporaResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListCorporaResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ListCorporaResponse { - /// - /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] - public string? NextPageToken { get; set; } - /// /// The returned corpora. /// [global::System.Text.Json.Serialization.JsonPropertyName("corpora")] public global::System.Collections.Generic.IList? Corpora { get; set; } + /// + /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] + public string? NextPageToken { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class ListCorporaResponse /// /// Initializes a new instance of the class. /// - /// - /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. - /// /// /// The returned corpora. /// + /// + /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListCorporaResponse( - string? nextPageToken, - global::System.Collections.Generic.IList? corpora) + global::System.Collections.Generic.IList? corpora, + string? nextPageToken) { - this.NextPageToken = nextPageToken; this.Corpora = corpora; + this.NextPageToken = nextPageToken; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListDocumentsResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListDocumentsResponse.g.cs index 305a10625..ba11d1ecf 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListDocumentsResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListDocumentsResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ListDocumentsResponse { - /// - /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] - public string? NextPageToken { get; set; } - /// /// The returned `Document`s. /// [global::System.Text.Json.Serialization.JsonPropertyName("documents")] public global::System.Collections.Generic.IList? Documents { get; set; } + /// + /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] + public string? NextPageToken { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class ListDocumentsResponse /// /// Initializes a new instance of the class. /// - /// - /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. - /// /// /// The returned `Document`s. /// + /// + /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListDocumentsResponse( - string? nextPageToken, - global::System.Collections.Generic.IList? documents) + global::System.Collections.Generic.IList? documents, + string? nextPageToken) { - this.NextPageToken = nextPageToken; this.Documents = documents; + this.NextPageToken = nextPageToken; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListFileSearchStoresResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListFileSearchStoresResponse.g.cs index 965fc58da..af0c73434 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListFileSearchStoresResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListFileSearchStoresResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ListFileSearchStoresResponse { - /// - /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] - public string? NextPageToken { get; set; } - /// /// The returned rag_stores. /// [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStores")] public global::System.Collections.Generic.IList? FileSearchStores { get; set; } + /// + /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] + public string? NextPageToken { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class ListFileSearchStoresResponse /// /// Initializes a new instance of the class. /// - /// - /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. - /// /// /// The returned rag_stores. /// + /// + /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListFileSearchStoresResponse( - string? nextPageToken, - global::System.Collections.Generic.IList? fileSearchStores) + global::System.Collections.Generic.IList? fileSearchStores, + string? nextPageToken) { - this.NextPageToken = nextPageToken; this.FileSearchStores = fileSearchStores; + this.NextPageToken = nextPageToken; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListFilesResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListFilesResponse.g.cs index 317206958..56d16d70a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListFilesResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListFilesResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ListFilesResponse { - /// - /// The list of `File`s. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("files")] - public global::System.Collections.Generic.IList? Files { get; set; } - /// /// A token that can be sent as a `page_token` into a subsequent `ListFiles` call. /// [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] public string? NextPageToken { get; set; } + /// + /// The list of `File`s. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("files")] + public global::System.Collections.Generic.IList? Files { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class ListFilesResponse /// /// Initializes a new instance of the class. /// - /// - /// The list of `File`s. - /// /// /// A token that can be sent as a `page_token` into a subsequent `ListFiles` call. /// + /// + /// The list of `File`s. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListFilesResponse( - global::System.Collections.Generic.IList? files, - string? nextPageToken) + string? nextPageToken, + global::System.Collections.Generic.IList? files) { - this.Files = files; this.NextPageToken = nextPageToken; + this.Files = files; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListOperationsResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListOperationsResponse.g.cs index 9f0d95121..04f787fa6 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListOperationsResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListOperationsResponse.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class ListOperationsResponse { - /// - /// A list of operations that matches the specified filter in the request. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("operations")] - public global::System.Collections.Generic.IList? Operations { get; set; } - /// /// Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations. /// @@ -26,6 +20,12 @@ public sealed partial class ListOperationsResponse [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] public string? NextPageToken { get; set; } + /// + /// A list of operations that matches the specified filter in the request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operations")] + public global::System.Collections.Generic.IList? Operations { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -35,26 +35,26 @@ public sealed partial class ListOperationsResponse /// /// Initializes a new instance of the class. /// - /// - /// A list of operations that matches the specified filter in the request. - /// /// /// Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations. /// /// /// The standard List next-page token. /// + /// + /// A list of operations that matches the specified filter in the request. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListOperationsResponse( - global::System.Collections.Generic.IList? operations, global::System.Collections.Generic.IList? unreachable, - string? nextPageToken) + string? nextPageToken, + global::System.Collections.Generic.IList? operations) { - this.Operations = operations; this.Unreachable = unreachable; this.NextPageToken = nextPageToken; + this.Operations = operations; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListPermissionsResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListPermissionsResponse.g.cs index 800f4e39f..fb6d6f43a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListPermissionsResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListPermissionsResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ListPermissionsResponse { - /// - /// Returned permissions. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("permissions")] - public global::System.Collections.Generic.IList? Permissions { get; set; } - /// /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. /// [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] public string? NextPageToken { get; set; } + /// + /// Returned permissions. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("permissions")] + public global::System.Collections.Generic.IList? Permissions { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class ListPermissionsResponse /// /// Initializes a new instance of the class. /// - /// - /// Returned permissions. - /// /// /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. /// + /// + /// Returned permissions. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListPermissionsResponse( - global::System.Collections.Generic.IList? permissions, - string? nextPageToken) + string? nextPageToken, + global::System.Collections.Generic.IList? permissions) { - this.Permissions = permissions; this.NextPageToken = nextPageToken; + this.Permissions = permissions; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LogprobsResult.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LogprobsResult.g.cs index 1c8dd068b..e98b6c666 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LogprobsResult.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LogprobsResult.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class LogprobsResult { - /// - /// Sum of log probabilities for all tokens. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("logProbabilitySum")] - public float? LogProbabilitySum { get; set; } - /// /// Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates. /// @@ -26,6 +20,12 @@ public sealed partial class LogprobsResult [global::System.Text.Json.Serialization.JsonPropertyName("topCandidates")] public global::System.Collections.Generic.IList? TopCandidates { get; set; } + /// + /// Sum of log probabilities for all tokens. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("logProbabilitySum")] + public float? LogProbabilitySum { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -35,26 +35,26 @@ public sealed partial class LogprobsResult /// /// Initializes a new instance of the class. /// - /// - /// Sum of log probabilities for all tokens. - /// /// /// Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates. /// /// /// Length = total number of decoding steps. /// + /// + /// Sum of log probabilities for all tokens. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public LogprobsResult( - float? logProbabilitySum, global::System.Collections.Generic.IList? chosenCandidates, - global::System.Collections.Generic.IList? topCandidates) + global::System.Collections.Generic.IList? topCandidates, + float? logProbabilitySum) { - this.LogProbabilitySum = logProbabilitySum; this.ChosenCandidates = chosenCandidates; this.TopCandidates = topCandidates; + this.LogProbabilitySum = logProbabilitySum; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LogprobsResultCandidate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LogprobsResultCandidate.g.cs index 6154061dc..f52a493c5 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LogprobsResultCandidate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LogprobsResultCandidate.g.cs @@ -14,18 +14,18 @@ public sealed partial class LogprobsResultCandidate [global::System.Text.Json.Serialization.JsonPropertyName("tokenId")] public int? TokenId { get; set; } - /// - /// The candidate's log probability. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("logProbability")] - public float? LogProbability { get; set; } - /// /// The candidate’s token string value. /// [global::System.Text.Json.Serialization.JsonPropertyName("token")] public string? Token { get; set; } + /// + /// The candidate's log probability. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("logProbability")] + public float? LogProbability { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -38,23 +38,23 @@ public sealed partial class LogprobsResultCandidate /// /// The candidate’s token id value. /// - /// - /// The candidate's log probability. - /// /// /// The candidate’s token string value. /// + /// + /// The candidate's log probability. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public LogprobsResultCandidate( int? tokenId, - float? logProbability, - string? token) + string? token, + float? logProbability) { this.TokenId = tokenId; - this.LogProbability = logProbability; this.Token = token; + this.LogProbability = logProbability; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Maps.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Maps.g.cs index 4434f3da5..a62e35ab3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Maps.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Maps.g.cs @@ -8,18 +8,6 @@ namespace Google.Gemini /// public sealed partial class Maps { - /// - /// Collection of sources that provide answers about the features of a given place in Google Maps. Each PlaceAnswerSources message corresponds to a specific place in Google Maps. The Google Maps tool used these sources in order to answer questions about features of the place (e.g: "does Bar Foo have Wifi" or "is Foo Bar wheelchair accessible?"). Currently we only support review snippets as sources. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("placeAnswerSources")] - public global::Google.Gemini.PlaceAnswerSources? PlaceAnswerSources { get; set; } - - /// - /// Text description of the place answer. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { get; set; } - /// /// Title of the place. /// @@ -38,6 +26,18 @@ public sealed partial class Maps [global::System.Text.Json.Serialization.JsonPropertyName("uri")] public string? Uri { get; set; } + /// + /// Collection of sources that provide answers about the features of a given place in Google Maps. Each PlaceAnswerSources message corresponds to a specific place in Google Maps. The Google Maps tool used these sources in order to answer questions about features of the place (e.g: "does Bar Foo have Wifi" or "is Foo Bar wheelchair accessible?"). Currently we only support review snippets as sources. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("placeAnswerSources")] + public global::Google.Gemini.PlaceAnswerSources? PlaceAnswerSources { get; set; } + + /// + /// Text description of the place answer. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -47,12 +47,6 @@ public sealed partial class Maps /// /// Initializes a new instance of the class. /// - /// - /// Collection of sources that provide answers about the features of a given place in Google Maps. Each PlaceAnswerSources message corresponds to a specific place in Google Maps. The Google Maps tool used these sources in order to answer questions about features of the place (e.g: "does Bar Foo have Wifi" or "is Foo Bar wheelchair accessible?"). Currently we only support review snippets as sources. - /// - /// - /// Text description of the place answer. - /// /// /// Title of the place. /// @@ -62,21 +56,27 @@ public sealed partial class Maps /// /// URI reference of the place. /// + /// + /// Collection of sources that provide answers about the features of a given place in Google Maps. Each PlaceAnswerSources message corresponds to a specific place in Google Maps. The Google Maps tool used these sources in order to answer questions about features of the place (e.g: "does Bar Foo have Wifi" or "is Foo Bar wheelchair accessible?"). Currently we only support review snippets as sources. + /// + /// + /// Text description of the place answer. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Maps( - global::Google.Gemini.PlaceAnswerSources? placeAnswerSources, - string? text, string? title, string? placeId, - string? uri) + string? uri, + global::Google.Gemini.PlaceAnswerSources? placeAnswerSources, + string? text) { - this.PlaceAnswerSources = placeAnswerSources; - this.Text = text; this.Title = title; this.PlaceId = placeId; this.Uri = uri; + this.PlaceAnswerSources = placeAnswerSources; + this.Text = text; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Model.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Model.g.cs index 3821f7412..fedb4b9d9 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Model.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Model.g.cs @@ -9,22 +9,22 @@ namespace Google.Gemini public sealed partial class Model { /// - /// Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash` + /// Controls the randomness of the output. Values can range over `[0.0,max_temperature]`, inclusive. A higher value will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("baseModelId")] - public string? BaseModelId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public float? Temperature { get; set; } /// - /// Maximum number of output tokens available for this model. + /// Maximum number of input tokens allowed for this model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("outputTokenLimit")] - public int? OutputTokenLimit { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("inputTokenLimit")] + public int? InputTokenLimit { get; set; } /// - /// Required. The version number of the model. This represents the major version (`1.0` or `1.5`) + /// Whether the model supports thinking. /// - [global::System.Text.Json.Serialization.JsonPropertyName("version")] - public string? Version { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("thinking")] + public bool? Thinking { get; set; } /// /// For [Nucleus sampling](https://ai.google.dev/gemini-api/docs/prompting-strategies#top-p). Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be used by the backend while making the call to the model. @@ -33,58 +33,58 @@ public sealed partial class Model public float? TopP { get; set; } /// - /// The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`. + /// Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash` /// - [global::System.Text.Json.Serialization.JsonPropertyName("supportedGenerationMethods")] - public global::System.Collections.Generic.IList? SupportedGenerationMethods { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("baseModelId")] + public string? BaseModelId { get; set; } /// - /// Controls the randomness of the output. Values can range over `[0.0,max_temperature]`, inclusive. A higher value will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model. + /// Required. The version number of the model. This represents the major version (`1.0` or `1.5`) /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public float? Temperature { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("version")] + public string? Version { get; set; } /// - /// A short description of the model. + /// The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("supportedGenerationMethods")] + public global::System.Collections.Generic.IList? SupportedGenerationMethods { get; set; } /// - /// Maximum number of input tokens allowed for this model. + /// Required. The resource name of the `Model`. Refer to [Model variants](https://ai.google.dev/gemini-api/docs/models/gemini#model-variations) for all allowed values. Format: `models/{model}` with a `{model}` naming convention of: * "{base_model_id}-{version}" Examples: * `models/gemini-1.5-flash-001` /// - [global::System.Text.Json.Serialization.JsonPropertyName("inputTokenLimit")] - public int? InputTokenLimit { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// - /// For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. If empty, indicates the model doesn't use top-k sampling, and `top_k` isn't allowed as a generation parameter. + /// Maximum number of output tokens available for this model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("topK")] - public int? TopK { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("outputTokenLimit")] + public int? OutputTokenLimit { get; set; } /// - /// The maximum temperature this model can use. + /// The human-readable name of the model. E.g. "Gemini 1.5 Flash". The name can be up to 128 characters long and can consist of any UTF-8 characters. /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxTemperature")] - public float? MaxTemperature { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } /// - /// Whether the model supports thinking. + /// A short description of the model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("thinking")] - public bool? Thinking { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } /// - /// The human-readable name of the model. E.g. "Gemini 1.5 Flash". The name can be up to 128 characters long and can consist of any UTF-8 characters. + /// The maximum temperature this model can use. /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxTemperature")] + public float? MaxTemperature { get; set; } /// - /// Required. The resource name of the `Model`. Refer to [Model variants](https://ai.google.dev/gemini-api/docs/models/gemini#model-variations) for all allowed values. Format: `models/{model}` with a `{model}` naming convention of: * "{base_model_id}-{version}" Examples: * `models/gemini-1.5-flash-001` + /// For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. If empty, indicates the model doesn't use top-k sampling, and `top_k` isn't allowed as a generation parameter. /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("topK")] + public int? TopK { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -95,76 +95,76 @@ public sealed partial class Model /// /// Initializes a new instance of the class. /// - /// - /// Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash` + /// + /// Controls the randomness of the output. Values can range over `[0.0,max_temperature]`, inclusive. A higher value will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model. /// - /// - /// Maximum number of output tokens available for this model. + /// + /// Maximum number of input tokens allowed for this model. /// - /// - /// Required. The version number of the model. This represents the major version (`1.0` or `1.5`) + /// + /// Whether the model supports thinking. /// /// /// For [Nucleus sampling](https://ai.google.dev/gemini-api/docs/prompting-strategies#top-p). Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be used by the backend while making the call to the model. /// + /// + /// Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash` + /// + /// + /// Required. The version number of the model. This represents the major version (`1.0` or `1.5`) + /// /// /// The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`. /// - /// - /// Controls the randomness of the output. Values can range over `[0.0,max_temperature]`, inclusive. A higher value will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model. + /// + /// Required. The resource name of the `Model`. Refer to [Model variants](https://ai.google.dev/gemini-api/docs/models/gemini#model-variations) for all allowed values. Format: `models/{model}` with a `{model}` naming convention of: * "{base_model_id}-{version}" Examples: * `models/gemini-1.5-flash-001` /// - /// - /// A short description of the model. + /// + /// Maximum number of output tokens available for this model. /// - /// - /// Maximum number of input tokens allowed for this model. + /// + /// The human-readable name of the model. E.g. "Gemini 1.5 Flash". The name can be up to 128 characters long and can consist of any UTF-8 characters. /// - /// - /// For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. If empty, indicates the model doesn't use top-k sampling, and `top_k` isn't allowed as a generation parameter. + /// + /// A short description of the model. /// /// /// The maximum temperature this model can use. /// - /// - /// Whether the model supports thinking. - /// - /// - /// The human-readable name of the model. E.g. "Gemini 1.5 Flash". The name can be up to 128 characters long and can consist of any UTF-8 characters. - /// - /// - /// Required. The resource name of the `Model`. Refer to [Model variants](https://ai.google.dev/gemini-api/docs/models/gemini#model-variations) for all allowed values. Format: `models/{model}` with a `{model}` naming convention of: * "{base_model_id}-{version}" Examples: * `models/gemini-1.5-flash-001` + /// + /// For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. If empty, indicates the model doesn't use top-k sampling, and `top_k` isn't allowed as a generation parameter. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Model( + float? temperature, + int? inputTokenLimit, + bool? thinking, + float? topP, string? baseModelId, - int? outputTokenLimit, string? version, - float? topP, global::System.Collections.Generic.IList? supportedGenerationMethods, - float? temperature, + string? name, + int? outputTokenLimit, + string? displayName, string? description, - int? inputTokenLimit, - int? topK, float? maxTemperature, - bool? thinking, - string? displayName, - string? name) + int? topK) { + this.Temperature = temperature; + this.InputTokenLimit = inputTokenLimit; + this.Thinking = thinking; + this.TopP = topP; this.BaseModelId = baseModelId; - this.OutputTokenLimit = outputTokenLimit; this.Version = version; - this.TopP = topP; this.SupportedGenerationMethods = supportedGenerationMethods; - this.Temperature = temperature; + this.Name = name; + this.OutputTokenLimit = outputTokenLimit; + this.DisplayName = displayName; this.Description = description; - this.InputTokenLimit = inputTokenLimit; - this.TopK = topK; this.MaxTemperature = maxTemperature; - this.Thinking = thinking; - this.DisplayName = displayName; - this.Name = name; + this.TopK = topK; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModelStatus.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModelStatus.g.cs index 76cefbbc4..d5fc33035 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModelStatus.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModelStatus.g.cs @@ -14,12 +14,6 @@ public sealed partial class ModelStatus [global::System.Text.Json.Serialization.JsonPropertyName("retirementTime")] public string? RetirementTime { get; set; } - /// - /// A message explaining the model status. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - /// /// The stage of the underlying model. /// @@ -27,6 +21,12 @@ public sealed partial class ModelStatus [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter))] public global::Google.Gemini.ModelStatusModelStage? ModelStage { get; set; } + /// + /// A message explaining the model status. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + public string? Message { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -39,23 +39,23 @@ public sealed partial class ModelStatus /// /// The time at which the model will be retired. /// - /// - /// A message explaining the model status. - /// /// /// The stage of the underlying model. /// + /// + /// A message explaining the model status. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ModelStatus( string? retirementTime, - string? message, - global::Google.Gemini.ModelStatusModelStage? modelStage) + global::Google.Gemini.ModelStatusModelStage? modelStage, + string? message) { this.RetirementTime = retirementTime; - this.Message = message; this.ModelStage = modelStage; + this.Message = message; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Operation.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Operation.g.cs index b061c0d90..0c1f79acc 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Operation.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Operation.g.cs @@ -8,18 +8,6 @@ namespace Google.Gemini /// public sealed partial class Operation { - /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public global::Google.Gemini.Status? Error { get; set; } - - /// - /// The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - public object? Response { get; set; } - /// /// The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. /// @@ -32,12 +20,24 @@ public sealed partial class Operation [global::System.Text.Json.Serialization.JsonPropertyName("done")] public bool? Done { get; set; } + /// + /// The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + public object? Response { get; set; } + /// /// Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. /// [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] public object? Metadata { get; set; } + /// + /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public global::Google.Gemini.Status? Error { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -47,36 +47,36 @@ public sealed partial class Operation /// /// Initializes a new instance of the class. /// - /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). - /// - /// - /// The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. - /// /// /// The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. /// /// /// If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. /// + /// + /// The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + /// /// /// Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. /// + /// + /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Operation( - global::Google.Gemini.Status? error, - object? response, string? name, bool? done, - object? metadata) + object? response, + object? metadata, + global::Google.Gemini.Status? error) { - this.Error = error; - this.Response = response; this.Name = name; this.Done = done; + this.Response = response; this.Metadata = metadata; + this.Error = error; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Part.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Part.g.cs index 810d208f2..24289512e 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Part.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Part.g.cs @@ -8,18 +8,6 @@ namespace Google.Gemini /// public sealed partial class Part { - /// - /// Media resolution for tokenization. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mediaResolution")] - public global::Google.Gemini.V1mainMediaResolution? MediaResolution { get; set; } - - /// - /// A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("functionCall")] - public global::Google.Gemini.FunctionCall? FunctionCall { get; set; } - /// /// Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used. /// @@ -27,16 +15,11 @@ public sealed partial class Part public global::Google.Gemini.CodeExecutionResult? CodeExecutionResult { get; set; } /// - /// Speech metadata for `text` parts. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speechMetadata")] - public global::Google.Gemini.SpeechMetadata? SpeechMetadata { get; set; } - - /// - /// The result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` made based on model prediction. + /// Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field. /// - [global::System.Text.Json.Serialization.JsonPropertyName("functionResponse")] - public global::Google.Gemini.FunctionResponse? FunctionResponse { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mediaProcessing")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingJsonConverter))] + public global::Google.Gemini.PartMediaProcessing? MediaProcessing { get; set; } /// /// Optional. Indicates if the part is thought from the model. @@ -45,17 +28,16 @@ public sealed partial class Part public bool? Thought { get; set; } /// - /// URI based data. + /// A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileData")] - public global::Google.Gemini.FileData? FileData { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("toolCall")] + public global::Google.Gemini.ToolCall? ToolCall { get; set; } /// - /// Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field. + /// Media resolution for tokenization. /// - [global::System.Text.Json.Serialization.JsonPropertyName("mediaProcessing")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingJsonConverter))] - public global::Google.Gemini.PartMediaProcessing? MediaProcessing { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mediaResolution")] + public global::Google.Gemini.V1mainMediaResolution? MediaResolution { get; set; } /// /// Metadata describes the input video content. Set this in `Part.video_metadata` or `FunctionResponsePart.video_metadata` when `inline_data` or `file_data` contains video to configure static video preprocessing (such as time clipping, frame rate, maximum frame count, or extracted content layers). @@ -63,12 +45,6 @@ public sealed partial class Part [global::System.Text.Json.Serialization.JsonPropertyName("videoMetadata")] public global::Google.Gemini.VideoMetadata? VideoMetadata { get; set; } - /// - /// Optional. An opaque signature for the thought so it can be reused in subsequent requests. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("thoughtSignature")] - public byte[]? ThoughtSignature { get; set; } - /// /// The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolCall`. /// @@ -76,28 +52,28 @@ public sealed partial class Part public global::Google.Gemini.ToolResponse? ToolResponse { get; set; } /// - /// The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate Part with its own AudioTranscription carrying the speaker_label. + /// The result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` made based on model prediction. /// - [global::System.Text.Json.Serialization.JsonPropertyName("audioTranscription")] - public global::Google.Gemini.AudioTranscription? AudioTranscription { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("functionResponse")] + public global::Google.Gemini.FunctionResponse? FunctionResponse { get; set; } /// - /// A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`. + /// Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated. /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolCall")] - public global::Google.Gemini.ToolCall? ToolCall { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("executableCode")] + public global::Google.Gemini.ExecutableCode? ExecutableCode { get; set; } /// - /// Inline text. + /// Speech metadata for `text` parts. /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("speechMetadata")] + public global::Google.Gemini.SpeechMetadata? SpeechMetadata { get; set; } /// - /// Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated. + /// Inline text. /// - [global::System.Text.Json.Serialization.JsonPropertyName("executableCode")] - public global::Google.Gemini.ExecutableCode? ExecutableCode { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } /// /// Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams. @@ -105,12 +81,36 @@ public sealed partial class Part [global::System.Text.Json.Serialization.JsonPropertyName("partMetadata")] public object? PartMetadata { get; set; } + /// + /// URI based data. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fileData")] + public global::Google.Gemini.FileData? FileData { get; set; } + + /// + /// A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("functionCall")] + public global::Google.Gemini.FunctionCall? FunctionCall { get; set; } + /// /// Raw media bytes. Text should not be sent as raw bytes, use the 'text' field. /// [global::System.Text.Json.Serialization.JsonPropertyName("inlineData")] public global::Google.Gemini.Blob? InlineData { get; set; } + /// + /// Optional. An opaque signature for the thought so it can be reused in subsequent requests. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("thoughtSignature")] + public byte[]? ThoughtSignature { get; set; } + + /// + /// The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate Part with its own AudioTranscription carrying the speaker_label. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("audioTranscription")] + public global::Google.Gemini.AudioTranscription? AudioTranscription { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -120,96 +120,96 @@ public sealed partial class Part /// /// Initializes a new instance of the class. /// - /// - /// Media resolution for tokenization. - /// - /// - /// A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values. - /// /// /// Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used. /// - /// - /// Speech metadata for `text` parts. - /// - /// - /// The result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` made based on model prediction. + /// + /// Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field. /// /// /// Optional. Indicates if the part is thought from the model. /// - /// - /// URI based data. + /// + /// A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`. /// - /// - /// Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field. + /// + /// Media resolution for tokenization. /// /// /// Metadata describes the input video content. Set this in `Part.video_metadata` or `FunctionResponsePart.video_metadata` when `inline_data` or `file_data` contains video to configure static video preprocessing (such as time clipping, frame rate, maximum frame count, or extracted content layers). /// - /// - /// Optional. An opaque signature for the thought so it can be reused in subsequent requests. - /// /// /// The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolCall`. /// - /// - /// The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate Part with its own AudioTranscription carrying the speaker_label. + /// + /// The result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` made based on model prediction. /// - /// - /// A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`. + /// + /// Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated. + /// + /// + /// Speech metadata for `text` parts. /// /// /// Inline text. /// - /// - /// Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated. - /// /// /// Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams. /// + /// + /// URI based data. + /// + /// + /// A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values. + /// /// /// Raw media bytes. Text should not be sent as raw bytes, use the 'text' field. /// + /// + /// Optional. An opaque signature for the thought so it can be reused in subsequent requests. + /// + /// + /// The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate Part with its own AudioTranscription carrying the speaker_label. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Part( - global::Google.Gemini.V1mainMediaResolution? mediaResolution, - global::Google.Gemini.FunctionCall? functionCall, global::Google.Gemini.CodeExecutionResult? codeExecutionResult, - global::Google.Gemini.SpeechMetadata? speechMetadata, - global::Google.Gemini.FunctionResponse? functionResponse, - bool? thought, - global::Google.Gemini.FileData? fileData, global::Google.Gemini.PartMediaProcessing? mediaProcessing, + bool? thought, + global::Google.Gemini.ToolCall? toolCall, + global::Google.Gemini.V1mainMediaResolution? mediaResolution, global::Google.Gemini.VideoMetadata? videoMetadata, - byte[]? thoughtSignature, global::Google.Gemini.ToolResponse? toolResponse, - global::Google.Gemini.AudioTranscription? audioTranscription, - global::Google.Gemini.ToolCall? toolCall, - string? text, + global::Google.Gemini.FunctionResponse? functionResponse, global::Google.Gemini.ExecutableCode? executableCode, + global::Google.Gemini.SpeechMetadata? speechMetadata, + string? text, object? partMetadata, - global::Google.Gemini.Blob? inlineData) + global::Google.Gemini.FileData? fileData, + global::Google.Gemini.FunctionCall? functionCall, + global::Google.Gemini.Blob? inlineData, + byte[]? thoughtSignature, + global::Google.Gemini.AudioTranscription? audioTranscription) { - this.MediaResolution = mediaResolution; - this.FunctionCall = functionCall; this.CodeExecutionResult = codeExecutionResult; - this.SpeechMetadata = speechMetadata; - this.FunctionResponse = functionResponse; - this.Thought = thought; - this.FileData = fileData; this.MediaProcessing = mediaProcessing; + this.Thought = thought; + this.ToolCall = toolCall; + this.MediaResolution = mediaResolution; this.VideoMetadata = videoMetadata; - this.ThoughtSignature = thoughtSignature; this.ToolResponse = toolResponse; - this.AudioTranscription = audioTranscription; - this.ToolCall = toolCall; - this.Text = text; + this.FunctionResponse = functionResponse; this.ExecutableCode = executableCode; + this.SpeechMetadata = speechMetadata; + this.Text = text; this.PartMetadata = partMetadata; + this.FileData = fileData; + this.FunctionCall = functionCall; this.InlineData = inlineData; + this.ThoughtSignature = thoughtSignature; + this.AudioTranscription = audioTranscription; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Permission.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Permission.g.cs index 0aa8847d4..582b17c29 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Permission.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Permission.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class Permission { - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("emailAddress")] - public string? EmailAddress { get; set; } - /// /// Optional. Immutable. The type of the grantee. /// @@ -21,6 +15,12 @@ public sealed partial class Permission [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter))] public global::Google.Gemini.PermissionGranteeType? GranteeType { get; set; } + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("emailAddress")] + public string? EmailAddress { get; set; } + /// /// Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.
/// Included only in responses @@ -44,12 +44,12 @@ public sealed partial class Permission /// /// Initializes a new instance of the class. /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// /// Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.
/// Included only in responses @@ -61,13 +61,13 @@ public sealed partial class Permission [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Permission( - string? emailAddress, global::Google.Gemini.PermissionGranteeType? granteeType, + string? emailAddress, string? name, global::Google.Gemini.PermissionRole? role) { - this.EmailAddress = emailAddress; this.GranteeType = granteeType; + this.EmailAddress = emailAddress; this.Name = name; this.Role = role; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PromptFeedback.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PromptFeedback.g.cs index 08e93e4a5..fccaca724 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PromptFeedback.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PromptFeedback.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini ///
public sealed partial class PromptFeedback { + /// + /// Ratings for safety of the prompt. There is at most one rating per category. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("safetyRatings")] + public global::System.Collections.Generic.IList? SafetyRatings { get; set; } + /// /// Optional. If set, the prompt was blocked and no candidates are returned. Rephrase the prompt. /// @@ -15,12 +21,6 @@ public sealed partial class PromptFeedback [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter))] public global::Google.Gemini.PromptFeedbackBlockReason? BlockReason { get; set; } - /// - /// Ratings for safety of the prompt. There is at most one rating per category. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("safetyRatings")] - public global::System.Collections.Generic.IList? SafetyRatings { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,21 +30,21 @@ public sealed partial class PromptFeedback /// /// Initializes a new instance of the class. /// - /// - /// Optional. If set, the prompt was blocked and no candidates are returned. Rephrase the prompt. - /// /// /// Ratings for safety of the prompt. There is at most one rating per category. /// + /// + /// Optional. If set, the prompt was blocked and no candidates are returned. Rephrase the prompt. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PromptFeedback( - global::Google.Gemini.PromptFeedbackBlockReason? blockReason, - global::System.Collections.Generic.IList? safetyRatings) + global::System.Collections.Generic.IList? safetyRatings, + global::Google.Gemini.PromptFeedbackBlockReason? blockReason) { - this.BlockReason = blockReason; this.SafetyRatings = safetyRatings; + this.BlockReason = blockReason; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RealtimeInputConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RealtimeInputConfig.g.cs index cea76db9b..5a440bf77 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RealtimeInputConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RealtimeInputConfig.g.cs @@ -8,18 +8,6 @@ namespace Google.Gemini /// public sealed partial class RealtimeInputConfig { - /// - /// Configures automatic detection of activity. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("automaticActivityDetection")] - public global::Google.Gemini.AutomaticActivityDetection? AutomaticActivityDetection { get; set; } - - /// - /// Optional. Configures interim transcript timestamps. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("interimTranscriptTimestampEnabled")] - public bool? InterimTranscriptTimestampEnabled { get; set; } - /// /// Optional. Defines what effect activity has. /// @@ -34,6 +22,18 @@ public sealed partial class RealtimeInputConfig [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageJsonConverter))] public global::Google.Gemini.RealtimeInputConfigTurnCoverage? TurnCoverage { get; set; } + /// + /// Optional. Configures interim transcript timestamps. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("interimTranscriptTimestampEnabled")] + public bool? InterimTranscriptTimestampEnabled { get; set; } + + /// + /// Configures automatic detection of activity. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("automaticActivityDetection")] + public global::Google.Gemini.AutomaticActivityDetection? AutomaticActivityDetection { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -43,31 +43,31 @@ public sealed partial class RealtimeInputConfig /// /// Initializes a new instance of the class. /// - /// - /// Configures automatic detection of activity. - /// - /// - /// Optional. Configures interim transcript timestamps. - /// /// /// Optional. Defines what effect activity has. /// /// /// Optional. Defines which input is included in the user's turn. /// + /// + /// Optional. Configures interim transcript timestamps. + /// + /// + /// Configures automatic detection of activity. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeInputConfig( - global::Google.Gemini.AutomaticActivityDetection? automaticActivityDetection, - bool? interimTranscriptTimestampEnabled, global::Google.Gemini.RealtimeInputConfigActivityHandling? activityHandling, - global::Google.Gemini.RealtimeInputConfigTurnCoverage? turnCoverage) + global::Google.Gemini.RealtimeInputConfigTurnCoverage? turnCoverage, + bool? interimTranscriptTimestampEnabled, + global::Google.Gemini.AutomaticActivityDetection? automaticActivityDetection) { - this.AutomaticActivityDetection = automaticActivityDetection; - this.InterimTranscriptTimestampEnabled = interimTranscriptTimestampEnabled; this.ActivityHandling = activityHandling; this.TurnCoverage = turnCoverage; + this.InterimTranscriptTimestampEnabled = interimTranscriptTimestampEnabled; + this.AutomaticActivityDetection = automaticActivityDetection; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ResponseFormatConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ResponseFormatConfig.g.cs index cb73b58ed..fafacf588 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ResponseFormatConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ResponseFormatConfig.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class ResponseFormatConfig { - /// - /// Configuration for text output format. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public global::Google.Gemini.TextResponseFormat? Text { get; set; } - /// /// Configuration for audio output format. /// @@ -26,6 +20,12 @@ public sealed partial class ResponseFormatConfig [global::System.Text.Json.Serialization.JsonPropertyName("image")] public global::Google.Gemini.ImageResponseFormat? Image { get; set; } + /// + /// Configuration for text output format. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public global::Google.Gemini.TextResponseFormat? Text { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -35,26 +35,26 @@ public sealed partial class ResponseFormatConfig /// /// Initializes a new instance of the class. /// - /// - /// Configuration for text output format. - /// /// /// Configuration for audio output format. /// /// /// Configuration for image output format. /// + /// + /// Configuration for text output format. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ResponseFormatConfig( - global::Google.Gemini.TextResponseFormat? text, global::Google.Gemini.AudioResponseFormat? audio, - global::Google.Gemini.ImageResponseFormat? image) + global::Google.Gemini.ImageResponseFormat? image, + global::Google.Gemini.TextResponseFormat? text) { - this.Text = text; this.Audio = audio; this.Image = image; + this.Text = text; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RetrievedContext.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RetrievedContext.g.cs index f2777dcaa..585bb1b1b 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RetrievedContext.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RetrievedContext.g.cs @@ -14,12 +14,6 @@ public sealed partial class RetrievedContext [global::System.Text.Json.Serialization.JsonPropertyName("customMetadata")] public global::System.Collections.Generic.IList? CustomMetadata { get; set; } - /// - /// Optional. Page number of the retrieved context, if applicable. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pageNumber")] - public int? PageNumber { get; set; } - /// /// Optional. Title of the document. /// @@ -27,10 +21,10 @@ public sealed partial class RetrievedContext public string? Title { get; set; } /// - /// Optional. Text of the chunk. + /// Optional. Page number of the retrieved context, if applicable. /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("pageNumber")] + public int? PageNumber { get; set; } /// /// Optional. URI reference of the semantic retrieval document. @@ -38,18 +32,24 @@ public sealed partial class RetrievedContext [global::System.Text.Json.Serialization.JsonPropertyName("uri")] public string? Uri { get; set; } - /// - /// Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123` - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStore")] - public string? FileSearchStore { get; set; } - /// /// Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id} /// [global::System.Text.Json.Serialization.JsonPropertyName("mediaId")] public string? MediaId { get; set; } + /// + /// Optional. Text of the chunk. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } + + /// + /// Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123` + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStore")] + public string? FileSearchStore { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -62,43 +62,43 @@ public sealed partial class RetrievedContext /// /// Optional. User-provided metadata about the retrieved context. /// - /// - /// Optional. Page number of the retrieved context, if applicable. - /// /// /// Optional. Title of the document. /// - /// - /// Optional. Text of the chunk. + /// + /// Optional. Page number of the retrieved context, if applicable. /// /// /// Optional. URI reference of the semantic retrieval document. /// - /// - /// Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123` - /// /// /// Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id} /// + /// + /// Optional. Text of the chunk. + /// + /// + /// Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123` + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RetrievedContext( global::System.Collections.Generic.IList? customMetadata, - int? pageNumber, string? title, - string? text, + int? pageNumber, string? uri, - string? fileSearchStore, - string? mediaId) + string? mediaId, + string? text, + string? fileSearchStore) { this.CustomMetadata = customMetadata; - this.PageNumber = pageNumber; this.Title = title; - this.Text = text; + this.PageNumber = pageNumber; this.Uri = uri; - this.FileSearchStore = fileSearchStore; this.MediaId = mediaId; + this.Text = text; + this.FileSearchStore = fileSearchStore; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ReviewSnippet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ReviewSnippet.g.cs index 9183515b6..f4ea2ba76 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ReviewSnippet.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ReviewSnippet.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ReviewSnippet { - /// - /// The ID of the review snippet. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("reviewId")] - public string? ReviewId { get; set; } - /// /// Title of the review. /// [global::System.Text.Json.Serialization.JsonPropertyName("title")] public string? Title { get; set; } + /// + /// The ID of the review snippet. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reviewId")] + public string? ReviewId { get; set; } + /// /// A link that corresponds to the user review on Google Maps. /// @@ -35,12 +35,12 @@ public sealed partial class ReviewSnippet /// /// Initializes a new instance of the class. /// - /// - /// The ID of the review snippet. - /// /// /// Title of the review. /// + /// + /// The ID of the review snippet. + /// /// /// A link that corresponds to the user review on Google Maps. /// @@ -48,12 +48,12 @@ public sealed partial class ReviewSnippet [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ReviewSnippet( - string? reviewId, string? title, + string? reviewId, string? googleMapsUri) { - this.ReviewId = reviewId; this.Title = title; + this.ReviewId = reviewId; this.GoogleMapsUri = googleMapsUri; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRating.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRating.g.cs index 7eb80d6f0..90e5f0552 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRating.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRating.g.cs @@ -9,11 +9,10 @@ namespace Google.Gemini public sealed partial class SafetyRating { /// - /// Required. The category for this rating. + /// Was this content blocked because of this rating? /// - [global::System.Text.Json.Serialization.JsonPropertyName("category")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter))] - public global::Google.Gemini.SafetyRatingCategory? Category { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("blocked")] + public bool? Blocked { get; set; } /// /// Required. The probability of harm for this content. @@ -23,10 +22,11 @@ public sealed partial class SafetyRating public global::Google.Gemini.SafetyRatingProbability? Probability { get; set; } /// - /// Was this content blocked because of this rating? + /// Required. The category for this rating. /// - [global::System.Text.Json.Serialization.JsonPropertyName("blocked")] - public bool? Blocked { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("category")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter))] + public global::Google.Gemini.SafetyRatingCategory? Category { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -37,26 +37,26 @@ public sealed partial class SafetyRating /// /// Initializes a new instance of the class. /// - /// - /// Required. The category for this rating. + /// + /// Was this content blocked because of this rating? /// /// /// Required. The probability of harm for this content. /// - /// - /// Was this content blocked because of this rating? + /// + /// Required. The category for this rating. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SafetyRating( - global::Google.Gemini.SafetyRatingCategory? category, + bool? blocked, global::Google.Gemini.SafetyRatingProbability? probability, - bool? blocked) + global::Google.Gemini.SafetyRatingCategory? category) { - this.Category = category; - this.Probability = probability; this.Blocked = blocked; + this.Probability = probability; + this.Category = category; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRatingCategory.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRatingCategory.g.cs index 07569d2fd..f18df55d3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRatingCategory.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRatingCategory.g.cs @@ -13,7 +13,7 @@ public enum SafetyRatingCategory /// HarmCategoryCivicIntegrity, /// - /// **PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts. + /// **PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts. DEPRECATED: PaLM-only category, not supported by Gemini models. /// HarmCategoryDangerous, /// @@ -21,7 +21,7 @@ public enum SafetyRatingCategory /// HarmCategoryDangerousContent, /// - /// **PaLM** - Negative or harmful comments targeting identity and/or protected attribute. + /// **PaLM** - Negative or harmful comments targeting identity and/or protected attribute. DEPRECATED: PaLM-only category, not supported by Gemini models. /// HarmCategoryDerogatory, /// @@ -37,11 +37,11 @@ public enum SafetyRatingCategory /// HarmCategoryJailbreak, /// - /// **PaLM** - Promotes unchecked medical advice. + /// **PaLM** - Promotes unchecked medical advice. DEPRECATED: PaLM-only category, not supported by Gemini models. /// HarmCategoryMedical, /// - /// **PaLM** - Contains references to sexual acts or other lewd content. + /// **PaLM** - Contains references to sexual acts or other lewd content. DEPRECATED: PaLM-only category, not supported by Gemini models. /// HarmCategorySexual, /// @@ -49,7 +49,7 @@ public enum SafetyRatingCategory /// HarmCategorySexuallyExplicit, /// - /// **PaLM** - Content that is rude, disrespectful, or profane. + /// **PaLM** - Content that is rude, disrespectful, or profane. DEPRECATED: PaLM-only category, not supported by Gemini models. /// HarmCategoryToxicity, /// @@ -57,7 +57,7 @@ public enum SafetyRatingCategory /// HarmCategoryUnspecified, /// - /// **PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore. + /// **PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore. DEPRECATED: PaLM-only category, not supported by Gemini models. /// HarmCategoryViolence, } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySettingCategory.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySettingCategory.g.cs index e9b6183c4..d23da3864 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySettingCategory.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySettingCategory.g.cs @@ -13,7 +13,7 @@ public enum SafetySettingCategory /// HarmCategoryCivicIntegrity, /// - /// **PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts. + /// **PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts. DEPRECATED: PaLM-only category, not supported by Gemini models. /// HarmCategoryDangerous, /// @@ -21,7 +21,7 @@ public enum SafetySettingCategory /// HarmCategoryDangerousContent, /// - /// **PaLM** - Negative or harmful comments targeting identity and/or protected attribute. + /// **PaLM** - Negative or harmful comments targeting identity and/or protected attribute. DEPRECATED: PaLM-only category, not supported by Gemini models. /// HarmCategoryDerogatory, /// @@ -37,11 +37,11 @@ public enum SafetySettingCategory /// HarmCategoryJailbreak, /// - /// **PaLM** - Promotes unchecked medical advice. + /// **PaLM** - Promotes unchecked medical advice. DEPRECATED: PaLM-only category, not supported by Gemini models. /// HarmCategoryMedical, /// - /// **PaLM** - Contains references to sexual acts or other lewd content. + /// **PaLM** - Contains references to sexual acts or other lewd content. DEPRECATED: PaLM-only category, not supported by Gemini models. /// HarmCategorySexual, /// @@ -49,7 +49,7 @@ public enum SafetySettingCategory /// HarmCategorySexuallyExplicit, /// - /// **PaLM** - Content that is rude, disrespectful, or profane. + /// **PaLM** - Content that is rude, disrespectful, or profane. DEPRECATED: PaLM-only category, not supported by Gemini models. /// HarmCategoryToxicity, /// @@ -57,7 +57,7 @@ public enum SafetySettingCategory /// HarmCategoryUnspecified, /// - /// **PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore. + /// **PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore. DEPRECATED: PaLM-only category, not supported by Gemini models. /// HarmCategoryViolence, } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Schema.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Schema.g.cs index 3b6171535..f25f187e9 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Schema.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Schema.g.cs @@ -9,46 +9,40 @@ namespace Google.Gemini public sealed partial class Schema { /// - /// Optional. Required properties of Type.OBJECT. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("required")] - public global::System.Collections.Generic.IList? Required { get; set; } - - /// - /// Optional. Example of the object. Will only populated when the object is the root. + /// Optional. The title of the schema. /// - [global::System.Text.Json.Serialization.JsonPropertyName("example")] - public object? Example { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } /// - /// Optional. Maximum number of the properties for Type.OBJECT. + /// Optional. Minimum number of the properties for Type.OBJECT. /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxProperties")] - public string? MaxProperties { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("minProperties")] + public string? MinProperties { get; set; } /// - /// Optional. The value should be validated against any (one or more) of the subschemas in the list. + /// Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER /// - [global::System.Text.Json.Serialization.JsonPropertyName("anyOf")] - public global::System.Collections.Generic.IList? AnyOf { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("minimum")] + public double? Minimum { get; set; } /// - /// Optional. Indicates if the value may be null. + /// Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality. /// - [global::System.Text.Json.Serialization.JsonPropertyName("nullable")] - public bool? Nullable { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("format")] + public string? Format { get; set; } /// - /// Optional. Default value of the field. Per JSON Schema, this field is intended for documentation generators and doesn't affect validation. Thus it's included here and ignored so that developers who send schemas with a `default` field don't get unknown-field errors. + /// Optional. Maximum length of the Type.STRING /// - [global::System.Text.Json.Serialization.JsonPropertyName("default")] - public object? Default { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxLength")] + public string? MaxLength { get; set; } /// - /// Optional. Minimum number of the properties for Type.OBJECT. + /// Optional. Maximum number of the elements for Type.ARRAY. /// - [global::System.Text.Json.Serialization.JsonPropertyName("minProperties")] - public string? MinProperties { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxItems")] + public string? MaxItems { get; set; } /// /// Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown. @@ -57,70 +51,64 @@ public sealed partial class Schema public string? Description { get; set; } /// - /// Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} - /// - [global::System.Text.Json.Serialization.JsonPropertyName("enum")] - public global::System.Collections.Generic.IList? Enum { get; set; } - - /// - /// Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response. + /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). /// - [global::System.Text.Json.Serialization.JsonPropertyName("propertyOrdering")] - public global::System.Collections.Generic.IList? PropertyOrdering { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("items")] + public global::Google.Gemini.Schema? Items { get; set; } /// - /// Optional. Properties of Type.OBJECT. + /// Optional. Example of the object. Will only populated when the object is the root. /// - [global::System.Text.Json.Serialization.JsonPropertyName("properties")] - public global::System.Collections.Generic.Dictionary? Properties { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("example")] + public object? Example { get; set; } /// - /// Optional. Maximum length of the Type.STRING + /// Optional. Minimum number of the elements for Type.ARRAY. /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxLength")] - public string? MaxLength { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("minItems")] + public string? MinItems { get; set; } /// - /// Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER + /// Optional. The value should be validated against any (one or more) of the subschemas in the list. /// - [global::System.Text.Json.Serialization.JsonPropertyName("minimum")] - public double? Minimum { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("anyOf")] + public global::System.Collections.Generic.IList? AnyOf { get; set; } /// - /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). + /// Optional. Maximum value of the Type.INTEGER and Type.NUMBER /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::Google.Gemini.Schema? Items { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maximum")] + public double? Maximum { get; set; } /// - /// Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING + /// Optional. Indicates if the value may be null. /// - [global::System.Text.Json.Serialization.JsonPropertyName("minLength")] - public string? MinLength { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("nullable")] + public bool? Nullable { get; set; } /// - /// Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality. + /// Optional. Required properties of Type.OBJECT. /// - [global::System.Text.Json.Serialization.JsonPropertyName("format")] - public string? Format { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("required")] + public global::System.Collections.Generic.IList? Required { get; set; } /// - /// Optional. Minimum number of the elements for Type.ARRAY. + /// Optional. Properties of Type.OBJECT. /// - [global::System.Text.Json.Serialization.JsonPropertyName("minItems")] - public string? MinItems { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("properties")] + public global::System.Collections.Generic.Dictionary? Properties { get; set; } /// - /// Optional. Maximum value of the Type.INTEGER and Type.NUMBER + /// Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response. /// - [global::System.Text.Json.Serialization.JsonPropertyName("maximum")] - public double? Maximum { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("propertyOrdering")] + public global::System.Collections.Generic.IList? PropertyOrdering { get; set; } /// - /// Optional. The title of the schema. + /// Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("minLength")] + public string? MinLength { get; set; } /// /// Optional. Pattern of the Type.STRING to restrict a string to a regular expression. @@ -129,10 +117,22 @@ public sealed partial class Schema public string? Pattern { get; set; } /// - /// Optional. Maximum number of the elements for Type.ARRAY. + /// Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxItems")] - public string? MaxItems { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enum")] + public global::System.Collections.Generic.IList? Enum { get; set; } + + /// + /// Optional. Maximum number of the properties for Type.OBJECT. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxProperties")] + public string? MaxProperties { get; set; } + + /// + /// Optional. Default value of the field. Per JSON Schema, this field is intended for documentation generators and doesn't affect validation. Thus it's included here and ignored so that developers who send schemas with a `default` field don't get unknown-field errors. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("default")] + public object? Default { get; set; } /// /// Required. Data type. @@ -150,68 +150,68 @@ public sealed partial class Schema /// /// Initializes a new instance of the class. /// - /// - /// Optional. Required properties of Type.OBJECT. - /// - /// - /// Optional. Example of the object. Will only populated when the object is the root. - /// - /// - /// Optional. Maximum number of the properties for Type.OBJECT. - /// - /// - /// Optional. The value should be validated against any (one or more) of the subschemas in the list. - /// - /// - /// Optional. Indicates if the value may be null. - /// - /// - /// Optional. Default value of the field. Per JSON Schema, this field is intended for documentation generators and doesn't affect validation. Thus it's included here and ignored so that developers who send schemas with a `default` field don't get unknown-field errors. + /// + /// Optional. The title of the schema. /// /// /// Optional. Minimum number of the properties for Type.OBJECT. /// - /// - /// Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown. - /// - /// - /// Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} - /// - /// - /// Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response. + /// + /// Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER /// - /// - /// Optional. Properties of Type.OBJECT. + /// + /// Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality. /// /// /// Optional. Maximum length of the Type.STRING /// - /// - /// Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER + /// + /// Optional. Maximum number of the elements for Type.ARRAY. + /// + /// + /// Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown. /// /// /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). /// - /// - /// Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING - /// - /// - /// Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality. + /// + /// Optional. Example of the object. Will only populated when the object is the root. /// /// /// Optional. Minimum number of the elements for Type.ARRAY. /// + /// + /// Optional. The value should be validated against any (one or more) of the subschemas in the list. + /// /// /// Optional. Maximum value of the Type.INTEGER and Type.NUMBER /// - /// - /// Optional. The title of the schema. + /// + /// Optional. Indicates if the value may be null. + /// + /// + /// Optional. Required properties of Type.OBJECT. + /// + /// + /// Optional. Properties of Type.OBJECT. + /// + /// + /// Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response. + /// + /// + /// Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING /// /// /// Optional. Pattern of the Type.STRING to restrict a string to a regular expression. /// - /// - /// Optional. Maximum number of the elements for Type.ARRAY. + /// + /// Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} + /// + /// + /// Optional. Maximum number of the properties for Type.OBJECT. + /// + /// + /// Optional. Default value of the field. Per JSON Schema, this field is intended for documentation generators and doesn't affect validation. Thus it's included here and ignored so that developers who send schemas with a `default` field don't get unknown-field errors. /// /// /// Required. Data type. @@ -220,50 +220,50 @@ public sealed partial class Schema [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Schema( - global::System.Collections.Generic.IList? required, - object? example, - string? maxProperties, - global::System.Collections.Generic.IList? anyOf, - bool? nullable, - object? @default, + string? title, string? minProperties, - string? description, - global::System.Collections.Generic.IList? @enum, - global::System.Collections.Generic.IList? propertyOrdering, - global::System.Collections.Generic.Dictionary? properties, - string? maxLength, double? minimum, - global::Google.Gemini.Schema? items, - string? minLength, string? format, + string? maxLength, + string? maxItems, + string? description, + global::Google.Gemini.Schema? items, + object? example, string? minItems, + global::System.Collections.Generic.IList? anyOf, double? maximum, - string? title, + bool? nullable, + global::System.Collections.Generic.IList? required, + global::System.Collections.Generic.Dictionary? properties, + global::System.Collections.Generic.IList? propertyOrdering, + string? minLength, string? pattern, - string? maxItems, + global::System.Collections.Generic.IList? @enum, + string? maxProperties, + object? @default, global::Google.Gemini.SchemaType? type) { - this.Required = required; - this.Example = example; - this.MaxProperties = maxProperties; - this.AnyOf = anyOf; - this.Nullable = nullable; - this.Default = @default; + this.Title = title; this.MinProperties = minProperties; - this.Description = description; - this.Enum = @enum; - this.PropertyOrdering = propertyOrdering; - this.Properties = properties; - this.MaxLength = maxLength; this.Minimum = minimum; - this.Items = items; - this.MinLength = minLength; this.Format = format; + this.MaxLength = maxLength; + this.MaxItems = maxItems; + this.Description = description; + this.Items = items; + this.Example = example; this.MinItems = minItems; + this.AnyOf = anyOf; this.Maximum = maximum; - this.Title = title; + this.Nullable = nullable; + this.Required = required; + this.Properties = properties; + this.PropertyOrdering = propertyOrdering; + this.MinLength = minLength; this.Pattern = pattern; - this.MaxItems = maxItems; + this.Enum = @enum; + this.MaxProperties = maxProperties; + this.Default = @default; this.Type = type; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SearchEntryPoint.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SearchEntryPoint.g.cs index 22a069a10..c68b5741c 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SearchEntryPoint.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SearchEntryPoint.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class SearchEntryPoint { - /// - /// Optional. Base64 encoded JSON representing array of tuple. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sdkBlob")] - public byte[]? SdkBlob { get; set; } - /// /// Optional. Web content snippet that can be embedded in a web page or an app webview. /// [global::System.Text.Json.Serialization.JsonPropertyName("renderedContent")] public string? RenderedContent { get; set; } + /// + /// Optional. Base64 encoded JSON representing array of tuple. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sdkBlob")] + public byte[]? SdkBlob { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class SearchEntryPoint /// /// Initializes a new instance of the class. /// - /// - /// Optional. Base64 encoded JSON representing array of tuple. - /// /// /// Optional. Web content snippet that can be embedded in a web page or an app webview. /// + /// + /// Optional. Base64 encoded JSON representing array of tuple. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SearchEntryPoint( - byte[]? sdkBlob, - string? renderedContent) + string? renderedContent, + byte[]? sdkBlob) { - this.SdkBlob = sdkBlob; this.RenderedContent = renderedContent; + this.SdkBlob = sdkBlob; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Source.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Source.g.cs index ebeac9227..ef5ac5cc5 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Source.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Source.g.cs @@ -22,10 +22,10 @@ public sealed partial class Source public global::Google.Gemini.SourceType? Type { get; set; } /// - /// Optional encoding for inline content (e.g. `base64`). + /// Where the source should appear in the environment. /// - [global::System.Text.Json.Serialization.JsonPropertyName("encoding")] - public string? Encoding { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("target")] + public string? Target { get; set; } /// /// The inline content if `type` is `INLINE`. @@ -34,10 +34,10 @@ public sealed partial class Source public string? Content { get; set; } /// - /// Where the source should appear in the environment. + /// Optional encoding for inline content (e.g. `base64`). /// - [global::System.Text.Json.Serialization.JsonPropertyName("target")] - public string? Target { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("encoding")] + public string? Encoding { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -52,14 +52,14 @@ public sealed partial class Source /// The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path. /// /// - /// - /// Optional encoding for inline content (e.g. `base64`). + /// + /// Where the source should appear in the environment. /// /// /// The inline content if `type` is `INLINE`. /// - /// - /// Where the source should appear in the environment. + /// + /// Optional encoding for inline content (e.g. `base64`). /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -67,15 +67,15 @@ public sealed partial class Source public Source( string? source1, global::Google.Gemini.SourceType? type, - string? encoding, + string? target, string? content, - string? target) + string? encoding) { this.Source1 = source1; this.Type = type; - this.Encoding = encoding; - this.Content = content; this.Target = target; + this.Content = content; + this.Encoding = encoding; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeakerVoiceConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeakerVoiceConfig.g.cs index 0a6833b4b..f9754c228 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeakerVoiceConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeakerVoiceConfig.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class SpeakerVoiceConfig { - /// - /// Required. The name of the speaker to use. Should be the same as in the prompt. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] - public string? Speaker { get; set; } - /// /// The configuration for the voice to use. /// [global::System.Text.Json.Serialization.JsonPropertyName("voiceConfig")] public global::Google.Gemini.VoiceConfig? VoiceConfig { get; set; } + /// + /// Required. The name of the speaker to use. Should be the same as in the prompt. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] + public string? Speaker { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class SpeakerVoiceConfig /// /// Initializes a new instance of the class. /// - /// - /// Required. The name of the speaker to use. Should be the same as in the prompt. - /// /// /// The configuration for the voice to use. /// + /// + /// Required. The name of the speaker to use. Should be the same as in the prompt. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SpeakerVoiceConfig( - string? speaker, - global::Google.Gemini.VoiceConfig? voiceConfig) + global::Google.Gemini.VoiceConfig? voiceConfig, + string? speaker) { - this.Speaker = speaker; this.VoiceConfig = voiceConfig; + this.Speaker = speaker; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeechMetadata.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeechMetadata.g.cs index 19d4d7f77..79c438c06 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeechMetadata.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeechMetadata.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class SpeechMetadata { - /// - /// Optional. Optional style instruction for the speech synthesis. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("style")] - public string? Style { get; set; } - /// /// Optional. Optional speaker name for multi-speaker synthesis. /// [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] public string? Speaker { get; set; } + /// + /// Optional. Optional style instruction for the speech synthesis. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("style")] + public string? Style { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class SpeechMetadata /// /// Initializes a new instance of the class. /// - /// - /// Optional. Optional style instruction for the speech synthesis. - /// /// /// Optional. Optional speaker name for multi-speaker synthesis. /// + /// + /// Optional. Optional style instruction for the speech synthesis. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SpeechMetadata( - string? style, - string? speaker) + string? speaker, + string? style) { - this.Style = style; this.Speaker = speaker; + this.Style = style; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Status.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Status.g.cs index 7db73b4f3..3b58e2920 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Status.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Status.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class Status { - /// - /// A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - /// /// The status code, which should be an enum value of google.rpc.Code. /// @@ -26,6 +20,12 @@ public sealed partial class Status [global::System.Text.Json.Serialization.JsonPropertyName("details")] public global::System.Collections.Generic.IList? Details { get; set; } + /// + /// A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + public string? Message { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -35,26 +35,26 @@ public sealed partial class Status /// /// Initializes a new instance of the class. /// - /// - /// A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. - /// /// /// The status code, which should be an enum value of google.rpc.Code. /// /// /// A list of messages that carry the error details. There is a common set of message types for APIs to use. /// + /// + /// A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Status( - string? message, int? code, - global::System.Collections.Generic.IList? details) + global::System.Collections.Generic.IList? details, + string? message) { - this.Message = message; this.Code = code; this.Details = details; + this.Message = message; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.StreamableHttpTransport.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.StreamableHttpTransport.g.cs index a5f45ac15..2368a1193 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.StreamableHttpTransport.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.StreamableHttpTransport.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class StreamableHttpTransport { - /// - /// Timeout for SSE read operations. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sseReadTimeout")] - public string? SseReadTimeout { get; set; } - /// /// Optional: Fields for authentication headers, timeouts, etc., if needed. /// @@ -26,18 +20,24 @@ public sealed partial class StreamableHttpTransport [global::System.Text.Json.Serialization.JsonPropertyName("timeout")] public string? Timeout { get; set; } - /// - /// Whether to close the client session when the transport closes. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("terminateOnClose")] - public bool? TerminateOnClose { get; set; } - /// /// The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp" /// [global::System.Text.Json.Serialization.JsonPropertyName("url")] public string? Url { get; set; } + /// + /// Timeout for SSE read operations. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sseReadTimeout")] + public string? SseReadTimeout { get; set; } + + /// + /// Whether to close the client session when the transport closes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("terminateOnClose")] + public bool? TerminateOnClose { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -47,36 +47,36 @@ public sealed partial class StreamableHttpTransport /// /// Initializes a new instance of the class. /// - /// - /// Timeout for SSE read operations. - /// /// /// Optional: Fields for authentication headers, timeouts, etc., if needed. /// /// /// HTTP timeout for regular operations. /// - /// - /// Whether to close the client session when the transport closes. - /// /// /// The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp" /// + /// + /// Timeout for SSE read operations. + /// + /// + /// Whether to close the client session when the transport closes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public StreamableHttpTransport( - string? sseReadTimeout, global::System.Collections.Generic.Dictionary? headers, string? timeout, - bool? terminateOnClose, - string? url) + string? url, + string? sseReadTimeout, + bool? terminateOnClose) { - this.SseReadTimeout = sseReadTimeout; this.Headers = headers; this.Timeout = timeout; - this.TerminateOnClose = terminateOnClose; this.Url = url; + this.SseReadTimeout = sseReadTimeout; + this.TerminateOnClose = terminateOnClose; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ThinkingConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ThinkingConfig.g.cs index f6546f19b..fe471aeb8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ThinkingConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ThinkingConfig.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ThinkingConfig { - /// - /// Indicates whether to include thoughts in the response. If true, thoughts are returned only when available. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("includeThoughts")] - public bool? IncludeThoughts { get; set; } - /// /// The number of thoughts tokens that the model should generate. /// [global::System.Text.Json.Serialization.JsonPropertyName("thinkingBudget")] public int? ThinkingBudget { get; set; } + /// + /// Indicates whether to include thoughts in the response. If true, thoughts are returned only when available. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("includeThoughts")] + public bool? IncludeThoughts { get; set; } + /// /// Optional. Controls the maximum depth of the model's internal reasoning process before it produces a response. The default value is model-dependent. Refer to the [Thinking levels guide](https://ai.google.dev/gemini-api/docs/thinking#thinking-levels) for more details. Recommended for Gemini 3 or later models. Use with earlier models results in an error. /// @@ -36,12 +36,12 @@ public sealed partial class ThinkingConfig /// /// Initializes a new instance of the class. /// - /// - /// Indicates whether to include thoughts in the response. If true, thoughts are returned only when available. - /// /// /// The number of thoughts tokens that the model should generate. /// + /// + /// Indicates whether to include thoughts in the response. If true, thoughts are returned only when available. + /// /// /// Optional. Controls the maximum depth of the model's internal reasoning process before it produces a response. The default value is model-dependent. Refer to the [Thinking levels guide](https://ai.google.dev/gemini-api/docs/thinking#thinking-levels) for more details. Recommended for Gemini 3 or later models. Use with earlier models results in an error. /// @@ -49,12 +49,12 @@ public sealed partial class ThinkingConfig [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ThinkingConfig( - bool? includeThoughts, int? thinkingBudget, + bool? includeThoughts, global::Google.Gemini.ThinkingConfigThinkingLevel? thinkingLevel) { - this.IncludeThoughts = includeThoughts; this.ThinkingBudget = thinkingBudget; + this.IncludeThoughts = includeThoughts; this.ThinkingLevel = thinkingLevel; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Tool.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Tool.g.cs index 3097b10d0..7129be651 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Tool.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Tool.g.cs @@ -9,28 +9,28 @@ namespace Google.Gemini public sealed partial class Tool { /// - /// Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool. + /// Tool to retrieve public web data for grounding, powered by Google. /// - [global::System.Text.Json.Serialization.JsonPropertyName("codeExecution")] - public global::Google.Gemini.CodeExecution? CodeExecution { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("googleSearchRetrieval")] + public global::Google.Gemini.GoogleSearchRetrieval? GoogleSearchRetrieval { get; set; } /// - /// The GoogleMaps Tool that provides geospatial context for the user's query. + /// Optional. A list of `FunctionDeclarations` available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a FunctionCall with arguments to the client side for execution. The model may decide to call a subset of these functions by populating FunctionCall in the response. The next conversation turn may contain a FunctionResponse with the Content.role "function" generation context for the next model turn. /// - [global::System.Text.Json.Serialization.JsonPropertyName("googleMaps")] - public global::Google.Gemini.GoogleMaps? GoogleMaps { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("functionDeclarations")] + public global::System.Collections.Generic.IList? FunctionDeclarations { get; set; } /// - /// Tool to support URL context retrieval. + /// GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. /// - [global::System.Text.Json.Serialization.JsonPropertyName("urlContext")] - public global::Google.Gemini.UrlContext? UrlContext { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("googleSearch")] + public global::Google.Gemini.GoogleSearch? GoogleSearch { get; set; } /// - /// Tool to retrieve public web data for grounding, powered by Google. + /// The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API. /// - [global::System.Text.Json.Serialization.JsonPropertyName("googleSearchRetrieval")] - public global::Google.Gemini.GoogleSearchRetrieval? GoogleSearchRetrieval { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("fileSearch")] + public global::Google.Gemini.FileSearch? FileSearch { get; set; } /// /// Optional. MCP Servers to connect to. @@ -39,28 +39,28 @@ public sealed partial class Tool public global::System.Collections.Generic.IList? McpServers { get; set; } /// - /// Computer Use tool type. + /// The GoogleMaps Tool that provides geospatial context for the user's query. /// - [global::System.Text.Json.Serialization.JsonPropertyName("computerUse")] - public global::Google.Gemini.ComputerUse? ComputerUse { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("googleMaps")] + public global::Google.Gemini.GoogleMaps? GoogleMaps { get; set; } /// - /// The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API. + /// Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool. /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileSearch")] - public global::Google.Gemini.FileSearch? FileSearch { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("codeExecution")] + public global::Google.Gemini.CodeExecution? CodeExecution { get; set; } /// - /// GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. + /// Tool to support URL context retrieval. /// - [global::System.Text.Json.Serialization.JsonPropertyName("googleSearch")] - public global::Google.Gemini.GoogleSearch? GoogleSearch { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("urlContext")] + public global::Google.Gemini.UrlContext? UrlContext { get; set; } /// - /// Optional. A list of `FunctionDeclarations` available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a FunctionCall with arguments to the client side for execution. The model may decide to call a subset of these functions by populating FunctionCall in the response. The next conversation turn may contain a FunctionResponse with the Content.role "function" generation context for the next model turn. + /// Computer Use tool type. /// - [global::System.Text.Json.Serialization.JsonPropertyName("functionDeclarations")] - public global::System.Collections.Generic.IList? FunctionDeclarations { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("computerUse")] + public global::Google.Gemini.ComputerUse? ComputerUse { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -71,56 +71,56 @@ public sealed partial class Tool /// /// Initializes a new instance of the class. /// - /// - /// Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool. + /// + /// Tool to retrieve public web data for grounding, powered by Google. /// - /// - /// The GoogleMaps Tool that provides geospatial context for the user's query. + /// + /// Optional. A list of `FunctionDeclarations` available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a FunctionCall with arguments to the client side for execution. The model may decide to call a subset of these functions by populating FunctionCall in the response. The next conversation turn may contain a FunctionResponse with the Content.role "function" generation context for the next model turn. /// - /// - /// Tool to support URL context retrieval. + /// + /// GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. /// - /// - /// Tool to retrieve public web data for grounding, powered by Google. + /// + /// The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API. /// /// /// Optional. MCP Servers to connect to. /// - /// - /// Computer Use tool type. + /// + /// The GoogleMaps Tool that provides geospatial context for the user's query. /// - /// - /// The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API. + /// + /// Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool. /// - /// - /// GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. + /// + /// Tool to support URL context retrieval. /// - /// - /// Optional. A list of `FunctionDeclarations` available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a FunctionCall with arguments to the client side for execution. The model may decide to call a subset of these functions by populating FunctionCall in the response. The next conversation turn may contain a FunctionResponse with the Content.role "function" generation context for the next model turn. + /// + /// Computer Use tool type. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Tool( - global::Google.Gemini.CodeExecution? codeExecution, - global::Google.Gemini.GoogleMaps? googleMaps, - global::Google.Gemini.UrlContext? urlContext, global::Google.Gemini.GoogleSearchRetrieval? googleSearchRetrieval, - global::System.Collections.Generic.IList? mcpServers, - global::Google.Gemini.ComputerUse? computerUse, - global::Google.Gemini.FileSearch? fileSearch, + global::System.Collections.Generic.IList? functionDeclarations, global::Google.Gemini.GoogleSearch? googleSearch, - global::System.Collections.Generic.IList? functionDeclarations) + global::Google.Gemini.FileSearch? fileSearch, + global::System.Collections.Generic.IList? mcpServers, + global::Google.Gemini.GoogleMaps? googleMaps, + global::Google.Gemini.CodeExecution? codeExecution, + global::Google.Gemini.UrlContext? urlContext, + global::Google.Gemini.ComputerUse? computerUse) { - this.CodeExecution = codeExecution; - this.GoogleMaps = googleMaps; - this.UrlContext = urlContext; this.GoogleSearchRetrieval = googleSearchRetrieval; + this.FunctionDeclarations = functionDeclarations; + this.GoogleSearch = googleSearch; + this.FileSearch = fileSearch; this.McpServers = mcpServers; + this.GoogleMaps = googleMaps; + this.CodeExecution = codeExecution; + this.UrlContext = urlContext; this.ComputerUse = computerUse; - this.FileSearch = fileSearch; - this.GoogleSearch = googleSearch; - this.FunctionDeclarations = functionDeclarations; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolCall.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolCall.g.cs index f11d53185..d6d01ce78 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolCall.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolCall.g.cs @@ -15,10 +15,11 @@ public sealed partial class ToolCall public object? Args { get; set; } /// - /// Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`. + /// Required. The type of tool that was called. /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("toolType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter))] + public global::Google.Gemini.ToolCallToolType? ToolType { get; set; } /// /// Optional. The name of the tool that was called. @@ -27,11 +28,10 @@ public sealed partial class ToolCall public string? ToolName { get; set; } /// - /// Required. The type of tool that was called. + /// Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolType")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter))] - public global::Google.Gemini.ToolCallToolType? ToolType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -45,28 +45,28 @@ public sealed partial class ToolCall /// /// Optional. The tool call arguments. Example: {"arg1" : "value1", "arg2" : "value2" , ...} /// - /// - /// Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`. + /// + /// Required. The type of tool that was called. /// /// /// Optional. The name of the tool that was called. /// - /// - /// Required. The type of tool that was called. + /// + /// Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ToolCall( object? args, - string? id, + global::Google.Gemini.ToolCallToolType? toolType, string? toolName, - global::Google.Gemini.ToolCallToolType? toolType) + string? id) { this.Args = args; - this.Id = id; - this.ToolName = toolName; this.ToolType = toolType; + this.ToolName = toolName; + this.Id = id; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolConfig.g.cs index 623a5550d..247efaa65 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolConfig.g.cs @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class ToolConfig { /// - /// Optional. If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool interactions. + /// Configuration for specifying function calling behavior. /// - [global::System.Text.Json.Serialization.JsonPropertyName("includeServerSideToolInvocations")] - public bool? IncludeServerSideToolInvocations { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("functionCallingConfig")] + public global::Google.Gemini.FunctionCallingConfig? FunctionCallingConfig { get; set; } /// /// Retrieval config. @@ -21,10 +21,10 @@ public sealed partial class ToolConfig public global::Google.Gemini.RetrievalConfig? RetrievalConfig { get; set; } /// - /// Configuration for specifying function calling behavior. + /// Optional. If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool interactions. /// - [global::System.Text.Json.Serialization.JsonPropertyName("functionCallingConfig")] - public global::Google.Gemini.FunctionCallingConfig? FunctionCallingConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("includeServerSideToolInvocations")] + public bool? IncludeServerSideToolInvocations { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -35,26 +35,26 @@ public sealed partial class ToolConfig /// /// Initializes a new instance of the class. /// - /// - /// Optional. If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool interactions. + /// + /// Configuration for specifying function calling behavior. /// /// /// Retrieval config. /// - /// - /// Configuration for specifying function calling behavior. + /// + /// Optional. If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool interactions. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ToolConfig( - bool? includeServerSideToolInvocations, + global::Google.Gemini.FunctionCallingConfig? functionCallingConfig, global::Google.Gemini.RetrievalConfig? retrievalConfig, - global::Google.Gemini.FunctionCallingConfig? functionCallingConfig) + bool? includeServerSideToolInvocations) { - this.IncludeServerSideToolInvocations = includeServerSideToolInvocations; - this.RetrievalConfig = retrievalConfig; this.FunctionCallingConfig = functionCallingConfig; + this.RetrievalConfig = retrievalConfig; + this.IncludeServerSideToolInvocations = includeServerSideToolInvocations; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolResponse.g.cs index e99681cb7..faa08bd8d 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolResponse.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class ToolResponse { - /// - /// Optional. The identifier of the tool call this response is for. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } - /// /// Optional. The tool response. /// @@ -27,6 +21,12 @@ public sealed partial class ToolResponse [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter))] public global::Google.Gemini.ToolResponseToolType? ToolType { get; set; } + /// + /// Optional. The identifier of the tool call this response is for. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -36,26 +36,26 @@ public sealed partial class ToolResponse /// /// Initializes a new instance of the class. /// - /// - /// Optional. The identifier of the tool call this response is for. - /// /// /// Optional. The tool response. /// /// /// Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`. /// + /// + /// Optional. The identifier of the tool call this response is for. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ToolResponse( - string? id, object? response, - global::Google.Gemini.ToolResponseToolType? toolType) + global::Google.Gemini.ToolResponseToolType? toolType, + string? id) { - this.Id = id; this.Response = response; this.ToolType = toolType; + this.Id = id; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModel.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModel.g.cs index aa794f61f..5c1dfa990 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModel.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModel.g.cs @@ -9,11 +9,10 @@ namespace Google.Gemini public sealed partial class TunedModel { /// - /// Output only. The timestamp when this model was updated.
- /// Included only in responses + /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("topK")] + public int? TopK { get; set; } /// /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. @@ -21,30 +20,12 @@ public sealed partial class TunedModel [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] public string? DisplayName { get; set; } - /// - /// Tuning tasks that create tuned models. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tuningTask")] - public global::Google.Gemini.TuningTask? TuningTask { get; set; } - - /// - /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public float? Temperature { get; set; } - /// /// Optional. A short description of this model. /// [global::System.Text.Json.Serialization.JsonPropertyName("description")] public string? Description { get; set; } - /// - /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("topP")] - public float? TopP { get; set; } - /// /// Output only. The state of the tuned model.
/// Included only in responses @@ -54,16 +35,17 @@ public sealed partial class TunedModel public global::Google.Gemini.TunedModelState? State { get; set; } /// - /// Optional. List of project numbers that have read access to the tuned model. + /// Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("readerProjectNumbers")] - public global::System.Collections.Generic.IList? ReaderProjectNumbers { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// - /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. + /// Tuning tasks that create tuned models. /// - [global::System.Text.Json.Serialization.JsonPropertyName("topK")] - public int? TopK { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tuningTask")] + public global::Google.Gemini.TuningTask? TuningTask { get; set; } /// /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` @@ -78,6 +60,19 @@ public sealed partial class TunedModel [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] public string? CreateTime { get; set; } + /// + /// Output only. The timestamp when this model was updated.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } + + /// + /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public float? Temperature { get; set; } + /// /// Tuned model as a source for training a new model. /// @@ -85,11 +80,16 @@ public sealed partial class TunedModel public global::Google.Gemini.TunedModelSource? TunedModelSource { get; set; } /// - /// Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`
- /// Included only in responses + /// Optional. List of project numbers that have read access to the tuned model. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("readerProjectNumbers")] + public global::System.Collections.Generic.IList? ReaderProjectNumbers { get; set; } + + /// + /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("topP")] + public float? TopP { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -100,34 +100,25 @@ public sealed partial class TunedModel /// /// Initializes a new instance of the class. /// - /// - /// Output only. The timestamp when this model was updated.
- /// Included only in responses + /// + /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. /// /// /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. /// - /// - /// Tuning tasks that create tuned models. - /// - /// - /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model. - /// /// /// Optional. A short description of this model. /// - /// - /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. - /// /// /// Output only. The state of the tuned model.
/// Included only in responses /// - /// - /// Optional. List of project numbers that have read access to the tuned model. + /// + /// Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`
+ /// Included only in responses /// - /// - /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. + /// + /// Tuning tasks that create tuned models. /// /// /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` @@ -136,44 +127,53 @@ public sealed partial class TunedModel /// Output only. The timestamp when this model was created.
/// Included only in responses /// + /// + /// Output only. The timestamp when this model was updated.
+ /// Included only in responses + /// + /// + /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model. + /// /// /// Tuned model as a source for training a new model. /// - /// - /// Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`
- /// Included only in responses + /// + /// Optional. List of project numbers that have read access to the tuned model. + /// + /// + /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TunedModel( - string? updateTime, + int? topK, string? displayName, - global::Google.Gemini.TuningTask? tuningTask, - float? temperature, string? description, - float? topP, global::Google.Gemini.TunedModelState? state, - global::System.Collections.Generic.IList? readerProjectNumbers, - int? topK, + string? name, + global::Google.Gemini.TuningTask? tuningTask, string? baseModel, string? createTime, + string? updateTime, + float? temperature, global::Google.Gemini.TunedModelSource? tunedModelSource, - string? name) + global::System.Collections.Generic.IList? readerProjectNumbers, + float? topP) { - this.UpdateTime = updateTime; + this.TopK = topK; this.DisplayName = displayName; - this.TuningTask = tuningTask; - this.Temperature = temperature; this.Description = description; - this.TopP = topP; this.State = state; - this.ReaderProjectNumbers = readerProjectNumbers; - this.TopK = topK; + this.Name = name; + this.TuningTask = tuningTask; this.BaseModel = baseModel; this.CreateTime = createTime; + this.UpdateTime = updateTime; + this.Temperature = temperature; this.TunedModelSource = tunedModelSource; - this.Name = name; + this.ReaderProjectNumbers = readerProjectNumbers; + this.TopP = topP; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModelSource.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModelSource.g.cs index ceaaa53fe..bafee2ce8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModelSource.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModelSource.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class TunedModelSource { + /// + /// Immutable. The name of the `TunedModel` to use as the starting point for training the new model. Example: `tunedModels/my-tuned-model` + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tunedModel")] + public string? TunedModel { get; set; } + /// /// Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/gemini-1.5-flash-001`
/// Included only in responses @@ -15,12 +21,6 @@ public sealed partial class TunedModelSource [global::System.Text.Json.Serialization.JsonPropertyName("baseModel")] public string? BaseModel { get; set; } - /// - /// Immutable. The name of the `TunedModel` to use as the starting point for training the new model. Example: `tunedModels/my-tuned-model` - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tunedModel")] - public string? TunedModel { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,22 +30,22 @@ public sealed partial class TunedModelSource /// /// Initializes a new instance of the class. /// + /// + /// Immutable. The name of the `TunedModel` to use as the starting point for training the new model. Example: `tunedModels/my-tuned-model` + /// /// /// Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/gemini-1.5-flash-001`
/// Included only in responses /// - /// - /// Immutable. The name of the `TunedModel` to use as the starting point for training the new model. Example: `tunedModels/my-tuned-model` - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TunedModelSource( - string? baseModel, - string? tunedModel) + string? tunedModel, + string? baseModel) { - this.BaseModel = baseModel; this.TunedModel = tunedModel; + this.BaseModel = baseModel; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningExample.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningExample.g.cs index b3691f198..3ea7ac7dc 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningExample.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningExample.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class TuningExample { - /// - /// Optional. Text model input. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("textInput")] - public string? TextInput { get; set; } - /// /// Required. The expected model output. /// [global::System.Text.Json.Serialization.JsonPropertyName("output")] public string? Output { get; set; } + /// + /// Optional. Text model input. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("textInput")] + public string? TextInput { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class TuningExample /// /// Initializes a new instance of the class. /// - /// - /// Optional. Text model input. - /// /// /// Required. The expected model output. /// + /// + /// Optional. Text model input. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TuningExample( - string? textInput, - string? output) + string? output, + string? textInput) { - this.TextInput = textInput; this.Output = output; + this.TextInput = textInput; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningSnapshot.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningSnapshot.g.cs index 4f9708277..2769a6cfe 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningSnapshot.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningSnapshot.g.cs @@ -9,32 +9,32 @@ namespace Google.Gemini public sealed partial class TuningSnapshot { /// - /// Output only. The timestamp when this metric was computed.
+ /// Output only. The epoch this step was part of.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("computeTime")] - public string? ComputeTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("epoch")] + public int? Epoch { get; set; } /// - /// Output only. The epoch this step was part of.
+ /// Output only. The tuning step.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("epoch")] - public int? Epoch { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("step")] + public int? Step { get; set; } /// - /// Output only. The mean loss of the training examples for this step.
+ /// Output only. The timestamp when this metric was computed.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("meanLoss")] - public float? MeanLoss { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("computeTime")] + public string? ComputeTime { get; set; } /// - /// Output only. The tuning step.
+ /// Output only. The mean loss of the training examples for this step.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("meanLoss")] + public float? MeanLoss { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -45,35 +45,35 @@ public sealed partial class TuningSnapshot /// /// Initializes a new instance of the class. /// - /// - /// Output only. The timestamp when this metric was computed.
- /// Included only in responses - /// /// /// Output only. The epoch this step was part of.
/// Included only in responses /// - /// - /// Output only. The mean loss of the training examples for this step.
- /// Included only in responses - /// /// /// Output only. The tuning step.
/// Included only in responses /// + /// + /// Output only. The timestamp when this metric was computed.
+ /// Included only in responses + /// + /// + /// Output only. The mean loss of the training examples for this step.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TuningSnapshot( - string? computeTime, int? epoch, - float? meanLoss, - int? step) + int? step, + string? computeTime, + float? meanLoss) { - this.ComputeTime = computeTime; this.Epoch = epoch; - this.MeanLoss = meanLoss; this.Step = step; + this.ComputeTime = computeTime; + this.MeanLoss = meanLoss; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningTask.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningTask.g.cs index e7958ff7d..94fa11458 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningTask.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningTask.g.cs @@ -16,10 +16,11 @@ public sealed partial class TuningTask public string? CompleteTime { get; set; } /// - /// Dataset for training or validation. + /// Output only. The timestamp when tuning this model started.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("trainingData")] - public global::Google.Gemini.Dataset? TrainingData { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("startTime")] + public string? StartTime { get; set; } /// /// Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance @@ -27,13 +28,6 @@ public sealed partial class TuningTask [global::System.Text.Json.Serialization.JsonPropertyName("hyperparameters")] public global::Google.Gemini.Hyperparameters? Hyperparameters { get; set; } - /// - /// Output only. The timestamp when tuning this model started.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("startTime")] - public string? StartTime { get; set; } - /// /// Output only. Metrics collected during tuning.
/// Included only in responses @@ -41,6 +35,12 @@ public sealed partial class TuningTask [global::System.Text.Json.Serialization.JsonPropertyName("snapshots")] public global::System.Collections.Generic.IList? Snapshots { get; set; } + /// + /// Dataset for training or validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("trainingData")] + public global::Google.Gemini.Dataset? TrainingData { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -54,35 +54,35 @@ public sealed partial class TuningTask /// Output only. The timestamp when tuning this model completed.
/// Included only in responses /// - /// - /// Dataset for training or validation. - /// - /// - /// Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance - /// /// /// Output only. The timestamp when tuning this model started.
/// Included only in responses /// + /// + /// Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance + /// /// /// Output only. Metrics collected during tuning.
/// Included only in responses /// + /// + /// Dataset for training or validation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TuningTask( string? completeTime, - global::Google.Gemini.Dataset? trainingData, - global::Google.Gemini.Hyperparameters? hyperparameters, string? startTime, - global::System.Collections.Generic.IList? snapshots) + global::Google.Gemini.Hyperparameters? hyperparameters, + global::System.Collections.Generic.IList? snapshots, + global::Google.Gemini.Dataset? trainingData) { this.CompleteTime = completeTime; - this.TrainingData = trainingData; - this.Hyperparameters = hyperparameters; this.StartTime = startTime; + this.Hyperparameters = hyperparameters; this.Snapshots = snapshots; + this.TrainingData = trainingData; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UploadToFileSearchStoreRequest.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UploadToFileSearchStoreRequest.g.cs index 68aeba7c6..505bd78eb 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UploadToFileSearchStoreRequest.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UploadToFileSearchStoreRequest.g.cs @@ -9,16 +9,10 @@ namespace Google.Gemini public sealed partial class UploadToFileSearchStoreRequest { /// - /// Optional. Display name of the created document. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } - - /// - /// Custom metadata to be associated with the data. + /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto /// - [global::System.Text.Json.Serialization.JsonPropertyName("customMetadata")] - public global::System.Collections.Generic.IList? CustomMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("chunkingConfig")] + public global::Google.Gemini.ChunkingConfig? ChunkingConfig { get; set; } /// /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. @@ -27,10 +21,16 @@ public sealed partial class UploadToFileSearchStoreRequest public string? MimeType { get; set; } /// - /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto + /// Optional. Display name of the created document. /// - [global::System.Text.Json.Serialization.JsonPropertyName("chunkingConfig")] - public global::Google.Gemini.ChunkingConfig? ChunkingConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } + + /// + /// Custom metadata to be associated with the data. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("customMetadata")] + public global::System.Collections.Generic.IList? CustomMetadata { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -41,31 +41,31 @@ public sealed partial class UploadToFileSearchStoreRequest /// /// Initializes a new instance of the class. /// + /// + /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto + /// + /// + /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. + /// /// /// Optional. Display name of the created document. /// /// /// Custom metadata to be associated with the data. /// - /// - /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. - /// - /// - /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public UploadToFileSearchStoreRequest( - string? displayName, - global::System.Collections.Generic.IList? customMetadata, + global::Google.Gemini.ChunkingConfig? chunkingConfig, string? mimeType, - global::Google.Gemini.ChunkingConfig? chunkingConfig) + string? displayName, + global::System.Collections.Generic.IList? customMetadata) { + this.ChunkingConfig = chunkingConfig; + this.MimeType = mimeType; this.DisplayName = displayName; this.CustomMetadata = customMetadata; - this.MimeType = mimeType; - this.ChunkingConfig = chunkingConfig; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UsageMetadata.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UsageMetadata.g.cs index 4961f9a7d..411a3d5c7 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UsageMetadata.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UsageMetadata.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class UsageMetadata { - /// - /// Total number of tokens across all the generated response candidates. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("candidatesTokenCount")] - public int? CandidatesTokenCount { get; set; } - /// /// Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content. /// @@ -21,24 +15,25 @@ public sealed partial class UsageMetadata public int? PromptTokenCount { get; set; } /// - /// Output only. List of modalities that were processed for tool-use request inputs.
+ /// Output only. Number of tokens of thoughts for thinking models.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("toolUsePromptTokensDetails")] - public global::System.Collections.Generic.IList? ToolUsePromptTokensDetails { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("thoughtsTokenCount")] + public int? ThoughtsTokenCount { get; set; } /// - /// Number of tokens in the cached part of the prompt (the cached content) + /// Output only. List of modalities that were processed for tool-use request inputs.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("cachedContentTokenCount")] - public int? CachedContentTokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("toolUsePromptTokensDetails")] + public global::System.Collections.Generic.IList? ToolUsePromptTokensDetails { get; set; } /// - /// Output only. Number of tokens present in tool-use prompt(s).
+ /// Output only. List of modalities that were returned in the response.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("toolUsePromptTokenCount")] - public int? ToolUsePromptTokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("candidatesTokensDetails")] + public global::System.Collections.Generic.IList? CandidatesTokensDetails { get; set; } /// /// Output only. Service tier of the request.
@@ -49,25 +44,23 @@ public sealed partial class UsageMetadata public global::Google.Gemini.UsageMetadataServiceTier? ServiceTier { get; set; } /// - /// Output only. Number of tokens of thoughts for thinking models.
- /// Included only in responses + /// Number of tokens in the cached part of the prompt (the cached content) ///
- [global::System.Text.Json.Serialization.JsonPropertyName("thoughtsTokenCount")] - public int? ThoughtsTokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("cachedContentTokenCount")] + public int? CachedContentTokenCount { get; set; } /// - /// Output only. List of modalities of the cached content in the request input.
+ /// Output only. Number of tokens present in tool-use prompt(s).
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("cacheTokensDetails")] - public global::System.Collections.Generic.IList? CacheTokensDetails { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("toolUsePromptTokenCount")] + public int? ToolUsePromptTokenCount { get; set; } /// - /// Output only. List of modalities that were processed in the request input.
- /// Included only in responses + /// Total number of tokens across all the generated response candidates. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("promptTokensDetails")] - public global::System.Collections.Generic.IList? PromptTokensDetails { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("candidatesTokenCount")] + public int? CandidatesTokenCount { get; set; } /// /// Total token count for the generation request (prompt + tool-use prompt + thoughts + response candidates). @@ -76,11 +69,18 @@ public sealed partial class UsageMetadata public int? TotalTokenCount { get; set; } /// - /// Output only. List of modalities that were returned in the response.
+ /// Output only. List of modalities that were processed in the request input.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("candidatesTokensDetails")] - public global::System.Collections.Generic.IList? CandidatesTokensDetails { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("promptTokensDetails")] + public global::System.Collections.Generic.IList? PromptTokensDetails { get; set; } + + /// + /// Output only. List of modalities of the cached content in the request input.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("cacheTokensDetails")] + public global::System.Collections.Generic.IList? CacheTokensDetails { get; set; } /// /// Output only. Number of tokens in the response. Used by Gemini 3.1+ Live API models instead of candidatesTokenCount.
@@ -105,44 +105,44 @@ public sealed partial class UsageMetadata /// /// Initializes a new instance of the class. /// - /// - /// Total number of tokens across all the generated response candidates. - /// /// /// Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content. /// + /// + /// Output only. Number of tokens of thoughts for thinking models.
+ /// Included only in responses + /// /// /// Output only. List of modalities that were processed for tool-use request inputs.
/// Included only in responses /// - /// - /// Number of tokens in the cached part of the prompt (the cached content) - /// - /// - /// Output only. Number of tokens present in tool-use prompt(s).
+ /// + /// Output only. List of modalities that were returned in the response.
/// Included only in responses /// /// /// Output only. Service tier of the request.
/// Included only in responses /// - /// - /// Output only. Number of tokens of thoughts for thinking models.
- /// Included only in responses + /// + /// Number of tokens in the cached part of the prompt (the cached content) /// - /// - /// Output only. List of modalities of the cached content in the request input.
+ /// + /// Output only. Number of tokens present in tool-use prompt(s).
/// Included only in responses /// - /// - /// Output only. List of modalities that were processed in the request input.
- /// Included only in responses + /// + /// Total number of tokens across all the generated response candidates. /// /// /// Total token count for the generation request (prompt + tool-use prompt + thoughts + response candidates). /// - /// - /// Output only. List of modalities that were returned in the response.
+ /// + /// Output only. List of modalities that were processed in the request input.
+ /// Included only in responses + /// + /// + /// Output only. List of modalities of the cached content in the request input.
/// Included only in responses /// /// @@ -157,31 +157,31 @@ public sealed partial class UsageMetadata [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public UsageMetadata( - int? candidatesTokenCount, int? promptTokenCount, + int? thoughtsTokenCount, global::System.Collections.Generic.IList? toolUsePromptTokensDetails, + global::System.Collections.Generic.IList? candidatesTokensDetails, + global::Google.Gemini.UsageMetadataServiceTier? serviceTier, int? cachedContentTokenCount, int? toolUsePromptTokenCount, - global::Google.Gemini.UsageMetadataServiceTier? serviceTier, - int? thoughtsTokenCount, - global::System.Collections.Generic.IList? cacheTokensDetails, - global::System.Collections.Generic.IList? promptTokensDetails, + int? candidatesTokenCount, int? totalTokenCount, - global::System.Collections.Generic.IList? candidatesTokensDetails, + global::System.Collections.Generic.IList? promptTokensDetails, + global::System.Collections.Generic.IList? cacheTokensDetails, int? responseTokenCount, global::System.Collections.Generic.IList? responseTokensDetails) { - this.CandidatesTokenCount = candidatesTokenCount; this.PromptTokenCount = promptTokenCount; + this.ThoughtsTokenCount = thoughtsTokenCount; this.ToolUsePromptTokensDetails = toolUsePromptTokensDetails; + this.CandidatesTokensDetails = candidatesTokensDetails; + this.ServiceTier = serviceTier; this.CachedContentTokenCount = cachedContentTokenCount; this.ToolUsePromptTokenCount = toolUsePromptTokenCount; - this.ServiceTier = serviceTier; - this.ThoughtsTokenCount = thoughtsTokenCount; - this.CacheTokensDetails = cacheTokensDetails; - this.PromptTokensDetails = promptTokensDetails; + this.CandidatesTokenCount = candidatesTokenCount; this.TotalTokenCount = totalTokenCount; - this.CandidatesTokensDetails = candidatesTokensDetails; + this.PromptTokensDetails = promptTokensDetails; + this.CacheTokensDetails = cacheTokensDetails; this.ResponseTokenCount = responseTokenCount; this.ResponseTokensDetails = responseTokensDetails; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.WordInfo.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.WordInfo.g.cs index ecde87242..5f5c9a9a3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.WordInfo.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.WordInfo.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini ///
public sealed partial class WordInfo { + /// + /// Optional. End offset in time of the word relative to the start of the audio. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("endOffset")] + public string? EndOffset { get; set; } + /// /// Required. Transcript of the word. /// @@ -20,12 +26,6 @@ public sealed partial class WordInfo [global::System.Text.Json.Serialization.JsonPropertyName("startOffset")] public string? StartOffset { get; set; } - /// - /// Optional. End offset in time of the word relative to the start of the audio. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("endOffset")] - public string? EndOffset { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -35,26 +35,26 @@ public sealed partial class WordInfo /// /// Initializes a new instance of the class. /// + /// + /// Optional. End offset in time of the word relative to the start of the audio. + /// /// /// Required. Transcript of the word. /// /// /// Optional. Start offset in time of the word relative to the start of the audio. /// - /// - /// Optional. End offset in time of the word relative to the start of the audio. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public WordInfo( + string? endOffset, string? word, - string? startOffset, - string? endOffset) + string? startOffset) { + this.EndOffset = endOffset; this.Word = word; this.StartOffset = startOffset; - this.EndOffset = endOffset; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Agents.JsonSerializerContext.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Agents.JsonSerializerContext.g.cs index d25649799..cd631d947 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Agents.JsonSerializerContext.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Agents.JsonSerializerContext.g.cs @@ -12,18 +12,19 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Agent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AntigravityAgentConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironment3String2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Environment3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AntigravityAgentConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentConfigString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AgentTool), TypeInfoPropertyName = "AgentTool2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CodeExecution))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Function))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GoogleSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.MCPServer))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.McpServer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.URLContext))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AllowedTools))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AllowedToolsMode), TypeInfoPropertyName = "AllowedToolsMode2")] @@ -33,42 +34,38 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Source))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AllowlistEntry))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>), TypeInfoPropertyName = "OneOfIListDictionaryStringStringDictionaryStringString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EgressRule))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Empty))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvVar))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetwork2), TypeInfoPropertyName = "EnvironmentNetwork22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvVarString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>), TypeInfoPropertyName = "OneOfIListAllowlistEntryEnvironmentNetworkEgressAllowlistAllowlist2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentConfigNetwork2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentConfigNetwork), TypeInfoPropertyName = "EnvironmentConfigNetwork2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, string>), TypeInfoPropertyName = "OneOfDictionaryStringEnvVarString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>), TypeInfoPropertyName = "OneOfIListEgressRuleEnvironmentNetworkEgressAllowlistAllowlist2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist), TypeInfoPropertyName = "EnvironmentNetworkEgressAllowlistAllowlist2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GoogleSearchSearchType), TypeInfoPropertyName = "GoogleSearchSearchType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AgentListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ListAgentsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SourceType), TypeInfoPropertyName = "SourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf?), TypeInfoPropertyName = "NullableOneOfEnvironment3String2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf?), TypeInfoPropertyName = "NullableOneOfEnvironmentConfigString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AgentTool?), TypeInfoPropertyName = "NullableAgentTool2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AllowedToolsMode?), TypeInfoPropertyName = "NullableAllowedToolsMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>?), TypeInfoPropertyName = "NullableOneOfIListDictionaryStringStringDictionaryStringString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf?), TypeInfoPropertyName = "NullableOneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetwork2?), TypeInfoPropertyName = "NullableEnvironmentNetwork22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf?), TypeInfoPropertyName = "NullableOneOfEnvVarString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>?), TypeInfoPropertyName = "NullableOneOfIListAllowlistEntryEnvironmentNetworkEgressAllowlistAllowlist2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf?), TypeInfoPropertyName = "NullableOneOfEnvironmentNetworkEgressAllowlistEnvironmentConfigNetwork2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentConfigNetwork?), TypeInfoPropertyName = "NullableEnvironmentConfigNetwork2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, string>?), TypeInfoPropertyName = "NullableOneOfDictionaryStringEnvVarString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>?), TypeInfoPropertyName = "NullableOneOfIListEgressRuleEnvironmentNetworkEgressAllowlistAllowlist2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?), TypeInfoPropertyName = "NullableEnvironmentNetworkEgressAllowlistAllowlist2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GoogleSearchSearchType?), TypeInfoPropertyName = "NullableGoogleSearchSearchType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SourceType?), TypeInfoPropertyName = "NullableSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -120,14 +117,13 @@ private AgentsSourceGenerationContext(global::System.Text.Json.JsonSerializerOpt public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.AgentToolJsonConverter()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, string>()); + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>()); + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -154,9 +150,9 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Google.Gemini.NextGen.AllowedToolsMode?) - || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetwork2) + || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentConfigNetwork) - || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetwork2?) + || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentConfigNetwork?) || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist) @@ -185,14 +181,14 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Google.Gemini.NextGen.JsonConverters.AllowedToolsModeNullableJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetwork2)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentConfigNetwork)) { - return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetwork2JsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentConfigNetworkJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetwork2?)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentConfigNetwork?)) { - return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetwork2NullableJsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentConfigNetworkNullableJsonConverter(); } if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist)) diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.CreateAgent.g.cs similarity index 93% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.Create.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.CreateAgent.g.cs index 8c08962d5..937ff5218 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.Create.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.CreateAgent.g.cs @@ -7,7 +7,7 @@ public partial class AgentsClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_CreateAgentSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,24 @@ public partial class AgentsClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_CreateAgentSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_CreateSecurityRequirement0, + { s_CreateAgentSecurityRequirement0, }; - partial void PrepareCreateArguments( + partial void PrepareCreateAgentArguments( global::System.Net.Http.HttpClient httpClient, + ref string parent, global::Google.Gemini.NextGen.Agent request); - partial void PrepareCreateRequest( + partial void PrepareCreateAgentRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string parent, global::Google.Gemini.NextGen.Agent request); - partial void ProcessCreateResponse( + partial void ProcessCreateAgentResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateResponseContent( + partial void ProcessCreateAgentResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -44,6 +46,7 @@ partial void ProcessCreateResponseContent( /// /// Creates a new Agent (Typed version for SDK). /// + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -61,13 +64,15 @@ partial void ProcessCreateResponseContent( /// "tools": [{"type": "google_search"}]
/// }' /// - public async global::System.Threading.Tasks.Task CreateAsync( + public async global::System.Threading.Tasks.Task CreateAgentAsync( + string parent, global::Google.Gemini.NextGen.Agent request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await CreateAsResponseAsync( + var __response = await CreateAgentAsResponseAsync( + parent: parent, request: request, requestOptions: requestOptions, @@ -79,6 +84,7 @@ partial void ProcessCreateResponseContent( /// /// Creates a new Agent (Typed version for SDK). /// + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -96,7 +102,8 @@ partial void ProcessCreateResponseContent( /// "tools": [{"type": "google_search"}]
/// }' /// - public async global::System.Threading.Tasks.Task> CreateAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateAgentAsResponseAsync( + string parent, global::Google.Gemini.NextGen.Agent request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -106,15 +113,16 @@ partial void ProcessCreateResponseContent( PrepareArguments( client: HttpClient); - PrepareCreateArguments( + PrepareCreateAgentArguments( httpClient: HttpClient, + parent: ref parent, request: request); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CreateSecurityRequirements, - operationName: "CreateAsync"); + securityRequirements: s_CreateAgentSecurityRequirements, + operationName: "CreateAgentAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -136,6 +144,9 @@ partial void ProcessCreateResponseContent( var __pathBuilder = new global::Google.Gemini.NextGen.PathBuilder( path: "/v1beta/agents", baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddRequiredParameter("parent", parent) + ; var __path = __pathBuilder.ToString(); __path = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -179,9 +190,10 @@ partial void ProcessCreateResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCreateRequest( + PrepareCreateAgentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, + parent: parent, request: request); return __httpRequest; @@ -199,8 +211,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateAgent", + methodName: "CreateAgentAsync", pathTemplate: "\"/v1beta/agents\"", httpMethod: "POST", baseUri: BaseUri, @@ -233,8 +245,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateAgent", + methodName: "CreateAgentAsync", pathTemplate: "\"/v1beta/agents\"", httpMethod: "POST", baseUri: BaseUri, @@ -274,8 +286,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateAgent", + methodName: "CreateAgentAsync", pathTemplate: "\"/v1beta/agents\"", httpMethod: "POST", baseUri: BaseUri, @@ -314,7 +326,7 @@ partial void ProcessCreateResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessCreateResponse( + ProcessCreateAgentResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -322,8 +334,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateAgent", + methodName: "CreateAgentAsync", pathTemplate: "\"/v1beta/agents\"", httpMethod: "POST", baseUri: BaseUri, @@ -344,8 +356,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateAgent", + methodName: "CreateAgentAsync", pathTemplate: "\"/v1beta/agents\"", httpMethod: "POST", baseUri: BaseUri, @@ -411,7 +423,7 @@ partial void ProcessCreateResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessCreateResponseContent( + ProcessCreateAgentResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -497,12 +509,7 @@ partial void ProcessCreateResponseContent( /// /// Creates a new Agent (Typed version for SDK). /// - /// - /// Configuration parameters for the agent. - /// - /// - /// The environment configuration for the agent. - /// + /// /// /// The unique identifier for the agent. /// @@ -515,35 +522,43 @@ partial void ProcessCreateResponseContent( /// /// Agent description for developers to quickly read and understand. /// + /// + /// Configuration parameters for the agent. + /// + /// + /// The environment configuration for the agent. + /// /// /// The tools available to the agent. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateAsync( - global::Google.Gemini.NextGen.AntigravityAgentConfig? agentConfig = default, - global::Google.Gemini.NextGen.OneOf? baseEnvironment = default, + public async global::System.Threading.Tasks.Task CreateAgentAsync( + string parent, string? id = default, string? baseAgent = default, string? systemInstruction = default, string? description = default, + global::Google.Gemini.NextGen.AntigravityAgentConfig? agentConfig = default, + global::Google.Gemini.NextGen.OneOf? baseEnvironment = default, global::System.Collections.Generic.IList? tools = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.NextGen.Agent { - AgentConfig = agentConfig, - BaseEnvironment = baseEnvironment, Id = id, BaseAgent = baseAgent, SystemInstruction = systemInstruction, Description = description, + AgentConfig = agentConfig, + BaseEnvironment = baseEnvironment, Tools = tools, }; - return await CreateAsync( + return await CreateAgentAsync( + parent: parent, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.Delete.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.DeleteAgent.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.Delete.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.DeleteAgent.g.cs index 092729916..5fa5c9db6 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.Delete.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.DeleteAgent.g.cs @@ -7,7 +7,7 @@ public partial class AgentsClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_DeleteAgentSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class AgentsClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_DeleteAgentSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_DeleteSecurityRequirement0, + { s_DeleteAgentSecurityRequirement0, }; - partial void PrepareDeleteArguments( + partial void PrepareDeleteAgentArguments( global::System.Net.Http.HttpClient httpClient, ref string agentsId); - partial void PrepareDeleteRequest( + partial void PrepareDeleteAgentRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string agentsId); - partial void ProcessDeleteResponse( + partial void ProcessDeleteAgentResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessDeleteResponseContent( + partial void ProcessDeleteAgentResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -52,12 +52,12 @@ partial void ProcessDeleteResponseContent( /// curl -X DELETE https://generativelanguage.googleapis.com/v1beta/agents/ag_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task DeleteAsync( + public async global::System.Threading.Tasks.Task DeleteAgentAsync( string agentsId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await DeleteAsResponseAsync( + var __response = await DeleteAgentAsResponseAsync( agentsId: agentsId, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -76,22 +76,22 @@ partial void ProcessDeleteResponseContent( /// curl -X DELETE https://generativelanguage.googleapis.com/v1beta/agents/ag_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task> DeleteAsResponseAsync( + public async global::System.Threading.Tasks.Task> DeleteAgentAsResponseAsync( string agentsId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareDeleteArguments( + PrepareDeleteAgentArguments( httpClient: HttpClient, agentsId: ref agentsId); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_DeleteSecurityRequirements, - operationName: "DeleteAsync"); + securityRequirements: s_DeleteAgentSecurityRequirements, + operationName: "DeleteAgentAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -150,7 +150,7 @@ partial void ProcessDeleteResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareDeleteRequest( + PrepareDeleteAgentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, agentsId: agentsId); @@ -170,8 +170,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteAgent", + methodName: "DeleteAgentAsync", pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -204,8 +204,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteAgent", + methodName: "DeleteAgentAsync", pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -245,8 +245,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteAgent", + methodName: "DeleteAgentAsync", pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -285,7 +285,7 @@ partial void ProcessDeleteResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessDeleteResponse( + ProcessDeleteAgentResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -293,8 +293,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteAgent", + methodName: "DeleteAgentAsync", pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -315,8 +315,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteAgent", + methodName: "DeleteAgentAsync", pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -382,7 +382,7 @@ partial void ProcessDeleteResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessDeleteResponseContent( + ProcessDeleteAgentResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.Get.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.GetAgent.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.Get.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.GetAgent.g.cs index 90c54cd44..49d1e439c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.Get.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.GetAgent.g.cs @@ -7,7 +7,7 @@ public partial class AgentsClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_GetSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_GetAgentSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class AgentsClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_GetSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_GetAgentSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_GetSecurityRequirement0, + { s_GetAgentSecurityRequirement0, }; - partial void PrepareGetArguments( + partial void PrepareGetAgentArguments( global::System.Net.Http.HttpClient httpClient, ref string agentsId); - partial void PrepareGetRequest( + partial void PrepareGetAgentRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string agentsId); - partial void ProcessGetResponse( + partial void ProcessGetAgentResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetResponseContent( + partial void ProcessGetAgentResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -52,12 +52,12 @@ partial void ProcessGetResponseContent( /// curl -X GET https://generativelanguage.googleapis.com/v1beta/agents/ag_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task GetAsync( + public async global::System.Threading.Tasks.Task GetAgentAsync( string agentsId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetAsResponseAsync( + var __response = await GetAgentAsResponseAsync( agentsId: agentsId, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -76,22 +76,22 @@ partial void ProcessGetResponseContent( /// curl -X GET https://generativelanguage.googleapis.com/v1beta/agents/ag_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task> GetAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetAgentAsResponseAsync( string agentsId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetArguments( + PrepareGetAgentArguments( httpClient: HttpClient, agentsId: ref agentsId); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetSecurityRequirements, - operationName: "GetAsync"); + securityRequirements: s_GetAgentSecurityRequirements, + operationName: "GetAgentAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -150,7 +150,7 @@ partial void ProcessGetResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetRequest( + PrepareGetAgentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, agentsId: agentsId); @@ -170,8 +170,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetAgent", + methodName: "GetAgentAsync", pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "GET", baseUri: BaseUri, @@ -204,8 +204,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetAgent", + methodName: "GetAgentAsync", pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "GET", baseUri: BaseUri, @@ -245,8 +245,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetAgent", + methodName: "GetAgentAsync", pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "GET", baseUri: BaseUri, @@ -285,7 +285,7 @@ partial void ProcessGetResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessGetResponse( + ProcessGetAgentResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -293,8 +293,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetAgent", + methodName: "GetAgentAsync", pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "GET", baseUri: BaseUri, @@ -315,8 +315,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetAgent", + methodName: "GetAgentAsync", pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "GET", baseUri: BaseUri, @@ -382,7 +382,7 @@ partial void ProcessGetResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessGetResponseContent( + ProcessGetAgentResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.List.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.ListAgents.g.cs similarity index 91% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.List.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.ListAgents.g.cs index 2d7569867..f9c4ff47c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.List.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AgentsClient.ListAgents.g.cs @@ -7,7 +7,7 @@ public partial class AgentsClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_ListSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_ListAgentsSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,26 +21,26 @@ public partial class AgentsClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_ListSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_ListAgentsSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_ListSecurityRequirement0, + { s_ListAgentsSecurityRequirement0, }; - partial void PrepareListArguments( + partial void PrepareListAgentsArguments( global::System.Net.Http.HttpClient httpClient, ref int? pageSize, ref string? pageToken, - ref string? parent); - partial void PrepareListRequest( + ref string parent); + partial void PrepareListAgentsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, int? pageSize, string? pageToken, - string? parent); - partial void ProcessListResponse( + string parent); + partial void ProcessListAgentsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessListResponseContent( + partial void ProcessListAgentsResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -58,17 +58,17 @@ partial void ProcessListResponseContent( /// curl -X GET https://generativelanguage.googleapis.com/v1beta/agents \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task ListAsync( + public async global::System.Threading.Tasks.Task ListAgentsAsync( + string parent, int? pageSize = default, string? pageToken = default, - string? parent = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ListAsResponseAsync( + var __response = await ListAgentsAsResponseAsync( + parent: parent, pageSize: pageSize, pageToken: pageToken, - parent: parent, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -88,16 +88,16 @@ partial void ProcessListResponseContent( /// curl -X GET https://generativelanguage.googleapis.com/v1beta/agents \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task> ListAsResponseAsync( + public async global::System.Threading.Tasks.Task> ListAgentsAsResponseAsync( + string parent, int? pageSize = default, string? pageToken = default, - string? parent = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareListArguments( + PrepareListAgentsArguments( httpClient: HttpClient, pageSize: ref pageSize, pageToken: ref pageToken, @@ -106,8 +106,8 @@ partial void ProcessListResponseContent( var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ListSecurityRequirements, - operationName: "ListAsync"); + securityRequirements: s_ListAgentsSecurityRequirements, + operationName: "ListAgentsAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -132,7 +132,7 @@ partial void ProcessListResponseContent( __pathBuilder .AddOptionalParameter("page_size", pageSize?.ToString()) .AddOptionalParameter("page_token", pageToken) - .AddOptionalParameter("parent", parent) + .AddRequiredParameter("parent", parent) ; var __path = __pathBuilder.ToString(); __path = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -171,7 +171,7 @@ partial void ProcessListResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareListRequest( + PrepareListAgentsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, pageSize: pageSize, @@ -193,8 +193,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListAgents", + methodName: "ListAgentsAsync", pathTemplate: "\"/v1beta/agents\"", httpMethod: "GET", baseUri: BaseUri, @@ -227,8 +227,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListAgents", + methodName: "ListAgentsAsync", pathTemplate: "\"/v1beta/agents\"", httpMethod: "GET", baseUri: BaseUri, @@ -268,8 +268,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListAgents", + methodName: "ListAgentsAsync", pathTemplate: "\"/v1beta/agents\"", httpMethod: "GET", baseUri: BaseUri, @@ -308,7 +308,7 @@ partial void ProcessListResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessListResponse( + ProcessListAgentsResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -316,8 +316,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListAgents", + methodName: "ListAgentsAsync", pathTemplate: "\"/v1beta/agents\"", httpMethod: "GET", baseUri: BaseUri, @@ -338,8 +338,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListAgents", + methodName: "ListAgentsAsync", pathTemplate: "\"/v1beta/agents\"", httpMethod: "GET", baseUri: BaseUri, @@ -360,19 +360,19 @@ partial void ProcessListResponseContent( { string? __content_default = null; global::System.Exception? __exception_default = null; - global::Google.Gemini.NextGen.AgentListResponse? __value_default = null; + global::Google.Gemini.NextGen.ListAgentsResponse? __value_default = null; try { if (__effectiveReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_default = global::Google.Gemini.NextGen.AgentListResponse.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Google.Gemini.NextGen.ListAgentsResponse.FromJson(__content_default, JsonSerializerContext); } else { __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_default = global::Google.Gemini.NextGen.AgentListResponse.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Google.Gemini.NextGen.ListAgentsResponse.FromJson(__content_default, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -381,7 +381,7 @@ partial void ProcessListResponseContent( } - throw global::Google.Gemini.NextGen.ApiException.Create( + throw global::Google.Gemini.NextGen.ApiException.Create( statusCode: __response.StatusCode, message: __content_default ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_default, @@ -405,7 +405,7 @@ partial void ProcessListResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessListResponseContent( + ProcessListAgentsResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -414,9 +414,9 @@ partial void ProcessListResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Google.Gemini.NextGen.AgentListResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Google.Gemini.NextGen.ListAgentsResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( + return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -446,9 +446,9 @@ partial void ProcessListResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Google.Gemini.NextGen.AgentListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Google.Gemini.NextGen.ListAgentsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( + return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Credentials.JsonSerializerContext.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Credentials.JsonSerializerContext.g.cs index 3ff2088c8..36a81cc1c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Credentials.JsonSerializerContext.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Credentials.JsonSerializerContext.g.cs @@ -12,6 +12,7 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -25,7 +26,7 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentVariableConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.HttpBearerConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OAuth2Config))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialUpdate), TypeInfoPropertyName = "CredentialUpdate2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialUpdateParams), TypeInfoPropertyName = "CredentialUpdateParams2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.HttpBearerUpdateConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OAuth2UpdateConfig))] @@ -33,14 +34,14 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>), TypeInfoPropertyName = "OneOfInjectionLocation3IListInjectionLocation32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InjectionLocation3), TypeInfoPropertyName = "InjectionLocation32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ListCredentialsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialType?), TypeInfoPropertyName = "NullableCredentialType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialStatus?), TypeInfoPropertyName = "NullableCredentialStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialCreateParams?), TypeInfoPropertyName = "NullableCredentialCreateParams2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialUpdate?), TypeInfoPropertyName = "NullableCredentialUpdate2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialUpdateParams?), TypeInfoPropertyName = "NullableCredentialUpdateParams2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>?), TypeInfoPropertyName = "NullableOneOfInjectionLocation3IListInjectionLocation32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InjectionLocation3?), TypeInfoPropertyName = "NullableInjectionLocation32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -95,8 +96,7 @@ private CredentialsSourceGenerationContext(global::System.Text.Json.JsonSerializ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.CredentialCreateParamsJsonConverter()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.CredentialUpdateJsonConverter()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>()); + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.CredentialUpdateParamsJsonConverter()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.UnixTimestampJsonConverter()); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.CreateCredential.g.cs similarity index 93% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.Create.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.CreateCredential.g.cs index 08822c0a2..ff7ebee13 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.Create.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.CreateCredential.g.cs @@ -7,7 +7,7 @@ public partial class CredentialsClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_CreateCredentialSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class CredentialsClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_CreateCredentialSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_CreateSecurityRequirement0, + { s_CreateCredentialSecurityRequirement0, }; - partial void PrepareCreateArguments( + partial void PrepareCreateCredentialArguments( global::System.Net.Http.HttpClient httpClient, global::Google.Gemini.NextGen.CredentialCreateParams request); - partial void PrepareCreateRequest( + partial void PrepareCreateCredentialRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::Google.Gemini.NextGen.CredentialCreateParams request); - partial void ProcessCreateResponse( + partial void ProcessCreateCredentialResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateResponseContent( + partial void ProcessCreateCredentialResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -48,13 +48,13 @@ partial void ProcessCreateResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateAsync( + public async global::System.Threading.Tasks.Task CreateCredentialAsync( global::Google.Gemini.NextGen.CredentialCreateParams request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await CreateAsResponseAsync( + var __response = await CreateCredentialAsResponseAsync( request: request, requestOptions: requestOptions, @@ -70,7 +70,7 @@ partial void ProcessCreateResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> CreateAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateCredentialAsResponseAsync( global::Google.Gemini.NextGen.CredentialCreateParams request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -78,15 +78,15 @@ partial void ProcessCreateResponseContent( { PrepareArguments( client: HttpClient); - PrepareCreateArguments( + PrepareCreateCredentialArguments( httpClient: HttpClient, request: request); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CreateSecurityRequirements, - operationName: "CreateAsync"); + securityRequirements: s_CreateCredentialSecurityRequirements, + operationName: "CreateCredentialAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -151,7 +151,7 @@ partial void ProcessCreateResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCreateRequest( + PrepareCreateCredentialRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -171,8 +171,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateCredential", + methodName: "CreateCredentialAsync", pathTemplate: "\"/v1beta/credentials\"", httpMethod: "POST", baseUri: BaseUri, @@ -205,8 +205,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateCredential", + methodName: "CreateCredentialAsync", pathTemplate: "\"/v1beta/credentials\"", httpMethod: "POST", baseUri: BaseUri, @@ -246,8 +246,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateCredential", + methodName: "CreateCredentialAsync", pathTemplate: "\"/v1beta/credentials\"", httpMethod: "POST", baseUri: BaseUri, @@ -286,7 +286,7 @@ partial void ProcessCreateResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessCreateResponse( + ProcessCreateCredentialResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -294,8 +294,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateCredential", + methodName: "CreateCredentialAsync", pathTemplate: "\"/v1beta/credentials\"", httpMethod: "POST", baseUri: BaseUri, @@ -316,8 +316,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateCredential", + methodName: "CreateCredentialAsync", pathTemplate: "\"/v1beta/credentials\"", httpMethod: "POST", baseUri: BaseUri, @@ -383,7 +383,7 @@ partial void ProcessCreateResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessCreateResponseContent( + ProcessCreateCredentialResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -472,7 +472,7 @@ partial void ProcessCreateResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateAsync( + public async global::System.Threading.Tasks.Task CreateCredentialAsync( global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -480,7 +480,7 @@ partial void ProcessCreateResponseContent( { }; - return await CreateAsync( + return await CreateCredentialAsync( request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.Delete.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.DeleteCredential.g.cs similarity index 93% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.Delete.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.DeleteCredential.g.cs index e941de29d..1bea2aa39 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.Delete.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.DeleteCredential.g.cs @@ -7,7 +7,7 @@ public partial class CredentialsClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_DeleteCredentialSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class CredentialsClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_DeleteCredentialSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_DeleteSecurityRequirement0, + { s_DeleteCredentialSecurityRequirement0, }; - partial void PrepareDeleteArguments( + partial void PrepareDeleteCredentialArguments( global::System.Net.Http.HttpClient httpClient, ref string id); - partial void PrepareDeleteRequest( + partial void PrepareDeleteCredentialRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string id); - partial void ProcessDeleteResponse( + partial void ProcessDeleteCredentialResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessDeleteResponseContent( + partial void ProcessDeleteCredentialResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -48,12 +48,12 @@ partial void ProcessDeleteResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DeleteAsync( + public async global::System.Threading.Tasks.Task DeleteCredentialAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await DeleteAsResponseAsync( + var __response = await DeleteCredentialAsResponseAsync( id: id, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -68,22 +68,22 @@ partial void ProcessDeleteResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> DeleteAsResponseAsync( + public async global::System.Threading.Tasks.Task> DeleteCredentialAsResponseAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareDeleteArguments( + PrepareDeleteCredentialArguments( httpClient: HttpClient, id: ref id); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_DeleteSecurityRequirements, - operationName: "DeleteAsync"); + securityRequirements: s_DeleteCredentialSecurityRequirements, + operationName: "DeleteCredentialAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -142,7 +142,7 @@ partial void ProcessDeleteResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareDeleteRequest( + PrepareDeleteCredentialRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, id: id); @@ -162,8 +162,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteCredential", + methodName: "DeleteCredentialAsync", pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -196,8 +196,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteCredential", + methodName: "DeleteCredentialAsync", pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -237,8 +237,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteCredential", + methodName: "DeleteCredentialAsync", pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -277,7 +277,7 @@ partial void ProcessDeleteResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessDeleteResponse( + ProcessDeleteCredentialResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -285,8 +285,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteCredential", + methodName: "DeleteCredentialAsync", pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -307,8 +307,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteCredential", + methodName: "DeleteCredentialAsync", pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -374,7 +374,7 @@ partial void ProcessDeleteResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessDeleteResponseContent( + ProcessDeleteCredentialResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.Get.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.GetCredential.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.Get.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.GetCredential.g.cs index 73503c506..b19fcf372 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.Get.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.GetCredential.g.cs @@ -7,7 +7,7 @@ public partial class CredentialsClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_GetSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_GetCredentialSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class CredentialsClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_GetSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_GetCredentialSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_GetSecurityRequirement0, + { s_GetCredentialSecurityRequirement0, }; - partial void PrepareGetArguments( + partial void PrepareGetCredentialArguments( global::System.Net.Http.HttpClient httpClient, ref string id); - partial void PrepareGetRequest( + partial void PrepareGetCredentialRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string id); - partial void ProcessGetResponse( + partial void ProcessGetCredentialResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetResponseContent( + partial void ProcessGetCredentialResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -48,12 +48,12 @@ partial void ProcessGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetAsync( + public async global::System.Threading.Tasks.Task GetCredentialAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetAsResponseAsync( + var __response = await GetCredentialAsResponseAsync( id: id, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -68,22 +68,22 @@ partial void ProcessGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> GetAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetCredentialAsResponseAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetArguments( + PrepareGetCredentialArguments( httpClient: HttpClient, id: ref id); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetSecurityRequirements, - operationName: "GetAsync"); + securityRequirements: s_GetCredentialSecurityRequirements, + operationName: "GetCredentialAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -142,7 +142,7 @@ partial void ProcessGetResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetRequest( + PrepareGetCredentialRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, id: id); @@ -162,8 +162,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetCredential", + methodName: "GetCredentialAsync", pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -196,8 +196,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetCredential", + methodName: "GetCredentialAsync", pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -237,8 +237,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetCredential", + methodName: "GetCredentialAsync", pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -277,7 +277,7 @@ partial void ProcessGetResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessGetResponse( + ProcessGetCredentialResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -285,8 +285,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetCredential", + methodName: "GetCredentialAsync", pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -307,8 +307,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetCredential", + methodName: "GetCredentialAsync", pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -374,7 +374,7 @@ partial void ProcessGetResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessGetResponseContent( + ProcessGetCredentialResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.List.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.ListCredentials.g.cs similarity index 91% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.List.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.ListCredentials.g.cs index 21fdf5a5a..81fdb7acf 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.List.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.ListCredentials.g.cs @@ -7,7 +7,7 @@ public partial class CredentialsClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_ListSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_ListCredentialsSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,24 +21,24 @@ public partial class CredentialsClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_ListSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_ListCredentialsSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_ListSecurityRequirement0, + { s_ListCredentialsSecurityRequirement0, }; - partial void PrepareListArguments( + partial void PrepareListCredentialsArguments( global::System.Net.Http.HttpClient httpClient, ref int? pageSize, ref string? pageToken); - partial void PrepareListRequest( + partial void PrepareListCredentialsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, int? pageSize, string? pageToken); - partial void ProcessListResponse( + partial void ProcessListCredentialsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessListResponseContent( + partial void ProcessListCredentialsResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -51,13 +51,13 @@ partial void ProcessListResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ListAsync( + public async global::System.Threading.Tasks.Task ListCredentialsAsync( int? pageSize = default, string? pageToken = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ListAsResponseAsync( + var __response = await ListCredentialsAsResponseAsync( pageSize: pageSize, pageToken: pageToken, requestOptions: requestOptions, @@ -74,7 +74,7 @@ partial void ProcessListResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ListAsResponseAsync( + public async global::System.Threading.Tasks.Task> ListCredentialsAsResponseAsync( int? pageSize = default, string? pageToken = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -82,7 +82,7 @@ partial void ProcessListResponseContent( { PrepareArguments( client: HttpClient); - PrepareListArguments( + PrepareListCredentialsArguments( httpClient: HttpClient, pageSize: ref pageSize, pageToken: ref pageToken); @@ -90,8 +90,8 @@ partial void ProcessListResponseContent( var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ListSecurityRequirements, - operationName: "ListAsync"); + securityRequirements: s_ListCredentialsSecurityRequirements, + operationName: "ListCredentialsAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -154,7 +154,7 @@ partial void ProcessListResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareListRequest( + PrepareListCredentialsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, pageSize: pageSize, @@ -175,8 +175,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListCredentials", + methodName: "ListCredentialsAsync", pathTemplate: "\"/v1beta/credentials\"", httpMethod: "GET", baseUri: BaseUri, @@ -209,8 +209,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListCredentials", + methodName: "ListCredentialsAsync", pathTemplate: "\"/v1beta/credentials\"", httpMethod: "GET", baseUri: BaseUri, @@ -250,8 +250,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListCredentials", + methodName: "ListCredentialsAsync", pathTemplate: "\"/v1beta/credentials\"", httpMethod: "GET", baseUri: BaseUri, @@ -290,7 +290,7 @@ partial void ProcessListResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessListResponse( + ProcessListCredentialsResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -298,8 +298,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListCredentials", + methodName: "ListCredentialsAsync", pathTemplate: "\"/v1beta/credentials\"", httpMethod: "GET", baseUri: BaseUri, @@ -320,8 +320,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListCredentials", + methodName: "ListCredentialsAsync", pathTemplate: "\"/v1beta/credentials\"", httpMethod: "GET", baseUri: BaseUri, @@ -342,19 +342,19 @@ partial void ProcessListResponseContent( { string? __content_default = null; global::System.Exception? __exception_default = null; - global::Google.Gemini.NextGen.CredentialListResponse? __value_default = null; + global::Google.Gemini.NextGen.ListCredentialsResponse? __value_default = null; try { if (__effectiveReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_default = global::Google.Gemini.NextGen.CredentialListResponse.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Google.Gemini.NextGen.ListCredentialsResponse.FromJson(__content_default, JsonSerializerContext); } else { __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_default = global::Google.Gemini.NextGen.CredentialListResponse.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Google.Gemini.NextGen.ListCredentialsResponse.FromJson(__content_default, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -363,7 +363,7 @@ partial void ProcessListResponseContent( } - throw global::Google.Gemini.NextGen.ApiException.Create( + throw global::Google.Gemini.NextGen.ApiException.Create( statusCode: __response.StatusCode, message: __content_default ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_default, @@ -387,7 +387,7 @@ partial void ProcessListResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessListResponseContent( + ProcessListCredentialsResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -396,9 +396,9 @@ partial void ProcessListResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Google.Gemini.NextGen.CredentialListResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Google.Gemini.NextGen.ListCredentialsResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( + return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -428,9 +428,9 @@ partial void ProcessListResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Google.Gemini.NextGen.CredentialListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Google.Gemini.NextGen.ListCredentialsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( + return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.Update.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.UpdateCredential.g.cs similarity index 92% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.Update.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.UpdateCredential.g.cs index b215d07c4..fcff6a6e0 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.Update.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.CredentialsClient.UpdateCredential.g.cs @@ -7,7 +7,7 @@ public partial class CredentialsClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_UpdateCredentialSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,26 +21,26 @@ public partial class CredentialsClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_UpdateCredentialSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_UpdateSecurityRequirement0, + { s_UpdateCredentialSecurityRequirement0, }; - partial void PrepareUpdateArguments( + partial void PrepareUpdateCredentialArguments( global::System.Net.Http.HttpClient httpClient, ref string id, ref string? updateMask, - global::Google.Gemini.NextGen.CredentialUpdate request); - partial void PrepareUpdateRequest( + global::Google.Gemini.NextGen.CredentialUpdateParams request); + partial void PrepareUpdateCredentialRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string id, string? updateMask, - global::Google.Gemini.NextGen.CredentialUpdate request); - partial void ProcessUpdateResponse( + global::Google.Gemini.NextGen.CredentialUpdateParams request); + partial void ProcessUpdateCredentialResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessUpdateResponseContent( + partial void ProcessUpdateCredentialResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -54,15 +54,15 @@ partial void ProcessUpdateResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task UpdateAsync( + public async global::System.Threading.Tasks.Task UpdateCredentialAsync( string id, - global::Google.Gemini.NextGen.CredentialUpdate request, + global::Google.Gemini.NextGen.CredentialUpdateParams request, string? updateMask = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await UpdateAsResponseAsync( + var __response = await UpdateCredentialAsResponseAsync( id: id, request: request, @@ -82,17 +82,17 @@ partial void ProcessUpdateResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> UpdateAsResponseAsync( + public async global::System.Threading.Tasks.Task> UpdateCredentialAsResponseAsync( string id, - global::Google.Gemini.NextGen.CredentialUpdate request, + global::Google.Gemini.NextGen.CredentialUpdateParams request, string? updateMask = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareUpdateArguments( + PrepareUpdateCredentialArguments( httpClient: HttpClient, id: ref id, updateMask: ref updateMask, @@ -101,8 +101,8 @@ partial void ProcessUpdateResponseContent( var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_UpdateSecurityRequirements, - operationName: "UpdateAsync"); + securityRequirements: s_UpdateCredentialSecurityRequirements, + operationName: "UpdateCredentialAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -170,7 +170,7 @@ partial void ProcessUpdateResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareUpdateRequest( + PrepareUpdateCredentialRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, id: id, @@ -192,8 +192,8 @@ partial void ProcessUpdateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Update", - methodName: "UpdateAsync", + operationId: "UpdateCredential", + methodName: "UpdateCredentialAsync", pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -226,8 +226,8 @@ partial void ProcessUpdateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Update", - methodName: "UpdateAsync", + operationId: "UpdateCredential", + methodName: "UpdateCredentialAsync", pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -267,8 +267,8 @@ partial void ProcessUpdateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Update", - methodName: "UpdateAsync", + operationId: "UpdateCredential", + methodName: "UpdateCredentialAsync", pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -307,7 +307,7 @@ partial void ProcessUpdateResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessUpdateResponse( + ProcessUpdateCredentialResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -315,8 +315,8 @@ partial void ProcessUpdateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Update", - methodName: "UpdateAsync", + operationId: "UpdateCredential", + methodName: "UpdateCredentialAsync", pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -337,8 +337,8 @@ partial void ProcessUpdateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Update", - methodName: "UpdateAsync", + operationId: "UpdateCredential", + methodName: "UpdateCredentialAsync", pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -404,7 +404,7 @@ partial void ProcessUpdateResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessUpdateResponseContent( + ProcessUpdateCredentialResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -495,17 +495,17 @@ partial void ProcessUpdateResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task UpdateAsync( + public async global::System.Threading.Tasks.Task UpdateCredentialAsync( string id, string? updateMask = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Google.Gemini.NextGen.CredentialUpdate + var __request = new global::Google.Gemini.NextGen.CredentialUpdateParams { }; - return await UpdateAsync( + return await UpdateCredentialAsync( id: id, updateMask: updateMask, request: __request, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Environments.JsonSerializerContext.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Environments.JsonSerializerContext.g.cs index d753af541..509be357c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Environments.JsonSerializerContext.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Environments.JsonSerializerContext.g.cs @@ -12,6 +12,7 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] @@ -21,36 +22,31 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateEnvironmentRequestNetwork), TypeInfoPropertyName = "CreateEnvironmentRequestNetwork2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Source))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AllowlistEntry))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>), TypeInfoPropertyName = "OneOfIListDictionaryStringStringDictionaryStringString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EgressRule))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Empty))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Environment2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Environment3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentStatus), TypeInfoPropertyName = "EnvironmentStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetwork), TypeInfoPropertyName = "EnvironmentNetwork2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentStatus), TypeInfoPropertyName = "EnvironmentStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>), TypeInfoPropertyName = "OneOfIListAllowlistEntryEnvironmentNetworkEgressAllowlistAllowlist2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>), TypeInfoPropertyName = "OneOfIListEgressRuleEnvironmentNetworkEgressAllowlistAllowlist2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist), TypeInfoPropertyName = "EnvironmentNetworkEgressAllowlistAllowlist2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ListEnvironmentsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SourceType), TypeInfoPropertyName = "SourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf?), TypeInfoPropertyName = "NullableOneOfEnvironmentNetworkEgressAllowlistCreateEnvironmentRequestNetwork2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateEnvironmentRequestNetwork?), TypeInfoPropertyName = "NullableCreateEnvironmentRequestNetwork2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>?), TypeInfoPropertyName = "NullableOneOfIListDictionaryStringStringDictionaryStringString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentStatus?), TypeInfoPropertyName = "NullableEnvironmentStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf?), TypeInfoPropertyName = "NullableOneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetwork?), TypeInfoPropertyName = "NullableEnvironmentNetwork2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentStatus?), TypeInfoPropertyName = "NullableEnvironmentStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>?), TypeInfoPropertyName = "NullableOneOfIListAllowlistEntryEnvironmentNetworkEgressAllowlistAllowlist2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>?), TypeInfoPropertyName = "NullableOneOfIListEgressRuleEnvironmentNetworkEgressAllowlistAllowlist2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?), TypeInfoPropertyName = "NullableEnvironmentNetworkEgressAllowlistAllowlist2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SourceType?), TypeInfoPropertyName = "NullableSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class EnvironmentsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -99,9 +95,8 @@ private EnvironmentsSourceGenerationContext(global::System.Text.Json.JsonSeriali public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>()); + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -128,14 +123,14 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Google.Gemini.NextGen.CreateEnvironmentRequestNetwork?) - || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetwork) - - || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetwork?) - || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentStatus) || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentStatus?) + || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetwork) + + || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetwork?) + || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist) || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?) @@ -159,24 +154,24 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Google.Gemini.NextGen.JsonConverters.CreateEnvironmentRequestNetworkNullableJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetwork)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentStatus)) { - return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkJsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentStatusJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetwork?)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentStatus?)) { - return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkNullableJsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentStatus)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetwork)) { - return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentStatusJsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentStatus?)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetwork?)) { - return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentStatusNullableJsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkNullableJsonConverter(); } if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist)) diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.CreateEnvironment.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.CreateEnvironment.g.cs index 0f94f0bd0..b8fd816e3 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.CreateEnvironment.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.CreateEnvironment.g.cs @@ -60,7 +60,7 @@ partial void ProcessCreateEnvironmentResponseContent( /// }]
/// }' /// - public async global::System.Threading.Tasks.Task CreateEnvironmentAsync( + public async global::System.Threading.Tasks.Task CreateEnvironmentAsync( global::Google.Gemini.NextGen.CreateEnvironmentRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -94,7 +94,7 @@ partial void ProcessCreateEnvironmentResponseContent( /// }]
/// }' /// - public async global::System.Threading.Tasks.Task> CreateEnvironmentAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateEnvironmentAsResponseAsync( global::Google.Gemini.NextGen.CreateEnvironmentRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -364,19 +364,19 @@ partial void ProcessCreateEnvironmentResponseContent( { string? __content_default = null; global::System.Exception? __exception_default = null; - global::Google.Gemini.NextGen.Environment2? __value_default = null; + global::Google.Gemini.NextGen.Environment3? __value_default = null; try { if (__effectiveReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_default = global::Google.Gemini.NextGen.Environment2.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Google.Gemini.NextGen.Environment3.FromJson(__content_default, JsonSerializerContext); } else { __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_default = global::Google.Gemini.NextGen.Environment2.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Google.Gemini.NextGen.Environment3.FromJson(__content_default, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -385,7 +385,7 @@ partial void ProcessCreateEnvironmentResponseContent( } - throw global::Google.Gemini.NextGen.ApiException.Create( + throw global::Google.Gemini.NextGen.ApiException.Create( statusCode: __response.StatusCode, message: __content_default ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_default, @@ -418,9 +418,9 @@ partial void ProcessCreateEnvironmentResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Google.Gemini.NextGen.Environment2.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Google.Gemini.NextGen.Environment3.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( + return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -450,9 +450,9 @@ partial void ProcessCreateEnvironmentResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Google.Gemini.NextGen.Environment2.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Google.Gemini.NextGen.Environment3.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( + return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -509,7 +509,7 @@ partial void ProcessCreateEnvironmentResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateEnvironmentAsync( + public async global::System.Threading.Tasks.Task CreateEnvironmentAsync( global::Google.Gemini.NextGen.OneOf? network = default, global::System.Collections.Generic.IList? sources = default, string? fromEnvironment = default, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.GetEnvironment.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.GetEnvironment.g.cs index 78a80d756..04aa0a1b9 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.GetEnvironment.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.GetEnvironment.g.cs @@ -52,7 +52,7 @@ partial void ProcessGetEnvironmentResponseContent( /// curl -X GET https://generativelanguage.googleapis.com/v1beta/environments/env_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task GetEnvironmentAsync( + public async global::System.Threading.Tasks.Task GetEnvironmentAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -76,7 +76,7 @@ partial void ProcessGetEnvironmentResponseContent( /// curl -X GET https://generativelanguage.googleapis.com/v1beta/environments/env_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task> GetEnvironmentAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetEnvironmentAsResponseAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -337,19 +337,19 @@ partial void ProcessGetEnvironmentResponseContent( { string? __content_default = null; global::System.Exception? __exception_default = null; - global::Google.Gemini.NextGen.Environment2? __value_default = null; + global::Google.Gemini.NextGen.Environment3? __value_default = null; try { if (__effectiveReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_default = global::Google.Gemini.NextGen.Environment2.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Google.Gemini.NextGen.Environment3.FromJson(__content_default, JsonSerializerContext); } else { __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_default = global::Google.Gemini.NextGen.Environment2.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Google.Gemini.NextGen.Environment3.FromJson(__content_default, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -358,7 +358,7 @@ partial void ProcessGetEnvironmentResponseContent( } - throw global::Google.Gemini.NextGen.ApiException.Create( + throw global::Google.Gemini.NextGen.ApiException.Create( statusCode: __response.StatusCode, message: __content_default ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_default, @@ -391,9 +391,9 @@ partial void ProcessGetEnvironmentResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Google.Gemini.NextGen.Environment2.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Google.Gemini.NextGen.Environment3.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( + return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -423,9 +423,9 @@ partial void ProcessGetEnvironmentResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Google.Gemini.NextGen.Environment2.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Google.Gemini.NextGen.Environment3.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( + return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsFiles.JsonSerializerContext.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsFiles.JsonSerializerContext.g.cs index 15bf16c2e..b90730cbe 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsFiles.JsonSerializerContext.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsFiles.JsonSerializerContext.g.cs @@ -12,17 +12,18 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentFile))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentFileType), TypeInfoPropertyName = "EnvironmentFileType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GetEnvironmentFilesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentFileType?), TypeInfoPropertyName = "NullableEnvironmentFileType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -73,7 +74,6 @@ private EnvironmentsFilesSourceGenerationContext(global::System.Text.Json.JsonSe [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsFilesClient.List.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsFilesClient.GetEnvironmentFiles.g.cs similarity index 93% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsFilesClient.List.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsFilesClient.GetEnvironmentFiles.g.cs index 40e61a3f9..a257445a4 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsFilesClient.List.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsFilesClient.GetEnvironmentFiles.g.cs @@ -7,7 +7,7 @@ public partial class EnvironmentsFilesClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_ListSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_GetEnvironmentFilesSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,18 +21,18 @@ public partial class EnvironmentsFilesClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_ListSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_GetEnvironmentFilesSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_ListSecurityRequirement0, + { s_GetEnvironmentFilesSecurityRequirement0, }; - partial void PrepareListArguments( + partial void PrepareGetEnvironmentFilesArguments( global::System.Net.Http.HttpClient httpClient, ref int? pageSize, ref string? pageToken, ref bool? recursive, ref string environment, ref string path); - partial void PrepareListRequest( + partial void PrepareGetEnvironmentFilesRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, int? pageSize, @@ -40,11 +40,11 @@ partial void PrepareListRequest( bool? recursive, string environment, string path); - partial void ProcessListResponse( + partial void ProcessGetEnvironmentFilesResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessListResponseContent( + partial void ProcessGetEnvironmentFilesResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -64,7 +64,7 @@ partial void ProcessListResponseContent( /// curl -X GET 'https://generativelanguage.googleapis.com/v1beta/environments/env_abc123/files/src' \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task ListAsync( + public async global::System.Threading.Tasks.Task GetEnvironmentFilesAsync( string environment, string path, int? pageSize = default, @@ -73,7 +73,7 @@ partial void ProcessListResponseContent( global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ListAsResponseAsync( + var __response = await GetEnvironmentFilesAsResponseAsync( environment: environment, path: path, pageSize: pageSize, @@ -100,7 +100,7 @@ partial void ProcessListResponseContent( /// curl -X GET 'https://generativelanguage.googleapis.com/v1beta/environments/env_abc123/files/src' \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task> ListAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetEnvironmentFilesAsResponseAsync( string environment, string path, int? pageSize = default, @@ -111,7 +111,7 @@ partial void ProcessListResponseContent( { PrepareArguments( client: HttpClient); - PrepareListArguments( + PrepareGetEnvironmentFilesArguments( httpClient: HttpClient, pageSize: ref pageSize, pageToken: ref pageToken, @@ -122,8 +122,8 @@ partial void ProcessListResponseContent( var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ListSecurityRequirements, - operationName: "ListAsync"); + securityRequirements: s_GetEnvironmentFilesSecurityRequirements, + operationName: "GetEnvironmentFilesAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -187,7 +187,7 @@ partial void ProcessListResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareListRequest( + PrepareGetEnvironmentFilesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, pageSize: pageSize, @@ -211,8 +211,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "GetEnvironmentFiles", + methodName: "GetEnvironmentFilesAsync", pathTemplate: "$\"/v1beta/environments/{environment}/files/{path}\"", httpMethod: "GET", baseUri: BaseUri, @@ -245,8 +245,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "GetEnvironmentFiles", + methodName: "GetEnvironmentFilesAsync", pathTemplate: "$\"/v1beta/environments/{environment}/files/{path}\"", httpMethod: "GET", baseUri: BaseUri, @@ -286,8 +286,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "GetEnvironmentFiles", + methodName: "GetEnvironmentFilesAsync", pathTemplate: "$\"/v1beta/environments/{environment}/files/{path}\"", httpMethod: "GET", baseUri: BaseUri, @@ -326,7 +326,7 @@ partial void ProcessListResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessListResponse( + ProcessGetEnvironmentFilesResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -334,8 +334,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "GetEnvironmentFiles", + methodName: "GetEnvironmentFilesAsync", pathTemplate: "$\"/v1beta/environments/{environment}/files/{path}\"", httpMethod: "GET", baseUri: BaseUri, @@ -356,8 +356,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "GetEnvironmentFiles", + methodName: "GetEnvironmentFilesAsync", pathTemplate: "$\"/v1beta/environments/{environment}/files/{path}\"", httpMethod: "GET", baseUri: BaseUri, @@ -386,7 +386,7 @@ partial void ProcessListResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessListResponseContent( + ProcessGetEnvironmentFilesResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Exceptions.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Exceptions.g.cs index a06d37aa3..01784bd84 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Exceptions.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Exceptions.g.cs @@ -20,6 +20,32 @@ public partial class ApiException : global::System.Exception /// public string? ResponseBody { get; set; } + /// + /// Successful HTTP responses that fail during processing put the cause before a bounded body preview. + /// Inspect ResponseBody for the full response; HTTP service-error messages retain their existing format. + /// + public override string Message + { + get + { + if ((int)StatusCode < 200 || (int)StatusCode >= 300 || InnerException == null) + { + return base.Message; + } + + string? path = (InnerException as global::System.Text.Json.JsonException)?.Path; + return "Response processing failed after successful HTTP " + + ((int)StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture) + ": " + + InnerException.GetType().FullName + ": " + BoundDiagnosticText(InnerException.Message) + + (string.IsNullOrEmpty(path) ? string.Empty : " Path: " + BoundDiagnosticText(path, 256)) + + "\nResponse preview: " + BoundDiagnosticText(base.Message); + } + } + + private static string BoundDiagnosticText(string? value, int maximumLength = 512) => + value == null ? string.Empty : + value.Length <= maximumLength ? value : value.Substring(0, maximumLength) + "... [truncated]"; + /// /// The response headers. /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsInternalClient.StartUpload.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.GeminiNextGenClient.StartEnvironmentFileUpload.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsInternalClient.StartUpload.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.GeminiNextGenClient.StartEnvironmentFileUpload.g.cs index 3e1b7357d..28042bd64 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsInternalClient.StartUpload.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.GeminiNextGenClient.StartEnvironmentFileUpload.g.cs @@ -3,11 +3,11 @@ namespace Google.Gemini.NextGen { - public partial class EnvironmentsInternalClient + public partial class GeminiNextGenClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_StartUploadSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_StartEnvironmentFileUploadSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,11 +21,11 @@ public partial class EnvironmentsInternalClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_StartUploadSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_StartEnvironmentFileUploadSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_StartUploadSecurityRequirement0, + { s_StartEnvironmentFileUploadSecurityRequirement0, }; - partial void PrepareStartUploadArguments( + partial void PrepareStartEnvironmentFileUploadArguments( global::System.Net.Http.HttpClient httpClient, ref bool? extract, ref bool? overwrite, @@ -35,7 +35,7 @@ partial void PrepareStartUploadArguments( ref string xGoogUploadProtocol, ref string environment, ref string path); - partial void PrepareStartUploadRequest( + partial void PrepareStartEnvironmentFileUploadRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, bool? extract, @@ -46,7 +46,7 @@ partial void PrepareStartUploadRequest( string xGoogUploadProtocol, string environment, string path); - partial void ProcessStartUploadResponse( + partial void ProcessStartEnvironmentFileUploadResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -80,7 +80,7 @@ partial void ProcessStartUploadResponse( /// -H "X-Goog-Upload-Header-Content-Length: $(wc -c < main.py)" \
/// -H 'X-Goog-Upload-Header-Content-Type: text/x-python' /// - public async global::System.Threading.Tasks.Task StartUploadAsync( + public async global::System.Threading.Tasks.Task StartEnvironmentFileUploadAsync( long xGoogUploadHeaderContentLength, string xGoogUploadHeaderContentType, string environment, @@ -92,7 +92,7 @@ partial void ProcessStartUploadResponse( global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - await StartUploadAsResponseAsync( + await StartEnvironmentFileUploadAsResponseAsync( xGoogUploadHeaderContentLength: xGoogUploadHeaderContentLength, xGoogUploadHeaderContentType: xGoogUploadHeaderContentType, environment: environment, @@ -135,7 +135,7 @@ await StartUploadAsResponseAsync( /// -H "X-Goog-Upload-Header-Content-Length: $(wc -c < main.py)" \
/// -H 'X-Goog-Upload-Header-Content-Type: text/x-python' /// - public async global::System.Threading.Tasks.Task StartUploadAsResponseAsync( + public async global::System.Threading.Tasks.Task StartEnvironmentFileUploadAsResponseAsync( long xGoogUploadHeaderContentLength, string xGoogUploadHeaderContentType, string environment, @@ -149,7 +149,7 @@ await StartUploadAsResponseAsync( { PrepareArguments( client: HttpClient); - PrepareStartUploadArguments( + PrepareStartEnvironmentFileUploadArguments( httpClient: HttpClient, extract: ref extract, overwrite: ref overwrite, @@ -163,8 +163,8 @@ await StartUploadAsResponseAsync( var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_StartUploadSecurityRequirements, - operationName: "StartUploadAsync"); + securityRequirements: s_StartEnvironmentFileUploadSecurityRequirements, + operationName: "StartEnvironmentFileUploadAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -233,7 +233,7 @@ await StartUploadAsResponseAsync( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareStartUploadRequest( + PrepareStartEnvironmentFileUploadRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, extract: extract, @@ -260,8 +260,8 @@ await StartUploadAsResponseAsync( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StartUpload", - methodName: "StartUploadAsync", + operationId: "StartEnvironmentFileUpload", + methodName: "StartEnvironmentFileUploadAsync", pathTemplate: "$\"/upload/v1beta/environments/{environment}/files/{path}\"", httpMethod: "PUT", baseUri: BaseUri, @@ -294,8 +294,8 @@ await StartUploadAsResponseAsync( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StartUpload", - methodName: "StartUploadAsync", + operationId: "StartEnvironmentFileUpload", + methodName: "StartEnvironmentFileUploadAsync", pathTemplate: "$\"/upload/v1beta/environments/{environment}/files/{path}\"", httpMethod: "PUT", baseUri: BaseUri, @@ -335,8 +335,8 @@ await StartUploadAsResponseAsync( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StartUpload", - methodName: "StartUploadAsync", + operationId: "StartEnvironmentFileUpload", + methodName: "StartEnvironmentFileUploadAsync", pathTemplate: "$\"/upload/v1beta/environments/{environment}/files/{path}\"", httpMethod: "PUT", baseUri: BaseUri, @@ -375,7 +375,7 @@ await StartUploadAsResponseAsync( ProcessResponse( client: HttpClient, response: __response); - ProcessStartUploadResponse( + ProcessStartEnvironmentFileUploadResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -383,8 +383,8 @@ await StartUploadAsResponseAsync( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StartUpload", - methodName: "StartUploadAsync", + operationId: "StartEnvironmentFileUpload", + methodName: "StartEnvironmentFileUploadAsync", pathTemplate: "$\"/upload/v1beta/environments/{environment}/files/{path}\"", httpMethod: "PUT", baseUri: BaseUri, @@ -405,8 +405,8 @@ await StartUploadAsResponseAsync( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "StartUpload", - methodName: "StartUploadAsync", + operationId: "StartEnvironmentFileUpload", + methodName: "StartEnvironmentFileUploadAsync", pathTemplate: "$\"/upload/v1beta/environments/{environment}/files/{path}\"", httpMethod: "PUT", baseUri: BaseUri, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.GeminiNextGenClient.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.GeminiNextGenClient.g.cs index 0b185f7b9..ff04f9919 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.GeminiNextGenClient.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.GeminiNextGenClient.g.cs @@ -86,7 +86,7 @@ public sealed partial class GeminiNextGenClient : global::Google.Gemini.NextGen. /// /// /// - public EnvironmentsInternalClient EnvironmentsInternal => new EnvironmentsInternalClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + public InteractionsClient Interactions => new InteractionsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, JsonSerializerContextProvider = JsonSerializerContextProvider, @@ -95,7 +95,7 @@ public sealed partial class GeminiNextGenClient : global::Google.Gemini.NextGen. /// /// /// - public InteractionsClient Interactions => new InteractionsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + public TriggersClient Triggers => new TriggersClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, JsonSerializerContextProvider = JsonSerializerContextProvider, @@ -104,7 +104,7 @@ public sealed partial class GeminiNextGenClient : global::Google.Gemini.NextGen. /// /// /// - public TriggersClient Triggers => new TriggersClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) + public TriggersExecutionsClient TriggersExecutions => new TriggersExecutionsClient(HttpClient, baseUri: null, authorizations: Authorizations, options: Options) { ReadResponseAsString = ReadResponseAsString, JsonSerializerContextProvider = JsonSerializerContextProvider, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.CreateAgent.g.cs similarity index 92% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.Create.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.CreateAgent.g.cs index 6b5b2eae7..3c7e4e055 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.Create.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.CreateAgent.g.cs @@ -7,6 +7,7 @@ public partial interface IAgentsClient /// /// Creates a new Agent (Typed version for SDK). /// + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -24,7 +25,8 @@ public partial interface IAgentsClient /// "tools": [{"type": "google_search"}]
/// }' /// - global::System.Threading.Tasks.Task CreateAsync( + global::System.Threading.Tasks.Task CreateAgentAsync( + string parent, global::Google.Gemini.NextGen.Agent request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -32,6 +34,7 @@ public partial interface IAgentsClient /// /// Creates a new Agent (Typed version for SDK). /// + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -49,7 +52,8 @@ public partial interface IAgentsClient /// "tools": [{"type": "google_search"}]
/// }' /// - global::System.Threading.Tasks.Task> CreateAsResponseAsync( + global::System.Threading.Tasks.Task> CreateAgentAsResponseAsync( + string parent, global::Google.Gemini.NextGen.Agent request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -57,12 +61,7 @@ public partial interface IAgentsClient /// /// Creates a new Agent (Typed version for SDK). /// - /// - /// Configuration parameters for the agent. - /// - /// - /// The environment configuration for the agent. - /// + /// /// /// The unique identifier for the agent. /// @@ -75,19 +74,26 @@ public partial interface IAgentsClient /// /// Agent description for developers to quickly read and understand. /// + /// + /// Configuration parameters for the agent. + /// + /// + /// The environment configuration for the agent. + /// /// /// The tools available to the agent. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateAsync( - global::Google.Gemini.NextGen.AntigravityAgentConfig? agentConfig = default, - global::Google.Gemini.NextGen.OneOf? baseEnvironment = default, + global::System.Threading.Tasks.Task CreateAgentAsync( + string parent, string? id = default, string? baseAgent = default, string? systemInstruction = default, string? description = default, + global::Google.Gemini.NextGen.AntigravityAgentConfig? agentConfig = default, + global::Google.Gemini.NextGen.OneOf? baseEnvironment = default, global::System.Collections.Generic.IList? tools = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.Delete.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.DeleteAgent.g.cs similarity index 96% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.Delete.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.DeleteAgent.g.cs index 79ca087f5..80c186dc7 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.Delete.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.DeleteAgent.g.cs @@ -15,7 +15,7 @@ public partial interface IAgentsClient /// curl -X DELETE https://generativelanguage.googleapis.com/v1beta/agents/ag_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task DeleteAsync( + global::System.Threading.Tasks.Task DeleteAgentAsync( string agentsId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -30,7 +30,7 @@ public partial interface IAgentsClient /// curl -X DELETE https://generativelanguage.googleapis.com/v1beta/agents/ag_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task> DeleteAsResponseAsync( + global::System.Threading.Tasks.Task> DeleteAgentAsResponseAsync( string agentsId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.Get.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.GetAgent.g.cs similarity index 97% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.Get.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.GetAgent.g.cs index 18f2e3a05..ef39f98e4 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.Get.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.GetAgent.g.cs @@ -15,7 +15,7 @@ public partial interface IAgentsClient /// curl -X GET https://generativelanguage.googleapis.com/v1beta/agents/ag_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task GetAsync( + global::System.Threading.Tasks.Task GetAgentAsync( string agentsId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -30,7 +30,7 @@ public partial interface IAgentsClient /// curl -X GET https://generativelanguage.googleapis.com/v1beta/agents/ag_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task> GetAsResponseAsync( + global::System.Threading.Tasks.Task> GetAgentAsResponseAsync( string agentsId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.List.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.ListAgents.g.cs similarity index 90% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.List.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.ListAgents.g.cs index 9d23efe4d..ff4d1a6ec 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.List.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.ListAgents.g.cs @@ -17,10 +17,10 @@ public partial interface IAgentsClient /// curl -X GET https://generativelanguage.googleapis.com/v1beta/agents \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task ListAsync( + global::System.Threading.Tasks.Task ListAgentsAsync( + string parent, int? pageSize = default, string? pageToken = default, - string? parent = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -36,10 +36,10 @@ public partial interface IAgentsClient /// curl -X GET https://generativelanguage.googleapis.com/v1beta/agents \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task> ListAsResponseAsync( + global::System.Threading.Tasks.Task> ListAgentsAsResponseAsync( + string parent, int? pageSize = default, string? pageToken = default, - string? parent = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.CreateCredential.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.Create.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.CreateCredential.g.cs index e4ee60d2c..cbd0d4b07 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.Create.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.CreateCredential.g.cs @@ -11,7 +11,7 @@ public partial interface ICredentialsClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateAsync( + global::System.Threading.Tasks.Task CreateCredentialAsync( global::Google.Gemini.NextGen.CredentialCreateParams request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -23,7 +23,7 @@ public partial interface ICredentialsClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> CreateAsResponseAsync( + global::System.Threading.Tasks.Task> CreateCredentialAsResponseAsync( global::Google.Gemini.NextGen.CredentialCreateParams request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -34,7 +34,7 @@ public partial interface ICredentialsClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateAsync( + global::System.Threading.Tasks.Task CreateCredentialAsync( global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.Delete.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.DeleteCredential.g.cs similarity index 95% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.Delete.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.DeleteCredential.g.cs index b829ba399..54f50393c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.Delete.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.DeleteCredential.g.cs @@ -11,7 +11,7 @@ public partial interface ICredentialsClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task DeleteAsync( + global::System.Threading.Tasks.Task DeleteCredentialAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -22,7 +22,7 @@ public partial interface ICredentialsClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> DeleteAsResponseAsync( + global::System.Threading.Tasks.Task> DeleteCredentialAsResponseAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.Get.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.GetCredential.g.cs similarity index 95% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.Get.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.GetCredential.g.cs index 655d3ae7d..814fd19db 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.Get.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.GetCredential.g.cs @@ -11,7 +11,7 @@ public partial interface ICredentialsClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task GetAsync( + global::System.Threading.Tasks.Task GetCredentialAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -22,7 +22,7 @@ public partial interface ICredentialsClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> GetAsResponseAsync( + global::System.Threading.Tasks.Task> GetCredentialAsResponseAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.List.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.ListCredentials.g.cs similarity index 90% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.List.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.ListCredentials.g.cs index af479ea96..77d9c85e5 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.List.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.ListCredentials.g.cs @@ -12,7 +12,7 @@ public partial interface ICredentialsClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ListAsync( + global::System.Threading.Tasks.Task ListCredentialsAsync( int? pageSize = default, string? pageToken = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -25,7 +25,7 @@ public partial interface ICredentialsClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ListAsResponseAsync( + global::System.Threading.Tasks.Task> ListCredentialsAsResponseAsync( int? pageSize = default, string? pageToken = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.Update.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.UpdateCredential.g.cs similarity index 90% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.Update.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.UpdateCredential.g.cs index 4f51e0930..8b3babde7 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.Update.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ICredentialsClient.UpdateCredential.g.cs @@ -13,10 +13,10 @@ public partial interface ICredentialsClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task UpdateAsync( + global::System.Threading.Tasks.Task UpdateCredentialAsync( string id, - global::Google.Gemini.NextGen.CredentialUpdate request, + global::Google.Gemini.NextGen.CredentialUpdateParams request, string? updateMask = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -29,10 +29,10 @@ public partial interface ICredentialsClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> UpdateAsResponseAsync( + global::System.Threading.Tasks.Task> UpdateCredentialAsResponseAsync( string id, - global::Google.Gemini.NextGen.CredentialUpdate request, + global::Google.Gemini.NextGen.CredentialUpdateParams request, string? updateMask = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -44,7 +44,7 @@ public partial interface ICredentialsClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task UpdateAsync( + global::System.Threading.Tasks.Task UpdateCredentialAsync( string id, string? updateMask = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsClient.CreateEnvironment.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsClient.CreateEnvironment.g.cs index df025e453..462e8c24f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsClient.CreateEnvironment.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsClient.CreateEnvironment.g.cs @@ -23,7 +23,7 @@ public partial interface IEnvironmentsClient /// }]
/// }' /// - global::System.Threading.Tasks.Task CreateEnvironmentAsync( + global::System.Threading.Tasks.Task CreateEnvironmentAsync( global::Google.Gemini.NextGen.CreateEnvironmentRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -47,7 +47,7 @@ public partial interface IEnvironmentsClient /// }]
/// }' /// - global::System.Threading.Tasks.Task> CreateEnvironmentAsResponseAsync( + global::System.Threading.Tasks.Task> CreateEnvironmentAsResponseAsync( global::Google.Gemini.NextGen.CreateEnvironmentRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -69,7 +69,7 @@ public partial interface IEnvironmentsClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateEnvironmentAsync( + global::System.Threading.Tasks.Task CreateEnvironmentAsync( global::Google.Gemini.NextGen.OneOf? network = default, global::System.Collections.Generic.IList? sources = default, string? fromEnvironment = default, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsClient.GetEnvironment.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsClient.GetEnvironment.g.cs index 3cd68bafc..eca379b7a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsClient.GetEnvironment.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsClient.GetEnvironment.g.cs @@ -15,7 +15,7 @@ public partial interface IEnvironmentsClient /// curl -X GET https://generativelanguage.googleapis.com/v1beta/environments/env_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task GetEnvironmentAsync( + global::System.Threading.Tasks.Task GetEnvironmentAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -30,7 +30,7 @@ public partial interface IEnvironmentsClient /// curl -X GET https://generativelanguage.googleapis.com/v1beta/environments/env_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task> GetEnvironmentAsResponseAsync( + global::System.Threading.Tasks.Task> GetEnvironmentAsResponseAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsFilesClient.List.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsFilesClient.GetEnvironmentFiles.g.cs similarity index 95% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsFilesClient.List.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsFilesClient.GetEnvironmentFiles.g.cs index 60ca8f917..15b8cb052 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsFilesClient.List.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsFilesClient.GetEnvironmentFiles.g.cs @@ -19,7 +19,7 @@ public partial interface IEnvironmentsFilesClient /// curl -X GET 'https://generativelanguage.googleapis.com/v1beta/environments/env_abc123/files/src' \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task ListAsync( + global::System.Threading.Tasks.Task GetEnvironmentFilesAsync( string environment, string path, int? pageSize = default, @@ -42,7 +42,7 @@ public partial interface IEnvironmentsFilesClient /// curl -X GET 'https://generativelanguage.googleapis.com/v1beta/environments/env_abc123/files/src' \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task> ListAsResponseAsync( + global::System.Threading.Tasks.Task> GetEnvironmentFilesAsResponseAsync( string environment, string path, int? pageSize = default, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsInternalClient.StartUpload.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IGeminiNextGenClient.StartEnvironmentFileUpload.g.cs similarity index 95% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsInternalClient.StartUpload.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IGeminiNextGenClient.StartEnvironmentFileUpload.g.cs index b74acf2d1..3fe39fd92 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsInternalClient.StartUpload.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IGeminiNextGenClient.StartEnvironmentFileUpload.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public partial interface IEnvironmentsInternalClient + public partial interface IGeminiNextGenClient { /// /// Start an environment file upload
@@ -34,7 +34,7 @@ public partial interface IEnvironmentsInternalClient /// -H "X-Goog-Upload-Header-Content-Length: $(wc -c < main.py)" \
/// -H 'X-Goog-Upload-Header-Content-Type: text/x-python' /// - global::System.Threading.Tasks.Task StartUploadAsync( + global::System.Threading.Tasks.Task StartEnvironmentFileUploadAsync( long xGoogUploadHeaderContentLength, string xGoogUploadHeaderContentType, string environment, @@ -75,7 +75,7 @@ public partial interface IEnvironmentsInternalClient /// -H "X-Goog-Upload-Header-Content-Length: $(wc -c < main.py)" \
/// -H 'X-Goog-Upload-Header-Content-Type: text/x-python' /// - global::System.Threading.Tasks.Task StartUploadAsResponseAsync( + global::System.Threading.Tasks.Task StartEnvironmentFileUploadAsResponseAsync( long xGoogUploadHeaderContentLength, string xGoogUploadHeaderContentType, string environment, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IGeminiNextGenClient.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IGeminiNextGenClient.g.cs index 4914f002c..1e08064bf 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IGeminiNextGenClient.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IGeminiNextGenClient.g.cs @@ -68,17 +68,17 @@ public partial interface IGeminiNextGenClient : global::System.IDisposable /// /// /// - public EnvironmentsInternalClient EnvironmentsInternal { get; } + public InteractionsClient Interactions { get; } /// /// /// - public InteractionsClient Interactions { get; } + public TriggersClient Triggers { get; } /// /// /// - public TriggersClient Triggers { get; } + public TriggersExecutionsClient TriggersExecutions { get; } /// /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Cancel.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Cancel.g.cs index 10e2331b9..f72cb18e4 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Cancel.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Cancel.g.cs @@ -5,10 +5,11 @@ namespace Google.Gemini.NextGen public partial interface IInteractionsClient { /// - /// Cancels an interaction by id. This only applies to background interactions
- /// that are still running. + /// Canceling an interaction
+ /// Cancels an interaction by id. This only applies to background interactions that are still running. ///
- /// + /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -17,14 +18,16 @@ public partial interface IInteractionsClient /// -H "x-goog-api-key: $GEMINI_API_KEY" /// global::System.Threading.Tasks.Task CancelAsync( - string interactionsId, + string apiVersion, + string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Cancels an interaction by id. This only applies to background interactions
- /// that are still running. + /// Canceling an interaction
+ /// Cancels an interaction by id. This only applies to background interactions that are still running. ///
- /// + /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -33,7 +36,8 @@ public partial interface IInteractionsClient /// -H "x-goog-api-key: $GEMINI_API_KEY" /// global::System.Threading.Tasks.Task> CancelAsResponseAsync( - string interactionsId, + string apiVersion, + string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Create.g.cs index 98a0be764..d53a040fd 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Create.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Create.g.cs @@ -5,6 +5,7 @@ namespace Google.Gemini.NextGen public partial interface IInteractionsClient { /// + /// Creating an interaction
/// Creates a new interaction. ///
/// @@ -26,6 +27,7 @@ public partial interface IInteractionsClient global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// + /// Creating an interaction
/// Creates a new interaction. ///
/// @@ -47,6 +49,7 @@ public partial interface IInteractionsClient global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// + /// Creating an interaction
/// Creates a new interaction. ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.CreateAsStream.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.CreateAsStream.g.cs index b219e849b..379551f5b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.CreateAsStream.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.CreateAsStream.g.cs @@ -5,6 +5,7 @@ namespace Google.Gemini.NextGen public partial interface IInteractionsClient { /// + /// Creating an interaction
/// Creates a new interaction. ///
/// @@ -26,6 +27,7 @@ public partial interface IInteractionsClient global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// + /// Creating an interaction
/// Creates a new interaction. ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Delete.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Delete.g.cs index 67b34c674..a65ac6400 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Delete.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Delete.g.cs @@ -5,8 +5,11 @@ namespace Google.Gemini.NextGen public partial interface IInteractionsClient { /// + /// Deleting an interaction
/// Deletes the interaction by id. ///
+ /// + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -16,12 +19,17 @@ public partial interface IInteractionsClient /// -H "x-goog-api-key: $GEMINI_API_KEY" /// global::System.Threading.Tasks.Task DeleteAsync( + string apiVersion, + string id, string interactionsId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// + /// Deleting an interaction
/// Deletes the interaction by id. ///
+ /// + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -31,6 +39,8 @@ public partial interface IInteractionsClient /// -H "x-goog-api-key: $GEMINI_API_KEY" /// global::System.Threading.Tasks.Task DeleteAsResponseAsync( + string apiVersion, + string id, string interactionsId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Get.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Get.g.cs index c2d21d69f..2ccd2de8e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Get.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.Get.g.cs @@ -5,13 +5,15 @@ namespace Google.Gemini.NextGen public partial interface IInteractionsClient { /// - /// Retrieves the full details of a single interaction based on its
- /// `Interaction.id`. + /// Retrieving an interaction
+ /// Retrieves the full details of a single interaction based on its `Interaction.id`. ///
- /// - /// + /// + /// /// - /// + /// + /// Default Value: false + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -21,20 +23,22 @@ public partial interface IInteractionsClient /// -H "Api-Revision: 2026-05-20" /// global::System.Threading.Tasks.Task GetAsync( - string interactionsId, - bool? includeInput = default, + string apiVersion, + string id, string? lastEventId = default, bool? stream = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Retrieves the full details of a single interaction based on its
- /// `Interaction.id`. + /// Retrieving an interaction
+ /// Retrieves the full details of a single interaction based on its `Interaction.id`. ///
- /// - /// + /// + /// /// - /// + /// + /// Default Value: false + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -44,8 +48,8 @@ public partial interface IInteractionsClient /// -H "Api-Revision: 2026-05-20" /// global::System.Threading.Tasks.Task> GetAsResponseAsync( - string interactionsId, - bool? includeInput = default, + string apiVersion, + string id, string? lastEventId = default, bool? stream = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.GetAsStream.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.GetAsStream.g.cs index 7027d6302..ed5a8b222 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.GetAsStream.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IInteractionsClient.GetAsStream.g.cs @@ -5,13 +5,15 @@ namespace Google.Gemini.NextGen public partial interface IInteractionsClient { /// - /// Retrieves the full details of a single interaction based on its
- /// `Interaction.id`. + /// Retrieving an interaction
+ /// Retrieves the full details of a single interaction based on its `Interaction.id`. ///
- /// - /// + /// + /// /// - /// + /// + /// Default Value: false + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -21,8 +23,8 @@ public partial interface IInteractionsClient /// -H "Api-Revision: 2026-05-20" /// global::System.Collections.Generic.IAsyncEnumerable GetAsStreamAsync( - string interactionsId, - bool? includeInput = default, + string apiVersion, + string id, string? lastEventId = default, bool? stream = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.CreateTrigger.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Create.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.CreateTrigger.g.cs index 76d146d57..bfd03b92c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Create.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.CreateTrigger.g.cs @@ -26,9 +26,9 @@ public partial interface ITriggersClient /// }
/// }' /// - global::System.Threading.Tasks.Task CreateAsync( + global::System.Threading.Tasks.Task CreateTriggerAsync( - global::Google.Gemini.NextGen.TriggerCreateParams request, + global::Google.Gemini.NextGen.Trigger request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -53,9 +53,9 @@ public partial interface ITriggersClient /// }
/// }' /// - global::System.Threading.Tasks.Task> CreateAsResponseAsync( + global::System.Threading.Tasks.Task> CreateTriggerAsResponseAsync( - global::Google.Gemini.NextGen.TriggerCreateParams request, + global::Google.Gemini.NextGen.Trigger request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -70,7 +70,7 @@ public partial interface ITriggersClient /// Required. Time zone in which the schedule should be interpreted. /// /// - /// Interaction for generating the completion using agents. + /// Parameters for creating agent interactions /// /// /// Optional. The display name of the trigger. @@ -88,7 +88,7 @@ public partial interface ITriggersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateAsync( + global::System.Threading.Tasks.Task CreateTriggerAsync( string schedule, string timeZone, global::Google.Gemini.NextGen.CreateAgentInteraction createAgentInteraction, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Delete.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.DeleteTrigger.g.cs similarity index 95% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Delete.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.DeleteTrigger.g.cs index 0b3941f2f..667b8fe23 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Delete.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.DeleteTrigger.g.cs @@ -11,7 +11,7 @@ public partial interface ITriggersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task DeleteAsync( + global::System.Threading.Tasks.Task DeleteTriggerAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -22,7 +22,7 @@ public partial interface ITriggersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> DeleteAsResponseAsync( + global::System.Threading.Tasks.Task> DeleteTriggerAsResponseAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Get.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.GetTrigger.g.cs similarity index 95% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Get.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.GetTrigger.g.cs index 7ee3770df..80abd3027 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Get.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.GetTrigger.g.cs @@ -11,7 +11,7 @@ public partial interface ITriggersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task GetAsync( + global::System.Threading.Tasks.Task GetTriggerAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -22,7 +22,7 @@ public partial interface ITriggersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> GetAsResponseAsync( + global::System.Threading.Tasks.Task> GetTriggerAsResponseAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.List.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.ListTriggers.g.cs similarity index 95% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.List.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.ListTriggers.g.cs index 961d01244..9628abb4d 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.List.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.ListTriggers.g.cs @@ -13,7 +13,7 @@ public partial interface ITriggersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ListAsync( + global::System.Threading.Tasks.Task ListTriggersAsync( string? filter = default, int? pageSize = default, string? pageToken = default, @@ -28,7 +28,7 @@ public partial interface ITriggersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ListAsResponseAsync( + global::System.Threading.Tasks.Task> ListTriggersAsResponseAsync( string? filter = default, int? pageSize = default, string? pageToken = default, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Run.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.RunTrigger.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Run.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.RunTrigger.g.cs index 1d682e625..284950107 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Run.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.RunTrigger.g.cs @@ -11,7 +11,7 @@ public partial interface ITriggersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task RunAsync( + global::System.Threading.Tasks.Task RunTriggerAsync( string triggerId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -22,7 +22,7 @@ public partial interface ITriggersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> RunAsResponseAsync( + global::System.Threading.Tasks.Task> RunTriggerAsResponseAsync( string triggerId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Update.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.UpdateTrigger.g.cs similarity index 77% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Update.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.UpdateTrigger.g.cs index 484e3f3e6..6b158c65b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Update.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.UpdateTrigger.g.cs @@ -12,10 +12,10 @@ public partial interface ITriggersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task UpdateAsync( + global::System.Threading.Tasks.Task UpdateTriggerAsync( string id, - global::Google.Gemini.NextGen.TriggerUpdate request, + global::Google.Gemini.NextGen.UpdateTriggerRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -26,29 +26,33 @@ public partial interface ITriggersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> UpdateAsResponseAsync( + global::System.Threading.Tasks.Task> UpdateTriggerAsResponseAsync( string id, - global::Google.Gemini.NextGen.TriggerUpdate request, + global::Google.Gemini.NextGen.UpdateTriggerRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// Updates a trigger. /// /// - /// - /// Optional. The status of the trigger. + /// + /// Represents the fields of a Trigger that can be updated. /// - /// - /// Optional. The display name of the trigger. + /// + /// Required. The ID of the trigger to update. + /// + /// + /// Optional. The update mask applies to the resource. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task UpdateAsync( + global::System.Threading.Tasks.Task UpdateTriggerAsync( string id, - global::Google.Gemini.NextGen.TriggerUpdateStatus? status = default, - string? displayName = default, + global::Google.Gemini.NextGen.TriggerUpdate trigger, + string requestId, + string? updateMask = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsInternalClient.Authorizations.ApiKeyInHeader.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersExecutionsClient.Authorizations.ApiKeyInHeader.g.cs similarity index 83% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsInternalClient.Authorizations.ApiKeyInHeader.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersExecutionsClient.Authorizations.ApiKeyInHeader.g.cs index 538950088..0f3d4c16a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsInternalClient.Authorizations.ApiKeyInHeader.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersExecutionsClient.Authorizations.ApiKeyInHeader.g.cs @@ -3,7 +3,7 @@ namespace Google.Gemini.NextGen { - public partial interface IEnvironmentsInternalClient + public partial interface ITriggersExecutionsClient { /// /// Authorize using ApiKey authentication. diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.ListExecutions.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersExecutionsClient.ListTriggerExecutions.g.cs similarity index 84% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.ListExecutions.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersExecutionsClient.ListTriggerExecutions.g.cs index ce3a9bceb..d85d9ac05 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.ListExecutions.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersExecutionsClient.ListTriggerExecutions.g.cs @@ -2,19 +2,21 @@ namespace Google.Gemini.NextGen { - public partial interface ITriggersClient + public partial interface ITriggersExecutionsClient { /// /// Lists executions for a trigger. /// + /// /// /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ListExecutionsAsync( + global::System.Threading.Tasks.Task ListTriggerExecutionsAsync( string triggerId, + string? filter = default, int? pageSize = default, string? pageToken = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -22,14 +24,16 @@ public partial interface ITriggersClient /// /// Lists executions for a trigger. /// + /// /// /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ListExecutionsAsResponseAsync( + global::System.Threading.Tasks.Task> ListTriggerExecutionsAsResponseAsync( string triggerId, + string? filter = default, int? pageSize = default, string? pageToken = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsInternalClient.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersExecutionsClient.g.cs similarity index 95% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsInternalClient.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersExecutionsClient.g.cs index 873e4ed92..fb42100d7 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsInternalClient.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersExecutionsClient.g.cs @@ -7,7 +7,7 @@ namespace Google.Gemini.NextGen /// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. ///
- public partial interface IEnvironmentsInternalClient : global::System.IDisposable + public partial interface ITriggersExecutionsClient : global::System.IDisposable { /// /// The HttpClient instance. diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.CreateVoice.g.cs similarity index 98% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.Create.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.CreateVoice.g.cs index bbb72fceb..f00666b35 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.Create.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.CreateVoice.g.cs @@ -29,7 +29,7 @@ public partial interface IVoicesClient /// }
/// }' /// - global::System.Threading.Tasks.Task CreateAsync( + global::System.Threading.Tasks.Task CreateVoiceAsync( global::Google.Gemini.NextGen.CreateVoiceRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -59,7 +59,7 @@ public partial interface IVoicesClient /// }
/// }' /// - global::System.Threading.Tasks.Task> CreateAsResponseAsync( + global::System.Threading.Tasks.Task> CreateVoiceAsResponseAsync( global::Google.Gemini.NextGen.CreateVoiceRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -92,7 +92,7 @@ public partial interface IVoicesClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task CreateAsync( + global::System.Threading.Tasks.Task CreateVoiceAsync( global::Google.Gemini.NextGen.Voice voice, bool? store = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.Delete.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.DeleteVoice.g.cs similarity index 95% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.Delete.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.DeleteVoice.g.cs index babcfa5e8..fdb534051 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.Delete.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.DeleteVoice.g.cs @@ -16,7 +16,7 @@ public partial interface IVoicesClient /// curl -X DELETE https://generativelanguage.googleapis.com/v1beta/voices/voice_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task DeleteAsync( + global::System.Threading.Tasks.Task DeleteVoiceAsync( string voicesId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -32,7 +32,7 @@ public partial interface IVoicesClient /// curl -X DELETE https://generativelanguage.googleapis.com/v1beta/voices/voice_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task> DeleteAsResponseAsync( + global::System.Threading.Tasks.Task> DeleteVoiceAsResponseAsync( string voicesId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.Get.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.GetVoice.g.cs similarity index 97% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.Get.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.GetVoice.g.cs index 80c354aff..075d5765e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.Get.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.GetVoice.g.cs @@ -17,7 +17,7 @@ public partial interface IVoicesClient /// curl -X GET https://generativelanguage.googleapis.com/v1beta/voices/voice_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task GetAsync( + global::System.Threading.Tasks.Task GetVoiceAsync( string voicesId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -34,7 +34,7 @@ public partial interface IVoicesClient /// curl -X GET https://generativelanguage.googleapis.com/v1beta/voices/voice_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task> GetAsResponseAsync( + global::System.Threading.Tasks.Task> GetVoiceAsResponseAsync( string voicesId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.List.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.ListVoices.g.cs similarity index 95% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.List.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.ListVoices.g.cs index 6c17d5b5b..4c9e7b01e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.List.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.ListVoices.g.cs @@ -9,7 +9,7 @@ public partial interface IVoicesClient /// followed by prebuilt system voices from Google's voice catalog. ///
/// - /// + /// /// /// /// @@ -26,9 +26,9 @@ public partial interface IVoicesClient /// curl -X GET https://generativelanguage.googleapis.com/v1beta/voices \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task ListAsync( + global::System.Threading.Tasks.Task ListVoicesAsync( global::System.Collections.Generic.IList? accent = default, - global::System.Collections.Generic.IList? contexts = default, + global::System.Collections.Generic.IList? context = default, global::System.Collections.Generic.IList? gender = default, global::System.Collections.Generic.IList? languageCode = default, int? pageSize = default, @@ -45,7 +45,7 @@ public partial interface IVoicesClient /// followed by prebuilt system voices from Google's voice catalog. ///
/// - /// + /// /// /// /// @@ -62,9 +62,9 @@ public partial interface IVoicesClient /// curl -X GET https://generativelanguage.googleapis.com/v1beta/voices \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - global::System.Threading.Tasks.Task> ListAsResponseAsync( + global::System.Threading.Tasks.Task> ListVoicesAsResponseAsync( global::System.Collections.Generic.IList? accent = default, - global::System.Collections.Generic.IList? contexts = default, + global::System.Collections.Generic.IList? context = default, global::System.Collections.Generic.IList? gender = default, global::System.Collections.Generic.IList? languageCode = default, int? pageSize = default, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Create.g.cs deleted file mode 100644 index 71a1f651f..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Create.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public partial interface IWebhooksClient - { - /// - /// Creates a new Webhook. - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateAsync( - - global::Google.Gemini.NextGen.Webhook request, - global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Creates a new Webhook. - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> CreateAsResponseAsync( - - global::Google.Gemini.NextGen.Webhook request, - global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Creates a new Webhook. - /// - /// - /// Required. The URI to which webhook events will be sent. - /// - /// - /// Required. The events that the webhook is subscribed to.
- /// Available events:
- /// - batch.succeeded
- /// - batch.expired
- /// - batch.failed
- /// - interaction.requires_action
- /// - interaction.completed
- /// - interaction.failed
- /// - video.generated - /// - /// - /// Optional. The user-provided name of the webhook. - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task CreateAsync( - string uri, - global::System.Collections.Generic.IList subscribedEvents, - string? name = default, - global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.CreateWebhook.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.CreateWebhook.g.cs new file mode 100644 index 000000000..049e61db4 --- /dev/null +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.CreateWebhook.g.cs @@ -0,0 +1,51 @@ +#nullable enable + +namespace Google.Gemini.NextGen +{ + public partial interface IWebhooksClient + { + /// + /// Creates a new Webhook. + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateWebhookAsync( + + global::Google.Gemini.NextGen.CreateWebhookRequest request, + string? webhookId = default, + global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Creates a new Webhook. + /// + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> CreateWebhookAsResponseAsync( + + global::Google.Gemini.NextGen.CreateWebhookRequest request, + string? webhookId = default, + global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Creates a new Webhook. + /// + /// + /// + /// A Webhook resource. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateWebhookAsync( + global::Google.Gemini.NextGen.Webhook webhook, + string? webhookId = default, + global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Delete.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.DeleteWebhook.g.cs similarity index 95% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Delete.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.DeleteWebhook.g.cs index 008827dbb..3c4079809 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Delete.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.DeleteWebhook.g.cs @@ -11,7 +11,7 @@ public partial interface IWebhooksClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task DeleteAsync( + global::System.Threading.Tasks.Task DeleteWebhookAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -22,7 +22,7 @@ public partial interface IWebhooksClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> DeleteAsResponseAsync( + global::System.Threading.Tasks.Task> DeleteWebhookAsResponseAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Get.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.GetWebhook.g.cs similarity index 95% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Get.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.GetWebhook.g.cs index 5725301c6..1aac850b1 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Get.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.GetWebhook.g.cs @@ -11,7 +11,7 @@ public partial interface IWebhooksClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task GetAsync( + global::System.Threading.Tasks.Task GetWebhookAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -22,7 +22,7 @@ public partial interface IWebhooksClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> GetAsResponseAsync( + global::System.Threading.Tasks.Task> GetWebhookAsResponseAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.List.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.ListWebhooks.g.cs similarity index 91% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.List.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.ListWebhooks.g.cs index 11370c824..d0e351bcf 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.List.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.ListWebhooks.g.cs @@ -12,7 +12,7 @@ public partial interface IWebhooksClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ListAsync( + global::System.Threading.Tasks.Task ListWebhooksAsync( int? pageSize = default, string? pageToken = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -25,7 +25,7 @@ public partial interface IWebhooksClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ListAsResponseAsync( + global::System.Threading.Tasks.Task> ListWebhooksAsResponseAsync( int? pageSize = default, string? pageToken = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.PingWebhook.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.PingWebhook.g.cs new file mode 100644 index 000000000..d0e8ab874 --- /dev/null +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.PingWebhook.g.cs @@ -0,0 +1,30 @@ +#nullable enable + +namespace Google.Gemini.NextGen +{ + public partial interface IWebhooksClient + { + /// + /// Sends a ping event to a Webhook. + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task PingWebhookAsync( + string id, + global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Sends a ping event to a Webhook. + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> PingWebhookAsResponseAsync( + string id, + global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.RotateSigningSecret.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.RotateSigningSecret.g.cs index 6f42e756f..8768af899 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.RotateSigningSecret.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.RotateSigningSecret.g.cs @@ -8,43 +8,22 @@ public partial interface IWebhooksClient /// Generates a new signing secret for a Webhook. ///
/// - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task RotateSigningSecretAsync( + global::System.Threading.Tasks.Task RotateSigningSecretAsync( string id, - - global::Google.Gemini.NextGen.RotateSigningSecretRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// /// Generates a new signing secret for a Webhook. /// /// - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> RotateSigningSecretAsResponseAsync( - string id, - - global::Google.Gemini.NextGen.RotateSigningSecretRequest request, - global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Generates a new signing secret for a Webhook. - /// - /// - /// - /// Optional. The revocation behavior for previous signing secrets. - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task RotateSigningSecretAsync( + global::System.Threading.Tasks.Task> RotateSigningSecretAsResponseAsync( string id, - global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior? revocationBehavior = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Update.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Update.g.cs deleted file mode 100644 index a0da659c9..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Update.g.cs +++ /dev/null @@ -1,77 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public partial interface IWebhooksClient - { - /// - /// Updates an existing Webhook. - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task UpdateAsync( - string id, - - global::Google.Gemini.NextGen.WebhookUpdate request, - string? updateMask = default, - global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Updates an existing Webhook. - /// - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task> UpdateAsResponseAsync( - string id, - - global::Google.Gemini.NextGen.WebhookUpdate request, - string? updateMask = default, - global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - /// - /// Updates an existing Webhook. - /// - /// - /// - /// - /// Optional. The user-provided name of the webhook. - /// - /// - /// Optional. The URI to which webhook events will be sent. - /// - /// - /// Optional. The events that the webhook is subscribed to.
- /// Available events:
- /// - batch.succeeded
- /// - batch.expired
- /// - batch.failed
- /// - interaction.requires_action
- /// - interaction.completed
- /// - interaction.failed
- /// - video.generated - /// - /// - /// Optional. The state of the webhook. - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - global::System.Threading.Tasks.Task UpdateAsync( - string id, - string? updateMask = default, - string? name = default, - string? uri = default, - global::System.Collections.Generic.IList? subscribedEvents = default, - global::Google.Gemini.NextGen.WebhookUpdateState? state = default, - global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Ping.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.UpdateWebhook.g.cs similarity index 74% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Ping.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.UpdateWebhook.g.cs index 36beec06c..49d4a9eff 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Ping.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.UpdateWebhook.g.cs @@ -5,42 +5,52 @@ namespace Google.Gemini.NextGen public partial interface IWebhooksClient { /// - /// Sends a ping event to a Webhook. + /// Updates an existing Webhook. /// /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task PingAsync( + global::System.Threading.Tasks.Task UpdateWebhookAsync( string id, - global::Google.Gemini.NextGen.PingWebhookRequest request, + global::Google.Gemini.NextGen.UpdateWebhookRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Sends a ping event to a Webhook. + /// Updates an existing Webhook. /// /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> PingAsResponseAsync( + global::System.Threading.Tasks.Task> UpdateWebhookAsResponseAsync( string id, - global::Google.Gemini.NextGen.PingWebhookRequest request, + global::Google.Gemini.NextGen.UpdateWebhookRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// - /// Sends a ping event to a Webhook. + /// Updates an existing Webhook. /// /// + /// + /// + /// Required. The ID of the webhook to update. + /// + /// + /// Optional. The list of fields to update. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task PingAsync( + global::System.Threading.Tasks.Task UpdateWebhookAsync( string id, + global::Google.Gemini.NextGen.WebhookUpdate webhook, + string requestId, + string? updateMask = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Cancel.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Cancel.g.cs index 289a8522b..278f897c2 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Cancel.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Cancel.g.cs @@ -27,11 +27,13 @@ public partial class InteractionsClient }; partial void PrepareCancelArguments( global::System.Net.Http.HttpClient httpClient, - ref string interactionsId); + ref string apiVersion, + ref string id); partial void PrepareCancelRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string interactionsId); + string apiVersion, + string id); partial void ProcessCancelResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -42,10 +44,11 @@ partial void ProcessCancelResponseContent( ref string content); /// - /// Cancels an interaction by id. This only applies to background interactions
- /// that are still running. + /// Canceling an interaction
+ /// Cancels an interaction by id. This only applies to background interactions that are still running. ///
- /// + /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -54,12 +57,14 @@ partial void ProcessCancelResponseContent( /// -H "x-goog-api-key: $GEMINI_API_KEY" /// public async global::System.Threading.Tasks.Task CancelAsync( - string interactionsId, + string apiVersion, + string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await CancelAsResponseAsync( - interactionsId: interactionsId, + apiVersion: apiVersion, + id: id, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -67,10 +72,11 @@ partial void ProcessCancelResponseContent( return __response.Body; } /// - /// Cancels an interaction by id. This only applies to background interactions
- /// that are still running. + /// Canceling an interaction
+ /// Cancels an interaction by id. This only applies to background interactions that are still running. ///
- /// + /// + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -79,7 +85,8 @@ partial void ProcessCancelResponseContent( /// -H "x-goog-api-key: $GEMINI_API_KEY" /// public async global::System.Threading.Tasks.Task> CancelAsResponseAsync( - string interactionsId, + string apiVersion, + string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -87,7 +94,8 @@ partial void ProcessCancelResponseContent( client: HttpClient); PrepareCancelArguments( httpClient: HttpClient, - interactionsId: ref interactionsId); + apiVersion: ref apiVersion, + id: ref id); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( @@ -113,7 +121,7 @@ partial void ProcessCancelResponseContent( { var __pathBuilder = new global::Google.Gemini.NextGen.PathBuilder( - path: $"/v1beta/interactions/{interactionsId}/cancel", + path: $"/v1beta/interactions/{id}/cancel", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -155,7 +163,8 @@ partial void ProcessCancelResponseContent( PrepareCancelRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - interactionsId: interactionsId); + apiVersion: apiVersion, + id: id); return __httpRequest; } @@ -174,7 +183,7 @@ partial void ProcessCancelResponseContent( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "Cancel", methodName: "CancelAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}/cancel\"", + pathTemplate: "$\"/v1beta/interactions/{id}/cancel\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -208,7 +217,7 @@ partial void ProcessCancelResponseContent( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "Cancel", methodName: "CancelAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}/cancel\"", + pathTemplate: "$\"/v1beta/interactions/{id}/cancel\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -249,7 +258,7 @@ partial void ProcessCancelResponseContent( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "Cancel", methodName: "CancelAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}/cancel\"", + pathTemplate: "$\"/v1beta/interactions/{id}/cancel\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -297,7 +306,7 @@ partial void ProcessCancelResponseContent( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "Cancel", methodName: "CancelAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}/cancel\"", + pathTemplate: "$\"/v1beta/interactions/{id}/cancel\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -319,7 +328,7 @@ partial void ProcessCancelResponseContent( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "Cancel", methodName: "CancelAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}/cancel\"", + pathTemplate: "$\"/v1beta/interactions/{id}/cancel\"", httpMethod: "POST", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -334,7 +343,7 @@ partial void ProcessCancelResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } - // Client Error + // Error cancelling interaction if ((int)__response.StatusCode >= 400 && (int)__response.StatusCode <= 499) { string? __content_4XX = null; @@ -371,7 +380,7 @@ partial void ProcessCancelResponseContent( h => h.Key, h => h.Value)); } - // Server Error + // Error cancelling interaction if ((int)__response.StatusCode >= 500 && (int)__response.StatusCode <= 599) { string? __content_5XX = null; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Create.g.cs index 3673ca17b..c582652e0 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Create.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Create.g.cs @@ -42,6 +42,7 @@ partial void ProcessCreateResponseContent( ref string content); /// + /// Creating an interaction
/// Creates a new interaction. ///
/// @@ -73,6 +74,7 @@ partial void ProcessCreateResponseContent( return __response.Body; } /// + /// Creating an interaction
/// Creates a new interaction. ///
/// @@ -355,7 +357,7 @@ partial void ProcessCreateResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } - // Client Error + // Error creating interaction if ((int)__response.StatusCode >= 400 && (int)__response.StatusCode <= 499) { string? __content_4XX = null; @@ -392,7 +394,7 @@ partial void ProcessCreateResponseContent( h => h.Key, h => h.Value)); } - // Server Error + // Error creating interaction if ((int)__response.StatusCode >= 500 && (int)__response.StatusCode <= 599) { string? __content_5XX = null; @@ -526,6 +528,7 @@ partial void ProcessCreateResponseContent( } } /// + /// Creating an interaction
/// Creates a new interaction. ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.CreateAsStream.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.CreateAsStream.g.cs index 0761e8320..81a63d3dc 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.CreateAsStream.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.CreateAsStream.g.cs @@ -37,6 +37,7 @@ partial void ProcessCreateAsStreamResponse( global::System.Net.Http.HttpResponseMessage httpResponseMessage); /// + /// Creating an interaction
/// Creates a new interaction. ///
/// @@ -387,6 +388,7 @@ partial void ProcessCreateAsStreamResponse( } } /// + /// Creating an interaction
/// Creates a new interaction. ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Delete.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Delete.g.cs index 1cb54e255..f5eb1096c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Delete.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Delete.g.cs @@ -27,18 +27,25 @@ public partial class InteractionsClient }; partial void PrepareDeleteArguments( global::System.Net.Http.HttpClient httpClient, + ref string apiVersion, + ref string id, ref string interactionsId); partial void PrepareDeleteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string apiVersion, + string id, string interactionsId); partial void ProcessDeleteResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); /// + /// Deleting an interaction
/// Deletes the interaction by id. ///
+ /// + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -48,19 +55,26 @@ partial void ProcessDeleteResponse( /// -H "x-goog-api-key: $GEMINI_API_KEY" /// public async global::System.Threading.Tasks.Task DeleteAsync( + string apiVersion, + string id, string interactionsId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { await DeleteAsResponseAsync( + apiVersion: apiVersion, + id: id, interactionsId: interactionsId, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); } /// + /// Deleting an interaction
/// Deletes the interaction by id. ///
+ /// + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -70,6 +84,8 @@ await DeleteAsResponseAsync( /// -H "x-goog-api-key: $GEMINI_API_KEY" /// public async global::System.Threading.Tasks.Task DeleteAsResponseAsync( + string apiVersion, + string id, string interactionsId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -78,6 +94,8 @@ await DeleteAsResponseAsync( client: HttpClient); PrepareDeleteArguments( httpClient: HttpClient, + apiVersion: ref apiVersion, + id: ref id, interactionsId: ref interactionsId); @@ -104,7 +122,7 @@ await DeleteAsResponseAsync( { var __pathBuilder = new global::Google.Gemini.NextGen.PathBuilder( - path: $"/v1beta/interactions/{interactionsId}", + path: $"/v1beta/interactions/{id}", baseUri: HttpClient.BaseAddress); var __path = __pathBuilder.ToString(); __path = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.AppendQueryParameters( @@ -146,6 +164,8 @@ await DeleteAsResponseAsync( PrepareDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, + apiVersion: apiVersion, + id: id, interactionsId: interactionsId); return __httpRequest; @@ -165,7 +185,7 @@ await DeleteAsResponseAsync( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "Delete", methodName: "DeleteAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", + pathTemplate: "$\"/v1beta/interactions/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -199,7 +219,7 @@ await DeleteAsResponseAsync( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "Delete", methodName: "DeleteAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", + pathTemplate: "$\"/v1beta/interactions/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -240,7 +260,7 @@ await DeleteAsResponseAsync( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "Delete", methodName: "DeleteAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", + pathTemplate: "$\"/v1beta/interactions/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -288,7 +308,7 @@ await DeleteAsResponseAsync( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "Delete", methodName: "DeleteAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", + pathTemplate: "$\"/v1beta/interactions/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -310,7 +330,7 @@ await DeleteAsResponseAsync( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "Delete", methodName: "DeleteAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", + pathTemplate: "$\"/v1beta/interactions/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -325,7 +345,7 @@ await DeleteAsResponseAsync( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } - // Client Error + // Error deleting interaction if ((int)__response.StatusCode >= 400 && (int)__response.StatusCode <= 499) { string? __content_4XX = null; @@ -362,7 +382,7 @@ await DeleteAsResponseAsync( h => h.Key, h => h.Value)); } - // Server Error + // Error deleting interaction if ((int)__response.StatusCode >= 500 && (int)__response.StatusCode <= 599) { string? __content_5XX = null; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Get.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Get.g.cs index 3861b7211..921c1b199 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Get.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.Get.g.cs @@ -27,15 +27,15 @@ public partial class InteractionsClient }; partial void PrepareGetArguments( global::System.Net.Http.HttpClient httpClient, - ref bool? includeInput, - ref string interactionsId, + ref string apiVersion, + ref string id, ref string? lastEventId, ref bool? stream); partial void PrepareGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - bool? includeInput, - string interactionsId, + string apiVersion, + string id, string? lastEventId, bool? stream); partial void ProcessGetResponse( @@ -48,13 +48,15 @@ partial void ProcessGetResponseContent( ref string content); /// - /// Retrieves the full details of a single interaction based on its
- /// `Interaction.id`. + /// Retrieving an interaction
+ /// Retrieves the full details of a single interaction based on its `Interaction.id`. ///
- /// - /// + /// + /// /// - /// + /// + /// Default Value: false + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -64,16 +66,16 @@ partial void ProcessGetResponseContent( /// -H "Api-Revision: 2026-05-20" /// public async global::System.Threading.Tasks.Task GetAsync( - string interactionsId, - bool? includeInput = default, + string apiVersion, + string id, string? lastEventId = default, bool? stream = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await GetAsResponseAsync( - interactionsId: interactionsId, - includeInput: includeInput, + apiVersion: apiVersion, + id: id, lastEventId: lastEventId, stream: stream, requestOptions: requestOptions, @@ -83,13 +85,15 @@ partial void ProcessGetResponseContent( return __response.Body; } /// - /// Retrieves the full details of a single interaction based on its
- /// `Interaction.id`. + /// Retrieving an interaction
+ /// Retrieves the full details of a single interaction based on its `Interaction.id`. ///
- /// - /// + /// + /// /// - /// + /// + /// Default Value: false + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -99,8 +103,8 @@ partial void ProcessGetResponseContent( /// -H "Api-Revision: 2026-05-20" /// public async global::System.Threading.Tasks.Task> GetAsResponseAsync( - string interactionsId, - bool? includeInput = default, + string apiVersion, + string id, string? lastEventId = default, bool? stream = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -110,8 +114,8 @@ partial void ProcessGetResponseContent( client: HttpClient); PrepareGetArguments( httpClient: HttpClient, - includeInput: ref includeInput, - interactionsId: ref interactionsId, + apiVersion: ref apiVersion, + id: ref id, lastEventId: ref lastEventId, stream: ref stream); @@ -139,10 +143,9 @@ partial void ProcessGetResponseContent( { var __pathBuilder = new global::Google.Gemini.NextGen.PathBuilder( - path: $"/v1beta/interactions/{interactionsId}", + path: $"/v1beta/interactions/{id}", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddOptionalParameter("include_input", includeInput?.ToString().ToLowerInvariant()) .AddOptionalParameter("last_event_id", lastEventId) .AddOptionalParameter("stream", stream?.ToString().ToLowerInvariant()) ; @@ -190,8 +193,8 @@ partial void ProcessGetResponseContent( PrepareGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - includeInput: includeInput, - interactionsId: interactionsId, + apiVersion: apiVersion, + id: id, lastEventId: lastEventId, stream: stream); @@ -212,7 +215,7 @@ partial void ProcessGetResponseContent( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "Get", methodName: "GetAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", + pathTemplate: "$\"/v1beta/interactions/{id}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -246,7 +249,7 @@ partial void ProcessGetResponseContent( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "Get", methodName: "GetAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", + pathTemplate: "$\"/v1beta/interactions/{id}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -287,7 +290,7 @@ partial void ProcessGetResponseContent( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "Get", methodName: "GetAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", + pathTemplate: "$\"/v1beta/interactions/{id}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -335,7 +338,7 @@ partial void ProcessGetResponseContent( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "Get", methodName: "GetAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", + pathTemplate: "$\"/v1beta/interactions/{id}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -357,7 +360,7 @@ partial void ProcessGetResponseContent( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "Get", methodName: "GetAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", + pathTemplate: "$\"/v1beta/interactions/{id}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -372,7 +375,7 @@ partial void ProcessGetResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } - // Client Error + // Error getting interaction if ((int)__response.StatusCode >= 400 && (int)__response.StatusCode <= 499) { string? __content_4XX = null; @@ -409,7 +412,7 @@ partial void ProcessGetResponseContent( h => h.Key, h => h.Value)); } - // Server Error + // Error getting interaction if ((int)__response.StatusCode >= 500 && (int)__response.StatusCode <= 599) { string? __content_5XX = null; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.GetAsStream.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.GetAsStream.g.cs index d7a544484..cf7c55e59 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.GetAsStream.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.InteractionsClient.GetAsStream.g.cs @@ -27,15 +27,15 @@ public partial class InteractionsClient }; partial void PrepareGetAsStreamArguments( global::System.Net.Http.HttpClient httpClient, - ref bool? includeInput, - ref string interactionsId, + ref string apiVersion, + ref string id, ref string? lastEventId, ref bool? stream); partial void PrepareGetAsStreamRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - bool? includeInput, - string interactionsId, + string apiVersion, + string id, string? lastEventId, bool? stream); partial void ProcessGetAsStreamResponse( @@ -43,13 +43,15 @@ partial void ProcessGetAsStreamResponse( global::System.Net.Http.HttpResponseMessage httpResponseMessage); /// - /// Retrieves the full details of a single interaction based on its
- /// `Interaction.id`. + /// Retrieving an interaction
+ /// Retrieves the full details of a single interaction based on its `Interaction.id`. ///
- /// - /// + /// + /// /// - /// + /// + /// Default Value: false + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -59,8 +61,8 @@ partial void ProcessGetAsStreamResponse( /// -H "Api-Revision: 2026-05-20" /// public async global::System.Collections.Generic.IAsyncEnumerable GetAsStreamAsync( - string interactionsId, - bool? includeInput = default, + string apiVersion, + string id, string? lastEventId = default, bool? stream = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -70,8 +72,8 @@ partial void ProcessGetAsStreamResponse( client: HttpClient); PrepareGetAsStreamArguments( httpClient: HttpClient, - includeInput: ref includeInput, - interactionsId: ref interactionsId, + apiVersion: ref apiVersion, + id: ref id, lastEventId: ref lastEventId, stream: ref stream); @@ -99,10 +101,9 @@ partial void ProcessGetAsStreamResponse( { var __pathBuilder = new global::Google.Gemini.NextGen.PathBuilder( - path: $"/v1beta/interactions/{interactionsId}", + path: $"/v1beta/interactions/{id}", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddOptionalParameter("include_input", includeInput?.ToString().ToLowerInvariant()) .AddOptionalParameter("last_event_id", lastEventId) .AddOptionalParameter("stream", stream?.ToString().ToLowerInvariant()) ; @@ -150,8 +151,8 @@ partial void ProcessGetAsStreamResponse( PrepareGetAsStreamRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - includeInput: includeInput, - interactionsId: interactionsId, + apiVersion: apiVersion, + id: id, lastEventId: lastEventId, stream: stream); @@ -172,7 +173,7 @@ partial void ProcessGetAsStreamResponse( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "GetAsStream", methodName: "GetAsStreamAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", + pathTemplate: "$\"/v1beta/interactions/{id}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -206,7 +207,7 @@ partial void ProcessGetAsStreamResponse( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "GetAsStream", methodName: "GetAsStreamAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", + pathTemplate: "$\"/v1beta/interactions/{id}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -247,7 +248,7 @@ partial void ProcessGetAsStreamResponse( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "GetAsStream", methodName: "GetAsStreamAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", + pathTemplate: "$\"/v1beta/interactions/{id}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -295,7 +296,7 @@ partial void ProcessGetAsStreamResponse( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "GetAsStream", methodName: "GetAsStreamAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", + pathTemplate: "$\"/v1beta/interactions/{id}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -317,7 +318,7 @@ partial void ProcessGetAsStreamResponse( context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "GetAsStream", methodName: "GetAsStreamAsync", - pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", + pathTemplate: "$\"/v1beta/interactions/{id}\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.AgentTool.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.AgentTool.g.cs index 1921f9506..cc06365cd 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.AgentTool.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.AgentTool.g.cs @@ -56,7 +56,7 @@ public class AgentToolJsonConverter : global::System.Text.Json.Serialization.Jso global::Google.Gemini.NextGen.CodeExecution? codeExecution = default; global::Google.Gemini.NextGen.Function? function = default; global::Google.Gemini.NextGen.GoogleSearch? googleSearch = default; - global::Google.Gemini.NextGen.MCPServer? mCPServer = default; + global::Google.Gemini.NextGen.McpServer? mcpServer = default; global::Google.Gemini.NextGen.URLContext? uRLContext = default; if (__bestIndex >= 0) { @@ -121,9 +121,9 @@ public class AgentToolJsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServer).Name}"); - mCPServer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServer).Name}"); + mcpServer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -157,7 +157,7 @@ public class AgentToolJsonConverter : global::System.Text.Json.Serialization.Jso } } - if (codeExecution == null && function == null && googleSearch == null && mCPServer == null && uRLContext == null) + if (codeExecution == null && function == null && googleSearch == null && mcpServer == null && uRLContext == null) { try { @@ -178,7 +178,7 @@ public class AgentToolJsonConverter : global::System.Text.Json.Serialization.Jso } } - if (codeExecution == null && function == null && googleSearch == null && mCPServer == null && uRLContext == null) + if (codeExecution == null && function == null && googleSearch == null && mcpServer == null && uRLContext == null) { try { @@ -199,7 +199,7 @@ public class AgentToolJsonConverter : global::System.Text.Json.Serialization.Jso } } - if (codeExecution == null && function == null && googleSearch == null && mCPServer == null && uRLContext == null) + if (codeExecution == null && function == null && googleSearch == null && mcpServer == null && uRLContext == null) { try { @@ -220,14 +220,14 @@ public class AgentToolJsonConverter : global::System.Text.Json.Serialization.Jso } } - if (codeExecution == null && function == null && googleSearch == null && mCPServer == null && uRLContext == null) + if (codeExecution == null && function == null && googleSearch == null && mcpServer == null && uRLContext == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServer).Name}"); - mCPServer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServer).Name}"); + mcpServer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -241,7 +241,7 @@ public class AgentToolJsonConverter : global::System.Text.Json.Serialization.Jso } } - if (codeExecution == null && function == null && googleSearch == null && mCPServer == null && uRLContext == null) + if (codeExecution == null && function == null && googleSearch == null && mcpServer == null && uRLContext == null) { try { @@ -269,7 +269,7 @@ public class AgentToolJsonConverter : global::System.Text.Json.Serialization.Jso googleSearch, - mCPServer, + mcpServer, uRLContext ); @@ -304,11 +304,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.GoogleSearch).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSearch(), typeInfo); } - else if (value.IsMCPServer) + else if (value.IsMcpServer) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServer).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMCPServer(), typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServer).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpServer(), typeInfo); } else if (value.IsURLContext) { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ImageConfigImageSize.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatus.g.cs similarity index 69% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ImageConfigImageSize.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatus.g.cs index 07d985de4..4ef71a364 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ImageConfigImageSize.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatus.g.cs @@ -3,10 +3,10 @@ namespace Google.Gemini.NextGen.JsonConverters { /// - public sealed class ImageConfigImageSizeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateAgentInteractionStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Google.Gemini.NextGen.ImageConfigImageSize Read( + public override global::Google.Gemini.NextGen.CreateAgentInteractionStatus Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ImageConfigImageSizeJsonConverter : global::System.Text.Json var stringValue = reader.GetString(); if (stringValue != null) { - return global::Google.Gemini.NextGen.ImageConfigImageSizeExtensions.ToEnum(stringValue) ?? default; + return global::Google.Gemini.NextGen.CreateAgentInteractionStatusExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ImageConfigImageSizeJsonConverter : global::System.Text.Json case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.ImageConfigImageSize)numValue; + return (global::Google.Gemini.NextGen.CreateAgentInteractionStatus)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Google.Gemini.NextGen.ImageConfigImageSize); + return default(global::Google.Gemini.NextGen.CreateAgentInteractionStatus); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ImageConfigImageSizeJsonConverter : global::System.Text.Json /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.ImageConfigImageSize value, + global::Google.Gemini.NextGen.CreateAgentInteractionStatus value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Google.Gemini.NextGen.ImageConfigImageSizeExtensions.ToValueString(value)); + writer.WriteStringValue(global::Google.Gemini.NextGen.CreateAgentInteractionStatusExtensions.ToValueString(value)); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.FindRequestModeNullable.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatusNullable.g.cs similarity index 70% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.FindRequestModeNullable.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatusNullable.g.cs index c2ae7ba30..2da6140ba 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.FindRequestModeNullable.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatusNullable.g.cs @@ -3,10 +3,10 @@ namespace Google.Gemini.NextGen.JsonConverters { /// - public sealed class FindRequestModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateAgentInteractionStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Google.Gemini.NextGen.FindRequestMode? Read( + public override global::Google.Gemini.NextGen.CreateAgentInteractionStatus? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class FindRequestModeNullableJsonConverter : global::System.Text.J var stringValue = reader.GetString(); if (stringValue != null) { - return global::Google.Gemini.NextGen.FindRequestModeExtensions.ToEnum(stringValue); + return global::Google.Gemini.NextGen.CreateAgentInteractionStatusExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class FindRequestModeNullableJsonConverter : global::System.Text.J case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.FindRequestMode)numValue; + return (global::Google.Gemini.NextGen.CreateAgentInteractionStatus)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Google.Gemini.NextGen.FindRequestMode?); + return default(global::Google.Gemini.NextGen.CreateAgentInteractionStatus?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class FindRequestModeNullableJsonConverter : global::System.Text.J /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.FindRequestMode? value, + global::Google.Gemini.NextGen.CreateAgentInteractionStatus? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Google.Gemini.NextGen.FindRequestModeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Google.Gemini.NextGen.CreateAgentInteractionStatusExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CredentialUpdate.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CredentialUpdateParams.g.cs similarity index 97% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CredentialUpdate.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CredentialUpdateParams.g.cs index 595b30916..075cc8ec5 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CredentialUpdate.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CredentialUpdateParams.g.cs @@ -4,10 +4,10 @@ namespace Google.Gemini.NextGen.JsonConverters { /// - public class CredentialUpdateJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public class CredentialUpdateParamsJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Google.Gemini.NextGen.CredentialUpdate Read( + public override global::Google.Gemini.NextGen.CredentialUpdateParams Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -177,7 +177,7 @@ public class CredentialUpdateJsonConverter : global::System.Text.Json.Serializat } } - var __value = new global::Google.Gemini.NextGen.CredentialUpdate( + var __value = new global::Google.Gemini.NextGen.CredentialUpdateParams( environmentVariableConfig, httpBearerConfig, @@ -191,7 +191,7 @@ public class CredentialUpdateJsonConverter : global::System.Text.Json.Serializat /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.CredentialUpdate value, + global::Google.Gemini.NextGen.CredentialUpdateParams value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetwork2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentConfigNetwork.g.cs similarity index 79% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetwork2.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentConfigNetwork.g.cs index 545696922..0fb5ca978 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetwork2.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentConfigNetwork.g.cs @@ -3,10 +3,10 @@ namespace Google.Gemini.NextGen.JsonConverters { /// - public sealed class EnvironmentNetwork2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class EnvironmentConfigNetworkJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Google.Gemini.NextGen.EnvironmentNetwork2 Read( + public override global::Google.Gemini.NextGen.EnvironmentConfigNetwork Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class EnvironmentNetwork2JsonConverter : global::System.Text.Json. var stringValue = reader.GetString(); if (stringValue != null) { - return global::Google.Gemini.NextGen.EnvironmentNetwork2Extensions.ToEnum(stringValue) ?? default; + return global::Google.Gemini.NextGen.EnvironmentConfigNetworkExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class EnvironmentNetwork2JsonConverter : global::System.Text.Json. case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.EnvironmentNetwork2)numValue; + return (global::Google.Gemini.NextGen.EnvironmentConfigNetwork)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Google.Gemini.NextGen.EnvironmentNetwork2); + return default(global::Google.Gemini.NextGen.EnvironmentConfigNetwork); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class EnvironmentNetwork2JsonConverter : global::System.Text.Json. /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.EnvironmentNetwork2 value, + global::Google.Gemini.NextGen.EnvironmentConfigNetwork value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Google.Gemini.NextGen.EnvironmentNetwork2Extensions.ToValueString(value)); + writer.WriteStringValue(global::Google.Gemini.NextGen.EnvironmentConfigNetworkExtensions.ToValueString(value)); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetwork2Nullable.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentConfigNetworkNullable.g.cs similarity index 80% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetwork2Nullable.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentConfigNetworkNullable.g.cs index 24db66793..a827ae0d9 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetwork2Nullable.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentConfigNetworkNullable.g.cs @@ -3,10 +3,10 @@ namespace Google.Gemini.NextGen.JsonConverters { /// - public sealed class EnvironmentNetwork2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class EnvironmentConfigNetworkNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Google.Gemini.NextGen.EnvironmentNetwork2? Read( + public override global::Google.Gemini.NextGen.EnvironmentConfigNetwork? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class EnvironmentNetwork2NullableJsonConverter : global::System.Te var stringValue = reader.GetString(); if (stringValue != null) { - return global::Google.Gemini.NextGen.EnvironmentNetwork2Extensions.ToEnum(stringValue); + return global::Google.Gemini.NextGen.EnvironmentConfigNetworkExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class EnvironmentNetwork2NullableJsonConverter : global::System.Te case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.EnvironmentNetwork2)numValue; + return (global::Google.Gemini.NextGen.EnvironmentConfigNetwork)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Google.Gemini.NextGen.EnvironmentNetwork2?); + return default(global::Google.Gemini.NextGen.EnvironmentConfigNetwork?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class EnvironmentNetwork2NullableJsonConverter : global::System.Te /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.EnvironmentNetwork2? value, + global::Google.Gemini.NextGen.EnvironmentConfigNetwork? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Google.Gemini.NextGen.EnvironmentNetwork2Extensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Google.Gemini.NextGen.EnvironmentConfigNetworkExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.FindRequestMode.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.FindRequestMode.g.cs deleted file mode 100644 index 25e5a7ae3..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.FindRequestMode.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class FindRequestModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.FindRequestMode Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.FindRequestModeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.FindRequestMode)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.FindRequestMode); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.FindRequestMode value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Google.Gemini.NextGen.FindRequestModeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ImageConfigAspectRatio.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ImageConfigAspectRatio.g.cs deleted file mode 100644 index c838e22c5..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ImageConfigAspectRatio.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class ImageConfigAspectRatioJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.ImageConfigAspectRatio Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.ImageConfigAspectRatioExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.ImageConfigAspectRatio)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.ImageConfigAspectRatio); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.ImageConfigAspectRatio value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Google.Gemini.NextGen.ImageConfigAspectRatioExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ImageConfigAspectRatioNullable.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ImageConfigAspectRatioNullable.g.cs deleted file mode 100644 index 9e272b2a5..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ImageConfigAspectRatioNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class ImageConfigAspectRatioNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.ImageConfigAspectRatio? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.ImageConfigAspectRatioExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.ImageConfigAspectRatio)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.ImageConfigAspectRatio?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.ImageConfigAspectRatio? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Google.Gemini.NextGen.ImageConfigAspectRatioExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ImageConfigImageSizeNullable.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ImageConfigImageSizeNullable.g.cs deleted file mode 100644 index 852edc4ec..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ImageConfigImageSizeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class ImageConfigImageSizeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.ImageConfigImageSize? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.ImageConfigImageSizeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.ImageConfigImageSize)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.ImageConfigImageSize?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.ImageConfigImageSize? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Google.Gemini.NextGen.ImageConfigImageSizeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.OneOf4.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.OneOf4.g.cs deleted file mode 100644 index 505c634fa..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.OneOf4.g.cs +++ /dev/null @@ -1,303 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public class OneOfJsonConverter : global::System.Text.Json.Serialization.JsonConverter> - { - /// - public override global::Google.Gemini.NextGen.OneOf Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - } - } - - var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } - var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } - var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } - var __score3 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T4), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score3++; - } - } - } - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } - - T1? value1 = default; - T2? value2 = default; - T3? value3 = default; - T4? value4 = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - - else if (__bestIndex == 1) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - - else if (__bestIndex == 2) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - - else if (__bestIndex == 3) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - } - - if (value1 == null && value2 == null && value3 == null && value4 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - - if (value1 == null && value2 == null && value3 == null && value4 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - - if (value1 == null && value2 == null && value3 == null && value4 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - - if (value1 == null && value2 == null && value3 == null && value4 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - - var __value = new global::Google.Gemini.NextGen.OneOf( - value1, - - value2, - - value3, - - value4 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.OneOf value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsValue1) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue1(), typeInfo); - } - else if (value.IsValue2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); - } - else if (value.IsValue3) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); - } - else if (value.IsValue4) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ResponseFormat4.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ResponseFormat4.g.cs index e39793f35..bf0992a00 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ResponseFormat4.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ResponseFormat4.g.cs @@ -47,7 +47,6 @@ public class ResponseFormat4JsonConverter : global::System.Text.Json.Serializati if (__jsonProps.Contains("aspect_ratio")) __score3++; if (__jsonProps.Contains("delivery")) __score3++; if (__jsonProps.Contains("duration")) __score3++; - if (__jsonProps.Contains("gcs_uri")) __score3++; if (__jsonProps.Contains("resolution")) __score3++; if (__jsonProps.Contains("type")) __score3++; var __score4 = 0; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallDeltaRetrievalType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallDeltaRetrievalType.g.cs deleted file mode 100644 index 91215b716..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallDeltaRetrievalType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class RetrievalCallDeltaRetrievalTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallDeltaRetrievalTypeNullable.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallDeltaRetrievalTypeNullable.g.cs deleted file mode 100644 index 76522b402..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallDeltaRetrievalTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class RetrievalCallDeltaRetrievalTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallStepRetrievalType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallStepRetrievalType.g.cs deleted file mode 100644 index 27ec356f3..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallStepRetrievalType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class RetrievalCallStepRetrievalTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.RetrievalCallStepRetrievalType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.RetrievalCallStepRetrievalTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.RetrievalCallStepRetrievalType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.RetrievalCallStepRetrievalType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.RetrievalCallStepRetrievalType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Google.Gemini.NextGen.RetrievalCallStepRetrievalTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallStepRetrievalTypeNullable.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallStepRetrievalTypeNullable.g.cs deleted file mode 100644 index 9b645876d..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalCallStepRetrievalTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class RetrievalCallStepRetrievalTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.RetrievalCallStepRetrievalType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.RetrievalCallStepRetrievalTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.RetrievalCallStepRetrievalType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.RetrievalCallStepRetrievalType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.RetrievalCallStepRetrievalType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Google.Gemini.NextGen.RetrievalCallStepRetrievalTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalRetrievalType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalRetrievalType.g.cs deleted file mode 100644 index 0b5294d0b..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalRetrievalType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class RetrievalRetrievalTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.RetrievalRetrievalType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.RetrievalRetrievalTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.RetrievalRetrievalType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.RetrievalRetrievalType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.RetrievalRetrievalType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Google.Gemini.NextGen.RetrievalRetrievalTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalRetrievalTypeNullable.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalRetrievalTypeNullable.g.cs deleted file mode 100644 index 9f41b91fb..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.RetrievalRetrievalTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class RetrievalRetrievalTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.RetrievalRetrievalType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.RetrievalRetrievalTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.RetrievalRetrievalType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.RetrievalRetrievalType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.RetrievalRetrievalType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Google.Gemini.NextGen.RetrievalRetrievalTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Step.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Step.g.cs index 9aca44540..68ab5e699 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Step.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Step.g.cs @@ -104,10 +104,6 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv if (__jsonProps.Contains("type")) __score11++; var __score12 = 0; if (__jsonProps.Contains("content")) __score12++; - if (__jsonProps.Contains("error")) __score12++; - if (__jsonProps.Contains("error.code")) __score12++; - if (__jsonProps.Contains("error.details")) __score12++; - if (__jsonProps.Contains("error.message")) __score12++; if (__jsonProps.Contains("type")) __score12++; var __score13 = 0; if (__jsonProps.Contains("id")) __score13++; @@ -118,36 +114,24 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv if (__jsonProps.Contains("signature")) __score14++; if (__jsonProps.Contains("type")) __score14++; var __score15 = 0; - if (__jsonProps.Contains("arguments")) __score15++; - if (__jsonProps.Contains("arguments.queries")) __score15++; - if (__jsonProps.Contains("id")) __score15++; - if (__jsonProps.Contains("retrieval_type")) __score15++; if (__jsonProps.Contains("signature")) __score15++; + if (__jsonProps.Contains("summary")) __score15++; if (__jsonProps.Contains("type")) __score15++; var __score16 = 0; - if (__jsonProps.Contains("call_id")) __score16++; - if (__jsonProps.Contains("is_error")) __score16++; + if (__jsonProps.Contains("arguments")) __score16++; + if (__jsonProps.Contains("arguments.urls")) __score16++; + if (__jsonProps.Contains("id")) __score16++; if (__jsonProps.Contains("signature")) __score16++; if (__jsonProps.Contains("type")) __score16++; var __score17 = 0; + if (__jsonProps.Contains("call_id")) __score17++; + if (__jsonProps.Contains("is_error")) __score17++; + if (__jsonProps.Contains("result")) __score17++; if (__jsonProps.Contains("signature")) __score17++; - if (__jsonProps.Contains("summary")) __score17++; if (__jsonProps.Contains("type")) __score17++; var __score18 = 0; - if (__jsonProps.Contains("arguments")) __score18++; - if (__jsonProps.Contains("arguments.urls")) __score18++; - if (__jsonProps.Contains("id")) __score18++; - if (__jsonProps.Contains("signature")) __score18++; + if (__jsonProps.Contains("content")) __score18++; if (__jsonProps.Contains("type")) __score18++; - var __score19 = 0; - if (__jsonProps.Contains("call_id")) __score19++; - if (__jsonProps.Contains("is_error")) __score19++; - if (__jsonProps.Contains("result")) __score19++; - if (__jsonProps.Contains("signature")) __score19++; - if (__jsonProps.Contains("type")) __score19++; - var __score20 = 0; - if (__jsonProps.Contains("content")) __score20++; - if (__jsonProps.Contains("type")) __score20++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -169,8 +153,6 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv if (__score16 > __bestScore) { __bestScore = __score16; __bestIndex = 16; } if (__score17 > __bestScore) { __bestScore = __score17; __bestIndex = 17; } if (__score18 > __bestScore) { __bestScore = __score18; __bestIndex = 18; } - if (__score19 > __bestScore) { __bestScore = __score19; __bestIndex = 19; } - if (__score20 > __bestScore) { __bestScore = __score20; __bestIndex = 20; } global::Google.Gemini.NextGen.CodeExecutionCallStep? codeExecutionCall = default; global::Google.Gemini.NextGen.CodeExecutionResultStep? codeExecutionResult = default; @@ -182,13 +164,11 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv global::Google.Gemini.NextGen.GoogleMapsResultStep? googleMapsResult = default; global::Google.Gemini.NextGen.GoogleSearchCallStep? googleSearchCall = default; global::Google.Gemini.NextGen.GoogleSearchResultStep? googleSearchResult = default; - global::Google.Gemini.NextGen.MCPServerToolCallStep? mCPServerToolCall = default; - global::Google.Gemini.NextGen.MCPServerToolResultStep? mCPServerToolResult = default; + global::Google.Gemini.NextGen.McpServerToolCallStep? mcpServerToolCall = default; + global::Google.Gemini.NextGen.McpServerToolResultStep? mcpServerToolResult = default; global::Google.Gemini.NextGen.ModelOutputStep? modelOutput = default; global::Google.Gemini.NextGen.ProcessingCallStep? processingCall = default; global::Google.Gemini.NextGen.ProcessingResultStep? processingResult = default; - global::Google.Gemini.NextGen.RetrievalCallStep? retrievalCall = default; - global::Google.Gemini.NextGen.RetrievalResultStep? retrievalResult = default; global::Google.Gemini.NextGen.ThoughtStep? thought = default; global::Google.Gemini.NextGen.URLContextCallStep? uRLContextCall = default; global::Google.Gemini.NextGen.URLContextResultStep? uRLContextResult = default; @@ -389,9 +369,9 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServerToolCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServerToolCallStep).Name}"); - mCPServerToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServerToolCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServerToolCallStep).Name}"); + mcpServerToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -408,9 +388,9 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServerToolResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServerToolResultStep).Name}"); - mCPServerToolResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServerToolResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServerToolResultStep).Name}"); + mcpServerToolResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -481,44 +461,6 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } else if (__bestIndex == 15) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.RetrievalCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.RetrievalCallStep).Name}"); - retrievalCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - else if (__bestIndex == 16) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.RetrievalResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.RetrievalResultStep).Name}"); - retrievalResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - else if (__bestIndex == 17) { try { @@ -537,7 +479,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv // Legacy enum converters signal an incompatible JSON token with this exception. } } - else if (__bestIndex == 18) + else if (__bestIndex == 16) { try { @@ -556,7 +498,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv // Legacy enum converters signal an incompatible JSON token with this exception. } } - else if (__bestIndex == 19) + else if (__bestIndex == 17) { try { @@ -575,7 +517,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv // Legacy enum converters signal an incompatible JSON token with this exception. } } - else if (__bestIndex == 20) + else if (__bestIndex == 18) { try { @@ -596,7 +538,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -617,7 +559,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -638,7 +580,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -659,7 +601,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -680,7 +622,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -701,7 +643,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -722,7 +664,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -743,7 +685,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -764,7 +706,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -785,7 +727,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -806,14 +748,14 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServerToolCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServerToolCallStep).Name}"); - mCPServerToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServerToolCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServerToolCallStep).Name}"); + mcpServerToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -827,14 +769,14 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServerToolResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServerToolResultStep).Name}"); - mCPServerToolResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServerToolResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServerToolResultStep).Name}"); + mcpServerToolResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -848,7 +790,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -869,7 +811,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -890,7 +832,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -911,49 +853,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.RetrievalCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.RetrievalCallStep).Name}"); - retrievalCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.RetrievalResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.RetrievalResultStep).Name}"); - retrievalResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -974,7 +874,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -995,7 +895,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -1016,7 +916,7 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mCPServerToolCall == null && mCPServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) + if (codeExecutionCall == null && codeExecutionResult == null && fileSearchCall == null && fileSearchResult == null && functionCall == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && mcpServerToolCall == null && mcpServerToolResult == null && modelOutput == null && processingCall == null && processingResult == null && thought == null && uRLContextCall == null && uRLContextResult == null && userInput == null) { try { @@ -1058,9 +958,9 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv googleSearchResult, - mCPServerToolCall, + mcpServerToolCall, - mCPServerToolResult, + mcpServerToolResult, modelOutput, @@ -1068,10 +968,6 @@ public class StepJsonConverter : global::System.Text.Json.Serialization.JsonConv processingResult, - retrievalCall, - - retrievalResult, - thought, uRLContextCall, @@ -1153,17 +1049,17 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.GoogleSearchResultStep).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSearchResult(), typeInfo); } - else if (value.IsMCPServerToolCall) + else if (value.IsMcpServerToolCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServerToolCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServerToolCallStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMCPServerToolCall(), typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServerToolCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServerToolCallStep).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpServerToolCall(), typeInfo); } - else if (value.IsMCPServerToolResult) + else if (value.IsMcpServerToolResult) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServerToolResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServerToolResultStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMCPServerToolResult(), typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServerToolResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServerToolResultStep).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpServerToolResult(), typeInfo); } else if (value.IsModelOutput) { @@ -1183,18 +1079,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ProcessingResultStep).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProcessingResult(), typeInfo); } - else if (value.IsRetrievalCall) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.RetrievalCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.RetrievalCallStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRetrievalCall(), typeInfo); - } - else if (value.IsRetrievalResult) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.RetrievalResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.RetrievalResultStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRetrievalResult(), typeInfo); - } else if (value.IsThought) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ThoughtStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.StepDeltaData.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.StepDeltaData.g.cs index fc42152a9..988160cec 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.StepDeltaData.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.StepDeltaData.g.cs @@ -115,43 +115,33 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization if (__jsonProps.Contains("signature")) __score16++; if (__jsonProps.Contains("type")) __score16++; var __score17 = 0; - if (__jsonProps.Contains("arguments")) __score17++; - if (__jsonProps.Contains("arguments.queries")) __score17++; - if (__jsonProps.Contains("retrieval_type")) __score17++; - if (__jsonProps.Contains("signature")) __score17++; + if (__jsonProps.Contains("annotations")) __score17++; if (__jsonProps.Contains("type")) __score17++; var __score18 = 0; - if (__jsonProps.Contains("is_error")) __score18++; - if (__jsonProps.Contains("signature")) __score18++; + if (__jsonProps.Contains("text")) __score18++; if (__jsonProps.Contains("type")) __score18++; var __score19 = 0; - if (__jsonProps.Contains("annotations")) __score19++; + if (__jsonProps.Contains("signature")) __score19++; if (__jsonProps.Contains("type")) __score19++; var __score20 = 0; - if (__jsonProps.Contains("text")) __score20++; + if (__jsonProps.Contains("content")) __score20++; if (__jsonProps.Contains("type")) __score20++; var __score21 = 0; + if (__jsonProps.Contains("arguments")) __score21++; + if (__jsonProps.Contains("arguments.urls")) __score21++; if (__jsonProps.Contains("signature")) __score21++; if (__jsonProps.Contains("type")) __score21++; var __score22 = 0; - if (__jsonProps.Contains("content")) __score22++; + if (__jsonProps.Contains("is_error")) __score22++; + if (__jsonProps.Contains("result")) __score22++; + if (__jsonProps.Contains("signature")) __score22++; if (__jsonProps.Contains("type")) __score22++; var __score23 = 0; - if (__jsonProps.Contains("arguments")) __score23++; - if (__jsonProps.Contains("arguments.urls")) __score23++; - if (__jsonProps.Contains("signature")) __score23++; + if (__jsonProps.Contains("data")) __score23++; + if (__jsonProps.Contains("mime_type")) __score23++; + if (__jsonProps.Contains("resolution")) __score23++; if (__jsonProps.Contains("type")) __score23++; - var __score24 = 0; - if (__jsonProps.Contains("is_error")) __score24++; - if (__jsonProps.Contains("result")) __score24++; - if (__jsonProps.Contains("signature")) __score24++; - if (__jsonProps.Contains("type")) __score24++; - var __score25 = 0; - if (__jsonProps.Contains("data")) __score25++; - if (__jsonProps.Contains("mime_type")) __score25++; - if (__jsonProps.Contains("resolution")) __score25++; - if (__jsonProps.Contains("type")) __score25++; - if (__jsonProps.Contains("uri")) __score25++; + if (__jsonProps.Contains("uri")) __score23++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -178,8 +168,6 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization if (__score21 > __bestScore) { __bestScore = __score21; __bestIndex = 21; } if (__score22 > __bestScore) { __bestScore = __score22; __bestIndex = 22; } if (__score23 > __bestScore) { __bestScore = __score23; __bestIndex = 23; } - if (__score24 > __bestScore) { __bestScore = __score24; __bestIndex = 24; } - if (__score25 > __bestScore) { __bestScore = __score25; __bestIndex = 25; } global::Google.Gemini.NextGen.ArgumentsDelta? arguments = default; global::Google.Gemini.NextGen.AudioDelta? audio = default; @@ -194,12 +182,10 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization global::Google.Gemini.NextGen.GoogleSearchCallDelta? googleSearchCall = default; global::Google.Gemini.NextGen.GoogleSearchResultDelta? googleSearchResult = default; global::Google.Gemini.NextGen.ImageDelta? image = default; - global::Google.Gemini.NextGen.MCPServerToolCallDelta? mCPServerToolCall = default; - global::Google.Gemini.NextGen.MCPServerToolResultDelta? mCPServerToolResult = default; + global::Google.Gemini.NextGen.McpServerToolCallDelta? mcpServerToolCall = default; + global::Google.Gemini.NextGen.McpServerToolResultDelta? mcpServerToolResult = default; global::Google.Gemini.NextGen.ProcessingCallDelta? processingCall = default; global::Google.Gemini.NextGen.ProcessingResultDelta? processingResult = default; - global::Google.Gemini.NextGen.RetrievalCallDelta? retrievalCall = default; - global::Google.Gemini.NextGen.RetrievalResultDelta? retrievalResult = default; global::Google.Gemini.NextGen.TextAnnotationDelta? textAnnotation = default; global::Google.Gemini.NextGen.TextDelta? text = default; global::Google.Gemini.NextGen.ThoughtSignatureDelta? thoughtSignature = default; @@ -460,9 +446,9 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServerToolCallDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServerToolCallDelta).Name}"); - mCPServerToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServerToolCallDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServerToolCallDelta).Name}"); + mcpServerToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -479,9 +465,9 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServerToolResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServerToolResultDelta).Name}"); - mCPServerToolResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServerToolResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServerToolResultDelta).Name}"); + mcpServerToolResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -533,44 +519,6 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } else if (__bestIndex == 17) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.RetrievalCallDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.RetrievalCallDelta).Name}"); - retrievalCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - else if (__bestIndex == 18) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.RetrievalResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.RetrievalResultDelta).Name}"); - retrievalResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - else if (__bestIndex == 19) { try { @@ -589,7 +537,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization // Legacy enum converters signal an incompatible JSON token with this exception. } } - else if (__bestIndex == 20) + else if (__bestIndex == 18) { try { @@ -608,7 +556,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization // Legacy enum converters signal an incompatible JSON token with this exception. } } - else if (__bestIndex == 21) + else if (__bestIndex == 19) { try { @@ -627,7 +575,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization // Legacy enum converters signal an incompatible JSON token with this exception. } } - else if (__bestIndex == 22) + else if (__bestIndex == 20) { try { @@ -646,7 +594,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization // Legacy enum converters signal an incompatible JSON token with this exception. } } - else if (__bestIndex == 23) + else if (__bestIndex == 21) { try { @@ -665,7 +613,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization // Legacy enum converters signal an incompatible JSON token with this exception. } } - else if (__bestIndex == 24) + else if (__bestIndex == 22) { try { @@ -684,7 +632,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization // Legacy enum converters signal an incompatible JSON token with this exception. } } - else if (__bestIndex == 25) + else if (__bestIndex == 23) { try { @@ -705,7 +653,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -726,7 +674,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -747,7 +695,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -768,7 +716,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -789,7 +737,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -810,7 +758,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -831,7 +779,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -852,7 +800,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -873,7 +821,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -894,7 +842,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -915,7 +863,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -936,7 +884,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -957,7 +905,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -978,14 +926,14 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServerToolCallDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServerToolCallDelta).Name}"); - mCPServerToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServerToolCallDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServerToolCallDelta).Name}"); + mcpServerToolCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -999,14 +947,14 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServerToolResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServerToolResultDelta).Name}"); - mCPServerToolResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServerToolResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServerToolResultDelta).Name}"); + mcpServerToolResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -1020,7 +968,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -1041,7 +989,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -1062,49 +1010,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.RetrievalCallDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.RetrievalCallDelta).Name}"); - retrievalCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.RetrievalResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.RetrievalResultDelta).Name}"); - retrievalResult = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -1125,7 +1031,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -1146,7 +1052,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -1167,7 +1073,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -1188,7 +1094,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -1209,7 +1115,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -1230,7 +1136,7 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization } } - if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mCPServerToolCall == null && mCPServerToolResult == null && processingCall == null && processingResult == null && retrievalCall == null && retrievalResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) + if (arguments == null && audio == null && codeExecutionCall == null && codeExecutionResult == null && document == null && fileSearchCall == null && fileSearchResult == null && functionResult == null && googleMapsCall == null && googleMapsResult == null && googleSearchCall == null && googleSearchResult == null && image == null && mcpServerToolCall == null && mcpServerToolResult == null && processingCall == null && processingResult == null && textAnnotation == null && text == null && thoughtSignature == null && thoughtSummary == null && uRLContextCall == null && uRLContextResult == null && video == null) { try { @@ -1278,18 +1184,14 @@ public class StepDeltaDataJsonConverter : global::System.Text.Json.Serialization image, - mCPServerToolCall, + mcpServerToolCall, - mCPServerToolResult, + mcpServerToolResult, processingCall, processingResult, - retrievalCall, - - retrievalResult, - textAnnotation, text, @@ -1395,17 +1297,17 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ImageDelta).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } - else if (value.IsMCPServerToolCall) + else if (value.IsMcpServerToolCall) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServerToolCallDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServerToolCallDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMCPServerToolCall(), typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServerToolCallDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServerToolCallDelta).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpServerToolCall(), typeInfo); } - else if (value.IsMCPServerToolResult) + else if (value.IsMcpServerToolResult) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServerToolResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServerToolResultDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMCPServerToolResult(), typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServerToolResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServerToolResultDelta).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpServerToolResult(), typeInfo); } else if (value.IsProcessingCall) { @@ -1419,18 +1321,6 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ProcessingResultDelta).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProcessingResult(), typeInfo); } - else if (value.IsRetrievalCall) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.RetrievalCallDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.RetrievalCallDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRetrievalCall(), typeInfo); - } - else if (value.IsRetrievalResult) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.RetrievalResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.RetrievalResultDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRetrievalResult(), typeInfo); - } else if (value.IsTextAnnotation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.TextAnnotationDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Tool.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Tool.g.cs index f4eb6cf17..b6bc78ca3 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Tool.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Tool.g.cs @@ -23,13 +23,6 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); - if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); - } - } } } @@ -67,24 +60,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv if (__jsonProps.Contains("type")) __score6++; if (__jsonProps.Contains("url")) __score6++; var __score7 = 0; - if (__jsonProps.Contains("exa_ai_search_config")) __score7++; - if (__jsonProps.Contains("exa_ai_search_config.api_key")) __score7++; - if (__jsonProps.Contains("exa_ai_search_config.custom_config")) __score7++; - if (__jsonProps.Contains("parallel_ai_search_config")) __score7++; - if (__jsonProps.Contains("parallel_ai_search_config.api_key")) __score7++; - if (__jsonProps.Contains("parallel_ai_search_config.custom_config")) __score7++; - if (__jsonProps.Contains("rag_store_config")) __score7++; - if (__jsonProps.Contains("rag_store_config.rag_resources")) __score7++; - if (__jsonProps.Contains("rag_store_config.rag_retrieval_config")) __score7++; - if (__jsonProps.Contains("rag_store_config.similarity_top_k")) __score7++; - if (__jsonProps.Contains("rag_store_config.vector_distance_threshold")) __score7++; - if (__jsonProps.Contains("retrieval_types")) __score7++; if (__jsonProps.Contains("type")) __score7++; - if (__jsonProps.Contains("vertex_ai_search_config")) __score7++; - if (__jsonProps.Contains("vertex_ai_search_config.datastores")) __score7++; - if (__jsonProps.Contains("vertex_ai_search_config.engine")) __score7++; - var __score8 = 0; - if (__jsonProps.Contains("type")) __score8++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -95,7 +71,6 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } - if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } global::Google.Gemini.NextGen.CodeExecution? codeExecution = default; global::Google.Gemini.NextGen.ComputerUse? computerUse = default; @@ -103,8 +78,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv global::Google.Gemini.NextGen.Function? function = default; global::Google.Gemini.NextGen.GoogleMaps? googleMaps = default; global::Google.Gemini.NextGen.GoogleSearch? googleSearch = default; - global::Google.Gemini.NextGen.MCPServer? mCPServer = default; - global::Google.Gemini.NextGen.Retrieval? retrieval = default; + global::Google.Gemini.NextGen.McpServer? mcpServer = default; global::Google.Gemini.NextGen.URLContext? uRLContext = default; if (__bestIndex >= 0) { @@ -226,9 +200,9 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServer).Name}"); - mCPServer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServer).Name}"); + mcpServer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -242,25 +216,6 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv } } else if (__bestIndex == 7) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.Retrieval), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.Retrieval).Name}"); - retrieval = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - else if (__bestIndex == 8) { try { @@ -281,7 +236,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mCPServer == null && retrieval == null && uRLContext == null) + if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mcpServer == null && uRLContext == null) { try { @@ -302,7 +257,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mCPServer == null && retrieval == null && uRLContext == null) + if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mcpServer == null && uRLContext == null) { try { @@ -323,7 +278,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mCPServer == null && retrieval == null && uRLContext == null) + if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mcpServer == null && uRLContext == null) { try { @@ -344,7 +299,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mCPServer == null && retrieval == null && uRLContext == null) + if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mcpServer == null && uRLContext == null) { try { @@ -365,7 +320,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mCPServer == null && retrieval == null && uRLContext == null) + if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mcpServer == null && uRLContext == null) { try { @@ -386,7 +341,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mCPServer == null && retrieval == null && uRLContext == null) + if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mcpServer == null && uRLContext == null) { try { @@ -407,14 +362,14 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mCPServer == null && retrieval == null && uRLContext == null) + if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mcpServer == null && uRLContext == null) { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServer).Name}"); - mCPServer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServer).Name}"); + mcpServer = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -428,28 +383,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv } } - if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mCPServer == null && retrieval == null && uRLContext == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.Retrieval), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.Retrieval).Name}"); - retrieval = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") - { - // Legacy enum converters signal an incompatible JSON token with this exception. - } - } - - if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mCPServer == null && retrieval == null && uRLContext == null) + if (codeExecution == null && computerUse == null && fileSearch == null && function == null && googleMaps == null && googleSearch == null && mcpServer == null && uRLContext == null) { try { @@ -483,9 +417,7 @@ public class ToolJsonConverter : global::System.Text.Json.Serialization.JsonConv googleSearch, - mCPServer, - - retrieval, + mcpServer, uRLContext ); @@ -538,17 +470,11 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.GoogleSearch).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSearch(), typeInfo); } - else if (value.IsMCPServer) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.MCPServer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.MCPServer).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMCPServer(), typeInfo); - } - else if (value.IsRetrieval) + else if (value.IsMcpServer) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.Retrieval), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.Retrieval).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRetrieval(), typeInfo); + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.McpServer), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.McpServer).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMcpServer(), typeInfo); } else if (value.IsURLContext) { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.UrlContextResultItemStatus.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.UrlContextResultItemStatus.g.cs deleted file mode 100644 index bc7858d74..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.UrlContextResultItemStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class UrlContextResultItemStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.UrlContextResultItemStatus Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.UrlContextResultItemStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.UrlContextResultItemStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.UrlContextResultItemStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.UrlContextResultItemStatus value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Google.Gemini.NextGen.UrlContextResultItemStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.UrlContextResultItemStatusNullable.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.UrlContextResultItemStatusNullable.g.cs deleted file mode 100644 index 1b96b48e0..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.UrlContextResultItemStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class UrlContextResultItemStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.UrlContextResultItemStatus? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.UrlContextResultItemStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.UrlContextResultItemStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.UrlContextResultItemStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.UrlContextResultItemStatus? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Google.Gemini.NextGen.UrlContextResultItemStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEvent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEvent.g.cs deleted file mode 100644 index f451e6de3..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEvent.g.cs +++ /dev/null @@ -1,48 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class WebhookSubscribedEventJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.WebhookSubscribedEvent Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.WebhookSubscribedEventExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.WebhookSubscribedEvent); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.WebhookSubscribedEvent value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Google.Gemini.NextGen.WebhookSubscribedEventExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEventNullable.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEventNullable.g.cs deleted file mode 100644 index a1b88282d..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEventNullable.g.cs +++ /dev/null @@ -1,55 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class WebhookSubscribedEventNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.WebhookSubscribedEvent? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.WebhookSubscribedEventExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.WebhookSubscribedEvent?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.WebhookSubscribedEvent? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Google.Gemini.NextGen.WebhookSubscribedEventExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookUpdateSubscribedEvent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookUpdateSubscribedEvent.g.cs deleted file mode 100644 index 6fa20d5ee..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookUpdateSubscribedEvent.g.cs +++ /dev/null @@ -1,48 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class WebhookUpdateSubscribedEventJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.WebhookUpdateSubscribedEventExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEventExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookUpdateSubscribedEventNullable.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookUpdateSubscribedEventNullable.g.cs deleted file mode 100644 index 58d5ea791..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.WebhookUpdateSubscribedEventNullable.g.cs +++ /dev/null @@ -1,55 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class WebhookUpdateSubscribedEventNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.WebhookUpdateSubscribedEventExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEventExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonSerializerContext.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonSerializerContext.g.cs index 19fd1cca0..389834ace 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonSerializerContext.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonSerializerContext.g.cs @@ -51,10 +51,18 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.ComputerUseDisabledSafetyPolicieNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatusJsonConverter), + + typeof(global::Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatusNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.CreateEnvironmentRequestNetworkJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.CreateEnvironmentRequestNetworkNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.CreateModelInteractionStatusJsonConverter), + + typeof(global::Google.Gemini.NextGen.JsonConverters.CreateModelInteractionStatusNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.CredentialTypeJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.CredentialTypeNullableJsonConverter), @@ -75,17 +83,17 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.DocumentDeltaMimeTypeNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentStatusJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentStatusNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetwork2JsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetwork2NullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkNullableJsonConverter), + + typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentConfigNetworkJsonConverter), + + typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentConfigNetworkNullableJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentFileTypeJsonConverter), @@ -95,10 +103,6 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistAllowlistNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.FindRequestModeJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.FindRequestModeNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.GenerationConfigToolChoiceJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.GenerationConfigToolChoiceNullableJsonConverter), @@ -119,14 +123,6 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.HarmCategoryNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.ImageConfigAspectRatioJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.ImageConfigAspectRatioNullableJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.ImageConfigImageSizeJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.ImageConfigImageSizeNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.ImageContentMimeTypeJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.ImageContentMimeTypeNullableJsonConverter), @@ -171,10 +167,6 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.MediaResolutionNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.CreateModelInteractionStatusJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.CreateModelInteractionStatusNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.ModelJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.ModelNullableJsonConverter), @@ -187,18 +179,6 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.ResponseModalityNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.RetrievalRetrievalTypeJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.RetrievalRetrievalTypeNullableJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.RetrievalCallDeltaRetrievalTypeJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.RetrievalCallDeltaRetrievalTypeNullableJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.RetrievalCallStepRetrievalTypeJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.RetrievalCallStepRetrievalTypeNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.RotateSigningSecretRequestRevocationBehaviorJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.RotateSigningSecretRequestRevocationBehaviorNullableJsonConverter), @@ -251,10 +231,6 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.URLContextResultStatusNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.UrlContextResultItemStatusJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.UrlContextResultItemStatusNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.VideoConfigTaskJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.VideoConfigTaskNullableJsonConverter), @@ -287,18 +263,10 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.VoiceTypeNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEventJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEventNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookStateJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookStateNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateSubscribedEventJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateSubscribedEventNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateStateJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateStateNullableJsonConverter), @@ -311,7 +279,7 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.CredentialCreateParamsJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.CredentialUpdateJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.CredentialUpdateParamsJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionSSEEventJsonConverter), @@ -331,25 +299,27 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.TranscriptionModeJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), + + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, string>), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), @@ -365,13 +335,13 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, object, string>), @@ -381,10 +351,6 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), - - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), @@ -396,39 +362,19 @@ namespace Google.Gemini.NextGen #pragma warning restore CS3016 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.JsonSerializerContextTypes))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Agent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AntigravityAgentConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironment3String2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Environment3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AntigravityAgentConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentConfigString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AgentTool), TypeInfoPropertyName = "AgentTool2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateAgentInteraction))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AgentOption), TypeInfoPropertyName = "AgentOption2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfAntigravityAgentConfigCodeMenderAgentConfigDeepResearchAgentConfigDynamicAgentConfig2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CodeMenderAgentConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.DeepResearchAgentConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.DynamicAgentConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionsInput), TypeInfoPropertyName = "InteractionsInput2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>), TypeInfoPropertyName = "OneOfResponseFormat4IListResponseFormat42")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ResponseFormat4), TypeInfoPropertyName = "ResponseFormat42")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Tool), TypeInfoPropertyName = "Tool2")] - #pragma warning disable CS0618 // This registration names a deprecated API model. - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - #pragma warning restore CS0618 - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ResponseModality), TypeInfoPropertyName = "ResponseModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ServiceTier), TypeInfoPropertyName = "ServiceTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SafetySetting))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CodeExecution))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Function))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GoogleSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.MCPServer))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.McpServer))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.URLContext))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AllowedTools))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AllowedToolsMode), TypeInfoPropertyName = "AllowedToolsMode2")] @@ -458,10 +404,8 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CodeExecutionCallArguments2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage2), TypeInfoPropertyName = "CodeExecutionCallArgumentsLanguage22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CodeExecutionResultDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CodeExecutionResultStep))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FindRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FixRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SessionConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ComputerUse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ComputerUseEnvironment), TypeInfoPropertyName = "ComputerUseEnvironment2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -471,12 +415,36 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ImageContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TextContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateAgentInteraction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionsInput), TypeInfoPropertyName = "InteractionsInput2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfAntigravityAgentConfigDeepResearchAgentConfigDynamicAgentConfig2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.DeepResearchAgentConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.DynamicAgentConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateAgentInteractionStatus), TypeInfoPropertyName = "CreateAgentInteractionStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Tool), TypeInfoPropertyName = "Tool2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + #pragma warning restore CS0618 + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ResponseModality), TypeInfoPropertyName = "ResponseModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>), TypeInfoPropertyName = "OneOfResponseFormat4IListResponseFormat42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ResponseFormat4), TypeInfoPropertyName = "ResponseFormat42")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ServiceTier), TypeInfoPropertyName = "ServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SafetySetting))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateEnvironmentRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistCreateEnvironmentRequestNetwork2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateEnvironmentRequestNetwork), TypeInfoPropertyName = "CreateEnvironmentRequestNetwork2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Source))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateModelInteraction))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Model), TypeInfoPropertyName = "Model2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GenerationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateModelInteractionStatus), TypeInfoPropertyName = "CreateModelInteractionStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateVoiceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Voice))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateWebhookRequest))] @@ -489,7 +457,7 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentVariableConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.HttpBearerConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OAuth2Config))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialUpdate), TypeInfoPropertyName = "CredentialUpdate2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialUpdateParams), TypeInfoPropertyName = "CredentialUpdateParams2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.HttpBearerUpdateConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OAuth2UpdateConfig))] @@ -499,30 +467,27 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.DocumentContentMimeType), TypeInfoPropertyName = "DocumentContentMimeType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.DocumentDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.DocumentDeltaMimeType), TypeInfoPropertyName = "DocumentDeltaMimeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AllowlistEntry))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>), TypeInfoPropertyName = "OneOfIListDictionaryStringStringDictionaryStringString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EgressRule))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Empty))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvVar))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Environment2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork2_3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetwork), TypeInfoPropertyName = "EnvironmentNetwork2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Environment3))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentStatus), TypeInfoPropertyName = "EnvironmentStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetwork2), TypeInfoPropertyName = "EnvironmentNetwork22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvVarString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetwork), TypeInfoPropertyName = "EnvironmentNetwork2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentConfigNetwork2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentConfigNetwork), TypeInfoPropertyName = "EnvironmentConfigNetwork2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, string>), TypeInfoPropertyName = "OneOfDictionaryStringEnvVarString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentFile))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentFileType), TypeInfoPropertyName = "EnvironmentFileType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>), TypeInfoPropertyName = "OneOfIListAllowlistEntryEnvironmentNetworkEgressAllowlistAllowlist2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>), TypeInfoPropertyName = "OneOfIListEgressRuleEnvironmentNetworkEgressAllowlistAllowlist2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist), TypeInfoPropertyName = "EnvironmentNetworkEgressAllowlistAllowlist2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>), TypeInfoPropertyName = "OneOfInjectionLocation3IListInjectionLocation32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InjectionLocation3), TypeInfoPropertyName = "InjectionLocation32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Error))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ErrorEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ExaAISearchConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FileContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FileSearch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FileSearchCallDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FileSearchCallStep))] @@ -530,37 +495,32 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FileSearchResultDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FileSearchResultStep))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Filter))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FindRequestMode), TypeInfoPropertyName = "FindRequestMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FunctionCallStep))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FunctionResultDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, object, string>), TypeInfoPropertyName = "OneOfIListOneOfImageContentTextContentObjectString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfImageContentTextContent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FunctionResultStep))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GenerationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfToolChoiceConfigGenerationConfigToolChoice2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ToolChoiceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GenerationConfigToolChoice), TypeInfoPropertyName = "GenerationConfigToolChoice2")] #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] #pragma warning restore CS0618 + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfToolChoiceConfigGenerationConfigToolChoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ToolChoiceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GenerationConfigToolChoice), TypeInfoPropertyName = "GenerationConfigToolChoice2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ThinkingLevel), TypeInfoPropertyName = "ThinkingLevel2")] #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ImageConfig))] #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TranscriptionConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>), TypeInfoPropertyName = "OneOfSpeakerConfigIListSpeechConfig22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>), TypeInfoPropertyName = "OneOfSpeakerConfigIListSpeechConfig2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SpeakerConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SpeechConfig2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SpeechConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GetEnvironmentFilesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GetInteractionRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GoogleMaps))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GoogleMapsCallArguments))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GoogleMapsCallDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GoogleMapsCallStep))] @@ -595,13 +555,6 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.HarmCategory), TypeInfoPropertyName = "HarmCategory2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.HttpBody))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.HybridSearch))] - #pragma warning disable CS0618 // This registration names a deprecated API model. - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ImageConfigAspectRatio), TypeInfoPropertyName = "ImageConfigAspectRatio2")] - #pragma warning restore CS0618 - #pragma warning disable CS0618 // This registration names a deprecated API model. - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ImageConfigImageSize), TypeInfoPropertyName = "ImageConfigImageSize2")] - #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.MediaResolution), TypeInfoPropertyName = "MediaResolution2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ImageContentMimeType), TypeInfoPropertyName = "ImageContentMimeType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ImageDelta))] @@ -615,27 +568,26 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionStatus), TypeInfoPropertyName = "InteractionStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Step), TypeInfoPropertyName = "Step2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Model), TypeInfoPropertyName = "Model2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Usage))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionCompletedEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionSseEventInteraction))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionCreatedEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionSseEventInteractionStatus), TypeInfoPropertyName = "InteractionSseEventInteractionStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionSSEStreamEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionSSEEvent), TypeInfoPropertyName = "InteractionSSEEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionStatusUpdate))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.StepDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.StepStart))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.StepStop))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionSseEventInteractionStatus), TypeInfoPropertyName = "InteractionSseEventInteractionStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionSSEStreamEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionStatusUpdateStatus), TypeInfoPropertyName = "InteractionStatusUpdateStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AgentListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ListAgentsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ListCredentialsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ListEnvironmentsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ListTriggerExecutionsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TriggerExecution))] @@ -644,52 +596,31 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Trigger))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ListVoicesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ListWebhooksResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.MCPServerToolCallDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.MCPServerToolCallStep))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.MCPServerToolResultDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.MCPServerToolResultStep))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.McpServerToolCallDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.McpServerToolCallStep))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.McpServerToolResultDelta))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.McpServerToolResultStep))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.MediaProcessing), TypeInfoPropertyName = "MediaProcessing2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.StaticMediaProcessing))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ModalityTokens))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateModelInteraction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateModelInteractionStatus), TypeInfoPropertyName = "CreateModelInteractionStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ModelOutputStep))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Status))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ParallelAISearchConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.PingWebhookRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookPingResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.PingWebhookResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Pitch), TypeInfoPropertyName = "Pitch2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ProcessingCallDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ProcessingCallStep))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ProcessingResultDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ProcessingResultStep))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.PromptedVoice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RagResource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RagRetrievalConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Ranking))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RagStoreConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RankService))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ReplicatedVoice))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TextResponseFormat))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoResponseFormat))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Retrieval))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RetrievalRetrievalType), TypeInfoPropertyName = "RetrievalRetrievalType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VertexAISearchConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RetrievalCallDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RetrievalCallArguments))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalType), TypeInfoPropertyName = "RetrievalCallDeltaRetrievalType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RetrievalCallStep))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RetrievalCallStepRetrievalType), TypeInfoPropertyName = "RetrievalCallStepRetrievalType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RetrievalResultDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RetrievalResultStep))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RotateSigningSecretRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior), TypeInfoPropertyName = "RotateSigningSecretRequestRevocationBehavior2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RotateSigningSecretResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RunTriggerRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SafetySettingThreshold), TypeInfoPropertyName = "SafetySettingThreshold2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SafetySettingMethod), TypeInfoPropertyName = "SafetySettingMethod2")] @@ -712,13 +643,11 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TextResponseFormatMimeType), TypeInfoPropertyName = "TextResponseFormatMimeType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ThoughtSummaryContent), TypeInfoPropertyName = "ThoughtSummaryContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfTranscriptionModeTranscriptionConfigMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TranscriptionMode), TypeInfoPropertyName = "TranscriptionMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TranscriptionConfigMode), TypeInfoPropertyName = "TranscriptionConfigMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VerbatimTranscriptionMode))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TriggerStatus), TypeInfoPropertyName = "TriggerStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TriggerCreateParams))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TriggerExecutionStatus), TypeInfoPropertyName = "TriggerExecutionStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TriggerUpdate))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TriggerUpdateStatus), TypeInfoPropertyName = "TriggerUpdateStatus2")] @@ -728,12 +657,9 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.UploadEnvironmentFileRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.UploadEnvironmentFileResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.URLContextCallArguments))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.UrlContextCallStepArguments))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.URLContextResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.URLContextResultStatus), TypeInfoPropertyName = "URLContextResultStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.UrlContextResultItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.UrlContextResultItemStatus), TypeInfoPropertyName = "UrlContextResultItemStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoConfigTask), TypeInfoPropertyName = "VideoConfigTask2")] @@ -745,12 +671,8 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoResponseFormatAspectRatio), TypeInfoPropertyName = "VideoResponseFormatAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoResponseFormatResolution), TypeInfoPropertyName = "VideoResponseFormatResolution2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VoiceType), TypeInfoPropertyName = "VoiceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookSubscribedEvent), TypeInfoPropertyName = "WebhookSubscribedEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookState), TypeInfoPropertyName = "WebhookState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent), TypeInfoPropertyName = "WebhookUpdateSubscribedEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdateState), TypeInfoPropertyName = "WebhookUpdateState2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfCreateAgentInteractionCreateModelInteraction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] @@ -763,26 +685,23 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CancelInteractionByIdResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CancelInteractionByIdResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, object, string>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -797,22 +716,17 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] public sealed partial class NextGenSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonSerializerContextTypes.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonSerializerContextTypes.g.cs index 73ddea227..9d4961a3e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonSerializerContextTypes.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonSerializerContextTypes.g.cs @@ -25,6 +25,11 @@ public sealed partial class JsonSerializerContextTypes /// public global::System.Collections.Generic.List? ObjectList { get; set; } + /// + /// String arrays used by dynamic JSON option values. + /// + public string[]? StringArray { get; set; } + /// /// /// @@ -37,19 +42,19 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.AntigravityAgentConfig? Type1 { get; set; } + public string? Type1 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type2 { get; set; } + public global::Google.Gemini.NextGen.AntigravityAgentConfig? Type2 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Environment3? Type3 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type3 { get; set; } /// /// /// - public string? Type4 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentConfig? Type4 { get; set; } /// /// /// @@ -61,403 +66,403 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.CreateAgentInteraction? Type7 { get; set; } + public global::Google.Gemini.NextGen.AgentOption? Type7 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AgentOption? Type8 { get; set; } + public global::Google.Gemini.NextGen.CodeExecution? Type8 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type9 { get; set; } + public global::Google.Gemini.NextGen.Function? Type9 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeMenderAgentConfig? Type10 { get; set; } + public global::Google.Gemini.NextGen.GoogleSearch? Type10 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DeepResearchAgentConfig? Type11 { get; set; } + public global::Google.Gemini.NextGen.McpServer? Type11 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DynamicAgentConfig? Type12 { get; set; } + public global::Google.Gemini.NextGen.URLContext? Type12 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionsInput? Type13 { get; set; } + public global::Google.Gemini.NextGen.AllowedTools? Type13 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf>? Type14 { get; set; } + public global::Google.Gemini.NextGen.AllowedToolsMode? Type14 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ResponseFormat4? Type15 { get; set; } + public global::System.Collections.Generic.IList? Type15 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type16 { get; set; } + public global::Google.Gemini.NextGen.Annotation? Type16 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type17 { get; set; } + public global::Google.Gemini.NextGen.FileCitation? Type17 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Tool? Type18 { get; set; } + public global::Google.Gemini.NextGen.PlaceCitation? Type18 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type19 { get; set; } + public global::Google.Gemini.NextGen.SpeechAnnotation? Type19 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ResponseModality? Type20 { get; set; } + public global::Google.Gemini.NextGen.URLCitation? Type20 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ServiceTier? Type21 { get; set; } + public global::Google.Gemini.NextGen.WordInfo? Type21 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookConfig? Type22 { get; set; } + public object? Type22 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type23 { get; set; } + public global::Google.Gemini.NextGen.ArgumentsDelta? Type23 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SafetySetting? Type24 { get; set; } + public global::Google.Gemini.NextGen.AudioContent? Type24 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type25 { get; set; } + public byte[]? Type25 { get; set; } /// /// /// - public bool? Type26 { get; set; } + public int? Type26 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecution? Type27 { get; set; } + public global::Google.Gemini.NextGen.AudioContentMimeType? Type27 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Function? Type28 { get; set; } + public global::Google.Gemini.NextGen.AudioData? Type28 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleSearch? Type29 { get; set; } + public global::Google.Gemini.NextGen.AudioDelta? Type29 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.MCPServer? Type30 { get; set; } + public global::Google.Gemini.NextGen.AudioDeltaMimeType? Type30 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContext? Type31 { get; set; } + public global::Google.Gemini.NextGen.AudioResponseFormat? Type31 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AllowedTools? Type32 { get; set; } + public global::Google.Gemini.NextGen.AudioResponseFormatMimeType? Type32 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AllowedToolsMode? Type33 { get; set; } + public global::Google.Gemini.NextGen.AudioResponseFormatDelivery? Type33 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type34 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionCallArguments? Type34 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Annotation? Type35 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage? Type35 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FileCitation? Type36 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionCallDelta? Type36 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.PlaceCitation? Type37 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionCallStep? Type37 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SpeechAnnotation? Type38 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionCallArguments2? Type38 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLCitation? Type39 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage2? Type39 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WordInfo? Type40 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionResultDelta? Type40 { get; set; } /// /// /// - public object? Type41 { get; set; } + public bool? Type41 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ArgumentsDelta? Type42 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionResultStep? Type42 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioContent? Type43 { get; set; } + public global::Google.Gemini.NextGen.ComputerUse? Type43 { get; set; } /// /// /// - public byte[]? Type44 { get; set; } + public global::Google.Gemini.NextGen.ComputerUseEnvironment? Type44 { get; set; } /// /// /// - public int? Type45 { get; set; } + public global::System.Collections.Generic.IList? Type45 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioContentMimeType? Type46 { get; set; } + public global::Google.Gemini.NextGen.ComputerUseDisabledSafetyPolicie? Type46 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioData? Type47 { get; set; } + public global::Google.Gemini.NextGen.Content? Type47 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioDelta? Type48 { get; set; } + public global::Google.Gemini.NextGen.DocumentContent? Type48 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioDeltaMimeType? Type49 { get; set; } + public global::Google.Gemini.NextGen.ImageContent? Type49 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioResponseFormat? Type50 { get; set; } + public global::Google.Gemini.NextGen.TextContent? Type50 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioResponseFormatMimeType? Type51 { get; set; } + public global::Google.Gemini.NextGen.VideoContent? Type51 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioResponseFormatDelivery? Type52 { get; set; } + public global::Google.Gemini.NextGen.CreateAgentInteraction? Type52 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionCallArguments? Type53 { get; set; } + public global::Google.Gemini.NextGen.InteractionsInput? Type53 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage? Type54 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type54 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionCallDelta? Type55 { get; set; } + public global::Google.Gemini.NextGen.DeepResearchAgentConfig? Type55 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionCallStep? Type56 { get; set; } + public global::Google.Gemini.NextGen.DynamicAgentConfig? Type56 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionCallArguments2? Type57 { get; set; } + public global::Google.Gemini.NextGen.CreateAgentInteractionStatus? Type57 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage2? Type58 { get; set; } + public global::System.Collections.Generic.IList? Type58 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionResultDelta? Type59 { get; set; } + public global::Google.Gemini.NextGen.Tool? Type59 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionResultStep? Type60 { get; set; } + public global::System.Collections.Generic.IList? Type60 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FindRequest? Type61 { get; set; } + public global::Google.Gemini.NextGen.ResponseModality? Type61 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FixRequest? Type62 { get; set; } + public global::Google.Gemini.NextGen.OneOf>? Type62 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SessionConfig? Type63 { get; set; } + public global::Google.Gemini.NextGen.ResponseFormat4? Type63 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ComputerUse? Type64 { get; set; } + public global::System.Collections.Generic.IList? Type64 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ComputerUseEnvironment? Type65 { get; set; } + public global::Google.Gemini.NextGen.ServiceTier? Type65 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type66 { get; set; } + public global::Google.Gemini.NextGen.WebhookConfig? Type66 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ComputerUseDisabledSafetyPolicie? Type67 { get; set; } + public global::System.Collections.Generic.IList? Type67 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Content? Type68 { get; set; } + public global::Google.Gemini.NextGen.SafetySetting? Type68 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DocumentContent? Type69 { get; set; } + public global::System.Collections.Generic.Dictionary? Type69 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageContent? Type70 { get; set; } + public global::Google.Gemini.NextGen.CreateEnvironmentRequest? Type70 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TextContent? Type71 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type71 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoContent? Type72 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist? Type72 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CreateEnvironmentRequest? Type73 { get; set; } + public global::Google.Gemini.NextGen.CreateEnvironmentRequestNetwork? Type73 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type74 { get; set; } + public global::System.Collections.Generic.IList? Type74 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist? Type75 { get; set; } + public global::Google.Gemini.NextGen.Source? Type75 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CreateEnvironmentRequestNetwork? Type76 { get; set; } + public global::Google.Gemini.NextGen.CreateModelInteraction? Type76 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type77 { get; set; } + public global::Google.Gemini.NextGen.Model? Type77 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Source? Type78 { get; set; } + public global::Google.Gemini.NextGen.GenerationConfig? Type78 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CreateVoiceRequest? Type79 { get; set; } + public global::Google.Gemini.NextGen.CreateModelInteractionStatus? Type79 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Voice? Type80 { get; set; } + public global::Google.Gemini.NextGen.CreateVoiceRequest? Type80 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CreateWebhookRequest? Type81 { get; set; } + public global::Google.Gemini.NextGen.Voice? Type81 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Webhook? Type82 { get; set; } + public global::Google.Gemini.NextGen.CreateWebhookRequest? Type82 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Credential? Type83 { get; set; } + public global::Google.Gemini.NextGen.Webhook? Type83 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CredentialType? Type84 { get; set; } + public global::Google.Gemini.NextGen.Credential? Type84 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CredentialStatus? Type85 { get; set; } + public global::Google.Gemini.NextGen.CredentialType? Type85 { get; set; } /// /// /// - public global::System.DateTime? Type86 { get; set; } + public global::Google.Gemini.NextGen.CredentialStatus? Type86 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CredentialCreateParams? Type87 { get; set; } + public global::System.DateTime? Type87 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvironmentVariableConfig? Type88 { get; set; } + public global::Google.Gemini.NextGen.CredentialCreateParams? Type88 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.HttpBearerConfig? Type89 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentVariableConfig? Type89 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OAuth2Config? Type90 { get; set; } + public global::Google.Gemini.NextGen.HttpBearerConfig? Type90 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CredentialUpdate? Type91 { get; set; } + public global::Google.Gemini.NextGen.OAuth2Config? Type91 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig? Type92 { get; set; } + public global::Google.Gemini.NextGen.CredentialUpdateParams? Type92 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.HttpBearerUpdateConfig? Type93 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig? Type93 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OAuth2UpdateConfig? Type94 { get; set; } + public global::Google.Gemini.NextGen.HttpBearerUpdateConfig? Type94 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ThinkingSummaries? Type95 { get; set; } + public global::Google.Gemini.NextGen.OAuth2UpdateConfig? Type95 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DeepResearchAgentConfigVisualization? Type96 { get; set; } + public global::Google.Gemini.NextGen.ThinkingSummaries? Type96 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DeleteVoiceResponse? Type97 { get; set; } + public global::Google.Gemini.NextGen.DeepResearchAgentConfigVisualization? Type97 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DocumentContentMimeType? Type98 { get; set; } + public global::Google.Gemini.NextGen.DeleteVoiceResponse? Type98 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DocumentDelta? Type99 { get; set; } + public global::Google.Gemini.NextGen.DocumentContentMimeType? Type99 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DocumentDeltaMimeType? Type100 { get; set; } + public global::Google.Gemini.NextGen.DocumentDelta? Type100 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AllowlistEntry? Type101 { get; set; } + public global::Google.Gemini.NextGen.DocumentDeltaMimeType? Type101 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>? Type102 { get; set; } + public global::Google.Gemini.NextGen.EgressRule? Type102 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type103 { get; set; } + public global::Google.Gemini.NextGen.Empty? Type103 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Empty? Type104 { get; set; } + public global::Google.Gemini.NextGen.EnvVar? Type104 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvVar? Type105 { get; set; } + public global::Google.Gemini.NextGen.Environment3? Type105 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Environment2? Type106 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentStatus? Type106 { get; set; } /// /// /// @@ -469,19 +474,19 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.EnvironmentStatus? Type109 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type109 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type110 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentConfigNetwork? Type110 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvironmentNetwork2? Type111 { get; set; } + public global::Google.Gemini.NextGen.OneOf, string>? Type111 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type112 { get; set; } + public global::System.Collections.Generic.Dictionary? Type112 { get; set; } /// /// /// @@ -493,11 +498,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>? Type115 { get; set; } + public global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>? Type115 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type116 { get; set; } + public global::System.Collections.Generic.IList? Type116 { get; set; } /// /// /// @@ -525,935 +530,771 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.ExaAISearchConfig? Type123 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.FileContent? Type124 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.FileSearch? Type125 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.FileSearchCallDelta? Type126 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.FileSearchCallStep? Type127 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.FileSearchResult? Type128 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.FileSearchResultDelta? Type129 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type130 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.FileSearchResultStep? Type131 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.Filter? Type132 { get; set; } - /// - /// - /// - public double? Type133 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type134 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.FindRequestMode? Type135 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.FunctionCallStep? Type136 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.FunctionResultDelta? Type137 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.OneOf>, object, string>? Type138 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type139 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.OneOf? Type140 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.FunctionResultStep? Type141 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.GenerationConfig? Type142 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.OneOf? Type143 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.ToolChoiceConfig? Type144 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.GenerationConfigToolChoice? Type145 { get; set; } - /// - /// - /// - public float? Type146 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.ThinkingLevel? Type147 { get; set; } + public global::Google.Gemini.NextGen.FileSearch? Type123 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageConfig? Type148 { get; set; } + public global::Google.Gemini.NextGen.FileSearchCallDelta? Type124 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoConfig? Type149 { get; set; } + public global::Google.Gemini.NextGen.FileSearchCallStep? Type125 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TranscriptionConfig? Type150 { get; set; } + public global::Google.Gemini.NextGen.FileSearchResult? Type126 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf>? Type151 { get; set; } + public global::Google.Gemini.NextGen.FileSearchResultDelta? Type127 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SpeakerConfig? Type152 { get; set; } + public global::System.Collections.Generic.IList? Type128 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type153 { get; set; } + public global::Google.Gemini.NextGen.FileSearchResultStep? Type129 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SpeechConfig2? Type154 { get; set; } + public global::Google.Gemini.NextGen.FunctionCallStep? Type130 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GetEnvironmentFilesResponse? Type155 { get; set; } + public global::Google.Gemini.NextGen.FunctionResultDelta? Type131 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type156 { get; set; } + public global::Google.Gemini.NextGen.OneOf>, object, string>? Type132 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GetInteractionRequest? Type157 { get; set; } + public global::System.Collections.Generic.IList>? Type133 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleMaps? Type158 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type134 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleMapsCallArguments? Type159 { get; set; } + public global::Google.Gemini.NextGen.FunctionResultStep? Type135 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleMapsCallDelta? Type160 { get; set; } + public float? Type136 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleMapsCallStep? Type161 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type137 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleMapsCallArguments2? Type162 { get; set; } + public global::Google.Gemini.NextGen.ToolChoiceConfig? Type138 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleMapsResult? Type163 { get; set; } + public global::Google.Gemini.NextGen.GenerationConfigToolChoice? Type139 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type164 { get; set; } + public global::Google.Gemini.NextGen.ThinkingLevel? Type140 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Places? Type165 { get; set; } + public global::Google.Gemini.NextGen.ImageConfig? Type141 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleMapsResultDelta? Type166 { get; set; } + public global::Google.Gemini.NextGen.VideoConfig? Type142 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type167 { get; set; } + public global::Google.Gemini.NextGen.TranscriptionConfig? Type143 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleMapsResult2? Type168 { get; set; } + public global::Google.Gemini.NextGen.OneOf>? Type144 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type169 { get; set; } + public global::Google.Gemini.NextGen.SpeakerConfig? Type145 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleMapsResultPlaces? Type170 { get; set; } + public global::System.Collections.Generic.IList? Type146 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type171 { get; set; } + public global::Google.Gemini.NextGen.SpeechConfig? Type147 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ReviewSnippet? Type172 { get; set; } + public global::Google.Gemini.NextGen.GetEnvironmentFilesResponse? Type148 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleMapsResultStep? Type173 { get; set; } + public global::System.Collections.Generic.IList? Type149 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type174 { get; set; } + public global::Google.Gemini.NextGen.GoogleMaps? Type150 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type175 { get; set; } + public double? Type151 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleSearchSearchType? Type176 { get; set; } + public global::Google.Gemini.NextGen.GoogleMapsCallArguments? Type152 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleSearchCallArguments? Type177 { get; set; } + public global::Google.Gemini.NextGen.GoogleMapsCallDelta? Type153 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleSearchCallDelta? Type178 { get; set; } + public global::Google.Gemini.NextGen.GoogleMapsCallStep? Type154 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleSearchCallStep? Type179 { get; set; } + public global::Google.Gemini.NextGen.GoogleMapsCallArguments2? Type155 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleSearchCallArguments2? Type180 { get; set; } + public global::Google.Gemini.NextGen.GoogleMapsResult? Type156 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleSearchCallStepSearchType? Type181 { get; set; } + public global::System.Collections.Generic.IList? Type157 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleSearchResult? Type182 { get; set; } + public global::Google.Gemini.NextGen.Places? Type158 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleSearchResultDelta? Type183 { get; set; } + public global::Google.Gemini.NextGen.GoogleMapsResultDelta? Type159 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type184 { get; set; } + public global::System.Collections.Generic.IList? Type160 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleSearchResult2? Type185 { get; set; } + public global::Google.Gemini.NextGen.GoogleMapsResult2? Type161 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleSearchResultStep? Type186 { get; set; } + public global::System.Collections.Generic.IList? Type162 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type187 { get; set; } + public global::Google.Gemini.NextGen.GoogleMapsResultPlaces? Type163 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GroundingToolCount? Type188 { get; set; } + public global::System.Collections.Generic.IList? Type164 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GroundingToolCountType? Type189 { get; set; } + public global::Google.Gemini.NextGen.ReviewSnippet? Type165 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.HarmCategory? Type190 { get; set; } + public global::Google.Gemini.NextGen.GoogleMapsResultStep? Type166 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.HttpBody? Type191 { get; set; } + public global::System.Collections.Generic.IList? Type167 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type192 { get; set; } + public global::System.Collections.Generic.IList? Type168 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.HybridSearch? Type193 { get; set; } + public global::Google.Gemini.NextGen.GoogleSearchSearchType? Type169 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageConfigAspectRatio? Type194 { get; set; } + public global::Google.Gemini.NextGen.GoogleSearchCallArguments? Type170 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageConfigImageSize? Type195 { get; set; } + public global::Google.Gemini.NextGen.GoogleSearchCallDelta? Type171 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.MediaResolution? Type196 { get; set; } + public global::Google.Gemini.NextGen.GoogleSearchCallStep? Type172 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageContentMimeType? Type197 { get; set; } + public global::Google.Gemini.NextGen.GoogleSearchCallArguments2? Type173 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageDelta? Type198 { get; set; } + public global::Google.Gemini.NextGen.GoogleSearchCallStepSearchType? Type174 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageDeltaMimeType? Type199 { get; set; } + public global::Google.Gemini.NextGen.GoogleSearchResult? Type175 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageResponseFormat? Type200 { get; set; } + public global::Google.Gemini.NextGen.GoogleSearchResultDelta? Type176 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageResponseFormatMimeType? Type201 { get; set; } + public global::System.Collections.Generic.IList? Type177 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageResponseFormatDelivery? Type202 { get; set; } + public global::Google.Gemini.NextGen.GoogleSearchResult2? Type178 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageResponseFormatAspectRatio? Type203 { get; set; } + public global::Google.Gemini.NextGen.GoogleSearchResultStep? Type179 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageResponseFormatImageSize? Type204 { get; set; } + public global::System.Collections.Generic.IList? Type180 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Interaction? Type205 { get; set; } + public global::Google.Gemini.NextGen.GroundingToolCount? Type181 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionStatus? Type206 { get; set; } + public global::Google.Gemini.NextGen.GroundingToolCountType? Type182 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type207 { get; set; } + public global::Google.Gemini.NextGen.HarmCategory? Type183 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Step? Type208 { get; set; } + public global::Google.Gemini.NextGen.HttpBody? Type184 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Model? Type209 { get; set; } + public global::System.Collections.Generic.IList? Type185 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Usage? Type210 { get; set; } + public global::Google.Gemini.NextGen.MediaResolution? Type186 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type211 { get; set; } + public global::Google.Gemini.NextGen.ImageContentMimeType? Type187 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionCompletedEvent? Type212 { get; set; } + public global::Google.Gemini.NextGen.ImageDelta? Type188 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionSseEventInteraction? Type213 { get; set; } + public global::Google.Gemini.NextGen.ImageDeltaMimeType? Type189 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionCreatedEvent? Type214 { get; set; } + public global::Google.Gemini.NextGen.ImageResponseFormat? Type190 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionSseEventInteractionStatus? Type215 { get; set; } + public global::Google.Gemini.NextGen.ImageResponseFormatMimeType? Type191 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionSSEStreamEvent? Type216 { get; set; } + public global::Google.Gemini.NextGen.ImageResponseFormatDelivery? Type192 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionSSEEvent? Type217 { get; set; } + public global::Google.Gemini.NextGen.ImageResponseFormatAspectRatio? Type193 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionStatusUpdate? Type218 { get; set; } + public global::Google.Gemini.NextGen.ImageResponseFormatImageSize? Type194 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.StepDelta? Type219 { get; set; } + public global::Google.Gemini.NextGen.Interaction? Type195 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.StepStart? Type220 { get; set; } + public global::Google.Gemini.NextGen.InteractionStatus? Type196 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.StepStop? Type221 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionStatusUpdateStatus? Type222 { get; set; } + public global::Google.Gemini.NextGen.Step? Type198 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type223 { get; set; } + public global::Google.Gemini.NextGen.Usage? Type199 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AgentListResponse? Type224 { get; set; } + public global::System.Collections.Generic.IList? Type200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type225 { get; set; } + public global::Google.Gemini.NextGen.InteractionCompletedEvent? Type201 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CredentialListResponse? Type226 { get; set; } + public global::Google.Gemini.NextGen.InteractionSseEventInteraction? Type202 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type227 { get; set; } + public global::Google.Gemini.NextGen.InteractionCreatedEvent? Type203 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ListEnvironmentsResponse? Type228 { get; set; } + public global::Google.Gemini.NextGen.InteractionSSEEvent? Type204 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type229 { get; set; } + public global::Google.Gemini.NextGen.InteractionStatusUpdate? Type205 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ListTriggerExecutionsResponse? Type230 { get; set; } + public global::Google.Gemini.NextGen.StepDelta? Type206 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type231 { get; set; } + public global::Google.Gemini.NextGen.StepStart? Type207 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TriggerExecution? Type232 { get; set; } + public global::Google.Gemini.NextGen.StepStop? Type208 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ListTriggersResponse? Type233 { get; set; } + public global::Google.Gemini.NextGen.InteractionSseEventInteractionStatus? Type209 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type234 { get; set; } + public global::Google.Gemini.NextGen.InteractionSSEStreamEvent? Type210 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Trigger? Type235 { get; set; } + public global::Google.Gemini.NextGen.InteractionStatusUpdateStatus? Type211 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ListVoicesResponse? Type236 { get; set; } + public global::System.Collections.Generic.IList? Type212 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type237 { get; set; } + public global::Google.Gemini.NextGen.ListAgentsResponse? Type213 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookListResponse? Type238 { get; set; } + public global::System.Collections.Generic.IList? Type214 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type239 { get; set; } + public global::Google.Gemini.NextGen.ListCredentialsResponse? Type215 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type240 { get; set; } + public global::System.Collections.Generic.IList? Type216 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolCallDelta? Type241 { get; set; } + public global::Google.Gemini.NextGen.ListEnvironmentsResponse? Type217 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolCallStep? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type218 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolResultDelta? Type243 { get; set; } + public global::Google.Gemini.NextGen.ListTriggerExecutionsResponse? Type219 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolResultStep? Type244 { get; set; } + public global::System.Collections.Generic.IList? Type220 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.MediaProcessing? Type245 { get; set; } + public global::Google.Gemini.NextGen.TriggerExecution? Type221 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.StaticMediaProcessing? Type246 { get; set; } + public global::Google.Gemini.NextGen.ListTriggersResponse? Type222 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ModalityTokens? Type247 { get; set; } + public global::System.Collections.Generic.IList? Type223 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CreateModelInteraction? Type248 { get; set; } + public global::Google.Gemini.NextGen.Trigger? Type224 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CreateModelInteractionStatus? Type249 { get; set; } + public global::Google.Gemini.NextGen.ListVoicesResponse? Type225 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ModelOutputStep? Type250 { get; set; } + public global::System.Collections.Generic.IList? Type226 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Status? Type251 { get; set; } + public global::Google.Gemini.NextGen.ListWebhooksResponse? Type227 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ParallelAISearchConfig? Type252 { get; set; } + public global::System.Collections.Generic.IList? Type228 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.PingWebhookRequest? Type253 { get; set; } + public global::System.Collections.Generic.IList? Type229 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookPingResponse? Type254 { get; set; } + public global::Google.Gemini.NextGen.McpServerToolCallDelta? Type230 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Pitch? Type255 { get; set; } + public global::Google.Gemini.NextGen.McpServerToolCallStep? Type231 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ProcessingCallDelta? Type256 { get; set; } + public global::Google.Gemini.NextGen.McpServerToolResultDelta? Type232 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ProcessingCallStep? Type257 { get; set; } + public global::Google.Gemini.NextGen.McpServerToolResultStep? Type233 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ProcessingResultDelta? Type258 { get; set; } + public global::Google.Gemini.NextGen.MediaProcessing? Type234 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ProcessingResultStep? Type259 { get; set; } + public global::Google.Gemini.NextGen.StaticMediaProcessing? Type235 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.PromptedVoice? Type260 { get; set; } + public global::Google.Gemini.NextGen.ModalityTokens? Type236 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RagResource? Type261 { get; set; } + public global::Google.Gemini.NextGen.ModelOutputStep? Type237 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RagRetrievalConfig? Type262 { get; set; } + public global::Google.Gemini.NextGen.PingWebhookRequest? Type238 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Ranking? Type263 { get; set; } + public global::Google.Gemini.NextGen.PingWebhookResponse? Type239 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RagStoreConfig? Type264 { get; set; } + public global::Google.Gemini.NextGen.Pitch? Type240 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type265 { get; set; } + public global::Google.Gemini.NextGen.ProcessingCallDelta? Type241 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RankService? Type266 { get; set; } + public global::Google.Gemini.NextGen.ProcessingCallStep? Type242 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ReplicatedVoice? Type267 { get; set; } + public global::Google.Gemini.NextGen.ProcessingResultDelta? Type243 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TextResponseFormat? Type268 { get; set; } + public global::Google.Gemini.NextGen.ProcessingResultStep? Type244 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoResponseFormat? Type269 { get; set; } + public global::Google.Gemini.NextGen.PromptedVoice? Type245 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Retrieval? Type270 { get; set; } + public global::Google.Gemini.NextGen.ReplicatedVoice? Type246 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type271 { get; set; } + public global::Google.Gemini.NextGen.TextResponseFormat? Type247 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalRetrievalType? Type272 { get; set; } + public global::Google.Gemini.NextGen.VideoResponseFormat? Type248 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VertexAISearchConfig? Type273 { get; set; } + public global::Google.Gemini.NextGen.RotateSigningSecretRequest? Type249 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalCallDelta? Type274 { get; set; } + public global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior? Type250 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalCallArguments? Type275 { get; set; } + public global::Google.Gemini.NextGen.RotateSigningSecretResponse? Type251 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalType? Type276 { get; set; } + public global::Google.Gemini.NextGen.RunTriggerRequest? Type252 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalCallStep? Type277 { get; set; } + public global::Google.Gemini.NextGen.SafetySettingThreshold? Type253 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalCallStepRetrievalType? Type278 { get; set; } + public global::Google.Gemini.NextGen.SafetySettingMethod? Type254 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalResultDelta? Type279 { get; set; } + public global::Google.Gemini.NextGen.SigningSecret? Type255 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalResultStep? Type280 { get; set; } + public global::Google.Gemini.NextGen.SmartTranscriptionMode? Type256 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RotateSigningSecretRequest? Type281 { get; set; } + public global::Google.Gemini.NextGen.SourceType? Type257 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior? Type282 { get; set; } + public global::Google.Gemini.NextGen.ThoughtStep? Type258 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse? Type283 { get; set; } + public global::Google.Gemini.NextGen.URLContextCallStep? Type259 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RunTriggerRequest? Type284 { get; set; } + public global::Google.Gemini.NextGen.URLContextResultStep? Type260 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SafetySettingThreshold? Type285 { get; set; } + public global::Google.Gemini.NextGen.UserInputStep? Type261 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SafetySettingMethod? Type286 { get; set; } + public global::Google.Gemini.NextGen.StepDeltaData? Type262 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SigningSecret? Type287 { get; set; } + public global::Google.Gemini.NextGen.StepDeltaMetadata? Type263 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SmartTranscriptionMode? Type288 { get; set; } + public global::Google.Gemini.NextGen.TextAnnotationDelta? Type264 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SourceType? Type289 { get; set; } + public global::Google.Gemini.NextGen.TextDelta? Type265 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ThoughtStep? Type290 { get; set; } + public global::Google.Gemini.NextGen.ThoughtSignatureDelta? Type266 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContextCallStep? Type291 { get; set; } + public global::Google.Gemini.NextGen.ThoughtSummaryDelta? Type267 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContextResultStep? Type292 { get; set; } + public global::Google.Gemini.NextGen.URLContextCallDelta? Type268 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UserInputStep? Type293 { get; set; } + public global::Google.Gemini.NextGen.URLContextResultDelta? Type269 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.StepDeltaData? Type294 { get; set; } + public global::Google.Gemini.NextGen.VideoDelta? Type270 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.StepDeltaMetadata? Type295 { get; set; } + public global::System.Collections.Generic.IList? Type271 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TextAnnotationDelta? Type296 { get; set; } + public global::Google.Gemini.NextGen.TextResponseFormatMimeType? Type272 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TextDelta? Type297 { get; set; } + public global::Google.Gemini.NextGen.ThoughtSummaryContent? Type273 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ThoughtSignatureDelta? Type298 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type274 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ThoughtSummaryDelta? Type299 { get; set; } + public global::Google.Gemini.NextGen.TranscriptionMode? Type275 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContextCallDelta? Type300 { get; set; } + public global::Google.Gemini.NextGen.TranscriptionConfigMode? Type276 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContextResultDelta? Type301 { get; set; } + public global::Google.Gemini.NextGen.VerbatimTranscriptionMode? Type277 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoDelta? Type302 { get; set; } + public global::Google.Gemini.NextGen.TriggerStatus? Type278 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type303 { get; set; } + public global::Google.Gemini.NextGen.TriggerExecutionStatus? Type279 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TextResponseFormatMimeType? Type304 { get; set; } + public global::Google.Gemini.NextGen.TriggerUpdate? Type280 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ThoughtSummaryContent? Type305 { get; set; } + public global::Google.Gemini.NextGen.TriggerUpdateStatus? Type281 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type306 { get; set; } + public global::Google.Gemini.NextGen.UpdateTriggerRequest? Type282 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type307 { get; set; } + public global::Google.Gemini.NextGen.UpdateWebhookRequest? Type283 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TranscriptionMode? Type308 { get; set; } + public global::Google.Gemini.NextGen.WebhookUpdate? Type284 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TranscriptionConfigMode? Type309 { get; set; } + public global::Google.Gemini.NextGen.UploadEnvironmentFileRequest? Type285 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VerbatimTranscriptionMode? Type310 { get; set; } + public global::Google.Gemini.NextGen.UploadEnvironmentFileResponse? Type286 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TriggerStatus? Type311 { get; set; } + public global::Google.Gemini.NextGen.URLContextCallArguments? Type287 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TriggerCreateParams? Type312 { get; set; } + public global::Google.Gemini.NextGen.URLContextResult? Type288 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TriggerExecutionStatus? Type313 { get; set; } + public global::Google.Gemini.NextGen.URLContextResultStatus? Type289 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TriggerUpdate? Type314 { get; set; } + public global::System.Collections.Generic.IList? Type290 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TriggerUpdateStatus? Type315 { get; set; } + public global::System.Collections.Generic.IList? Type291 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UpdateTriggerRequest? Type316 { get; set; } + public global::System.Collections.Generic.IList? Type292 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UpdateWebhookRequest? Type317 { get; set; } + public global::Google.Gemini.NextGen.VideoConfigTask? Type293 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookUpdate? Type318 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type294 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UploadEnvironmentFileRequest? Type319 { get; set; } + public global::Google.Gemini.NextGen.VideoContentProcessing? Type295 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UploadEnvironmentFileResponse? Type320 { get; set; } + public global::Google.Gemini.NextGen.VideoContentMimeType? Type296 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContextCallArguments? Type321 { get; set; } + public global::Google.Gemini.NextGen.VideoDeltaMimeType? Type297 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UrlContextCallStepArguments? Type322 { get; set; } + public global::Google.Gemini.NextGen.VideoResponseFormatDelivery? Type298 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContextResult? Type323 { get; set; } + public global::Google.Gemini.NextGen.VideoResponseFormatAspectRatio? Type299 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContextResultStatus? Type324 { get; set; } + public global::Google.Gemini.NextGen.VideoResponseFormatResolution? Type300 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type325 { get; set; } + public global::Google.Gemini.NextGen.VoiceType? Type301 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UrlContextResultItem? Type326 { get; set; } + public global::System.Collections.Generic.IList? Type302 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UrlContextResultItemStatus? Type327 { get; set; } + public global::Google.Gemini.NextGen.WebhookState? Type303 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type328 { get; set; } + public global::Google.Gemini.NextGen.WebhookUpdateState? Type304 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type329 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type305 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoConfigTask? Type330 { get; set; } + public long? Type306 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type331 { get; set; } + public global::Google.Gemini.NextGen.CreateInteractionResponse? Type307 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoContentProcessing? Type332 { get; set; } + public global::Google.Gemini.NextGen.CreateInteractionResponse2? Type308 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoContentMimeType? Type333 { get; set; } + public global::Google.Gemini.NextGen.DeleteInteractionResponse? Type309 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoDeltaMimeType? Type334 { get; set; } + public global::Google.Gemini.NextGen.DeleteInteractionResponse2? Type310 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoResponseFormatDelivery? Type335 { get; set; } + public global::Google.Gemini.NextGen.GetInteractionByIdResponse? Type311 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoResponseFormatAspectRatio? Type336 { get; set; } + public global::Google.Gemini.NextGen.GetInteractionByIdResponse2? Type312 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoResponseFormatResolution? Type337 { get; set; } + public global::Google.Gemini.NextGen.CancelInteractionByIdResponse? Type313 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VoiceType? Type338 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type339 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.WebhookSubscribedEvent? Type340 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type341 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.WebhookState? Type342 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type343 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent? Type344 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.WebhookUpdateState? Type345 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.OneOf? Type346 { get; set; } - /// - /// - /// - public long? Type347 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.CreateInteractionResponse? Type348 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.CreateInteractionResponse2? Type349 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.DeleteInteractionResponse? Type350 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.DeleteInteractionResponse2? Type351 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.GetInteractionByIdResponse? Type352 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.GetInteractionByIdResponse2? Type353 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.CancelInteractionByIdResponse? Type354 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.CancelInteractionByIdResponse2? Type355 { get; set; } + public global::Google.Gemini.NextGen.CancelInteractionByIdResponse2? Type314 { get; set; } /// /// @@ -1462,11 +1303,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.OneOf>? ListType1 { get; set; } + public global::System.Collections.Generic.List? ListType1 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType2 { get; set; } + public global::System.Collections.Generic.List? ListType2 { get; set; } /// /// /// @@ -1478,15 +1319,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType5 { get; set; } + public global::Google.Gemini.NextGen.OneOf>? ListType5 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType6 { get; set; } + public global::System.Collections.Generic.List? ListType6 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType7 { get; set; } + public global::System.Collections.Generic.List? ListType7 { get; set; } /// /// /// @@ -1494,174 +1335,142 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>? ListType9 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType10 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>? ListType11 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType12 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.OneOf>? ListType13 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType14 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType15 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType16 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.OneOf>, object, string>? ListType17 { get; set; } + public global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List>? ListType18 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf>? ListType19 { get; set; } + public global::Google.Gemini.NextGen.OneOf>? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::Google.Gemini.NextGen.OneOf>, object, string>? ListType14 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List>? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType24 { get; set; } + public global::Google.Gemini.NextGen.OneOf>? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType51 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Agent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Agent.g.cs index ebf4301d8..e46408736 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Agent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Agent.g.cs @@ -17,19 +17,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class Agent { - /// - /// Configuration parameters for the agent. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agent_config")] - public global::Google.Gemini.NextGen.AntigravityAgentConfig? AgentConfig { get; set; } - - /// - /// The environment configuration for the agent. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("base_environment")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? BaseEnvironment { get; set; } - /// /// The unique identifier for the agent. /// @@ -54,6 +41,19 @@ public sealed partial class Agent [global::System.Text.Json.Serialization.JsonPropertyName("description")] public string? Description { get; set; } + /// + /// Configuration parameters for the agent. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("agent_config")] + public global::Google.Gemini.NextGen.AntigravityAgentConfig? AgentConfig { get; set; } + + /// + /// The environment configuration for the agent. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("base_environment")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? BaseEnvironment { get; set; } + /// /// The tools available to the agent. /// @@ -69,12 +69,6 @@ public sealed partial class Agent /// /// Initializes a new instance of the class. /// - /// - /// Configuration parameters for the agent. - /// - /// - /// The environment configuration for the agent. - /// /// /// The unique identifier for the agent. /// @@ -87,6 +81,12 @@ public sealed partial class Agent /// /// Agent description for developers to quickly read and understand. /// + /// + /// Configuration parameters for the agent. + /// + /// + /// The environment configuration for the agent. + /// /// /// The tools available to the agent. /// @@ -94,20 +94,20 @@ public sealed partial class Agent [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Agent( - global::Google.Gemini.NextGen.AntigravityAgentConfig? agentConfig, - global::Google.Gemini.NextGen.OneOf? baseEnvironment, string? id, string? baseAgent, string? systemInstruction, string? description, + global::Google.Gemini.NextGen.AntigravityAgentConfig? agentConfig, + global::Google.Gemini.NextGen.OneOf? baseEnvironment, global::System.Collections.Generic.IList? tools) { - this.AgentConfig = agentConfig; - this.BaseEnvironment = baseEnvironment; this.Id = id; this.BaseAgent = baseAgent; this.SystemInstruction = systemInstruction; this.Description = description; + this.AgentConfig = agentConfig; + this.BaseEnvironment = baseEnvironment; this.Tools = tools; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentListResponse.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentListResponse.Json.g.cs deleted file mode 100644 index 2bceeadaf..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentListResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class AgentListResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.AgentListResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.AgentListResponse), - jsonSerializerContext) as global::Google.Gemini.NextGen.AgentListResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.AgentListResponse? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.AgentListResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.AgentListResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.AgentListResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentTool.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentTool.g.cs index 14d2d053f..6d1a96271 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentTool.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentTool.g.cs @@ -124,38 +124,38 @@ public bool TryPickGoogleSearch( /// A MCPServer is a server that can be called by the model to perform actions. /// #if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.MCPServer? MCPServer { get; init; } + public global::Google.Gemini.NextGen.McpServer? McpServer { get; init; } #else - public global::Google.Gemini.NextGen.MCPServer? MCPServer { get; } + public global::Google.Gemini.NextGen.McpServer? McpServer { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MCPServer))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(McpServer))] #endif - public bool IsMCPServer => MCPServer != null; + public bool IsMcpServer => McpServer != null; /// /// /// - public bool TryPickMCPServer( + public bool TryPickMcpServer( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Google.Gemini.NextGen.MCPServer? value) + out global::Google.Gemini.NextGen.McpServer? value) { - value = MCPServer; - return IsMCPServer; + value = McpServer; + return IsMcpServer; } /// /// /// - public global::Google.Gemini.NextGen.MCPServer PickMCPServer() => MCPServer is { } value + public global::Google.Gemini.NextGen.McpServer PickMcpServer() => McpServer is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'MCPServer' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'McpServer' but the value was {ToString()}."); /// /// A tool that can be used by the model to fetch URL context. @@ -265,25 +265,25 @@ public AgentTool(global::Google.Gemini.NextGen.GoogleSearch? value) /// /// /// - public static implicit operator AgentTool(global::Google.Gemini.NextGen.MCPServer value) => new AgentTool((global::Google.Gemini.NextGen.MCPServer?)value); + public static implicit operator AgentTool(global::Google.Gemini.NextGen.McpServer value) => new AgentTool((global::Google.Gemini.NextGen.McpServer?)value); /// /// /// - public static implicit operator global::Google.Gemini.NextGen.MCPServer?(AgentTool @this) => @this.MCPServer; + public static implicit operator global::Google.Gemini.NextGen.McpServer?(AgentTool @this) => @this.McpServer; /// /// /// - public AgentTool(global::Google.Gemini.NextGen.MCPServer? value) + public AgentTool(global::Google.Gemini.NextGen.McpServer? value) { - MCPServer = value; + McpServer = value; } /// /// /// - public static AgentTool FromMCPServer(global::Google.Gemini.NextGen.MCPServer? value) => new AgentTool(value); + public static AgentTool FromMcpServer(global::Google.Gemini.NextGen.McpServer? value) => new AgentTool(value); /// /// @@ -315,14 +315,14 @@ public AgentTool( global::Google.Gemini.NextGen.CodeExecution? codeExecution, global::Google.Gemini.NextGen.Function? function, global::Google.Gemini.NextGen.GoogleSearch? googleSearch, - global::Google.Gemini.NextGen.MCPServer? mCPServer, + global::Google.Gemini.NextGen.McpServer? mcpServer, global::Google.Gemini.NextGen.URLContext? uRLContext ) { CodeExecution = codeExecution; Function = function; GoogleSearch = googleSearch; - MCPServer = mCPServer; + McpServer = mcpServer; URLContext = uRLContext; } @@ -331,7 +331,7 @@ public AgentTool( /// public object? Object => URLContext as object ?? - MCPServer as object ?? + McpServer as object ?? GoogleSearch as object ?? Function as object ?? CodeExecution as object @@ -344,7 +344,7 @@ CodeExecution as object CodeExecution?.ToString() ?? Function?.ToString() ?? GoogleSearch?.ToString() ?? - MCPServer?.ToString() ?? + McpServer?.ToString() ?? URLContext?.ToString() ; @@ -353,7 +353,7 @@ CodeExecution as object /// public bool Validate() { - return IsCodeExecution && !IsFunction && !IsGoogleSearch && !IsMCPServer && !IsURLContext || !IsCodeExecution && IsFunction && !IsGoogleSearch && !IsMCPServer && !IsURLContext || !IsCodeExecution && !IsFunction && IsGoogleSearch && !IsMCPServer && !IsURLContext || !IsCodeExecution && !IsFunction && !IsGoogleSearch && IsMCPServer && !IsURLContext || !IsCodeExecution && !IsFunction && !IsGoogleSearch && !IsMCPServer && IsURLContext; + return IsCodeExecution && !IsFunction && !IsGoogleSearch && !IsMcpServer && !IsURLContext || !IsCodeExecution && IsFunction && !IsGoogleSearch && !IsMcpServer && !IsURLContext || !IsCodeExecution && !IsFunction && IsGoogleSearch && !IsMcpServer && !IsURLContext || !IsCodeExecution && !IsFunction && !IsGoogleSearch && IsMcpServer && !IsURLContext || !IsCodeExecution && !IsFunction && !IsGoogleSearch && !IsMcpServer && IsURLContext; } /// @@ -363,7 +363,7 @@ public bool Validate() global::System.Func? codeExecution = null, global::System.Func? function = null, global::System.Func? googleSearch = null, - global::System.Func? mCPServer = null, + global::System.Func? mcpServer = null, global::System.Func? uRLContext = null, bool validate = true) { @@ -384,9 +384,9 @@ public bool Validate() { return googleSearch(__value2); } - else if (MCPServer is { } __value3 && mCPServer != null) + else if (McpServer is { } __value3 && mcpServer != null) { - return mCPServer(__value3); + return mcpServer(__value3); } else if (URLContext is { } __value4 && uRLContext != null) { @@ -406,7 +406,7 @@ public void Match( global::System.Action? googleSearch = null, - global::System.Action? mCPServer = null, + global::System.Action? mcpServer = null, global::System.Action? uRLContext = null, bool validate = true) @@ -428,9 +428,9 @@ public void Match( { googleSearch?.Invoke(__value2); } - else if (MCPServer is { } __value3) + else if (McpServer is { } __value3) { - mCPServer?.Invoke(__value3); + mcpServer?.Invoke(__value3); } else if (URLContext is { } __value4) { @@ -445,7 +445,7 @@ public void Switch( global::System.Action? codeExecution = null, global::System.Action? function = null, global::System.Action? googleSearch = null, - global::System.Action? mCPServer = null, + global::System.Action? mcpServer = null, global::System.Action? uRLContext = null, bool validate = true) { @@ -466,9 +466,9 @@ public void Switch( { googleSearch?.Invoke(__value2); } - else if (MCPServer is { } __value3) + else if (McpServer is { } __value3) { - mCPServer?.Invoke(__value3); + mcpServer?.Invoke(__value3); } else if (URLContext is { } __value4) { @@ -489,8 +489,8 @@ public override int GetHashCode() typeof(global::Google.Gemini.NextGen.Function), GoogleSearch, typeof(global::Google.Gemini.NextGen.GoogleSearch), - MCPServer, - typeof(global::Google.Gemini.NextGen.MCPServer), + McpServer, + typeof(global::Google.Gemini.NextGen.McpServer), URLContext, typeof(global::Google.Gemini.NextGen.URLContext), }; @@ -512,7 +512,7 @@ public bool Equals(AgentTool other) global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeExecution, other.CodeExecution) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) && global::System.Collections.Generic.EqualityComparer.Default.Equals(GoogleSearch, other.GoogleSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MCPServer, other.MCPServer) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(McpServer, other.McpServer) && global::System.Collections.Generic.EqualityComparer.Default.Equals(URLContext, other.URLContext) ; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntry.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntry.Json.g.cs deleted file mode 100644 index 52c74c6cd..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntry.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class AllowlistEntry - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.AllowlistEntry? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.AllowlistEntry), - jsonSerializerContext) as global::Google.Gemini.NextGen.AllowlistEntry; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.AllowlistEntry? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.AllowlistEntry? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.AllowlistEntry), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.AllowlistEntry; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntryTransform.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntryTransform.Json.g.cs deleted file mode 100644 index 9d2fe8c7b..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntryTransform.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class AllowlistEntryTransform - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.AllowlistEntryTransform? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.AllowlistEntryTransform), - jsonSerializerContext) as global::Google.Gemini.NextGen.AllowlistEntryTransform; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.AllowlistEntryTransform? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.AllowlistEntryTransform? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.AllowlistEntryTransform), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.AllowlistEntryTransform; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntryTransform.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntryTransform.g.cs deleted file mode 100644 index 99a52d720..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntryTransform.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// A single header injection mapping, e.g., {"Authorization": "Bearer token"}. - /// - public sealed partial class AllowlistEntryTransform - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioContent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioContent.g.cs index 3292b160d..0c2286874 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioContent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioContent.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// An audio content block.
- /// Example: {"type":"audio","data":"BASE64_ENCODED_AUDIO","mime_type":"audio/wav"} + /// An audio content block. ///
public sealed partial class AudioContent { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioDelta.g.cs index a7ca6dbbf..8e073ad3c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioDelta.g.cs @@ -20,21 +20,21 @@ public sealed partial class AudioDelta /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public byte[]? Data { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.AudioDeltaMimeTypeJsonConverter))] + public global::Google.Gemini.NextGen.AudioDeltaMimeType? MimeType { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + public byte[]? Data { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.AudioDeltaMimeTypeJsonConverter))] - public global::Google.Gemini.NextGen.AudioDeltaMimeType? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// /// Deprecated. Use sample_rate instead. The value is ignored. @@ -65,9 +65,9 @@ public sealed partial class AudioDelta /// Initializes a new instance of the class. /// /// + /// /// /// - /// /// /// The sample rate of the audio. /// @@ -79,16 +79,16 @@ public sealed partial class AudioDelta #endif public AudioDelta( object type, + global::Google.Gemini.NextGen.AudioDeltaMimeType? mimeType, byte[]? data, string? uri, - global::Google.Gemini.NextGen.AudioDeltaMimeType? mimeType, int? sampleRate, int? channels) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.MimeType = mimeType; this.Data = data; this.Uri = uri; - this.MimeType = mimeType; this.SampleRate = sampleRate; this.Channels = channels; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioResponseFormat.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioResponseFormat.g.cs index 1dd3cd822..c5a304646 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioResponseFormat.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioResponseFormat.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Configuration for audio output format.
- /// Example: {"type":"audio","sample_rate":24000} + /// Configuration for audio output format. ///
public sealed partial class AudioResponseFormat { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallStep.g.cs index 8f5612475..190607652 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallStep.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Code execution call step.
- /// Example: {"type":"code_execution_call","arguments":{"code":"print(sum(range(1, 11)))","language":"python"},"id":"code_call_71021"} + /// Code execution call step. ///
public sealed partial class CodeExecutionCallStep { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionResultStep.g.cs index eaa231243..ef90e0aa1 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionResultStep.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Code execution result step.
- /// Example: {"type":"code_execution_result","call_id":"code_call_71021","result":"55\n"} + /// Code execution result step. ///
public sealed partial class CodeExecutionResultStep { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfig.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfig.Json.g.cs deleted file mode 100644 index 62a66552c..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfig.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class CodeMenderAgentConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.CodeMenderAgentConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.CodeMenderAgentConfig), - jsonSerializerContext) as global::Google.Gemini.NextGen.CodeMenderAgentConfig; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.CodeMenderAgentConfig? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.CodeMenderAgentConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.CodeMenderAgentConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.CodeMenderAgentConfig; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfig.g.cs deleted file mode 100644 index e43e3940c..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfig.g.cs +++ /dev/null @@ -1,108 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Configuration for the CodeMender agent. - /// - public sealed partial class CodeMenderAgentConfig - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - - /// - /// Request parameters specific to FIND sessions, used for discovering
- /// vulnerabilities in a codebase. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("find_request")] - public global::Google.Gemini.NextGen.FindRequest? FindRequest { get; set; } - - /// - /// Request parameters specific to FIX sessions, used for generating and
- /// validating security patches. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("fix_request")] - public global::Google.Gemini.NextGen.FixRequest? FixRequest { get; set; } - - /// - /// Parameter for grouping multiple interactions that belong to
- /// the same CodeMender session. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("session_id")] - public string? SessionId { get; set; } - - /// - /// The configuration of CodeMender sessions. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("session_config")] - public global::Google.Gemini.NextGen.SessionConfig? SessionConfig { get; set; } - - /// - /// The name of the model to use for the CodeMender agent. One
- /// CodeMender session will only use one model. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// Request parameters specific to FIND sessions, used for discovering
- /// vulnerabilities in a codebase. - /// - /// - /// Request parameters specific to FIX sessions, used for generating and
- /// validating security patches. - /// - /// - /// Parameter for grouping multiple interactions that belong to
- /// the same CodeMender session. - /// - /// - /// The configuration of CodeMender sessions. - /// - /// - /// The name of the model to use for the CodeMender agent. One
- /// CodeMender session will only use one model. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public CodeMenderAgentConfig( - object type, - global::Google.Gemini.NextGen.FindRequest? findRequest, - global::Google.Gemini.NextGen.FixRequest? fixRequest, - string? sessionId, - global::Google.Gemini.NextGen.SessionConfig? sessionConfig, - string? model) - { - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.FindRequest = findRequest; - this.FixRequest = fixRequest; - this.SessionId = sessionId; - this.SessionConfig = sessionConfig; - this.Model = model; - } - - /// - /// Initializes a new instance of the class. - /// - public CodeMenderAgentConfig() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfigType.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfigType.Json.g.cs deleted file mode 100644 index 2cdb55685..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfigType.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class CodeMenderAgentConfigType - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.CodeMenderAgentConfigType? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.CodeMenderAgentConfigType), - jsonSerializerContext) as global::Google.Gemini.NextGen.CodeMenderAgentConfigType; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.CodeMenderAgentConfigType? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.CodeMenderAgentConfigType? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.CodeMenderAgentConfigType), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.CodeMenderAgentConfigType; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Content.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Content.g.cs index d5a04e635..a7aeafae7 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Content.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Content.g.cs @@ -10,8 +10,7 @@ namespace Google.Gemini.NextGen public readonly partial struct Content : global::System.IEquatable { /// - /// An audio content block.
- /// Example: {"type":"audio","data":"BASE64_ENCODED_AUDIO","mime_type":"audio/wav"} + /// An audio content block. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.AudioContent? Audio { get; init; } @@ -48,8 +47,7 @@ public bool TryPickAudio( : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// - /// A document content block.
- /// Example: {"type":"document","data":"BASE64_ENCODED_DOCUMENT","mime_type":"application/pdf"} + /// A document content block. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.DocumentContent? Document { get; init; } @@ -86,8 +84,7 @@ public bool TryPickDocument( : throw new global::System.InvalidOperationException($"Expected union variant 'Document' but the value was {ToString()}."); /// - /// An image content block.
- /// Example: {"type":"image","data":"BASE64_ENCODED_IMAGE","mime_type":"image/png"} + /// An image content block. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.ImageContent? Image { get; init; } @@ -124,8 +121,7 @@ public bool TryPickImage( : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// - /// A text content block.
- /// Example: {"type":"text","text":"Hello, how are you?"} + /// A text content block. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.TextContent? Text { get; init; } @@ -162,8 +158,7 @@ public bool TryPickText( : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// - /// A video content block.
- /// Example: {"type":"video","uri":"https://www.youtube.com/watch?v=9hE5-98ZeCg"} + /// A video content block. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.VideoContent? Video { get; init; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateAgentInteraction.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateAgentInteraction.g.cs index 5c136dcb9..05abd1121 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateAgentInteraction.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateAgentInteraction.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen { /// - /// Interaction for generating the completion using agents. + /// Parameters for creating agent interactions /// public sealed partial class CreateAgentInteraction { @@ -18,36 +18,51 @@ public sealed partial class CreateAgentInteraction [global::System.Text.Json.Serialization.JsonRequired] public required global::Google.Gemini.NextGen.AgentOption Agent { get; set; } + /// + /// The input for the interaction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("input")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionsInputJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Google.Gemini.NextGen.InteractionsInput Input { get; set; } + /// /// Configuration parameters for the agent interaction. /// [global::System.Text.Json.Serialization.JsonPropertyName("agent_config")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? AgentConfig { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? AgentConfig { get; set; } /// - /// The input for the interaction. + /// Required. Output only. A unique identifier for the interaction completion.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionsInputJsonConverter))] - public global::Google.Gemini.NextGen.InteractionsInput? Input { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// - /// Enforces that the generated response is a JSON object that complies with
- /// the JSON schema specified in this field. + /// Required. Output only. The status of the interaction.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] - public global::Google.Gemini.NextGen.OneOf>? ResponseFormat { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatusJsonConverter))] + public global::Google.Gemini.NextGen.CreateAgentInteractionStatus? Status { get; set; } /// - /// The environment configuration for the interaction. Can be an object
- /// specifying remote environment sources or a string referencing an existing
- /// environment ID. + /// Required. Output only. The time at which the response was created in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("environment")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? Environment { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("created")] + public string? Created { get; set; } + + /// + /// Required. Output only. The time at which the response was last updated in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("updated")] + public string? Updated { get; set; } /// /// System instruction for the interaction. @@ -68,6 +83,14 @@ public sealed partial class CreateAgentInteraction [global::System.Obsolete("This property marked as deprecated.")] public global::System.Collections.Generic.IList? ResponseModalities { get; set; } + /// + /// Enforces that the generated response is a JSON object that complies with
+ /// the JSON schema specified in this field. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] + public global::Google.Gemini.NextGen.OneOf>? ResponseFormat { get; set; } + /// /// The mime type of the response. This is required if response_format is set. /// @@ -81,6 +104,23 @@ public sealed partial class CreateAgentInteraction [global::System.Text.Json.Serialization.JsonPropertyName("previous_interaction_id")] public string? PreviousInteractionId { get; set; } + /// + /// The environment configuration for the interaction. Can be an object
+ /// specifying remote environment sources or a string referencing an existing
+ /// environment ID. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("environment")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? Environment { get; set; } + + /// + /// Output only. The environment ID for the interaction. Only populated if environment
+ /// config is set in the request.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("environment_id")] + public string? EnvironmentId { get; set; } + /// /// /// @@ -111,19 +151,22 @@ public sealed partial class CreateAgentInteraction public global::System.Collections.Generic.Dictionary? Labels { get; set; } /// - /// Input only. Whether the interaction will be streamed. + /// Input only. Whether the interaction will be streamed.
+ /// Included only in requests ///
[global::System.Text.Json.Serialization.JsonPropertyName("stream")] public bool? Stream { get; set; } /// - /// Input only. Whether to store the response and request for later retrieval. + /// Input only. Whether to store the response and request for later retrieval.
+ /// Included only in requests ///
[global::System.Text.Json.Serialization.JsonPropertyName("store")] public bool? Store { get; set; } /// - /// Input only. Whether to run the model interaction in the background. + /// Input only. Whether to run the model interaction in the background.
+ /// Included only in requests ///
[global::System.Text.Json.Serialization.JsonPropertyName("background")] public bool? Background { get; set; } @@ -140,20 +183,29 @@ public sealed partial class CreateAgentInteraction /// /// The agent to interact with. /// + /// + /// The input for the interaction. + /// /// /// Configuration parameters for the agent interaction. /// - /// - /// The input for the interaction. + /// + /// Required. Output only. A unique identifier for the interaction completion.
+ /// Included only in responses /// - /// - /// Enforces that the generated response is a JSON object that complies with
- /// the JSON schema specified in this field. + /// + /// Required. Output only. The status of the interaction.
+ /// Included only in responses /// - /// - /// The environment configuration for the interaction. Can be an object
- /// specifying remote environment sources or a string referencing an existing
- /// environment ID. + /// + /// Required. Output only. The time at which the response was created in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses + /// + /// + /// Required. Output only. The time at which the response was last updated in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses /// /// /// System instruction for the interaction. @@ -161,9 +213,23 @@ public sealed partial class CreateAgentInteraction /// /// A list of tool declarations the model may call during interaction. /// + /// + /// Enforces that the generated response is a JSON object that complies with
+ /// the JSON schema specified in this field. + /// /// /// The ID of the previous interaction, if any. /// + /// + /// The environment configuration for the interaction. Can be an object
+ /// specifying remote environment sources or a string referencing an existing
+ /// environment ID. + /// + /// + /// Output only. The environment ID for the interaction. Only populated if environment
+ /// config is set in the request.
+ /// Included only in responses + /// /// /// /// Message for configuring webhook events for a request. @@ -179,26 +245,34 @@ public sealed partial class CreateAgentInteraction /// Label values are optional. Label keys must start with a letter. /// /// - /// Input only. Whether the interaction will be streamed. + /// Input only. Whether the interaction will be streamed.
+ /// Included only in requests /// /// - /// Input only. Whether to store the response and request for later retrieval. + /// Input only. Whether to store the response and request for later retrieval.
+ /// Included only in requests /// /// - /// Input only. Whether to run the model interaction in the background. + /// Input only. Whether to run the model interaction in the background.
+ /// Included only in requests /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateAgentInteraction( global::Google.Gemini.NextGen.AgentOption agent, - global::Google.Gemini.NextGen.OneOf? agentConfig, - global::Google.Gemini.NextGen.InteractionsInput? input, - global::Google.Gemini.NextGen.OneOf>? responseFormat, - global::Google.Gemini.NextGen.OneOf? environment, + global::Google.Gemini.NextGen.InteractionsInput input, + global::Google.Gemini.NextGen.OneOf? agentConfig, + string? id, + global::Google.Gemini.NextGen.CreateAgentInteractionStatus? status, + string? created, + string? updated, string? systemInstruction, global::System.Collections.Generic.IList? tools, + global::Google.Gemini.NextGen.OneOf>? responseFormat, string? previousInteractionId, + global::Google.Gemini.NextGen.OneOf? environment, + string? environmentId, global::Google.Gemini.NextGen.ServiceTier? serviceTier, global::Google.Gemini.NextGen.WebhookConfig? webhookConfig, global::System.Collections.Generic.IList? safetySettings, @@ -208,13 +282,18 @@ public CreateAgentInteraction( bool? background) { this.Agent = agent; - this.AgentConfig = agentConfig; this.Input = input; - this.ResponseFormat = responseFormat; - this.Environment = environment; + this.AgentConfig = agentConfig; + this.Id = id; + this.Status = status; + this.Created = created; + this.Updated = updated; this.SystemInstruction = systemInstruction; this.Tools = tools; + this.ResponseFormat = responseFormat; this.PreviousInteractionId = previousInteractionId; + this.Environment = environment; + this.EnvironmentId = environmentId; this.ServiceTier = serviceTier; this.WebhookConfig = webhookConfig; this.SafetySettings = safetySettings; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateAgentInteractionStatus.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateAgentInteractionStatus.g.cs new file mode 100644 index 000000000..31ec305b8 --- /dev/null +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateAgentInteractionStatus.g.cs @@ -0,0 +1,82 @@ + +#nullable enable + +namespace Google.Gemini.NextGen +{ + /// + /// Required. Output only. The status of the interaction.
+ /// Included only in responses + ///
+ public enum CreateAgentInteractionStatus + { + /// + /// + /// + BudgetExceeded, + /// + /// + /// + Cancelled, + /// + /// + /// + Completed, + /// + /// + /// + Failed, + /// + /// + /// + InProgress, + /// + /// + /// + Incomplete, + /// + /// + /// + RequiresAction, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateAgentInteractionStatusExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateAgentInteractionStatus value) + { + return value switch + { + CreateAgentInteractionStatus.BudgetExceeded => "budget_exceeded", + CreateAgentInteractionStatus.Cancelled => "cancelled", + CreateAgentInteractionStatus.Completed => "completed", + CreateAgentInteractionStatus.Failed => "failed", + CreateAgentInteractionStatus.InProgress => "in_progress", + CreateAgentInteractionStatus.Incomplete => "incomplete", + CreateAgentInteractionStatus.RequiresAction => "requires_action", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateAgentInteractionStatus? ToEnum(string value) + { + return value switch + { + "budget_exceeded" => CreateAgentInteractionStatus.BudgetExceeded, + "cancelled" => CreateAgentInteractionStatus.Cancelled, + "completed" => CreateAgentInteractionStatus.Completed, + "failed" => CreateAgentInteractionStatus.Failed, + "in_progress" => CreateAgentInteractionStatus.InProgress, + "incomplete" => CreateAgentInteractionStatus.Incomplete, + "requires_action" => CreateAgentInteractionStatus.RequiresAction, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateModelInteraction.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateModelInteraction.g.cs index 76ca2c002..0815cb31e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateModelInteraction.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateModelInteraction.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen { /// - /// Interaction for generating the completion using models. + /// Parameters for creating model interactions /// public sealed partial class CreateModelInteraction { @@ -18,70 +18,50 @@ public sealed partial class CreateModelInteraction [global::System.Text.Json.Serialization.JsonRequired] public required global::Google.Gemini.NextGen.Model Model { get; set; } - /// - /// Configuration parameters for model interactions. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("generation_config")] - public global::Google.Gemini.NextGen.GenerationConfig? GenerationConfig { get; set; } - /// /// The input for the interaction. /// [global::System.Text.Json.Serialization.JsonPropertyName("input")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionsInputJsonConverter))] - public global::Google.Gemini.NextGen.InteractionsInput? Input { get; set; } - - /// - /// Enforces that the generated response is a JSON object that complies with
- /// the JSON schema specified in this field. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] - public global::Google.Gemini.NextGen.OneOf>? ResponseFormat { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Google.Gemini.NextGen.InteractionsInput Input { get; set; } /// - /// The environment configuration for the interaction. Can be an object
- /// specifying remote environment sources or a string referencing an existing
- /// environment ID. + /// Configuration parameters for model interactions. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("environment")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? Environment { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("generation_config")] + public global::Google.Gemini.NextGen.GenerationConfig? GenerationConfig { get; set; } /// /// Required. Output only. A unique identifier for the interaction completion.
/// Included only in responses ///
- /// default! [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string Id { get; set; } = default!; + public string? Id { get; set; } /// /// Required. Output only. The status of the interaction.
/// Included only in responses ///
- /// default! [global::System.Text.Json.Serialization.JsonPropertyName("status")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.CreateModelInteractionStatusJsonConverter))] - public global::Google.Gemini.NextGen.CreateModelInteractionStatus Status { get; set; } = default!; + public global::Google.Gemini.NextGen.CreateModelInteractionStatus? Status { get; set; } /// /// Required. Output only. The time at which the response was created in ISO 8601 format
/// (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses ///
- /// default! [global::System.Text.Json.Serialization.JsonPropertyName("created")] - public string Created { get; set; } = default!; + public string? Created { get; set; } /// /// Required. Output only. The time at which the response was last updated in ISO 8601 format
/// (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses ///
- /// default! [global::System.Text.Json.Serialization.JsonPropertyName("updated")] - public string Updated { get; set; } = default!; + public string? Updated { get; set; } /// /// System instruction for the interaction. @@ -102,6 +82,14 @@ public sealed partial class CreateModelInteraction [global::System.Obsolete("This property marked as deprecated.")] public global::System.Collections.Generic.IList? ResponseModalities { get; set; } + /// + /// Enforces that the generated response is a JSON object that complies with
+ /// the JSON schema specified in this field. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] + public global::Google.Gemini.NextGen.OneOf>? ResponseFormat { get; set; } + /// /// The mime type of the response. This is required if response_format is set. /// @@ -115,6 +103,15 @@ public sealed partial class CreateModelInteraction [global::System.Text.Json.Serialization.JsonPropertyName("previous_interaction_id")] public string? PreviousInteractionId { get; set; } + /// + /// The environment configuration for the interaction. Can be an object
+ /// specifying remote environment sources or a string referencing an existing
+ /// environment ID. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("environment")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? Environment { get; set; } + /// /// Output only. The environment ID for the interaction. Only populated if environment
/// config is set in the request.
@@ -173,13 +170,6 @@ public sealed partial class CreateModelInteraction [global::System.Text.Json.Serialization.JsonPropertyName("background")] public bool? Background { get; set; } - /// - /// The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent} - /// - [global::System.Text.Json.Serialization.JsonPropertyName("cached_content")] - [global::System.Obsolete("This property marked as deprecated.")] - public string? CachedContent { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -192,20 +182,29 @@ public sealed partial class CreateModelInteraction /// /// The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details. /// + /// + /// The input for the interaction. + /// /// /// Configuration parameters for model interactions. /// - /// - /// The input for the interaction. + /// + /// Required. Output only. A unique identifier for the interaction completion.
+ /// Included only in responses /// - /// - /// Enforces that the generated response is a JSON object that complies with
- /// the JSON schema specified in this field. + /// + /// Required. Output only. The status of the interaction.
+ /// Included only in responses /// - /// - /// The environment configuration for the interaction. Can be an object
- /// specifying remote environment sources or a string referencing an existing
- /// environment ID. + /// + /// Required. Output only. The time at which the response was created in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses + /// + /// + /// Required. Output only. The time at which the response was last updated in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses /// /// /// System instruction for the interaction. @@ -213,9 +212,18 @@ public sealed partial class CreateModelInteraction /// /// A list of tool declarations the model may call during interaction. /// + /// + /// Enforces that the generated response is a JSON object that complies with
+ /// the JSON schema specified in this field. + /// /// /// The ID of the previous interaction, if any. /// + /// + /// The environment configuration for the interaction. Can be an object
+ /// specifying remote environment sources or a string referencing an existing
+ /// environment ID. + /// /// /// Output only. The environment ID for the interaction. Only populated if environment
/// config is set in the request.
@@ -247,36 +255,22 @@ public sealed partial class CreateModelInteraction /// Input only. Whether to run the model interaction in the background.
/// Included only in requests /// - /// - /// Required. Output only. A unique identifier for the interaction completion.
- /// Included only in responses - /// - /// - /// Required. Output only. The status of the interaction.
- /// Included only in responses - /// - /// - /// Required. Output only. The time at which the response was created in ISO 8601 format
- /// (YYYY-MM-DDThh:mm:ssZ).
- /// Included only in responses - /// - /// - /// Required. Output only. The time at which the response was last updated in ISO 8601 format
- /// (YYYY-MM-DDThh:mm:ssZ).
- /// Included only in responses - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateModelInteraction( global::Google.Gemini.NextGen.Model model, + global::Google.Gemini.NextGen.InteractionsInput input, global::Google.Gemini.NextGen.GenerationConfig? generationConfig, - global::Google.Gemini.NextGen.InteractionsInput? input, - global::Google.Gemini.NextGen.OneOf>? responseFormat, - global::Google.Gemini.NextGen.OneOf? environment, + string? id, + global::Google.Gemini.NextGen.CreateModelInteractionStatus? status, + string? created, + string? updated, string? systemInstruction, global::System.Collections.Generic.IList? tools, + global::Google.Gemini.NextGen.OneOf>? responseFormat, string? previousInteractionId, + global::Google.Gemini.NextGen.OneOf? environment, string? environmentId, global::Google.Gemini.NextGen.ServiceTier? serviceTier, global::Google.Gemini.NextGen.WebhookConfig? webhookConfig, @@ -284,24 +278,20 @@ public CreateModelInteraction( global::System.Collections.Generic.Dictionary? labels, bool? stream, bool? store, - bool? background, - string id = default!, - global::Google.Gemini.NextGen.CreateModelInteractionStatus status = default!, - string created = default!, - string updated = default!) + bool? background) { this.Model = model; - this.GenerationConfig = generationConfig; this.Input = input; - this.ResponseFormat = responseFormat; - this.Environment = environment; + this.GenerationConfig = generationConfig; this.Id = id; this.Status = status; this.Created = created; this.Updated = updated; this.SystemInstruction = systemInstruction; this.Tools = tools; + this.ResponseFormat = responseFormat; this.PreviousInteractionId = previousInteractionId; + this.Environment = environment; this.EnvironmentId = environmentId; this.ServiceTier = serviceTier; this.WebhookConfig = webhookConfig; @@ -319,17 +309,5 @@ public CreateModelInteraction() { } - /// - /// Creates a new from its single non-const required field, - /// hardcoding any const discriminator fields. - /// - public static CreateModelInteraction FromModel(global::Google.Gemini.NextGen.Model model) - { - return new CreateModelInteraction - { - Model = model, - }; - } - } } \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateModelInteractionStatus.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateModelInteractionStatus.g.cs index f21be7518..693fba15c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateModelInteractionStatus.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateModelInteractionStatus.g.cs @@ -36,10 +36,6 @@ public enum CreateModelInteractionStatus /// /// /// - Queued, - /// - /// - /// RequiresAction, } @@ -61,7 +57,6 @@ public static string ToValueString(this CreateModelInteractionStatus value) CreateModelInteractionStatus.Failed => "failed", CreateModelInteractionStatus.InProgress => "in_progress", CreateModelInteractionStatus.Incomplete => "incomplete", - CreateModelInteractionStatus.Queued => "queued", CreateModelInteractionStatus.RequiresAction => "requires_action", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -79,7 +74,6 @@ public static string ToValueString(this CreateModelInteractionStatus value) "failed" => CreateModelInteractionStatus.Failed, "in_progress" => CreateModelInteractionStatus.InProgress, "incomplete" => CreateModelInteractionStatus.Incomplete, - "queued" => CreateModelInteractionStatus.Queued, "requires_action" => CreateModelInteractionStatus.RequiresAction, _ => null, }; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialListResponse.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialListResponse.Json.g.cs deleted file mode 100644 index 0a171da1d..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialListResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class CredentialListResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.CredentialListResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.CredentialListResponse), - jsonSerializerContext) as global::Google.Gemini.NextGen.CredentialListResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.CredentialListResponse? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.CredentialListResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.CredentialListResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.CredentialListResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialUpdate.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialUpdateParams.Json.g.cs similarity index 91% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialUpdate.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialUpdateParams.Json.g.cs index 705bfe0c7..f4d436c31 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialUpdate.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialUpdateParams.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public readonly partial struct CredentialUpdate + public readonly partial struct CredentialUpdateParams { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.CredentialUpdate? FromJson( + public static global::Google.Gemini.NextGen.CredentialUpdateParams? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.CredentialUpdate), - jsonSerializerContext) as global::Google.Gemini.NextGen.CredentialUpdate?; + typeof(global::Google.Gemini.NextGen.CredentialUpdateParams), + jsonSerializerContext) as global::Google.Gemini.NextGen.CredentialUpdateParams?; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.CredentialUpdate? FromJson( + public static global::Google.Gemini.NextGen.CredentialUpdateParams? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.CredentialUpdate? FromJson( + public static global::Google.Gemini.NextGen.CredentialUpdateParams? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.CredentialUpdate), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.CredentialUpdate?; + typeof(global::Google.Gemini.NextGen.CredentialUpdateParams), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.CredentialUpdateParams?; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialUpdate.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialUpdateParams.g.cs similarity index 83% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialUpdate.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialUpdateParams.g.cs index e4bca9596..208b2009e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialUpdate.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialUpdateParams.g.cs @@ -7,7 +7,7 @@ namespace Google.Gemini.NextGen /// /// Represents the fields of a Credential that can be updated. /// - public readonly partial struct CredentialUpdate : global::System.IEquatable + public readonly partial struct CredentialUpdateParams : global::System.IEquatable { /// /// Configuration for updating environment variable credentials. @@ -122,17 +122,17 @@ public bool TryPickOAuth2Config( /// /// /// - public static implicit operator CredentialUpdate(global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig value) => new CredentialUpdate((global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig?)value); + public static implicit operator CredentialUpdateParams(global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig value) => new CredentialUpdateParams((global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig?)value); /// /// /// - public static implicit operator global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig?(CredentialUpdate @this) => @this.EnvironmentVariableConfig; + public static implicit operator global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig?(CredentialUpdateParams @this) => @this.EnvironmentVariableConfig; /// /// /// - public CredentialUpdate(global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig? value) + public CredentialUpdateParams(global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig? value) { EnvironmentVariableConfig = value; } @@ -140,22 +140,22 @@ public CredentialUpdate(global::Google.Gemini.NextGen.EnvironmentVariableUpdateC /// /// /// - public static CredentialUpdate FromEnvironmentVariableConfig(global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig? value) => new CredentialUpdate(value); + public static CredentialUpdateParams FromEnvironmentVariableConfig(global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig? value) => new CredentialUpdateParams(value); /// /// /// - public static implicit operator CredentialUpdate(global::Google.Gemini.NextGen.HttpBearerUpdateConfig value) => new CredentialUpdate((global::Google.Gemini.NextGen.HttpBearerUpdateConfig?)value); + public static implicit operator CredentialUpdateParams(global::Google.Gemini.NextGen.HttpBearerUpdateConfig value) => new CredentialUpdateParams((global::Google.Gemini.NextGen.HttpBearerUpdateConfig?)value); /// /// /// - public static implicit operator global::Google.Gemini.NextGen.HttpBearerUpdateConfig?(CredentialUpdate @this) => @this.HttpBearerConfig; + public static implicit operator global::Google.Gemini.NextGen.HttpBearerUpdateConfig?(CredentialUpdateParams @this) => @this.HttpBearerConfig; /// /// /// - public CredentialUpdate(global::Google.Gemini.NextGen.HttpBearerUpdateConfig? value) + public CredentialUpdateParams(global::Google.Gemini.NextGen.HttpBearerUpdateConfig? value) { HttpBearerConfig = value; } @@ -163,22 +163,22 @@ public CredentialUpdate(global::Google.Gemini.NextGen.HttpBearerUpdateConfig? va /// /// /// - public static CredentialUpdate FromHttpBearerConfig(global::Google.Gemini.NextGen.HttpBearerUpdateConfig? value) => new CredentialUpdate(value); + public static CredentialUpdateParams FromHttpBearerConfig(global::Google.Gemini.NextGen.HttpBearerUpdateConfig? value) => new CredentialUpdateParams(value); /// /// /// - public static implicit operator CredentialUpdate(global::Google.Gemini.NextGen.OAuth2UpdateConfig value) => new CredentialUpdate((global::Google.Gemini.NextGen.OAuth2UpdateConfig?)value); + public static implicit operator CredentialUpdateParams(global::Google.Gemini.NextGen.OAuth2UpdateConfig value) => new CredentialUpdateParams((global::Google.Gemini.NextGen.OAuth2UpdateConfig?)value); /// /// /// - public static implicit operator global::Google.Gemini.NextGen.OAuth2UpdateConfig?(CredentialUpdate @this) => @this.OAuth2Config; + public static implicit operator global::Google.Gemini.NextGen.OAuth2UpdateConfig?(CredentialUpdateParams @this) => @this.OAuth2Config; /// /// /// - public CredentialUpdate(global::Google.Gemini.NextGen.OAuth2UpdateConfig? value) + public CredentialUpdateParams(global::Google.Gemini.NextGen.OAuth2UpdateConfig? value) { OAuth2Config = value; } @@ -186,12 +186,12 @@ public CredentialUpdate(global::Google.Gemini.NextGen.OAuth2UpdateConfig? value) /// /// /// - public static CredentialUpdate FromOAuth2Config(global::Google.Gemini.NextGen.OAuth2UpdateConfig? value) => new CredentialUpdate(value); + public static CredentialUpdateParams FromOAuth2Config(global::Google.Gemini.NextGen.OAuth2UpdateConfig? value) => new CredentialUpdateParams(value); /// /// /// - public CredentialUpdate( + public CredentialUpdateParams( global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig? environmentVariableConfig, global::Google.Gemini.NextGen.HttpBearerUpdateConfig? httpBearerConfig, global::Google.Gemini.NextGen.OAuth2UpdateConfig? oAuth2Config @@ -342,7 +342,7 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(CredentialUpdate other) + public bool Equals(CredentialUpdateParams other) { return global::System.Collections.Generic.EqualityComparer.Default.Equals(EnvironmentVariableConfig, other.EnvironmentVariableConfig) && @@ -354,15 +354,15 @@ public bool Equals(CredentialUpdate other) /// /// /// - public static bool operator ==(CredentialUpdate obj1, CredentialUpdate obj2) + public static bool operator ==(CredentialUpdateParams obj1, CredentialUpdateParams obj2) { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); } /// /// /// - public static bool operator !=(CredentialUpdate obj1, CredentialUpdate obj2) + public static bool operator !=(CredentialUpdateParams obj1, CredentialUpdateParams obj2) { return !(obj1 == obj2); } @@ -372,7 +372,7 @@ public bool Equals(CredentialUpdate other) /// public override bool Equals(object? obj) { - return obj is CredentialUpdate o && Equals(o); + return obj is CredentialUpdateParams o && Equals(o); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DeepResearchAgentConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DeepResearchAgentConfig.g.cs index 3dfac5e80..c45be1067 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DeepResearchAgentConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DeepResearchAgentConfig.g.cs @@ -38,12 +38,6 @@ public sealed partial class DeepResearchAgentConfig [global::System.Text.Json.Serialization.JsonPropertyName("collaborative_planning")] public bool? CollaborativePlanning { get; set; } - /// - /// Enables bigquery tool for the Deep Research agent. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("enable_bigquery_tool")] - public bool? EnableBigqueryTool { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -64,9 +58,6 @@ public sealed partial class DeepResearchAgentConfig /// The agent will then proceed only if the user confirms the plan in the next
/// turn. /// - /// - /// Enables bigquery tool for the Deep Research agent. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -74,14 +65,12 @@ public DeepResearchAgentConfig( object type, global::Google.Gemini.NextGen.ThinkingSummaries? thinkingSummaries, global::Google.Gemini.NextGen.DeepResearchAgentConfigVisualization? visualization, - bool? collaborativePlanning, - bool? enableBigqueryTool) + bool? collaborativePlanning) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.ThinkingSummaries = thinkingSummaries; this.Visualization = visualization; this.CollaborativePlanning = collaborativePlanning; - this.EnableBigqueryTool = enableBigqueryTool; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentContent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentContent.g.cs index 563c62909..4629aaaa6 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentContent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentContent.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// A document content block.
- /// Example: {"type":"document","data":"BASE64_ENCODED_DOCUMENT","mime_type":"application/pdf"} + /// A document content block. ///
public sealed partial class DocumentContent { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentDelta.g.cs index 0f7a4f332..177ebe391 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentDelta.g.cs @@ -18,21 +18,21 @@ public sealed partial class DocumentDelta /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public byte[]? Data { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.DocumentDeltaMimeTypeJsonConverter))] + public global::Google.Gemini.NextGen.DocumentDeltaMimeType? MimeType { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + public byte[]? Data { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.DocumentDeltaMimeTypeJsonConverter))] - public global::Google.Gemini.NextGen.DocumentDeltaMimeType? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -44,22 +44,22 @@ public sealed partial class DocumentDelta /// Initializes a new instance of the class. /// /// + /// /// /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public DocumentDelta( object type, + global::Google.Gemini.NextGen.DocumentDeltaMimeType? mimeType, byte[]? data, - string? uri, - global::Google.Gemini.NextGen.DocumentDeltaMimeType? mimeType) + string? uri) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.MimeType = mimeType; this.Data = data; this.Uri = uri; - this.MimeType = mimeType; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TriggerCreateParams.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DynamicAgentConfig2.Json.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TriggerCreateParams.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DynamicAgentConfig2.Json.g.cs index 3dac87007..3e899331b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TriggerCreateParams.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DynamicAgentConfig2.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class TriggerCreateParams + public sealed partial class DynamicAgentConfig2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.TriggerCreateParams? FromJson( + public static global::Google.Gemini.NextGen.DynamicAgentConfig2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.TriggerCreateParams), - jsonSerializerContext) as global::Google.Gemini.NextGen.TriggerCreateParams; + typeof(global::Google.Gemini.NextGen.DynamicAgentConfig2), + jsonSerializerContext) as global::Google.Gemini.NextGen.DynamicAgentConfig2; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.TriggerCreateParams? FromJson( + public static global::Google.Gemini.NextGen.DynamicAgentConfig2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.TriggerCreateParams? FromJson( + public static global::Google.Gemini.NextGen.DynamicAgentConfig2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.TriggerCreateParams), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.TriggerCreateParams; + typeof(global::Google.Gemini.NextGen.DynamicAgentConfig2), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.DynamicAgentConfig2; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntryTransformItem.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DynamicAgentConfig2.g.cs similarity index 78% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntryTransformItem.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DynamicAgentConfig2.g.cs index a102b0b77..c32e4947e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntryTransformItem.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DynamicAgentConfig2.g.cs @@ -4,9 +4,9 @@ namespace Google.Gemini.NextGen { /// - /// A single header to inject. + /// For agents that are not supported statically in the API definition. /// - public sealed partial class AllowlistEntryTransformItem + public sealed partial class DynamicAgentConfig2 { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FixRequest.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EgressRule.Json.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FixRequest.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EgressRule.Json.g.cs index 5c062499b..1faf0ed35 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FixRequest.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EgressRule.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class FixRequest + public sealed partial class EgressRule { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.FixRequest? FromJson( + public static global::Google.Gemini.NextGen.EgressRule? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.FixRequest), - jsonSerializerContext) as global::Google.Gemini.NextGen.FixRequest; + typeof(global::Google.Gemini.NextGen.EgressRule), + jsonSerializerContext) as global::Google.Gemini.NextGen.EgressRule; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.FixRequest? FromJson( + public static global::Google.Gemini.NextGen.EgressRule? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.FixRequest? FromJson( + public static global::Google.Gemini.NextGen.EgressRule? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.FixRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.FixRequest; + typeof(global::Google.Gemini.NextGen.EgressRule), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.EgressRule; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntry.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EgressRule.g.cs similarity index 61% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntry.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EgressRule.g.cs index 61794efb4..530b9a747 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntry.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EgressRule.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// A single domain allowlist rule with optional header injection. /// - public sealed partial class AllowlistEntry + public sealed partial class EgressRule { /// /// Domain to allow outbound requests to. Supports wildcards (e.g.
@@ -17,11 +17,12 @@ public sealed partial class AllowlistEntry public required string Domain { get; set; } /// - /// Headers to inject on all outbound requests matching this domain. Accepts a single dict or a list of dicts. The egress proxy injects these automatically. + /// Headers to inject into requests matching this rule.
+ /// Key: header name (e.g., "Authorization").
+ /// Value: header value (e.g., "Bearer your-token"). ///
[global::System.Text.Json.Serialization.JsonPropertyName("transform")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>))] - public global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>? Transform { get; set; } + public global::System.Collections.Generic.Dictionary? Transform { get; set; } /// /// Optional. Reference to a server-managed Credential resource by ID. @@ -36,14 +37,16 @@ public sealed partial class AllowlistEntry public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Domain to allow outbound requests to. Supports wildcards (e.g.
/// '*.googleapis.com'). Use '*' to allow all domains. /// /// - /// Headers to inject on all outbound requests matching this domain. Accepts a single dict or a list of dicts. The egress proxy injects these automatically. + /// Headers to inject into requests matching this rule.
+ /// Key: header name (e.g., "Authorization").
+ /// Value: header value (e.g., "Bearer your-token"). /// /// /// Optional. Reference to a server-managed Credential resource by ID. @@ -51,9 +54,9 @@ public sealed partial class AllowlistEntry #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public AllowlistEntry( + public EgressRule( string domain, - global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>? transform, + global::System.Collections.Generic.Dictionary? transform, string? credential) { this.Domain = domain ?? throw new global::System.ArgumentNullException(nameof(domain)); @@ -62,9 +65,9 @@ public AllowlistEntry( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public AllowlistEntry() + public EgressRule() { } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStep.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EgressRuleTransform.Json.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStep.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EgressRuleTransform.Json.g.cs index aa96ce9e3..362fcca02 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStep.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EgressRuleTransform.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class RetrievalResultStep + public sealed partial class EgressRuleTransform { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.RetrievalResultStep? FromJson( + public static global::Google.Gemini.NextGen.EgressRuleTransform? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.RetrievalResultStep), - jsonSerializerContext) as global::Google.Gemini.NextGen.RetrievalResultStep; + typeof(global::Google.Gemini.NextGen.EgressRuleTransform), + jsonSerializerContext) as global::Google.Gemini.NextGen.EgressRuleTransform; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.RetrievalResultStep? FromJson( + public static global::Google.Gemini.NextGen.EgressRuleTransform? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.RetrievalResultStep? FromJson( + public static global::Google.Gemini.NextGen.EgressRuleTransform? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.RetrievalResultStep), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RetrievalResultStep; + typeof(global::Google.Gemini.NextGen.EgressRuleTransform), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.EgressRuleTransform; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentEnv.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EgressRuleTransform.g.cs similarity index 67% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentEnv.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EgressRuleTransform.g.cs index 09a208234..d49b7de08 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentEnv.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EgressRuleTransform.g.cs @@ -4,9 +4,11 @@ namespace Google.Gemini.NextGen { /// - /// Environment variables to set in the sandbox environment. + /// Headers to inject into requests matching this rule.
+ /// Key: header name (e.g., "Authorization").
+ /// Value: header value (e.g., "Bearer your-token"). ///
- public sealed partial class EnvironmentEnv + public sealed partial class EgressRuleTransform { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment2.g.cs deleted file mode 100644 index 2c00a8ffc..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment2.g.cs +++ /dev/null @@ -1,157 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// An execution environment for an agent. - /// - public sealed partial class Environment2 - { - /// - /// Required. Output only. The ID of the environment.
- /// Included only in responses - ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string Id { get; set; } = default!; - - /// - /// Network configuration for the environment. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("network")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? Network { get; set; } - - /// - /// Sources to be mounted into the environment. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sources")] - public global::System.Collections.Generic.IList? Sources { get; set; } - - /// - /// Output only. The time at which the environment was created in ISO 8601 format
- /// (YYYY-MM-DDThh:mm:ssZ).
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("created")] - public string? Created { get; set; } - - /// - /// Output only. The time at which the environment was last updated in ISO 8601 format
- /// (YYYY-MM-DDThh:mm:ssZ).
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updated")] - public string? Updated { get; set; } - - /// - /// Output only. The time at which the environment was last accessed in ISO 8601 format
- /// (YYYY-MM-DDThh:mm:ssZ).
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("last_accessed")] - public string? LastAccessed { get; set; } - - /// - /// Output only. The status of the environment container.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentStatusJsonConverter))] - public global::Google.Gemini.NextGen.EnvironmentStatus? Status { get; set; } - - /// - /// Output only. The number of files in the environment, output only.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("file_count")] - public string? FileCount { get; set; } - - /// - /// Output only. The total size of the environment files in bytes, output only.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("size_bytes")] - public string? SizeBytes { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Network configuration for the environment. - /// - /// - /// Sources to be mounted into the environment. - /// - /// - /// Output only. The time at which the environment was created in ISO 8601 format
- /// (YYYY-MM-DDThh:mm:ssZ).
- /// Included only in responses - /// - /// - /// Output only. The time at which the environment was last updated in ISO 8601 format
- /// (YYYY-MM-DDThh:mm:ssZ).
- /// Included only in responses - /// - /// - /// Output only. The time at which the environment was last accessed in ISO 8601 format
- /// (YYYY-MM-DDThh:mm:ssZ).
- /// Included only in responses - /// - /// - /// Output only. The status of the environment container.
- /// Included only in responses - /// - /// - /// Output only. The number of files in the environment, output only.
- /// Included only in responses - /// - /// - /// Output only. The total size of the environment files in bytes, output only.
- /// Included only in responses - /// - /// - /// Required. Output only. The ID of the environment.
- /// Included only in responses - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Environment2( - global::Google.Gemini.NextGen.OneOf? network, - global::System.Collections.Generic.IList? sources, - string? created, - string? updated, - string? lastAccessed, - global::Google.Gemini.NextGen.EnvironmentStatus? status, - string? fileCount, - string? sizeBytes, - string id = default!) - { - this.Id = id; - this.Network = network; - this.Sources = sources; - this.Created = created; - this.Updated = updated; - this.LastAccessed = lastAccessed; - this.Status = status; - this.FileCount = fileCount; - this.SizeBytes = sizeBytes; - } - - /// - /// Initializes a new instance of the class. - /// - public Environment2() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment3.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment3.g.cs index 1e5c98c90..502dbf28e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment3.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment3.g.cs @@ -4,42 +4,76 @@ namespace Google.Gemini.NextGen { /// - /// Configuration for a custom environment. + /// An execution environment for an agent. /// public sealed partial class Environment3 { /// - /// + /// Required. Output only. The ID of the environment.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string Id { get; set; } = default!; /// - /// Network configuration for the environment. + /// Sources to be mounted into the environment. /// - [global::System.Text.Json.Serialization.JsonPropertyName("network")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? Network { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sources")] + public global::System.Collections.Generic.IList? Sources { get; set; } /// - /// + /// Output only. The time at which the environment was created in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sources")] - public global::System.Collections.Generic.IList? Sources { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("created")] + public string? Created { get; set; } + + /// + /// Output only. The time at which the environment was last updated in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("updated")] + public string? Updated { get; set; } + + /// + /// Output only. The time at which the environment was last accessed in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("last_accessed")] + public string? LastAccessed { get; set; } + + /// + /// Output only. The status of the environment container.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentStatusJsonConverter))] + public global::Google.Gemini.NextGen.EnvironmentStatus? Status { get; set; } /// - /// Optional. The environment ID for the interaction. If specified, the request will
- /// update the existing environment instead of creating a new one. + /// Network configuration for the environment. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("environment_id")] - public string? EnvironmentId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("network")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? Network { get; set; } /// - /// Environment variables to set in the sandbox environment. + /// Output only. The number of files in the environment, output only.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("env")] - public object? Env { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("file_count")] + public string? FileCount { get; set; } + + /// + /// Output only. The total size of the environment files in bytes, output only.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("size_bytes")] + public string? SizeBytes { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -50,33 +84,66 @@ public sealed partial class Environment3 /// /// Initializes a new instance of the class. /// - /// + /// + /// Sources to be mounted into the environment. + /// + /// + /// Output only. The time at which the environment was created in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses + /// + /// + /// Output only. The time at which the environment was last updated in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses + /// + /// + /// Output only. The time at which the environment was last accessed in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses + /// + /// + /// Output only. The status of the environment container.
+ /// Included only in responses + /// /// /// Network configuration for the environment. /// - /// - /// - /// Optional. The environment ID for the interaction. If specified, the request will
- /// update the existing environment instead of creating a new one. + /// + /// Output only. The number of files in the environment, output only.
+ /// Included only in responses /// - /// - /// Environment variables to set in the sandbox environment. + /// + /// Output only. The total size of the environment files in bytes, output only.
+ /// Included only in responses + /// + /// + /// Required. Output only. The ID of the environment.
+ /// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Environment3( - object type, - global::Google.Gemini.NextGen.OneOf? network, global::System.Collections.Generic.IList? sources, - string? environmentId, - object? env) + string? created, + string? updated, + string? lastAccessed, + global::Google.Gemini.NextGen.EnvironmentStatus? status, + global::Google.Gemini.NextGen.OneOf? network, + string? fileCount, + string? sizeBytes, + string id = default!) { - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.Network = network; + this.Id = id; this.Sources = sources; - this.EnvironmentId = environmentId; - this.Env = env; + this.Created = created; + this.Updated = updated; + this.LastAccessed = lastAccessed; + this.Status = status; + this.Network = network; + this.FileCount = fileCount; + this.SizeBytes = sizeBytes; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment2.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfig.Json.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment2.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfig.Json.g.cs index 0645f07be..abaed6c38 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment2.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfig.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class Environment2 + public sealed partial class EnvironmentConfig { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.Environment2? FromJson( + public static global::Google.Gemini.NextGen.EnvironmentConfig? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.Environment2), - jsonSerializerContext) as global::Google.Gemini.NextGen.Environment2; + typeof(global::Google.Gemini.NextGen.EnvironmentConfig), + jsonSerializerContext) as global::Google.Gemini.NextGen.EnvironmentConfig; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.Environment2? FromJson( + public static global::Google.Gemini.NextGen.EnvironmentConfig? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.Environment2? FromJson( + public static global::Google.Gemini.NextGen.EnvironmentConfig? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.Environment2), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.Environment2; + typeof(global::Google.Gemini.NextGen.EnvironmentConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.EnvironmentConfig; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfig.g.cs new file mode 100644 index 000000000..6eddf8e64 --- /dev/null +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfig.g.cs @@ -0,0 +1,91 @@ + +#nullable enable + +namespace Google.Gemini.NextGen +{ + /// + /// Configuration for a custom environment. + /// + public sealed partial class EnvironmentConfig + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sources")] + public global::System.Collections.Generic.IList? Sources { get; set; } + + /// + /// Network configuration for the environment. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("network")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? Network { get; set; } + + /// + /// Optional. The environment ID for the interaction. If specified, the request will
+ /// update the existing environment instead of creating a new one. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("environment_id")] + public string? EnvironmentId { get; set; } + + /// + /// Environment variables to set in the sandbox environment. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("env")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, string>))] + public global::Google.Gemini.NextGen.OneOf, string>? Env { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// + /// Network configuration for the environment. + /// + /// + /// Optional. The environment ID for the interaction. If specified, the request will
+ /// update the existing environment instead of creating a new one. + /// + /// + /// Environment variables to set in the sandbox environment. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public EnvironmentConfig( + object type, + global::System.Collections.Generic.IList? sources, + global::Google.Gemini.NextGen.OneOf? network, + string? environmentId, + global::Google.Gemini.NextGen.OneOf, string>? env) + { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Sources = sources; + this.Network = network; + this.EnvironmentId = environmentId; + this.Env = env; + } + + /// + /// Initializes a new instance of the class. + /// + public EnvironmentConfig() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentEnv.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfigEnv.Json.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentEnv.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfigEnv.Json.g.cs index ad0739862..0a473aab2 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentEnv.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfigEnv.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class EnvironmentEnv + public sealed partial class EnvironmentConfigEnv { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.EnvironmentEnv? FromJson( + public static global::Google.Gemini.NextGen.EnvironmentConfigEnv? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.EnvironmentEnv), - jsonSerializerContext) as global::Google.Gemini.NextGen.EnvironmentEnv; + typeof(global::Google.Gemini.NextGen.EnvironmentConfigEnv), + jsonSerializerContext) as global::Google.Gemini.NextGen.EnvironmentConfigEnv; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.EnvironmentEnv? FromJson( + public static global::Google.Gemini.NextGen.EnvironmentConfigEnv? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.EnvironmentEnv? FromJson( + public static global::Google.Gemini.NextGen.EnvironmentConfigEnv? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.EnvironmentEnv), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.EnvironmentEnv; + typeof(global::Google.Gemini.NextGen.EnvironmentConfigEnv), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.EnvironmentConfigEnv; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RankingRankingConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfigEnv.g.cs similarity index 90% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RankingRankingConfig.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfigEnv.g.cs index d461efe32..4226ad38e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RankingRankingConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfigEnv.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// /// - public sealed partial class RankingRankingConfig + public sealed partial class EnvironmentConfigEnv { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetwork2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfigNetwork.g.cs similarity index 67% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetwork2.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfigNetwork.g.cs index 1e2c5cbcb..f504942c1 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetwork2.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfigNetwork.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// /// - public enum EnvironmentNetwork2 + public enum EnvironmentConfigNetwork { /// /// @@ -17,27 +17,27 @@ public enum EnvironmentNetwork2 /// /// Enum extensions to do fast conversions without the reflection. /// - public static class EnvironmentNetwork2Extensions + public static class EnvironmentConfigNetworkExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this EnvironmentNetwork2 value) + public static string ToValueString(this EnvironmentConfigNetwork value) { return value switch { - EnvironmentNetwork2.Disabled => "disabled", + EnvironmentConfigNetwork.Disabled => "disabled", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static EnvironmentNetwork2? ToEnum(string value) + public static EnvironmentConfigNetwork? ToEnum(string value) { return value switch { - "disabled" => EnvironmentNetwork2.Disabled, + "disabled" => EnvironmentConfigNetwork.Disabled, _ => null, }; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentType.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfigType.Json.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentType.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfigType.Json.g.cs index a73ef19a8..5176a217f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentType.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfigType.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class EnvironmentType + public sealed partial class EnvironmentConfigType { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.EnvironmentType? FromJson( + public static global::Google.Gemini.NextGen.EnvironmentConfigType? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.EnvironmentType), - jsonSerializerContext) as global::Google.Gemini.NextGen.EnvironmentType; + typeof(global::Google.Gemini.NextGen.EnvironmentConfigType), + jsonSerializerContext) as global::Google.Gemini.NextGen.EnvironmentConfigType; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.EnvironmentType? FromJson( + public static global::Google.Gemini.NextGen.EnvironmentConfigType? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.EnvironmentType? FromJson( + public static global::Google.Gemini.NextGen.EnvironmentConfigType? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.EnvironmentType), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.EnvironmentType; + typeof(global::Google.Gemini.NextGen.EnvironmentConfigType), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.EnvironmentConfigType; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStepType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfigType.g.cs similarity index 90% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStepType.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfigType.g.cs index 56a9759fa..fa462a8ae 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStepType.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentConfigType.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// /// - public sealed partial class RetrievalCallStepType + public sealed partial class EnvironmentConfigType { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlist.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlist.g.cs index c6ea660f7..acf650e51 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlist.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlist.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Network egress configuration for the environment.
- /// Example: {"allowlist":[{"domain":"github.com","transform":[{"Authorization":"Bearer your-token"}]},{"domain":"*.googleapis.com"}]} + /// Network egress configuration for the environment. ///
public sealed partial class EnvironmentNetworkEgressAllowlist { @@ -14,8 +13,8 @@ public sealed partial class EnvironmentNetworkEgressAllowlist /// to block all network egress. ///
[global::System.Text.Json.Serialization.JsonPropertyName("allowlist")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>))] - public global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>? Allowlist { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>))] + public global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>? Allowlist { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -34,7 +33,7 @@ public sealed partial class EnvironmentNetworkEgressAllowlist [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EnvironmentNetworkEgressAllowlist( - global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>? allowlist) + global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>? allowlist) { this.Allowlist = allowlist; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ErrorEvent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ErrorEvent.g.cs index dc8fc359c..45d4b148f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ErrorEvent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ErrorEvent.g.cs @@ -4,7 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Example: {"error":{"code":"not_found","message":"Failed to get completed interaction: Result not found."},"event_type":"error"} + /// /// public sealed partial class ErrorEvent { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfig.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfig.Json.g.cs deleted file mode 100644 index d73a60302..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfig.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class ExaAISearchConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.ExaAISearchConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.ExaAISearchConfig), - jsonSerializerContext) as global::Google.Gemini.NextGen.ExaAISearchConfig; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.ExaAISearchConfig? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.ExaAISearchConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.ExaAISearchConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.ExaAISearchConfig; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfig.g.cs deleted file mode 100644 index 996536fef..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfig.g.cs +++ /dev/null @@ -1,58 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Used to specify configuration for ExaAISearch. - /// - public sealed partial class ExaAISearchConfig - { - /// - /// Required. The API key for ExaAiSearch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("api_key")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string ApiKey { get; set; } - - /// - /// Optional. This field can be used to pass any parameter from the Exa.ai Search API. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("custom_config")] - public object? CustomConfig { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Required. The API key for ExaAiSearch. - /// - /// - /// Optional. This field can be used to pass any parameter from the Exa.ai Search API. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ExaAISearchConfig( - string apiKey, - object? customConfig) - { - this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey)); - this.CustomConfig = customConfig; - } - - /// - /// Initializes a new instance of the class. - /// - public ExaAISearchConfig() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig.Json.g.cs deleted file mode 100644 index 626975a57..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class ExaAISearchConfigCustomConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.ExaAISearchConfigCustomConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.ExaAISearchConfigCustomConfig), - jsonSerializerContext) as global::Google.Gemini.NextGen.ExaAISearchConfigCustomConfig; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.ExaAISearchConfigCustomConfig? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.ExaAISearchConfigCustomConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.ExaAISearchConfigCustomConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.ExaAISearchConfigCustomConfig; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig.g.cs deleted file mode 100644 index 1f1a178fe..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Optional. This field can be used to pass any parameter from the Exa.ai Search API. - /// - public sealed partial class ExaAISearchConfigCustomConfig - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig2.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig2.Json.g.cs deleted file mode 100644 index 3659019be..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class ExaAISearchConfigCustomConfig2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.ExaAISearchConfigCustomConfig2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.ExaAISearchConfigCustomConfig2), - jsonSerializerContext) as global::Google.Gemini.NextGen.ExaAISearchConfigCustomConfig2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.ExaAISearchConfigCustomConfig2? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.ExaAISearchConfigCustomConfig2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.ExaAISearchConfigCustomConfig2), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.ExaAISearchConfigCustomConfig2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig2.g.cs deleted file mode 100644 index 2d3aae908..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ExaAISearchConfigCustomConfig2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Properties of the object. - /// - public sealed partial class ExaAISearchConfigCustomConfig2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileContent.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileContent.Json.g.cs deleted file mode 100644 index 6ae45af2d..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileContent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class FileContent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.FileContent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.FileContent), - jsonSerializerContext) as global::Google.Gemini.NextGen.FileContent; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.FileContent? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.FileContent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.FileContent), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.FileContent; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileContent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileContent.g.cs deleted file mode 100644 index 5fab2a83e..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileContent.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Content of a single file in the codebase. - /// - public sealed partial class FileContent - { - /// - /// The relative path of the file from the project root. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("path")] - public string? Path { get; set; } - - /// - /// The UTF-8 encoded text content of the file. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public string? Content { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The relative path of the file from the project root. - /// - /// - /// The UTF-8 encoded text content of the file. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FileContent( - string? path, - string? content) - { - this.Path = path; - this.Content = content; - } - - /// - /// Initializes a new instance of the class. - /// - public FileContent() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchCallStep.g.cs index cb1ff5e99..2c6d7a24c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchCallStep.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// File Search call step.
- /// Example: {"type":"file_search_call","id":"file_call_88192"} + /// File Search call step. ///
public sealed partial class FileSearchCallStep { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchResultStep.g.cs index 4a3799f0d..48eff0b1b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchResultStep.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// File Search result step.
- /// Example: {"type":"file_search_result","call_id":"file_call_88192"} + /// File Search result step. ///
public sealed partial class FileSearchResultStep { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Filter.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Filter.Json.g.cs deleted file mode 100644 index 2d7f56a0e..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Filter.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class Filter - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.Filter? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.Filter), - jsonSerializerContext) as global::Google.Gemini.NextGen.Filter; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.Filter? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.Filter? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.Filter), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.Filter; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Filter.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Filter.g.cs deleted file mode 100644 index 0369f2faf..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Filter.g.cs +++ /dev/null @@ -1,72 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Config for filters. - /// - public sealed partial class Filter - { - /// - /// Optional. Only returns contexts with vector distance smaller than the
- /// threshold. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("vector_distance_threshold")] - public double? VectorDistanceThreshold { get; set; } - - /// - /// Optional. Only returns contexts with vector similarity larger than the
- /// threshold. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("vector_similarity_threshold")] - public double? VectorSimilarityThreshold { get; set; } - - /// - /// Optional. String for metadata filtering. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metadata_filter")] - public string? MetadataFilter { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Optional. Only returns contexts with vector distance smaller than the
- /// threshold. - /// - /// - /// Optional. Only returns contexts with vector similarity larger than the
- /// threshold. - /// - /// - /// Optional. String for metadata filtering. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Filter( - double? vectorDistanceThreshold, - double? vectorSimilarityThreshold, - string? metadataFilter) - { - this.VectorDistanceThreshold = vectorDistanceThreshold; - this.VectorSimilarityThreshold = vectorSimilarityThreshold; - this.MetadataFilter = metadataFilter; - } - - /// - /// Initializes a new instance of the class. - /// - public Filter() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequest.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequest.Json.g.cs deleted file mode 100644 index a52d9c1e9..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class FindRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.FindRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.FindRequest), - jsonSerializerContext) as global::Google.Gemini.NextGen.FindRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.FindRequest? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.FindRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.FindRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.FindRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequest.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequest.g.cs deleted file mode 100644 index 4b4344b7c..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequest.g.cs +++ /dev/null @@ -1,87 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Request parameters specific to FIND sessions, used for discovering
- /// vulnerabilities in a codebase. - ///
- public sealed partial class FindRequest - { - /// - /// A list of source files to provide as context for the scan. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("source_files")] - public global::System.Collections.Generic.IList? SourceFiles { get; set; } - - /// - /// The identifier of a specific finding to verify. This is primarily used in
- /// VERIFY mode to focus the agent's execution-based validation on a single
- /// vulnerability. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("finding_id")] - public string? FindingId { get; set; } - - /// - /// Additional context or custom instructions provided by the user to guide
- /// the vulnerability analysis. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// The mode of the find session. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.FindRequestModeJsonConverter))] - public global::Google.Gemini.NextGen.FindRequestMode? Mode { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A list of source files to provide as context for the scan. - /// - /// - /// The identifier of a specific finding to verify. This is primarily used in
- /// VERIFY mode to focus the agent's execution-based validation on a single
- /// vulnerability. - /// - /// - /// Additional context or custom instructions provided by the user to guide
- /// the vulnerability analysis. - /// - /// - /// The mode of the find session. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FindRequest( - global::System.Collections.Generic.IList? sourceFiles, - string? findingId, - string? description, - global::Google.Gemini.NextGen.FindRequestMode? mode) - { - this.SourceFiles = sourceFiles; - this.FindingId = findingId; - this.Description = description; - this.Mode = mode; - } - - /// - /// Initializes a new instance of the class. - /// - public FindRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequestMode.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequestMode.g.cs deleted file mode 100644 index 4fef5d36a..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequestMode.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// The mode of the find session. - /// - public enum FindRequestMode - { - /// - /// - /// - Scan, - /// - /// - /// - Verify, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class FindRequestModeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this FindRequestMode value) - { - return value switch - { - FindRequestMode.Scan => "scan", - FindRequestMode.Verify => "verify", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static FindRequestMode? ToEnum(string value) - { - return value switch - { - "scan" => FindRequestMode.Scan, - "verify" => FindRequestMode.Verify, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FixRequest.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FixRequest.g.cs deleted file mode 100644 index 9ffedb85b..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FixRequest.g.cs +++ /dev/null @@ -1,75 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Request parameters specific to FIX sessions, used for generating and
- /// validating security patches. - ///
- public sealed partial class FixRequest - { - /// - /// A list of source files providing context for the remediation. These files
- /// are typically the ones containing the identified vulnerability. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("source_files")] - public global::System.Collections.Generic.IList? SourceFiles { get; set; } - - /// - /// The identifier of the specific security finding to be remediated. This ID
- /// maps to a previously discovered vulnerability. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("finding_id")] - public string? FindingId { get; set; } - - /// - /// Additional context or custom instructions provided by the user to guide
- /// the patch generation process. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A list of source files providing context for the remediation. These files
- /// are typically the ones containing the identified vulnerability. - /// - /// - /// The identifier of the specific security finding to be remediated. This ID
- /// maps to a previously discovered vulnerability. - /// - /// - /// Additional context or custom instructions provided by the user to guide
- /// the patch generation process. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public FixRequest( - global::System.Collections.Generic.IList? sourceFiles, - string? findingId, - string? description) - { - this.SourceFiles = sourceFiles; - this.FindingId = findingId; - this.Description = description; - } - - /// - /// Initializes a new instance of the class. - /// - public FixRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionCallStep.g.cs index e475f795d..a9f165e8e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionCallStep.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// A function tool call step.
- /// Example: {"name":"get_weather","type":"function_call","arguments":{"location":"Boston, MA"},"id":"call_98231"} + /// A function tool call step. ///
public sealed partial class FunctionCallStep { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultStep.g.cs index 4ddb1bf91..fbcdf29ac 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultStep.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Result of a function tool call.
- /// Example: {"name":"get_weather","type":"function_result","call_id":"call_98231","result":[{"type":"text","text":"{\u0022weather\u0022:\u0022sunny\u0022}"}]} + /// Result of a function tool call. ///
public sealed partial class FunctionResultStep { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GenerationConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GenerationConfig.g.cs index 0db3dfc4c..af987d465 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GenerationConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GenerationConfig.g.cs @@ -10,13 +10,6 @@ namespace Google.Gemini.NextGen ///
public sealed partial class GenerationConfig { - /// - /// The tool choice configuration. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? ToolChoice { get; set; } - /// /// Controls the randomness of the output. /// @@ -43,6 +36,13 @@ public sealed partial class GenerationConfig [global::System.Text.Json.Serialization.JsonPropertyName("stop_sequences")] public global::System.Collections.Generic.IList? StopSequences { get; set; } + /// + /// The tool choice configuration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? ToolChoice { get; set; } + /// /// /// @@ -83,11 +83,11 @@ public sealed partial class GenerationConfig public global::Google.Gemini.NextGen.TranscriptionConfig? TranscriptionConfig { get; set; } /// - /// Optional. Speech and multi-speaker configuration. + /// Speech and multi-speaker configuration. /// - [global::System.Text.Json.Serialization.JsonPropertyName("speech_config")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] - public global::Google.Gemini.NextGen.OneOf>? SpeechConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("structured_speech_config")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] + public global::Google.Gemini.NextGen.OneOf>? StructuredSpeechConfig { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -98,15 +98,15 @@ public sealed partial class GenerationConfig /// /// Initializes a new instance of the class. /// - /// - /// The tool choice configuration. - /// /// /// Seed used in decoding for reproducibility. /// /// /// A list of character sequences that will stop output interaction. /// + /// + /// The tool choice configuration. + /// /// /// /// @@ -118,32 +118,32 @@ public sealed partial class GenerationConfig /// /// Configuration for speech recognition (transcription). /// - /// - /// Optional. Speech and multi-speaker configuration. + /// + /// Speech and multi-speaker configuration. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerationConfig( - global::Google.Gemini.NextGen.OneOf? toolChoice, int? seed, global::System.Collections.Generic.IList? stopSequences, + global::Google.Gemini.NextGen.OneOf? toolChoice, global::Google.Gemini.NextGen.ThinkingLevel? thinkingLevel, global::Google.Gemini.NextGen.ThinkingSummaries? thinkingSummaries, int? maxOutputTokens, global::Google.Gemini.NextGen.VideoConfig? videoConfig, global::Google.Gemini.NextGen.TranscriptionConfig? transcriptionConfig, - global::Google.Gemini.NextGen.OneOf>? speechConfig) + global::Google.Gemini.NextGen.OneOf>? structuredSpeechConfig) { - this.ToolChoice = toolChoice; this.Seed = seed; this.StopSequences = stopSequences; + this.ToolChoice = toolChoice; this.ThinkingLevel = thinkingLevel; this.ThinkingSummaries = thinkingSummaries; this.MaxOutputTokens = maxOutputTokens; this.VideoConfig = videoConfig; this.TranscriptionConfig = transcriptionConfig; - this.SpeechConfig = speechConfig; + this.StructuredSpeechConfig = structuredSpeechConfig; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GetInteractionRequest.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GetInteractionRequest.Json.g.cs deleted file mode 100644 index 2f4500310..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GetInteractionRequest.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class GetInteractionRequest - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.GetInteractionRequest? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.GetInteractionRequest), - jsonSerializerContext) as global::Google.Gemini.NextGen.GetInteractionRequest; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.GetInteractionRequest? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.GetInteractionRequest? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.GetInteractionRequest), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.GetInteractionRequest; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GetInteractionRequest.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GetInteractionRequest.g.cs deleted file mode 100644 index 73d96744d..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GetInteractionRequest.g.cs +++ /dev/null @@ -1,82 +0,0 @@ - -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Request for InteractionService.GetInteraction. - /// - public sealed partial class GetInteractionRequest - { - /// - /// Required. The name of the interaction to retrieve.
- /// Format: interactions/{interaction} - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - - /// - /// If true, streams the interaction events as Server-Sent Events. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("stream")] - public bool? Stream { get; set; } - - /// - /// If set, resumes the interaction stream from the chunk after the event
- /// marked by the event id. Can only be used if `stream` is true. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("last_event_id")] - public string? LastEventId { get; set; } - - /// - /// If true, includes the input in the response. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("include_input")] - [global::System.Obsolete("This property marked as deprecated.")] - public bool? IncludeInput { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Required. The name of the interaction to retrieve.
- /// Format: interactions/{interaction} - /// - /// - /// If true, streams the interaction events as Server-Sent Events. - /// - /// - /// If set, resumes the interaction stream from the chunk after the event
- /// marked by the event id. Can only be used if `stream` is true. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public GetInteractionRequest( - string name, - bool? stream, - string? lastEventId) - { - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); - this.Stream = stream; - this.LastEventId = lastEventId; - } - - /// - /// Initializes a new instance of the class. - /// - public GetInteractionRequest() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsCallStep.g.cs index 65ada2262..3c4a4fdb8 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsCallStep.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Google Maps call step.
- /// Example: {"type":"google_maps_call","arguments":{"queries":["parks near San Francisco"]},"id":"maps_call_39201"} + /// Google Maps call step. ///
public sealed partial class GoogleMapsCallStep { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultStep.g.cs index 3513335b7..ca0a643f8 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultStep.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Google Maps result step.
- /// Example: {"type":"google_maps_result","call_id":"maps_call_39201","result":[{"places":[{"url":"https://maps.google.com/?cid=12345","name":"Golden Gate Park","place_id":"ChIJIQBpAG2ahYAR9R7bNdTLg8M"}]}]} + /// Google Maps result step. ///
public sealed partial class GoogleMapsResultStep { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallStep.g.cs index 8e8de8e69..85339af61 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallStep.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Google Search call step.
- /// Example: {"type":"google_search_call","arguments":{"queries":["Who won the men\u0027s 100m in Paris 2024?"]},"id":"search_call_19201"} + /// Google Search call step. ///
public sealed partial class GoogleSearchCallStep { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallStepSearchType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallStepSearchType.g.cs index bd799eab3..7f4e1e040 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallStepSearchType.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallStepSearchType.g.cs @@ -8,10 +8,6 @@ namespace Google.Gemini.NextGen ///
public enum GoogleSearchCallStepSearchType { - /// - /// - /// - EnterpriseWebSearch, /// /// /// @@ -34,7 +30,6 @@ public static string ToValueString(this GoogleSearchCallStepSearchType value) { return value switch { - GoogleSearchCallStepSearchType.EnterpriseWebSearch => "enterprise_web_search", GoogleSearchCallStepSearchType.ImageSearch => "image_search", GoogleSearchCallStepSearchType.WebSearch => "web_search", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -47,7 +42,6 @@ public static string ToValueString(this GoogleSearchCallStepSearchType value) { return value switch { - "enterprise_web_search" => GoogleSearchCallStepSearchType.EnterpriseWebSearch, "image_search" => GoogleSearchCallStepSearchType.ImageSearch, "web_search" => GoogleSearchCallStepSearchType.WebSearch, _ => null, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchResultStep.g.cs index 9aff8259c..53c5f2fda 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchResultStep.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Google Search result step.
- /// Example: {"type":"google_search_result","call_id":"search_call_19201","result":[{"search_suggestions":"\u003Cdiv class=\u0022container\u0022\u003E...\u003C/div\u003E"}]} + /// Google Search result step. ///
public sealed partial class GoogleSearchResultStep { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchSearchType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchSearchType.g.cs index 55525590a..1fca80ce3 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchSearchType.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchSearchType.g.cs @@ -8,10 +8,6 @@ namespace Google.Gemini.NextGen ///
public enum GoogleSearchSearchType { - /// - /// - /// - EnterpriseWebSearch, /// /// /// @@ -34,7 +30,6 @@ public static string ToValueString(this GoogleSearchSearchType value) { return value switch { - GoogleSearchSearchType.EnterpriseWebSearch => "enterprise_web_search", GoogleSearchSearchType.ImageSearch => "image_search", GoogleSearchSearchType.WebSearch => "web_search", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -47,7 +42,6 @@ public static string ToValueString(this GoogleSearchSearchType value) { return value switch { - "enterprise_web_search" => GoogleSearchSearchType.EnterpriseWebSearch, "image_search" => GoogleSearchSearchType.ImageSearch, "web_search" => GoogleSearchSearchType.WebSearch, _ => null, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GroundingToolCountType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GroundingToolCountType.g.cs index 73a98a9f7..2b9544de2 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GroundingToolCountType.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GroundingToolCountType.g.cs @@ -16,10 +16,6 @@ public enum GroundingToolCountType /// ///
GoogleSearch, - /// - /// - /// - Retrieval, } /// @@ -36,7 +32,6 @@ public static string ToValueString(this GroundingToolCountType value) { GroundingToolCountType.GoogleMaps => "google_maps", GroundingToolCountType.GoogleSearch => "google_search", - GroundingToolCountType.Retrieval => "retrieval", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -49,7 +44,6 @@ public static string ToValueString(this GroundingToolCountType value) { "google_maps" => GroundingToolCountType.GoogleMaps, "google_search" => GroundingToolCountType.GoogleSearch, - "retrieval" => GroundingToolCountType.Retrieval, _ => null, }; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HarmCategory.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HarmCategory.g.cs index 2b082d457..80ad781db 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HarmCategory.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HarmCategory.g.cs @@ -8,10 +8,6 @@ namespace Google.Gemini.NextGen /// public enum HarmCategory { - /// - /// - /// - CivicIntegrity, /// /// /// @@ -27,22 +23,6 @@ public enum HarmCategory /// /// /// - ImageDangerousContent, - /// - /// - /// - ImageHarassment, - /// - /// - /// - ImageHate, - /// - /// - /// - ImageSexuallyExplicit, - /// - /// - /// Jailbreak, /// /// @@ -62,14 +42,9 @@ public static string ToValueString(this HarmCategory value) { return value switch { - HarmCategory.CivicIntegrity => "civic_integrity", HarmCategory.DangerousContent => "dangerous_content", HarmCategory.Harassment => "harassment", HarmCategory.HateSpeech => "hate_speech", - HarmCategory.ImageDangerousContent => "image_dangerous_content", - HarmCategory.ImageHarassment => "image_harassment", - HarmCategory.ImageHate => "image_hate", - HarmCategory.ImageSexuallyExplicit => "image_sexually_explicit", HarmCategory.Jailbreak => "jailbreak", HarmCategory.SexuallyExplicit => "sexually_explicit", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -82,14 +57,9 @@ public static string ToValueString(this HarmCategory value) { return value switch { - "civic_integrity" => HarmCategory.CivicIntegrity, "dangerous_content" => HarmCategory.DangerousContent, "harassment" => HarmCategory.Harassment, "hate_speech" => HarmCategory.HateSpeech, - "image_dangerous_content" => HarmCategory.ImageDangerousContent, - "image_harassment" => HarmCategory.ImageHarassment, - "image_hate" => HarmCategory.ImageHate, - "image_sexually_explicit" => HarmCategory.ImageSexuallyExplicit, "jailbreak" => HarmCategory.Jailbreak, "sexually_explicit" => HarmCategory.SexuallyExplicit, _ => null, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HybridSearch.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HybridSearch.Json.g.cs deleted file mode 100644 index 8d2c8e4c9..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HybridSearch.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class HybridSearch - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.HybridSearch? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.HybridSearch), - jsonSerializerContext) as global::Google.Gemini.NextGen.HybridSearch; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.HybridSearch? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.HybridSearch? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.HybridSearch), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.HybridSearch; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HybridSearch.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HybridSearch.g.cs deleted file mode 100644 index 1bf4405fc..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HybridSearch.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Config for Hybrid Search. - /// - public sealed partial class HybridSearch - { - /// - /// Optional. Alpha value controls the weight between dense and sparse vector search
- /// results. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("alpha")] - public float? Alpha { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Optional. Alpha value controls the weight between dense and sparse vector search
- /// results. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public HybridSearch( - float? alpha) - { - this.Alpha = alpha; - } - - /// - /// Initializes a new instance of the class. - /// - public HybridSearch() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageConfig.g.cs index 0ce0f231f..5c9ec552e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageConfig.g.cs @@ -16,18 +16,16 @@ public sealed partial class ImageConfig /// reference images provided. ///
[global::System.Text.Json.Serialization.JsonPropertyName("aspect_ratio")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ImageConfigAspectRatioJsonConverter))] [global::System.Obsolete("This property marked as deprecated.")] - public global::Google.Gemini.NextGen.ImageConfigAspectRatio? AspectRatio { get; set; } + public string? AspectRatio { get; set; } /// /// Specifies the size of generated images. Supported values are `1K`, `2K`,
/// `4K`. If not specified, the model will use default value `1K`. ///
[global::System.Text.Json.Serialization.JsonPropertyName("image_size")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ImageConfigImageSizeJsonConverter))] [global::System.Obsolete("This property marked as deprecated.")] - public global::Google.Gemini.NextGen.ImageConfigImageSize? ImageSize { get; set; } + public string? ImageSize { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -52,8 +50,8 @@ public sealed partial class ImageConfig [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ImageConfig( - global::Google.Gemini.NextGen.ImageConfigAspectRatio? aspectRatio, - global::Google.Gemini.NextGen.ImageConfigImageSize? imageSize) + string? aspectRatio, + string? imageSize) { this.AspectRatio = aspectRatio; this.ImageSize = imageSize; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageConfigAspectRatio.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageConfigAspectRatio.g.cs deleted file mode 100644 index d2f8a572f..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageConfigAspectRatio.g.cs +++ /dev/null @@ -1,126 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// The aspect ratio of the image to generate. Supported aspect ratios: 1:1,
- /// 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9.
- /// If not specified, the model will choose a default aspect ratio based on any
- /// reference images provided. - ///
- public enum ImageConfigAspectRatio - { - /// - /// 3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9. - /// - x16_9, - /// - /// 1:1, - /// - x1_1, - /// - /// - /// - x1_4, - /// - /// - /// - x1_8, - /// - /// 3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9. - /// - x21_9, - /// - /// 3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9. - /// - x2_3, - /// - /// 3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9. - /// - x3_2, - /// - /// 3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9. - /// - x3_4, - /// - /// - /// - x4_1, - /// - /// 3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9. - /// - x4_3, - /// - /// - /// - x4_5, - /// - /// - /// - x5_4, - /// - /// - /// - x8_1, - /// - /// 3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9. - /// - x9_16, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ImageConfigAspectRatioExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ImageConfigAspectRatio value) - { - return value switch - { - ImageConfigAspectRatio.x16_9 => "16:9", - ImageConfigAspectRatio.x1_1 => "1:1", - ImageConfigAspectRatio.x1_4 => "1:4", - ImageConfigAspectRatio.x1_8 => "1:8", - ImageConfigAspectRatio.x21_9 => "21:9", - ImageConfigAspectRatio.x2_3 => "2:3", - ImageConfigAspectRatio.x3_2 => "3:2", - ImageConfigAspectRatio.x3_4 => "3:4", - ImageConfigAspectRatio.x4_1 => "4:1", - ImageConfigAspectRatio.x4_3 => "4:3", - ImageConfigAspectRatio.x4_5 => "4:5", - ImageConfigAspectRatio.x5_4 => "5:4", - ImageConfigAspectRatio.x8_1 => "8:1", - ImageConfigAspectRatio.x9_16 => "9:16", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ImageConfigAspectRatio? ToEnum(string value) - { - return value switch - { - "16:9" => ImageConfigAspectRatio.x16_9, - "1:1" => ImageConfigAspectRatio.x1_1, - "1:4" => ImageConfigAspectRatio.x1_4, - "1:8" => ImageConfigAspectRatio.x1_8, - "21:9" => ImageConfigAspectRatio.x21_9, - "2:3" => ImageConfigAspectRatio.x2_3, - "3:2" => ImageConfigAspectRatio.x3_2, - "3:4" => ImageConfigAspectRatio.x3_4, - "4:1" => ImageConfigAspectRatio.x4_1, - "4:3" => ImageConfigAspectRatio.x4_3, - "4:5" => ImageConfigAspectRatio.x4_5, - "5:4" => ImageConfigAspectRatio.x5_4, - "8:1" => ImageConfigAspectRatio.x8_1, - "9:16" => ImageConfigAspectRatio.x9_16, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageConfigImageSize.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageConfigImageSize.g.cs deleted file mode 100644 index 30efa042f..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageConfigImageSize.g.cs +++ /dev/null @@ -1,64 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Specifies the size of generated images. Supported values are `1K`, `2K`,
- /// `4K`. If not specified, the model will use default value `1K`. - ///
- public enum ImageConfigImageSize - { - /// - /// - /// - x1k, - /// - /// - /// - x2k, - /// - /// - /// - x4k, - /// - /// - /// - x512, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ImageConfigImageSizeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ImageConfigImageSize value) - { - return value switch - { - ImageConfigImageSize.x1k => "1K", - ImageConfigImageSize.x2k => "2K", - ImageConfigImageSize.x4k => "4K", - ImageConfigImageSize.x512 => "512", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ImageConfigImageSize? ToEnum(string value) - { - return value switch - { - "1K" => ImageConfigImageSize.x1k, - "2K" => ImageConfigImageSize.x2k, - "4K" => ImageConfigImageSize.x4k, - "512" => ImageConfigImageSize.x512, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageContent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageContent.g.cs index 3cd36d625..3968ec6df 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageContent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageContent.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// An image content block.
- /// Example: {"type":"image","data":"BASE64_ENCODED_IMAGE","mime_type":"image/png"} + /// An image content block. ///
public sealed partial class ImageContent { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageDelta.g.cs index 39c213b13..7ca6b0afa 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageDelta.g.cs @@ -18,21 +18,21 @@ public sealed partial class ImageDelta /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public byte[]? Data { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ImageDeltaMimeTypeJsonConverter))] + public global::Google.Gemini.NextGen.ImageDeltaMimeType? MimeType { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + public byte[]? Data { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ImageDeltaMimeTypeJsonConverter))] - public global::Google.Gemini.NextGen.ImageDeltaMimeType? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// /// @@ -51,24 +51,24 @@ public sealed partial class ImageDelta /// Initializes a new instance of the class. /// /// + /// /// /// - /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ImageDelta( object type, + global::Google.Gemini.NextGen.ImageDeltaMimeType? mimeType, byte[]? data, string? uri, - global::Google.Gemini.NextGen.ImageDeltaMimeType? mimeType, global::Google.Gemini.NextGen.MediaResolution? resolution) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.MimeType = mimeType; this.Data = data; this.Uri = uri; - this.MimeType = mimeType; this.Resolution = resolution; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageResponseFormat.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageResponseFormat.g.cs index d26152d6f..f91e5898a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageResponseFormat.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageResponseFormat.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Configuration for image output format.
- /// Example: {"type":"image","aspect_ratio":"16:9","image_size":"1K","mime_type":"image/jpeg"} + /// Configuration for image output format. ///
public sealed partial class ImageResponseFormat { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Interaction.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Interaction.g.cs index d20c29cc3..8a564003b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Interaction.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Interaction.g.cs @@ -67,30 +67,6 @@ public sealed partial class Interaction [global::System.Text.Json.Serialization.JsonPropertyName("generation_config")] public global::Google.Gemini.NextGen.GenerationConfig? GenerationConfig { get; set; } - /// - /// The input for the interaction. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionsInputJsonConverter))] - public global::Google.Gemini.NextGen.InteractionsInput? Input { get; set; } - - /// - /// Enforces that the generated response is a JSON object that complies with
- /// the JSON schema specified in this field. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] - public global::Google.Gemini.NextGen.OneOf>? ResponseFormat { get; set; } - - /// - /// The environment configuration for the interaction. Can be an object
- /// specifying remote environment sources or a string referencing an existing
- /// environment ID. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("environment")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? Environment { get; set; } - /// /// System instruction for the interaction. /// @@ -104,8 +80,14 @@ public sealed partial class Interaction public global::System.Collections.Generic.IList? Tools { get; set; } /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// The input for the interaction. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("input")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionsInputJsonConverter))] + public global::Google.Gemini.NextGen.InteractionsInput? Input { get; set; } + + /// + /// Statistics on the interaction request's token usage. /// [global::System.Text.Json.Serialization.JsonPropertyName("usage")] public global::Google.Gemini.NextGen.Usage? Usage { get; set; } @@ -117,6 +99,14 @@ public sealed partial class Interaction [global::System.Obsolete("This property marked as deprecated.")] public global::System.Collections.Generic.IList? ResponseModalities { get; set; } + /// + /// Enforces that the generated response is a JSON object that complies with
+ /// the JSON schema specified in this field. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] + public global::Google.Gemini.NextGen.OneOf>? ResponseFormat { get; set; } + /// /// The mime type of the response. This is required if response_format is set. /// @@ -130,6 +120,15 @@ public sealed partial class Interaction [global::System.Text.Json.Serialization.JsonPropertyName("previous_interaction_id")] public string? PreviousInteractionId { get; set; } + /// + /// The environment configuration for the interaction. Can be an object
+ /// specifying remote environment sources or a string referencing an existing
+ /// environment ID. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("environment")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? Environment { get; set; } + /// /// Output only. The environment ID for the interaction. Only populated if environment
/// config is set in the request.
@@ -206,15 +205,14 @@ public sealed partial class Interaction /// Configuration parameters for the agent interaction. ///
[global::System.Text.Json.Serialization.JsonPropertyName("agent_config")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? AgentConfig { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? AgentConfig { get; set; } /// - /// The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent} + /// Max total tokens for the agent run. /// - [global::System.Text.Json.Serialization.JsonPropertyName("cached_content")] - [global::System.Obsolete("This property marked as deprecated.")] - public string? CachedContent { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("max_total_tokens")] + public string? MaxTotalTokens { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -231,31 +229,30 @@ public sealed partial class Interaction /// /// Configuration parameters for model interactions. /// + /// + /// System instruction for the interaction. + /// + /// + /// A list of tool declarations the model may call during interaction. + /// /// /// The input for the interaction. /// + /// + /// Statistics on the interaction request's token usage. + /// /// /// Enforces that the generated response is a JSON object that complies with
/// the JSON schema specified in this field. /// + /// + /// The ID of the previous interaction, if any. + /// /// /// The environment configuration for the interaction. Can be an object
/// specifying remote environment sources or a string referencing an existing
/// environment ID. /// - /// - /// System instruction for the interaction. - /// - /// - /// A list of tool declarations the model may call during interaction. - /// - /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses - /// - /// - /// The ID of the previous interaction, if any. - /// /// /// Output only. The environment ID for the interaction. Only populated if environment
/// config is set in the request.
@@ -297,6 +294,9 @@ public sealed partial class Interaction /// /// Configuration parameters for the agent interaction. /// + /// + /// Max total tokens for the agent run. + /// /// /// Required. Output only. A unique identifier for the interaction completion.
/// Included only in responses @@ -325,13 +325,13 @@ public sealed partial class Interaction public Interaction( global::Google.Gemini.NextGen.Model? model, global::Google.Gemini.NextGen.GenerationConfig? generationConfig, - global::Google.Gemini.NextGen.InteractionsInput? input, - global::Google.Gemini.NextGen.OneOf>? responseFormat, - global::Google.Gemini.NextGen.OneOf? environment, string? systemInstruction, global::System.Collections.Generic.IList? tools, + global::Google.Gemini.NextGen.InteractionsInput? input, global::Google.Gemini.NextGen.Usage? usage, + global::Google.Gemini.NextGen.OneOf>? responseFormat, string? previousInteractionId, + global::Google.Gemini.NextGen.OneOf? environment, string? environmentId, global::Google.Gemini.NextGen.ServiceTier? serviceTier, global::Google.Gemini.NextGen.WebhookConfig? webhookConfig, @@ -342,7 +342,8 @@ public Interaction( bool? store, bool? background, global::Google.Gemini.NextGen.AgentOption? agent, - global::Google.Gemini.NextGen.OneOf? agentConfig, + global::Google.Gemini.NextGen.OneOf? agentConfig, + string? maxTotalTokens, string id = default!, global::Google.Gemini.NextGen.InteractionStatus status = default!, string created = default!, @@ -356,13 +357,13 @@ public Interaction( this.Steps = steps; this.Model = model; this.GenerationConfig = generationConfig; - this.Input = input; - this.ResponseFormat = responseFormat; - this.Environment = environment; this.SystemInstruction = systemInstruction; this.Tools = tools; + this.Input = input; this.Usage = usage; + this.ResponseFormat = responseFormat; this.PreviousInteractionId = previousInteractionId; + this.Environment = environment; this.EnvironmentId = environmentId; this.ServiceTier = serviceTier; this.WebhookConfig = webhookConfig; @@ -374,6 +375,7 @@ public Interaction( this.Background = background; this.Agent = agent; this.AgentConfig = agentConfig; + this.MaxTotalTokens = maxTotalTokens; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCompletedEvent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCompletedEvent.g.cs index 46c1512f0..39301c08e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCompletedEvent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCompletedEvent.g.cs @@ -6,8 +6,7 @@ namespace Google.Gemini.NextGen /// /// Signals that the Interaction completed. Sent when the Interaction receives
/// Complete/Cancel or naturally terminates. No more input can be sent to the
- /// Interaction after this.
- /// Example: {"event_id":"evt_123","event_type":"interaction.completed","interaction":{"created":"2025-12-04T15:01:45Z","id":"v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg","model":"gemini-3.6-flash","status":"completed","updated":"2025-12-04T15:01:45Z"}} + /// Interaction after this. ///
public sealed partial class InteractionCompletedEvent { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCreatedEvent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCreatedEvent.g.cs index a9118b02f..d3e5e5c9c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCreatedEvent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCreatedEvent.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Server response confirming that a new interaction was created.
- /// Example: {"event_id":"evt_123","event_type":"interaction.created","interaction":{"created":"2025-12-04T15:01:45Z","id":"v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg","model":"gemini-3.6-flash","status":"in_progress","updated":"2025-12-04T15:01:45Z"}} + /// Server response confirming that a new interaction was created. ///
public sealed partial class InteractionCreatedEvent { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSSEEvent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSSEEvent.g.cs index a134049d5..1ccb0d67a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSSEEvent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSSEEvent.g.cs @@ -10,7 +10,7 @@ namespace Google.Gemini.NextGen public readonly partial struct InteractionSSEEvent : global::System.IEquatable { /// - /// Example: {"error":{"code":"not_found","message":"Failed to get completed interaction: Result not found."},"event_type":"error"} + /// /// #if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.ErrorEvent? Error { get; init; } @@ -49,8 +49,7 @@ public bool TryPickError( /// /// Signals that the Interaction completed. Sent when the Interaction receives
/// Complete/Cancel or naturally terminates. No more input can be sent to the
- /// Interaction after this.
- /// Example: {"event_id":"evt_123","event_type":"interaction.completed","interaction":{"created":"2025-12-04T15:01:45Z","id":"v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg","model":"gemini-3.6-flash","status":"completed","updated":"2025-12-04T15:01:45Z"}} + /// Interaction after this. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.InteractionCompletedEvent? Completed { get; init; } @@ -87,8 +86,7 @@ public bool TryPickCompleted( : throw new global::System.InvalidOperationException($"Expected union variant 'Completed' but the value was {ToString()}."); /// - /// Server response confirming that a new interaction was created.
- /// Example: {"event_id":"evt_123","event_type":"interaction.created","interaction":{"created":"2025-12-04T15:01:45Z","id":"v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg","model":"gemini-3.6-flash","status":"in_progress","updated":"2025-12-04T15:01:45Z"}} + /// Server response confirming that a new interaction was created. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.InteractionCreatedEvent? Created { get; init; } @@ -125,7 +123,7 @@ public bool TryPickCreated( : throw new global::System.InvalidOperationException($"Expected union variant 'Created' but the value was {ToString()}."); /// - /// Example: {"event_type":"interaction.status_update","interaction_id":"v1_ChdTMjQ0YWJ5TUF1TzcxZThQdjRpcnFRcxIXUzI0NGFieU1BdU83MWU4UHY0aXJxUXM","status":"in_progress"} + /// /// #if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.InteractionStatusUpdate? StatusUpdate { get; init; } @@ -162,7 +160,7 @@ public bool TryPickStatusUpdate( : throw new global::System.InvalidOperationException($"Expected union variant 'StatusUpdate' but the value was {ToString()}."); /// - /// Example: {"delta":{"type":"text","text":"Hello"},"event_type":"step.delta","index":0} + /// /// #if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.StepDelta? StepDelta { get; init; } @@ -199,7 +197,7 @@ public bool TryPickStepDelta( : throw new global::System.InvalidOperationException($"Expected union variant 'StepDelta' but the value was {ToString()}."); /// - /// Example: {"event_type":"step.start","index":0,"step":{"type":"model_output"}} + /// /// #if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.StepStart? StepStart { get; init; } @@ -236,7 +234,7 @@ public bool TryPickStepStart( : throw new global::System.InvalidOperationException($"Expected union variant 'StepStart' but the value was {ToString()}."); /// - /// Example: {"event_type":"step.stop","index":0} + /// /// #if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.StepStop? StepStop { get; init; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSseEventInteraction.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSseEventInteraction.g.cs index ec5300080..c751c7eea 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSseEventInteraction.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSseEventInteraction.g.cs @@ -48,8 +48,7 @@ public sealed partial class InteractionSseEventInteraction public string? Updated { get; set; } /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// Statistics on the interaction request's token usage. ///
[global::System.Text.Json.Serialization.JsonPropertyName("usage")] public global::Google.Gemini.NextGen.Usage? Usage { get; set; } @@ -75,8 +74,10 @@ public sealed partial class InteractionSseEventInteraction public string? Agent { get; set; } /// - /// Output only. Opaque token to resume a long decode when status is incomplete.
- /// Included only in responses + /// Opaque token to resume a long decode.
+ /// Output: set when status is INCOMPLETE and decoding can be resumed.
+ /// Input: pass the latest token back unchanged in CreateInteraction to
+ /// continue decoding. ///
[global::System.Text.Json.Serialization.JsonPropertyName("continuation_token")] public byte[]? ContinuationToken { get; set; } @@ -109,8 +110,7 @@ public sealed partial class InteractionSseEventInteraction /// Included only in responses /// /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// Statistics on the interaction request's token usage. /// /// /// @@ -121,8 +121,10 @@ public sealed partial class InteractionSseEventInteraction /// The agent to interact with. /// /// - /// Output only. Opaque token to resume a long decode when status is incomplete.
- /// Included only in responses + /// Opaque token to resume a long decode.
+ /// Output: set when status is INCOMPLETE and decoding can be resumed.
+ /// Input: pass the latest token back unchanged in CreateInteraction to
+ /// continue decoding. /// /// /// Output only. The resource type.
diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSseEventInteractionStatus.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSseEventInteractionStatus.g.cs index 21b17fe3a..2ba8bd7a7 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSseEventInteractionStatus.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSseEventInteractionStatus.g.cs @@ -9,10 +9,6 @@ namespace Google.Gemini.NextGen ///
public enum InteractionSseEventInteractionStatus { - /// - /// - /// - BudgetExceeded, /// /// /// @@ -36,10 +32,6 @@ public enum InteractionSseEventInteractionStatus /// /// /// - Queued, - /// - /// - /// RequiresAction, } @@ -55,13 +47,11 @@ public static string ToValueString(this InteractionSseEventInteractionStatus val { return value switch { - InteractionSseEventInteractionStatus.BudgetExceeded => "budget_exceeded", InteractionSseEventInteractionStatus.Cancelled => "cancelled", InteractionSseEventInteractionStatus.Completed => "completed", InteractionSseEventInteractionStatus.Failed => "failed", InteractionSseEventInteractionStatus.InProgress => "in_progress", InteractionSseEventInteractionStatus.Incomplete => "incomplete", - InteractionSseEventInteractionStatus.Queued => "queued", InteractionSseEventInteractionStatus.RequiresAction => "requires_action", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -73,13 +63,11 @@ public static string ToValueString(this InteractionSseEventInteractionStatus val { return value switch { - "budget_exceeded" => InteractionSseEventInteractionStatus.BudgetExceeded, "cancelled" => InteractionSseEventInteractionStatus.Cancelled, "completed" => InteractionSseEventInteractionStatus.Completed, "failed" => InteractionSseEventInteractionStatus.Failed, "in_progress" => InteractionSseEventInteractionStatus.InProgress, "incomplete" => InteractionSseEventInteractionStatus.Incomplete, - "queued" => InteractionSseEventInteractionStatus.Queued, "requires_action" => InteractionSseEventInteractionStatus.RequiresAction, _ => null, }; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatus.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatus.g.cs index 4f0898149..886cb22c8 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatus.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatus.g.cs @@ -36,10 +36,6 @@ public enum InteractionStatus /// /// /// - Queued, - /// - /// - /// RequiresAction, } @@ -61,7 +57,6 @@ public static string ToValueString(this InteractionStatus value) InteractionStatus.Failed => "failed", InteractionStatus.InProgress => "in_progress", InteractionStatus.Incomplete => "incomplete", - InteractionStatus.Queued => "queued", InteractionStatus.RequiresAction => "requires_action", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -79,7 +74,6 @@ public static string ToValueString(this InteractionStatus value) "failed" => InteractionStatus.Failed, "in_progress" => InteractionStatus.InProgress, "incomplete" => InteractionStatus.Incomplete, - "queued" => InteractionStatus.Queued, "requires_action" => InteractionStatus.RequiresAction, _ => null, }; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatusUpdate.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatusUpdate.g.cs index a1a32a38a..94b580323 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatusUpdate.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatusUpdate.g.cs @@ -4,7 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Example: {"event_type":"interaction.status_update","interaction_id":"v1_ChdTMjQ0YWJ5TUF1TzcxZThQdjRpcnFRcxIXUzI0NGFieU1BdU83MWU4UHY0aXJxUXM","status":"in_progress"} + /// /// public sealed partial class InteractionStatusUpdate { @@ -38,8 +38,7 @@ public sealed partial class InteractionStatusUpdate public byte[]? ContinuationToken { get; set; } /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// Statistics on the interaction request's token usage. ///
[global::System.Text.Json.Serialization.JsonPropertyName("usage")] public global::Google.Gemini.NextGen.Usage? Usage { get; set; } @@ -68,8 +67,7 @@ public sealed partial class InteractionStatusUpdate /// latest checkpoint after a disconnected stream. /// /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// Statistics on the interaction request's token usage. /// /// /// The event_id token to be used to resume the interaction stream, from
diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatusUpdateStatus.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatusUpdateStatus.g.cs index 81c0c2b0c..64dc5a6ef 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatusUpdateStatus.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatusUpdateStatus.g.cs @@ -35,10 +35,6 @@ public enum InteractionStatusUpdateStatus /// /// /// - Queued, - /// - /// - /// RequiresAction, } @@ -60,7 +56,6 @@ public static string ToValueString(this InteractionStatusUpdateStatus value) InteractionStatusUpdateStatus.Failed => "failed", InteractionStatusUpdateStatus.InProgress => "in_progress", InteractionStatusUpdateStatus.Incomplete => "incomplete", - InteractionStatusUpdateStatus.Queued => "queued", InteractionStatusUpdateStatus.RequiresAction => "requires_action", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -78,7 +73,6 @@ public static string ToValueString(this InteractionStatusUpdateStatus value) "failed" => InteractionStatusUpdateStatus.Failed, "in_progress" => InteractionStatusUpdateStatus.InProgress, "incomplete" => InteractionStatusUpdateStatus.Incomplete, - "queued" => InteractionStatusUpdateStatus.Queued, "requires_action" => InteractionStatusUpdateStatus.RequiresAction, _ => null, }; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagRetrievalConfig.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListAgentsResponse.Json.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagRetrievalConfig.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListAgentsResponse.Json.g.cs index d17e1d0be..bd5db3e29 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagRetrievalConfig.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListAgentsResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class RagRetrievalConfig + public sealed partial class ListAgentsResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.RagRetrievalConfig? FromJson( + public static global::Google.Gemini.NextGen.ListAgentsResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.RagRetrievalConfig), - jsonSerializerContext) as global::Google.Gemini.NextGen.RagRetrievalConfig; + typeof(global::Google.Gemini.NextGen.ListAgentsResponse), + jsonSerializerContext) as global::Google.Gemini.NextGen.ListAgentsResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.RagRetrievalConfig? FromJson( + public static global::Google.Gemini.NextGen.ListAgentsResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.RagRetrievalConfig? FromJson( + public static global::Google.Gemini.NextGen.ListAgentsResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.RagRetrievalConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RagRetrievalConfig; + typeof(global::Google.Gemini.NextGen.ListAgentsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.ListAgentsResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentListResponse.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListAgentsResponse.g.cs similarity index 84% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentListResponse.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListAgentsResponse.g.cs index 39c3964b5..543dec459 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentListResponse.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListAgentsResponse.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// /// - public sealed partial class AgentListResponse + public sealed partial class ListAgentsResponse { /// /// The list of agents. @@ -27,7 +27,7 @@ public sealed partial class AgentListResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The list of agents. @@ -38,7 +38,7 @@ public sealed partial class AgentListResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public AgentListResponse( + public ListAgentsResponse( global::System.Collections.Generic.IList? agents, string? nextPageToken) { @@ -47,9 +47,9 @@ public AgentListResponse( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public AgentListResponse() + public ListAgentsResponse() { } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStepType.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListCredentialsResponse.Json.g.cs similarity index 87% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStepType.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListCredentialsResponse.Json.g.cs index 03cf92d08..efeb652f7 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStepType.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListCredentialsResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class RetrievalResultStepType + public sealed partial class ListCredentialsResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.RetrievalResultStepType? FromJson( + public static global::Google.Gemini.NextGen.ListCredentialsResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.RetrievalResultStepType), - jsonSerializerContext) as global::Google.Gemini.NextGen.RetrievalResultStepType; + typeof(global::Google.Gemini.NextGen.ListCredentialsResponse), + jsonSerializerContext) as global::Google.Gemini.NextGen.ListCredentialsResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.RetrievalResultStepType? FromJson( + public static global::Google.Gemini.NextGen.ListCredentialsResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.RetrievalResultStepType? FromJson( + public static global::Google.Gemini.NextGen.ListCredentialsResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.RetrievalResultStepType), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RetrievalResultStepType; + typeof(global::Google.Gemini.NextGen.ListCredentialsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.ListCredentialsResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialListResponse.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListCredentialsResponse.g.cs similarity index 82% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialListResponse.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListCredentialsResponse.g.cs index f26250307..338992f57 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialListResponse.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListCredentialsResponse.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// /// - public sealed partial class CredentialListResponse + public sealed partial class ListCredentialsResponse { /// /// @@ -27,14 +27,14 @@ public sealed partial class CredentialListResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public CredentialListResponse( + public ListCredentialsResponse( global::System.Collections.Generic.IList? credentials, string? nextPageToken) { @@ -43,9 +43,9 @@ public CredentialListResponse( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public CredentialListResponse() + public ListCredentialsResponse() { } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListEnvironmentsResponse.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListEnvironmentsResponse.g.cs index 379920772..c87d7f909 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListEnvironmentsResponse.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListEnvironmentsResponse.g.cs @@ -12,7 +12,7 @@ public sealed partial class ListEnvironmentsResponse /// Environments belonging to the provided project. /// [global::System.Text.Json.Serialization.JsonPropertyName("environments")] - public global::System.Collections.Generic.IList? Environments { get; set; } + public global::System.Collections.Generic.IList? Environments { get; set; } /// /// Pagination token. @@ -39,7 +39,7 @@ public sealed partial class ListEnvironmentsResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListEnvironmentsResponse( - global::System.Collections.Generic.IList? environments, + global::System.Collections.Generic.IList? environments, string? nextPageToken) { this.Environments = environments; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDelta.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListWebhooksResponse.Json.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDelta.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListWebhooksResponse.Json.g.cs index 808c03ace..cedae531a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDelta.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListWebhooksResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class RetrievalResultDelta + public sealed partial class ListWebhooksResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.RetrievalResultDelta? FromJson( + public static global::Google.Gemini.NextGen.ListWebhooksResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.RetrievalResultDelta), - jsonSerializerContext) as global::Google.Gemini.NextGen.RetrievalResultDelta; + typeof(global::Google.Gemini.NextGen.ListWebhooksResponse), + jsonSerializerContext) as global::Google.Gemini.NextGen.ListWebhooksResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.RetrievalResultDelta? FromJson( + public static global::Google.Gemini.NextGen.ListWebhooksResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.RetrievalResultDelta? FromJson( + public static global::Google.Gemini.NextGen.ListWebhooksResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.RetrievalResultDelta), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RetrievalResultDelta; + typeof(global::Google.Gemini.NextGen.ListWebhooksResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.ListWebhooksResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookListResponse.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListWebhooksResponse.g.cs similarity index 86% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookListResponse.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListWebhooksResponse.g.cs index 0c0d477af..821ea1905 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookListResponse.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListWebhooksResponse.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// Response message for WebhookService.ListWebhooks. /// - public sealed partial class WebhookListResponse + public sealed partial class ListWebhooksResponse { /// /// The webhooks. @@ -28,7 +28,7 @@ public sealed partial class WebhookListResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The webhooks. @@ -40,7 +40,7 @@ public sealed partial class WebhookListResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public WebhookListResponse( + public ListWebhooksResponse( global::System.Collections.Generic.IList? webhooks, string? nextPageToken) { @@ -49,9 +49,9 @@ public WebhookListResponse( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public WebhookListResponse() + public ListWebhooksResponse() { } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServer.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServer.Json.g.cs deleted file mode 100644 index b9d9fae29..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServer.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class MCPServer - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.MCPServer? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.MCPServer), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServer; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.MCPServer? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.MCPServer? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServer), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServer; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDeltaResult.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDeltaResult.g.cs deleted file mode 100644 index 28255e479..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDeltaResult.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// - /// - public sealed partial class MCPServerToolResultDeltaResult - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDeltaType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDeltaType.g.cs deleted file mode 100644 index d0c2d87e2..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDeltaType.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// - /// - public sealed partial class MCPServerToolResultDeltaType - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStepResult.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStepResult.g.cs deleted file mode 100644 index 23e43ffdd..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStepResult.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// - /// - public sealed partial class MCPServerToolResultStepResult - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStepType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStepType.g.cs deleted file mode 100644 index bae72456a..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStepType.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// - /// - public sealed partial class MCPServerToolResultStepType - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerType.g.cs deleted file mode 100644 index 9dc7a812c..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerType.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// - /// - public sealed partial class MCPServerType - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Retrieval.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServer.Json.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Retrieval.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServer.Json.g.cs index e4e99ad4a..9b69c3e32 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Retrieval.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServer.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class Retrieval + public sealed partial class McpServer { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.Retrieval? FromJson( + public static global::Google.Gemini.NextGen.McpServer? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.Retrieval), - jsonSerializerContext) as global::Google.Gemini.NextGen.Retrieval; + typeof(global::Google.Gemini.NextGen.McpServer), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServer; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.Retrieval? FromJson( + public static global::Google.Gemini.NextGen.McpServer? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.Retrieval? FromJson( + public static global::Google.Gemini.NextGen.McpServer? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.Retrieval), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.Retrieval; + typeof(global::Google.Gemini.NextGen.McpServer), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServer; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServer.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServer.g.cs similarity index 93% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServer.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServer.g.cs index 1b718b4b9..23ab7c492 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServer.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServer.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// A MCPServer is a server that can be called by the model to perform actions. /// - public sealed partial class MCPServer + public sealed partial class McpServer { /// /// @@ -15,6 +15,12 @@ public sealed partial class MCPServer [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// The name of the MCPServer. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + /// /// The full URL for the MCPServer endpoint.
/// Example: "https://api.example.com/mcp" @@ -22,12 +28,6 @@ public sealed partial class MCPServer [global::System.Text.Json.Serialization.JsonPropertyName("url")] public string? Url { get; set; } - /// - /// The name of the MCPServer. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - /// /// Optional: Fields for authentication headers, timeouts, etc., if needed. /// @@ -47,16 +47,16 @@ public sealed partial class MCPServer public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// + /// + /// The name of the MCPServer. + /// /// /// The full URL for the MCPServer endpoint.
/// Example: "https://api.example.com/mcp" /// - /// - /// The name of the MCPServer. - /// /// /// Optional: Fields for authentication headers, timeouts, etc., if needed. /// @@ -66,24 +66,24 @@ public sealed partial class MCPServer #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public MCPServer( + public McpServer( object type, - string? url, string? name, + string? url, global::System.Collections.Generic.Dictionary? headers, global::System.Collections.Generic.IList? allowedTools) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.Url = url; this.Name = name; + this.Url = url; this.Headers = headers; this.AllowedTools = allowedTools; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public MCPServer() + public McpServer() { } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerHeaders.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerHeaders.Json.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerHeaders.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerHeaders.Json.g.cs index 5ebd6c2d4..2dec56f33 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerHeaders.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerHeaders.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerHeaders + public sealed partial class McpServerHeaders { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerHeaders? FromJson( + public static global::Google.Gemini.NextGen.McpServerHeaders? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerHeaders), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerHeaders; + typeof(global::Google.Gemini.NextGen.McpServerHeaders), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerHeaders; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerHeaders? FromJson( + public static global::Google.Gemini.NextGen.McpServerHeaders? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerHeaders? FromJson( + public static global::Google.Gemini.NextGen.McpServerHeaders? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerHeaders; + typeof(global::Google.Gemini.NextGen.McpServerHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerHeaders; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerHeaders.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerHeaders.g.cs similarity index 91% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerHeaders.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerHeaders.g.cs index f583ef166..43a15e25f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerHeaders.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerHeaders.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// Optional: Fields for authentication headers, timeouts, etc., if needed. /// - public sealed partial class MCPServerHeaders + public sealed partial class McpServerHeaders { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDelta.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDelta.Json.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDelta.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDelta.Json.g.cs index b0d04f3e7..7f8298d24 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDelta.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDelta.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerToolCallDelta + public sealed partial class McpServerToolCallDelta { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallDelta? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallDelta? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallDelta), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerToolCallDelta; + typeof(global::Google.Gemini.NextGen.McpServerToolCallDelta), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerToolCallDelta; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallDelta? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallDelta? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerToolCallDelta? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallDelta? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallDelta), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerToolCallDelta; + typeof(global::Google.Gemini.NextGen.McpServerToolCallDelta), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerToolCallDelta; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDelta.g.cs similarity index 90% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDelta.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDelta.g.cs index 50c2adc99..082fd1ae2 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDelta.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// /// - public sealed partial class MCPServerToolCallDelta + public sealed partial class McpServerToolCallDelta { /// /// @@ -43,7 +43,7 @@ public sealed partial class MCPServerToolCallDelta public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -52,7 +52,7 @@ public sealed partial class MCPServerToolCallDelta #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public MCPServerToolCallDelta( + public McpServerToolCallDelta( string name, string serverName, object arguments, @@ -65,9 +65,9 @@ public MCPServerToolCallDelta( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public MCPServerToolCallDelta() + public McpServerToolCallDelta() { } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments.Json.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments.Json.g.cs index b4f434596..75b972aea 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerToolCallDeltaArguments + public sealed partial class McpServerToolCallDeltaArguments { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallDeltaArguments? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallDeltaArguments? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallDeltaArguments), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerToolCallDeltaArguments; + typeof(global::Google.Gemini.NextGen.McpServerToolCallDeltaArguments), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerToolCallDeltaArguments; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallDeltaArguments? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallDeltaArguments? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerToolCallDeltaArguments? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallDeltaArguments? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallDeltaArguments), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerToolCallDeltaArguments; + typeof(global::Google.Gemini.NextGen.McpServerToolCallDeltaArguments), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerToolCallDeltaArguments; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments.g.cs index 0c128a741..e117491c5 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// /// - public sealed partial class MCPServerToolCallDeltaArguments + public sealed partial class McpServerToolCallDeltaArguments { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments2.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments2.Json.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments2.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments2.Json.g.cs index 6faac82ce..d98a94770 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments2.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments2.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerToolCallDeltaArguments2 + public sealed partial class McpServerToolCallDeltaArguments2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallDeltaArguments2? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallDeltaArguments2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallDeltaArguments2), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerToolCallDeltaArguments2; + typeof(global::Google.Gemini.NextGen.McpServerToolCallDeltaArguments2), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerToolCallDeltaArguments2; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallDeltaArguments2? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallDeltaArguments2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerToolCallDeltaArguments2? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallDeltaArguments2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallDeltaArguments2), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerToolCallDeltaArguments2; + typeof(global::Google.Gemini.NextGen.McpServerToolCallDeltaArguments2), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerToolCallDeltaArguments2; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments2.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments2.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments2.g.cs index 486006a65..88885fed3 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaArguments2.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaArguments2.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// Properties of the object. /// - public sealed partial class MCPServerToolCallDeltaArguments2 + public sealed partial class McpServerToolCallDeltaArguments2 { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaType.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaType.Json.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaType.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaType.Json.g.cs index 76cf06af1..b42512ea9 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaType.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaType.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerToolCallDeltaType + public sealed partial class McpServerToolCallDeltaType { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallDeltaType? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallDeltaType? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallDeltaType), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerToolCallDeltaType; + typeof(global::Google.Gemini.NextGen.McpServerToolCallDeltaType), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerToolCallDeltaType; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallDeltaType? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallDeltaType? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerToolCallDeltaType? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallDeltaType? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallDeltaType), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerToolCallDeltaType; + typeof(global::Google.Gemini.NextGen.McpServerToolCallDeltaType), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerToolCallDeltaType; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaType.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepType.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaType.g.cs index c0d6d49cf..f9bc7d9f1 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepType.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallDeltaType.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// /// - public sealed partial class MCPServerToolCallStepType + public sealed partial class McpServerToolCallDeltaType { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStep.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStep.Json.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStep.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStep.Json.g.cs index 30a32b866..6b6cc2847 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStep.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStep.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerToolCallStep + public sealed partial class McpServerToolCallStep { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallStep? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallStep? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallStep), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerToolCallStep; + typeof(global::Google.Gemini.NextGen.McpServerToolCallStep), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerToolCallStep; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallStep? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallStep? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerToolCallStep? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallStep? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallStep), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerToolCallStep; + typeof(global::Google.Gemini.NextGen.McpServerToolCallStep), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerToolCallStep; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStep.g.cs similarity index 87% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStep.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStep.g.cs index cda952395..ae053c637 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStep.g.cs @@ -4,10 +4,9 @@ namespace Google.Gemini.NextGen { /// - /// MCPServer tool call step.
- /// Example: {"name":"calculate_tax","type":"mcp_server_tool_call","arguments":{"income":120000,"state":"CA"},"id":"mcp_call_29012","server_name":"financial_mcp_server"} + /// MCPServer tool call step. ///
- public sealed partial class MCPServerToolCallStep + public sealed partial class McpServerToolCallStep { /// /// Required. The name of the tool which was called. @@ -51,7 +50,7 @@ public sealed partial class MCPServerToolCallStep public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Required. The name of the tool which was called. @@ -69,7 +68,7 @@ public sealed partial class MCPServerToolCallStep #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public MCPServerToolCallStep( + public McpServerToolCallStep( string name, string serverName, object arguments, @@ -84,9 +83,9 @@ public MCPServerToolCallStep( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public MCPServerToolCallStep() + public McpServerToolCallStep() { } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepArguments.Json.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepArguments.Json.g.cs index ed9e66ca7..01cac53da 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepArguments.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerToolCallStepArguments + public sealed partial class McpServerToolCallStepArguments { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallStepArguments? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallStepArguments? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallStepArguments), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerToolCallStepArguments; + typeof(global::Google.Gemini.NextGen.McpServerToolCallStepArguments), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerToolCallStepArguments; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallStepArguments? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallStepArguments? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerToolCallStepArguments? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallStepArguments? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallStepArguments), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerToolCallStepArguments; + typeof(global::Google.Gemini.NextGen.McpServerToolCallStepArguments), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerToolCallStepArguments; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepArguments.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepArguments.g.cs index f0882ad72..2348ac1cf 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepArguments.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// Required. The JSON object of arguments for the function. /// - public sealed partial class MCPServerToolCallStepArguments + public sealed partial class McpServerToolCallStepArguments { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments2.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepArguments2.Json.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments2.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepArguments2.Json.g.cs index ca36f6f74..58670c2d9 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments2.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepArguments2.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerToolCallStepArguments2 + public sealed partial class McpServerToolCallStepArguments2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallStepArguments2? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallStepArguments2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallStepArguments2), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerToolCallStepArguments2; + typeof(global::Google.Gemini.NextGen.McpServerToolCallStepArguments2), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerToolCallStepArguments2; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallStepArguments2? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallStepArguments2? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerToolCallStepArguments2? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallStepArguments2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallStepArguments2), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerToolCallStepArguments2; + typeof(global::Google.Gemini.NextGen.McpServerToolCallStepArguments2), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerToolCallStepArguments2; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepArguments2.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments2.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepArguments2.g.cs index 92597f5ba..4925036f8 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepArguments2.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepArguments2.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// Properties of the object. /// - public sealed partial class MCPServerToolCallStepArguments2 + public sealed partial class McpServerToolCallStepArguments2 { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepType.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepType.Json.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepType.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepType.Json.g.cs index 65ca3047a..76b33961f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStepType.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepType.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerToolCallStepType + public sealed partial class McpServerToolCallStepType { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallStepType? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallStepType? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallStepType), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerToolCallStepType; + typeof(global::Google.Gemini.NextGen.McpServerToolCallStepType), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerToolCallStepType; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolCallStepType? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallStepType? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerToolCallStepType? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolCallStepType? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallStepType), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerToolCallStepType; + typeof(global::Google.Gemini.NextGen.McpServerToolCallStepType), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerToolCallStepType; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfigType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepType.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfigType.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepType.g.cs index b9088e3f1..9a1054aca 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfigType.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolCallStepType.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// /// - public sealed partial class CodeMenderAgentConfigType + public sealed partial class McpServerToolCallStepType { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDelta.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDelta.Json.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDelta.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDelta.Json.g.cs index 746f6607e..92d53efbf 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDelta.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDelta.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerToolResultDelta + public sealed partial class McpServerToolResultDelta { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolResultDelta? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultDelta? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerToolResultDelta), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerToolResultDelta; + typeof(global::Google.Gemini.NextGen.McpServerToolResultDelta), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerToolResultDelta; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolResultDelta? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultDelta? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerToolResultDelta? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultDelta? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerToolResultDelta), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerToolResultDelta; + typeof(global::Google.Gemini.NextGen.McpServerToolResultDelta), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerToolResultDelta; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDelta.g.cs similarity index 91% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDelta.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDelta.g.cs index c456508c6..c9268a786 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDelta.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// /// - public sealed partial class MCPServerToolResultDelta + public sealed partial class McpServerToolResultDelta { /// /// @@ -42,7 +42,7 @@ public sealed partial class MCPServerToolResultDelta public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -51,7 +51,7 @@ public sealed partial class MCPServerToolResultDelta #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public MCPServerToolResultDelta( + public McpServerToolResultDelta( global::Google.Gemini.NextGen.OneOf>, object, string> result, object type, string? name, @@ -64,9 +64,9 @@ public MCPServerToolResultDelta( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public MCPServerToolResultDelta() + public McpServerToolResultDelta() { } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDeltaResult.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDeltaResult.Json.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDeltaResult.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDeltaResult.Json.g.cs index a5e7b0f3b..dab8c5e89 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDeltaResult.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDeltaResult.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerToolResultDeltaResult + public sealed partial class McpServerToolResultDeltaResult { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolResultDeltaResult? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultDeltaResult? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerToolResultDeltaResult), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerToolResultDeltaResult; + typeof(global::Google.Gemini.NextGen.McpServerToolResultDeltaResult), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerToolResultDeltaResult; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolResultDeltaResult? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultDeltaResult? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerToolResultDeltaResult? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultDeltaResult? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerToolResultDeltaResult), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerToolResultDeltaResult; + typeof(global::Google.Gemini.NextGen.McpServerToolResultDeltaResult), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerToolResultDeltaResult; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDeltaResult.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDeltaResult.g.cs new file mode 100644 index 000000000..a319d1f97 --- /dev/null +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDeltaResult.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Google.Gemini.NextGen +{ + /// + /// + /// + public sealed partial class McpServerToolResultDeltaResult + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDeltaType.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDeltaType.Json.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDeltaType.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDeltaType.Json.g.cs index 2f5badfad..d5e79d482 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDeltaType.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDeltaType.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerToolResultDeltaType + public sealed partial class McpServerToolResultDeltaType { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolResultDeltaType? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultDeltaType? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerToolResultDeltaType), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerToolResultDeltaType; + typeof(global::Google.Gemini.NextGen.McpServerToolResultDeltaType), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerToolResultDeltaType; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolResultDeltaType? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultDeltaType? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerToolResultDeltaType? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultDeltaType? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerToolResultDeltaType), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerToolResultDeltaType; + typeof(global::Google.Gemini.NextGen.McpServerToolResultDeltaType), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerToolResultDeltaType; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDeltaType.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaType.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDeltaType.g.cs index ffdad06e2..b8decdf0f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDeltaType.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultDeltaType.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// /// - public sealed partial class MCPServerToolCallDeltaType + public sealed partial class McpServerToolResultDeltaType { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStep.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStep.Json.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStep.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStep.Json.g.cs index 6d7217836..5b2561d9f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStep.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStep.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerToolResultStep + public sealed partial class McpServerToolResultStep { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolResultStep? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultStep? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerToolResultStep), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerToolResultStep; + typeof(global::Google.Gemini.NextGen.McpServerToolResultStep), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerToolResultStep; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolResultStep? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultStep? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerToolResultStep? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultStep? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerToolResultStep), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerToolResultStep; + typeof(global::Google.Gemini.NextGen.McpServerToolResultStep), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerToolResultStep; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStep.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStep.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStep.g.cs index 09f046581..2e2f9c6ce 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStep.g.cs @@ -4,10 +4,9 @@ namespace Google.Gemini.NextGen { /// - /// MCPServer tool result step.
- /// Example: {"name":"calculate_tax","type":"mcp_server_tool_result","call_id":"mcp_call_29012","result":{"tax_due":32400},"server_name":"financial_mcp_server"} + /// MCPServer tool result step. ///
- public sealed partial class MCPServerToolResultStep + public sealed partial class McpServerToolResultStep { /// /// Required. The output from the MCP server call. Can be simple text or rich content. @@ -50,7 +49,7 @@ public sealed partial class MCPServerToolResultStep public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Required. The output from the MCP server call. Can be simple text or rich content. @@ -68,7 +67,7 @@ public sealed partial class MCPServerToolResultStep #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public MCPServerToolResultStep( + public McpServerToolResultStep( global::Google.Gemini.NextGen.OneOf>, object, string> result, string callId, object type, @@ -83,9 +82,9 @@ public MCPServerToolResultStep( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public MCPServerToolResultStep() + public McpServerToolResultStep() { } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStepResult.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStepResult.Json.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStepResult.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStepResult.Json.g.cs index 9c063ceac..ac183e509 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStepResult.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStepResult.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerToolResultStepResult + public sealed partial class McpServerToolResultStepResult { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolResultStepResult? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultStepResult? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerToolResultStepResult), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerToolResultStepResult; + typeof(global::Google.Gemini.NextGen.McpServerToolResultStepResult), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerToolResultStepResult; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolResultStepResult? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultStepResult? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerToolResultStepResult? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultStepResult? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerToolResultStepResult), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerToolResultStepResult; + typeof(global::Google.Gemini.NextGen.McpServerToolResultStepResult), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerToolResultStepResult; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStepResult.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStepResult.g.cs new file mode 100644 index 000000000..0283aaf6e --- /dev/null +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStepResult.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace Google.Gemini.NextGen +{ + /// + /// + /// + public sealed partial class McpServerToolResultStepResult + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStepType.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStepType.Json.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStepType.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStepType.Json.g.cs index ebad20a43..3d27b59e0 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStepType.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStepType.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerToolResultStepType + public sealed partial class McpServerToolResultStepType { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolResultStepType? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultStepType? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerToolResultStepType), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerToolResultStepType; + typeof(global::Google.Gemini.NextGen.McpServerToolResultStepType), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerToolResultStepType; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerToolResultStepType? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultStepType? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerToolResultStepType? FromJson( + public static global::Google.Gemini.NextGen.McpServerToolResultStepType? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerToolResultStepType), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerToolResultStepType; + typeof(global::Google.Gemini.NextGen.McpServerToolResultStepType), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerToolResultStepType; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStepType.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentType.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStepType.g.cs index 034b25963..320d77141 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentType.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerToolResultStepType.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// /// - public sealed partial class EnvironmentType + public sealed partial class McpServerToolResultStepType { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerType.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerType.Json.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerType.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerType.Json.g.cs index 4e49bbcb1..0f8c1d8ad 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerType.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerType.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class MCPServerType + public sealed partial class McpServerType { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerType? FromJson( + public static global::Google.Gemini.NextGen.McpServerType? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.MCPServerType), - jsonSerializerContext) as global::Google.Gemini.NextGen.MCPServerType; + typeof(global::Google.Gemini.NextGen.McpServerType), + jsonSerializerContext) as global::Google.Gemini.NextGen.McpServerType; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.MCPServerType? FromJson( + public static global::Google.Gemini.NextGen.McpServerType? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.MCPServerType? FromJson( + public static global::Google.Gemini.NextGen.McpServerType? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.MCPServerType), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.MCPServerType; + typeof(global::Google.Gemini.NextGen.McpServerType), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.McpServerType; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StatusDetail.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerType.g.cs similarity index 91% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StatusDetail.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerType.g.cs index e81d31b64..ee5d20caf 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StatusDetail.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.McpServerType.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// /// - public sealed partial class StatusDetail + public sealed partial class McpServerType { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Model.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Model.g.cs index 1efac1b93..369beed24 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Model.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Model.g.cs @@ -116,11 +116,6 @@ public Model(string value) /// public static Model Gemini38FlashTts { get; } = new("gemini-3.8-flash-tts"); - /// - /// Gemini 4 Argon - Our new frontier model, built to solve the hardest problems with depth and precision across real-world software engineering and knowledge work. - /// - public static Model Gemini4Argon { get; } = new("gemini-4-argon"); - /// /// Latest release of Gemini Flash /// @@ -218,7 +213,6 @@ public static Model FromValue(string value) "gemini-3.8-flash" => Gemini38Flash, "gemini-3.8-flash-lite-tts" => Gemini38FlashLiteTts, "gemini-3.8-flash-tts" => Gemini38FlashTts, - "gemini-4-argon" => Gemini4Argon, "gemini-flash-latest" => GeminiFlashLatest, "gemini-flash-lite-latest" => GeminiFlashLiteLatest, "gemini-nano-banana-2.1" => GeminiNanoBanana21, @@ -261,7 +255,6 @@ public static Model FromValue(string value) "gemini-3.8-flash" => true, "gemini-3.8-flash-lite-tts" => true, "gemini-3.8-flash-tts" => true, - "gemini-4-argon" => true, "gemini-flash-latest" => true, "gemini-flash-lite-latest" => true, "gemini-nano-banana-2.1" => true, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ModelOutputStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ModelOutputStep.g.cs index ccc0d4049..0915d4afc 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ModelOutputStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ModelOutputStep.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Output generated by the model.
- /// Example: {"type":"model_output","content":[{"type":"text","text":"The capital of France is Paris."}]} + /// Output generated by the model. ///
public sealed partial class ModelOutputStep { @@ -22,17 +21,6 @@ public sealed partial class ModelOutputStep [global::System.Text.Json.Serialization.JsonPropertyName("content")] public global::System.Collections.Generic.IList? Content { get; set; } - /// - /// The `Status` type defines a logical error model that is suitable for
- /// different programming environments, including REST APIs and RPC APIs. It is
- /// used by [gRPC](https://github.com/grpc). Each `Status` message contains
- /// three pieces of data: error code, error message, and error details.
- /// You can find out more about this error model and how to work with it in the
- /// [API Design Guide](https://cloud.google.com/apis/design/errors). - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public global::Google.Gemini.NextGen.Status? Error { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -44,25 +32,15 @@ public sealed partial class ModelOutputStep ///
/// /// - /// - /// The `Status` type defines a logical error model that is suitable for
- /// different programming environments, including REST APIs and RPC APIs. It is
- /// used by [gRPC](https://github.com/grpc). Each `Status` message contains
- /// three pieces of data: error code, error message, and error details.
- /// You can find out more about this error model and how to work with it in the
- /// [API Design Guide](https://cloud.google.com/apis/design/errors). - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ModelOutputStep( object type, - global::System.Collections.Generic.IList? content, - global::Google.Gemini.NextGen.Status? error) + global::System.Collections.Generic.IList? content) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Content = content; - this.Error = error; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfig.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfig.Json.g.cs deleted file mode 100644 index 688e5dfdb..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfig.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class ParallelAISearchConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.ParallelAISearchConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.ParallelAISearchConfig), - jsonSerializerContext) as global::Google.Gemini.NextGen.ParallelAISearchConfig; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.ParallelAISearchConfig? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.ParallelAISearchConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.ParallelAISearchConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.ParallelAISearchConfig; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfig.g.cs deleted file mode 100644 index 6dda744d2..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfig.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Used to specify configuration for ParallelAISearch. - /// - public sealed partial class ParallelAISearchConfig - { - /// - /// Optional. The API key for ParallelAiSearch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("api_key")] - public string? ApiKey { get; set; } - - /// - /// Optional. Custom configs for ParallelAiSearch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("custom_config")] - public object? CustomConfig { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Optional. The API key for ParallelAiSearch. - /// - /// - /// Optional. Custom configs for ParallelAiSearch. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public ParallelAISearchConfig( - string? apiKey, - object? customConfig) - { - this.ApiKey = apiKey; - this.CustomConfig = customConfig; - } - - /// - /// Initializes a new instance of the class. - /// - public ParallelAISearchConfig() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig.Json.g.cs deleted file mode 100644 index 69ca841b0..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class ParallelAISearchConfigCustomConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.ParallelAISearchConfigCustomConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.ParallelAISearchConfigCustomConfig), - jsonSerializerContext) as global::Google.Gemini.NextGen.ParallelAISearchConfigCustomConfig; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.ParallelAISearchConfigCustomConfig? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.ParallelAISearchConfigCustomConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.ParallelAISearchConfigCustomConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.ParallelAISearchConfigCustomConfig; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig.g.cs deleted file mode 100644 index b5c11bc57..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Optional. Custom configs for ParallelAiSearch. - /// - public sealed partial class ParallelAISearchConfigCustomConfig - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig2.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig2.Json.g.cs deleted file mode 100644 index 1eac59756..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class ParallelAISearchConfigCustomConfig2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.ParallelAISearchConfigCustomConfig2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.ParallelAISearchConfigCustomConfig2), - jsonSerializerContext) as global::Google.Gemini.NextGen.ParallelAISearchConfigCustomConfig2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.ParallelAISearchConfigCustomConfig2? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.ParallelAISearchConfigCustomConfig2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.ParallelAISearchConfigCustomConfig2), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.ParallelAISearchConfigCustomConfig2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig2.g.cs deleted file mode 100644 index 84d21fb6a..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ParallelAISearchConfigCustomConfig2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Properties of the object. - /// - public sealed partial class ParallelAISearchConfigCustomConfig2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PingWebhookRequest.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PingWebhookRequest.g.cs index 9642a4b87..14b2a651b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PingWebhookRequest.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PingWebhookRequest.g.cs @@ -8,6 +8,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class PingWebhookRequest { + /// + /// Required. The ID of the webhook to ping.
+ /// Format: `{webhook_id}` + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -15,5 +22,28 @@ public sealed partial class PingWebhookRequest [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + /// + /// Initializes a new instance of the class. + /// + /// + /// Required. The ID of the webhook to ping.
+ /// Format: `{webhook_id}` + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public PingWebhookRequest( + string id) + { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + } + + /// + /// Initializes a new instance of the class. + /// + public PingWebhookRequest() + { + } + } } \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookListResponse.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PingWebhookResponse.Json.g.cs similarity index 89% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookListResponse.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PingWebhookResponse.Json.g.cs index e36187c67..9e8590795 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookListResponse.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PingWebhookResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class WebhookListResponse + public sealed partial class PingWebhookResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.WebhookListResponse? FromJson( + public static global::Google.Gemini.NextGen.PingWebhookResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.WebhookListResponse), - jsonSerializerContext) as global::Google.Gemini.NextGen.WebhookListResponse; + typeof(global::Google.Gemini.NextGen.PingWebhookResponse), + jsonSerializerContext) as global::Google.Gemini.NextGen.PingWebhookResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.WebhookListResponse? FromJson( + public static global::Google.Gemini.NextGen.PingWebhookResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.WebhookListResponse? FromJson( + public static global::Google.Gemini.NextGen.PingWebhookResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.WebhookListResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.WebhookListResponse; + typeof(global::Google.Gemini.NextGen.PingWebhookResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.PingWebhookResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookPingResponse.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PingWebhookResponse.g.cs similarity index 91% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookPingResponse.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PingWebhookResponse.g.cs index 6acda0fb8..22a1ae667 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookPingResponse.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PingWebhookResponse.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// Response message for WebhookService.PingWebhook. /// - public sealed partial class WebhookPingResponse + public sealed partial class PingWebhookResponse { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagResource.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagResource.Json.g.cs deleted file mode 100644 index aa03bd991..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagResource.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class RagResource - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RagResource? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.RagResource), - jsonSerializerContext) as global::Google.Gemini.NextGen.RagResource; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RagResource? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.RagResource? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.RagResource), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RagResource; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagResource.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagResource.g.cs deleted file mode 100644 index b63e86182..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagResource.g.cs +++ /dev/null @@ -1,59 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// The definition of the Rag resource. - /// - public sealed partial class RagResource - { - /// - /// Optional. RagCorpora resource name. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("rag_corpus")] - public string? RagCorpus { get; set; } - - /// - /// Optional. rag_file_id. The files should be in the same rag_corpus set in
- /// rag_corpus field. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("rag_file_ids")] - public global::System.Collections.Generic.IList? RagFileIds { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Optional. RagCorpora resource name. - /// - /// - /// Optional. rag_file_id. The files should be in the same rag_corpus set in
- /// rag_corpus field. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RagResource( - string? ragCorpus, - global::System.Collections.Generic.IList? ragFileIds) - { - this.RagCorpus = ragCorpus; - this.RagFileIds = ragFileIds; - } - - /// - /// Initializes a new instance of the class. - /// - public RagResource() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagRetrievalConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagRetrievalConfig.g.cs deleted file mode 100644 index ead6ba0d2..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagRetrievalConfig.g.cs +++ /dev/null @@ -1,79 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Specifies the context retrieval config. - /// - public sealed partial class RagRetrievalConfig - { - /// - /// Optional. The number of contexts to retrieve. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("top_k")] - public int? TopK { get; set; } - - /// - /// Config for Hybrid Search. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("hybrid_search")] - public global::Google.Gemini.NextGen.HybridSearch? HybridSearch { get; set; } - - /// - /// Config for filters. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("filter")] - public global::Google.Gemini.NextGen.Filter? Filter { get; set; } - - /// - /// Config for ranking and reranking. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ranking")] - public global::Google.Gemini.NextGen.Ranking? Ranking { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Optional. The number of contexts to retrieve. - /// - /// - /// Config for Hybrid Search. - /// - /// - /// Config for filters. - /// - /// - /// Config for ranking and reranking. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RagRetrievalConfig( - int? topK, - global::Google.Gemini.NextGen.HybridSearch? hybridSearch, - global::Google.Gemini.NextGen.Filter? filter, - global::Google.Gemini.NextGen.Ranking? ranking) - { - this.TopK = topK; - this.HybridSearch = hybridSearch; - this.Filter = filter; - this.Ranking = ranking; - } - - /// - /// Initializes a new instance of the class. - /// - public RagRetrievalConfig() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagStoreConfig.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagStoreConfig.Json.g.cs deleted file mode 100644 index bf5ef7477..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagStoreConfig.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class RagStoreConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RagStoreConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.RagStoreConfig), - jsonSerializerContext) as global::Google.Gemini.NextGen.RagStoreConfig; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RagStoreConfig? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.RagStoreConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.RagStoreConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RagStoreConfig; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagStoreConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagStoreConfig.g.cs deleted file mode 100644 index 1358adad6..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagStoreConfig.g.cs +++ /dev/null @@ -1,73 +0,0 @@ - -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Use to specify configuration for RAG Store. - /// - public sealed partial class RagStoreConfig - { - /// - /// Optional. The representation of the rag source. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("rag_resources")] - public global::System.Collections.Generic.IList? RagResources { get; set; } - - /// - /// Optional. Number of top k results to return from the selected corpora. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("similarity_top_k")] - [global::System.Obsolete("This property marked as deprecated.")] - public int? SimilarityTopK { get; set; } - - /// - /// Optional. Only return results with vector distance smaller than the threshold. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("vector_distance_threshold")] - [global::System.Obsolete("This property marked as deprecated.")] - public double? VectorDistanceThreshold { get; set; } - - /// - /// Specifies the context retrieval config. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("rag_retrieval_config")] - public global::Google.Gemini.NextGen.RagRetrievalConfig? RagRetrievalConfig { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Optional. The representation of the rag source. - /// - /// - /// Specifies the context retrieval config. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RagStoreConfig( - global::System.Collections.Generic.IList? ragResources, - global::Google.Gemini.NextGen.RagRetrievalConfig? ragRetrievalConfig) - { - this.RagResources = ragResources; - this.RagRetrievalConfig = ragRetrievalConfig; - } - - /// - /// Initializes a new instance of the class. - /// - public RagStoreConfig() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RankService.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RankService.Json.g.cs deleted file mode 100644 index 821945227..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RankService.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class RankService - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RankService? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.RankService), - jsonSerializerContext) as global::Google.Gemini.NextGen.RankService; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RankService? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.RankService? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.RankService), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RankService; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RankService.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RankService.g.cs deleted file mode 100644 index d1c87fadd..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RankService.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Config for Rank Service. - /// - public sealed partial class RankService - { - /// - /// Optional. The model name of the rank service. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model_name")] - public string? ModelName { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Optional. The model name of the rank service. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RankService( - string? modelName) - { - this.ModelName = modelName; - } - - /// - /// Initializes a new instance of the class. - /// - public RankService() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Ranking.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Ranking.Json.g.cs deleted file mode 100644 index ba6ff1c3d..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Ranking.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class Ranking - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.Ranking? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.Ranking), - jsonSerializerContext) as global::Google.Gemini.NextGen.Ranking; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.Ranking? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.Ranking? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.Ranking), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.Ranking; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Ranking.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Ranking.g.cs deleted file mode 100644 index c40a8d986..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Ranking.g.cs +++ /dev/null @@ -1,67 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Config for ranking and reranking. - /// - public sealed partial class Ranking - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ranking_config")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object RankingConfig { get; set; } - - /// - /// Config for Rank Service. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("rank_service")] - public global::Google.Gemini.NextGen.RankService? RankService { get; set; } - - /// - /// Optional. The model name of the rank service. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model_name")] - public string? ModelName { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// Config for Rank Service. - /// - /// - /// Optional. The model name of the rank service. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Ranking( - object rankingConfig, - global::Google.Gemini.NextGen.RankService? rankService, - string? modelName) - { - this.RankingConfig = rankingConfig ?? throw new global::System.ArgumentNullException(nameof(rankingConfig)); - this.RankService = rankService; - this.ModelName = modelName; - } - - /// - /// Initializes a new instance of the class. - /// - public Ranking() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RankingRankingConfig.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RankingRankingConfig.Json.g.cs deleted file mode 100644 index 822c35abd..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RankingRankingConfig.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class RankingRankingConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RankingRankingConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.RankingRankingConfig), - jsonSerializerContext) as global::Google.Gemini.NextGen.RankingRankingConfig; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RankingRankingConfig? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.RankingRankingConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.RankingRankingConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RankingRankingConfig; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ReplicatedVoice.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ReplicatedVoice.g.cs index f9ee87955..1e8bbde15 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ReplicatedVoice.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ReplicatedVoice.g.cs @@ -6,8 +6,7 @@ namespace Google.Gemini.NextGen /// /// Input only. Parameters for replicated voice generation.
/// Required on input when `type` is `"replicated"`. Not returned in
- /// responses.
- /// Included only in requests + /// responses. ///
public sealed partial class ReplicatedVoice { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ResponseFormat4.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ResponseFormat4.g.cs index c30e2ef3d..b5e54316a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ResponseFormat4.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ResponseFormat4.g.cs @@ -10,8 +10,7 @@ namespace Google.Gemini.NextGen public readonly partial struct ResponseFormat4 : global::System.IEquatable { /// - /// Configuration for audio output format.
- /// Example: {"type":"audio","sample_rate":24000} + /// Configuration for audio output format. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.AudioResponseFormat? AudioFormat { get; init; } @@ -48,8 +47,7 @@ public bool TryPickAudioFormat( : throw new global::System.InvalidOperationException($"Expected union variant 'AudioFormat' but the value was {ToString()}."); /// - /// Configuration for image output format.
- /// Example: {"type":"image","aspect_ratio":"16:9","image_size":"1K","mime_type":"image/jpeg"} + /// Configuration for image output format. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.ImageResponseFormat? ImageFormat { get; init; } @@ -86,8 +84,7 @@ public bool TryPickImageFormat( : throw new global::System.InvalidOperationException($"Expected union variant 'ImageFormat' but the value was {ToString()}."); /// - /// Configuration for text output format.
- /// Example: {"type":"text","mime_type":"application/json","schema":{"type":"object","properties":{"ingredients":{"type":"array","items":{"type":"string"}},"recipe_name":{"type":"string"}},"required":["ingredients","recipe_name"]}} + /// Configuration for text output format. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.TextResponseFormat? TextFormat { get; init; } @@ -124,8 +121,7 @@ public bool TryPickTextFormat( : throw new global::System.InvalidOperationException($"Expected union variant 'TextFormat' but the value was {ToString()}."); /// - /// Configuration for video output format.
- /// Example: {"type":"video","aspect_ratio":"16:9","delivery":"inline"} + /// Configuration for video output format. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.VideoResponseFormat? VideoFormat { get; init; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Retrieval.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Retrieval.g.cs deleted file mode 100644 index 65b5c7706..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Retrieval.g.cs +++ /dev/null @@ -1,100 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// A tool that can be used by the model to retrieve files. - /// - public sealed partial class Retrieval - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - - /// - /// The types of file retrieval to enable. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("retrieval_types")] - public global::System.Collections.Generic.IList? RetrievalTypes { get; set; } - - /// - /// Used to specify configuration for VertexAISearch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("vertex_ai_search_config")] - public global::Google.Gemini.NextGen.VertexAISearchConfig? VertexAiSearchConfig { get; set; } - - /// - /// Used to specify configuration for ExaAISearch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("exa_ai_search_config")] - public global::Google.Gemini.NextGen.ExaAISearchConfig? ExaAiSearchConfig { get; set; } - - /// - /// Used to specify configuration for ParallelAISearch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parallel_ai_search_config")] - public global::Google.Gemini.NextGen.ParallelAISearchConfig? ParallelAiSearchConfig { get; set; } - - /// - /// Use to specify configuration for RAG Store. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("rag_store_config")] - public global::Google.Gemini.NextGen.RagStoreConfig? RagStoreConfig { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// The types of file retrieval to enable. - /// - /// - /// Used to specify configuration for VertexAISearch. - /// - /// - /// Used to specify configuration for ExaAISearch. - /// - /// - /// Used to specify configuration for ParallelAISearch. - /// - /// - /// Use to specify configuration for RAG Store. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Retrieval( - object type, - global::System.Collections.Generic.IList? retrievalTypes, - global::Google.Gemini.NextGen.VertexAISearchConfig? vertexAiSearchConfig, - global::Google.Gemini.NextGen.ExaAISearchConfig? exaAiSearchConfig, - global::Google.Gemini.NextGen.ParallelAISearchConfig? parallelAiSearchConfig, - global::Google.Gemini.NextGen.RagStoreConfig? ragStoreConfig) - { - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.RetrievalTypes = retrievalTypes; - this.VertexAiSearchConfig = vertexAiSearchConfig; - this.ExaAiSearchConfig = exaAiSearchConfig; - this.ParallelAiSearchConfig = parallelAiSearchConfig; - this.RagStoreConfig = ragStoreConfig; - } - - /// - /// Initializes a new instance of the class. - /// - public Retrieval() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallArguments.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallArguments.Json.g.cs deleted file mode 100644 index cf240d6ef..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallArguments.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class RetrievalCallArguments - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RetrievalCallArguments? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.RetrievalCallArguments), - jsonSerializerContext) as global::Google.Gemini.NextGen.RetrievalCallArguments; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RetrievalCallArguments? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.RetrievalCallArguments? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.RetrievalCallArguments), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RetrievalCallArguments; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallArguments.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallArguments.g.cs deleted file mode 100644 index b4c2da3c0..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallArguments.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// The arguments to pass to Retrieval tools. - /// - public sealed partial class RetrievalCallArguments - { - /// - /// Queries for Retrieval information. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("queries")] - public global::System.Collections.Generic.IList? Queries { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Queries for Retrieval information. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RetrievalCallArguments( - global::System.Collections.Generic.IList? queries) - { - this.Queries = queries; - } - - /// - /// Initializes a new instance of the class. - /// - public RetrievalCallArguments() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDelta.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDelta.Json.g.cs deleted file mode 100644 index 52a866ca4..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDelta.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class RetrievalCallDelta - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RetrievalCallDelta? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.RetrievalCallDelta), - jsonSerializerContext) as global::Google.Gemini.NextGen.RetrievalCallDelta; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RetrievalCallDelta? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.RetrievalCallDelta? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.RetrievalCallDelta), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RetrievalCallDelta; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDelta.g.cs deleted file mode 100644 index a450fd53e..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDelta.g.cs +++ /dev/null @@ -1,81 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,
- /// etc. RetrievalType decides which tool is used. - ///
- public sealed partial class RetrievalCallDelta - { - /// - /// The arguments to pass to Retrieval tools. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.RetrievalCallArguments RetrievalCallArguments { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - - /// - /// The type of retrieval tools. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("retrieval_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.RetrievalCallDeltaRetrievalTypeJsonConverter))] - public global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalType? RetrievalType { get; set; } - - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The arguments to pass to Retrieval tools. - /// - /// - /// - /// The type of retrieval tools. - /// - /// - /// A signature hash for backend validation. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RetrievalCallDelta( - global::Google.Gemini.NextGen.RetrievalCallArguments retrievalCallArguments, - object type, - global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalType? retrievalType, - byte[]? signature) - { - this.RetrievalCallArguments = retrievalCallArguments ?? throw new global::System.ArgumentNullException(nameof(retrievalCallArguments)); - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.RetrievalType = retrievalType; - this.Signature = signature; - } - - /// - /// Initializes a new instance of the class. - /// - public RetrievalCallDelta() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDeltaRetrievalType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDeltaRetrievalType.g.cs deleted file mode 100644 index ad5f8356f..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDeltaRetrievalType.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// The type of retrieval tools. - /// - public enum RetrievalCallDeltaRetrievalType - { - /// - /// - /// - ExaAiSearch, - /// - /// - /// - ParallelAiSearch, - /// - /// - /// - RagStore, - /// - /// - /// - VertexAiSearch, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class RetrievalCallDeltaRetrievalTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this RetrievalCallDeltaRetrievalType value) - { - return value switch - { - RetrievalCallDeltaRetrievalType.ExaAiSearch => "exa_ai_search", - RetrievalCallDeltaRetrievalType.ParallelAiSearch => "parallel_ai_search", - RetrievalCallDeltaRetrievalType.RagStore => "rag_store", - RetrievalCallDeltaRetrievalType.VertexAiSearch => "vertex_ai_search", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static RetrievalCallDeltaRetrievalType? ToEnum(string value) - { - return value switch - { - "exa_ai_search" => RetrievalCallDeltaRetrievalType.ExaAiSearch, - "parallel_ai_search" => RetrievalCallDeltaRetrievalType.ParallelAiSearch, - "rag_store" => RetrievalCallDeltaRetrievalType.RagStore, - "vertex_ai_search" => RetrievalCallDeltaRetrievalType.VertexAiSearch, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDeltaType.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDeltaType.Json.g.cs deleted file mode 100644 index ecacd65a6..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDeltaType.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class RetrievalCallDeltaType - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RetrievalCallDeltaType? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.RetrievalCallDeltaType), - jsonSerializerContext) as global::Google.Gemini.NextGen.RetrievalCallDeltaType; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RetrievalCallDeltaType? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.RetrievalCallDeltaType? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.RetrievalCallDeltaType), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RetrievalCallDeltaType; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDeltaType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDeltaType.g.cs deleted file mode 100644 index 18cf76ece..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDeltaType.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// - /// - public sealed partial class RetrievalCallDeltaType - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStep.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStep.Json.g.cs deleted file mode 100644 index 8258636b6..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStep.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class RetrievalCallStep - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RetrievalCallStep? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.RetrievalCallStep), - jsonSerializerContext) as global::Google.Gemini.NextGen.RetrievalCallStep; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RetrievalCallStep? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.RetrievalCallStep? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.RetrievalCallStep), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RetrievalCallStep; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStep.g.cs deleted file mode 100644 index 18afb965c..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStep.g.cs +++ /dev/null @@ -1,94 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Retrieval call step.
- /// Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,
- /// etc. RetrievalType decides which tool is used. - ///
- public sealed partial class RetrievalCallStep - { - /// - /// The arguments to pass to Retrieval tools. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.RetrievalCallArguments RetrievalCallArguments { get; set; } - - /// - /// Required. A unique ID for this specific tool call. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - - /// - /// The type of retrieval tools. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("retrieval_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.RetrievalCallStepRetrievalTypeJsonConverter))] - public global::Google.Gemini.NextGen.RetrievalCallStepRetrievalType? RetrievalType { get; set; } - - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The arguments to pass to Retrieval tools. - /// - /// - /// Required. A unique ID for this specific tool call. - /// - /// - /// - /// The type of retrieval tools. - /// - /// - /// A signature hash for backend validation. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RetrievalCallStep( - global::Google.Gemini.NextGen.RetrievalCallArguments retrievalCallArguments, - string id, - object type, - global::Google.Gemini.NextGen.RetrievalCallStepRetrievalType? retrievalType, - byte[]? signature) - { - this.RetrievalCallArguments = retrievalCallArguments ?? throw new global::System.ArgumentNullException(nameof(retrievalCallArguments)); - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.RetrievalType = retrievalType; - this.Signature = signature; - } - - /// - /// Initializes a new instance of the class. - /// - public RetrievalCallStep() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStepRetrievalType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStepRetrievalType.g.cs deleted file mode 100644 index 7900e4599..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStepRetrievalType.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// The type of retrieval tools. - /// - public enum RetrievalCallStepRetrievalType - { - /// - /// - /// - ExaAiSearch, - /// - /// - /// - ParallelAiSearch, - /// - /// - /// - RagStore, - /// - /// - /// - VertexAiSearch, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class RetrievalCallStepRetrievalTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this RetrievalCallStepRetrievalType value) - { - return value switch - { - RetrievalCallStepRetrievalType.ExaAiSearch => "exa_ai_search", - RetrievalCallStepRetrievalType.ParallelAiSearch => "parallel_ai_search", - RetrievalCallStepRetrievalType.RagStore => "rag_store", - RetrievalCallStepRetrievalType.VertexAiSearch => "vertex_ai_search", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static RetrievalCallStepRetrievalType? ToEnum(string value) - { - return value switch - { - "exa_ai_search" => RetrievalCallStepRetrievalType.ExaAiSearch, - "parallel_ai_search" => RetrievalCallStepRetrievalType.ParallelAiSearch, - "rag_store" => RetrievalCallStepRetrievalType.RagStore, - "vertex_ai_search" => RetrievalCallStepRetrievalType.VertexAiSearch, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStepType.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStepType.Json.g.cs deleted file mode 100644 index 15a19fa04..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStepType.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class RetrievalCallStepType - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RetrievalCallStepType? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.RetrievalCallStepType), - jsonSerializerContext) as global::Google.Gemini.NextGen.RetrievalCallStepType; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RetrievalCallStepType? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.RetrievalCallStepType? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.RetrievalCallStepType), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RetrievalCallStepType; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDelta.g.cs deleted file mode 100644 index 7e0326d1b..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDelta.g.cs +++ /dev/null @@ -1,69 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,
- /// etc.
- /// ToolResultDelta.type - ///
- public sealed partial class RetrievalResultDelta - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - - /// - /// Whether the retrieval resulted in an error. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] - public bool? IsError { get; set; } - - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// - /// Whether the retrieval resulted in an error. - /// - /// - /// A signature hash for backend validation. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RetrievalResultDelta( - object type, - bool? isError, - byte[]? signature) - { - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.IsError = isError; - this.Signature = signature; - } - - /// - /// Initializes a new instance of the class. - /// - public RetrievalResultDelta() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDeltaType.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDeltaType.Json.g.cs deleted file mode 100644 index 97b4781ce..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDeltaType.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class RetrievalResultDeltaType - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RetrievalResultDeltaType? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.RetrievalResultDeltaType), - jsonSerializerContext) as global::Google.Gemini.NextGen.RetrievalResultDeltaType; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RetrievalResultDeltaType? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.RetrievalResultDeltaType? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.RetrievalResultDeltaType), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RetrievalResultDeltaType; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDeltaType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDeltaType.g.cs deleted file mode 100644 index 7062834b2..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDeltaType.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// - /// - public sealed partial class RetrievalResultDeltaType - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStep.g.cs deleted file mode 100644 index 01a0e0f13..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStep.g.cs +++ /dev/null @@ -1,81 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Vertex Retrieval result step.
- /// Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,
- /// etc. - ///
- public sealed partial class RetrievalResultStep - { - /// - /// Required. ID to match the ID from the function call block. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("call_id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string CallId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - - /// - /// Whether the retrieval resulted in an error. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] - public bool? IsError { get; set; } - - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Required. ID to match the ID from the function call block. - /// - /// - /// - /// Whether the retrieval resulted in an error. - /// - /// - /// A signature hash for backend validation. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public RetrievalResultStep( - string callId, - object type, - bool? isError, - byte[]? signature) - { - this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.IsError = isError; - this.Signature = signature; - } - - /// - /// Initializes a new instance of the class. - /// - public RetrievalResultStep() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStepType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStepType.g.cs deleted file mode 100644 index 232cd4076..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStepType.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// - /// - public sealed partial class RetrievalResultStepType - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalRetrievalType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalRetrievalType.g.cs deleted file mode 100644 index ba5d3495e..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalRetrievalType.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// - /// - public enum RetrievalRetrievalType - { - /// - /// - /// - ExaAiSearch, - /// - /// - /// - ParallelAiSearch, - /// - /// - /// - RagStore, - /// - /// - /// - VertexAiSearch, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class RetrievalRetrievalTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this RetrievalRetrievalType value) - { - return value switch - { - RetrievalRetrievalType.ExaAiSearch => "exa_ai_search", - RetrievalRetrievalType.ParallelAiSearch => "parallel_ai_search", - RetrievalRetrievalType.RagStore => "rag_store", - RetrievalRetrievalType.VertexAiSearch => "vertex_ai_search", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static RetrievalRetrievalType? ToEnum(string value) - { - return value switch - { - "exa_ai_search" => RetrievalRetrievalType.ExaAiSearch, - "parallel_ai_search" => RetrievalRetrievalType.ParallelAiSearch, - "rag_store" => RetrievalRetrievalType.RagStore, - "vertex_ai_search" => RetrievalRetrievalType.VertexAiSearch, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalType.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalType.Json.g.cs deleted file mode 100644 index cb0c15735..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalType.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class RetrievalType - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RetrievalType? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.RetrievalType), - jsonSerializerContext) as global::Google.Gemini.NextGen.RetrievalType; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.RetrievalType? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.RetrievalType? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.RetrievalType), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RetrievalType; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalType.g.cs deleted file mode 100644 index af31bf169..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalType.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// - /// - public sealed partial class RetrievalType - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RotateSigningSecretRequest.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RotateSigningSecretRequest.g.cs index 38c67e0f7..c0417024f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RotateSigningSecretRequest.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RotateSigningSecretRequest.g.cs @@ -8,6 +8,14 @@ namespace Google.Gemini.NextGen ///
public sealed partial class RotateSigningSecretRequest { + /// + /// Required. The ID of the webhook for which to generate a signing secret.
+ /// Format: `{webhook_id}` + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + /// /// Optional. The revocation behavior for previous signing secrets. /// @@ -24,6 +32,10 @@ public sealed partial class RotateSigningSecretRequest /// /// Initializes a new instance of the class. /// + /// + /// Required. The ID of the webhook for which to generate a signing secret.
+ /// Format: `{webhook_id}` + /// /// /// Optional. The revocation behavior for previous signing secrets. /// @@ -31,8 +43,10 @@ public sealed partial class RotateSigningSecretRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RotateSigningSecretRequest( + string id, global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior? revocationBehavior) { + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.RevocationBehavior = revocationBehavior; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntryTransformItem.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RotateSigningSecretResponse.Json.g.cs similarity index 87% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntryTransformItem.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RotateSigningSecretResponse.Json.g.cs index d4ab59277..290d50368 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntryTransformItem.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RotateSigningSecretResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class AllowlistEntryTransformItem + public sealed partial class RotateSigningSecretResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.AllowlistEntryTransformItem? FromJson( + public static global::Google.Gemini.NextGen.RotateSigningSecretResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.AllowlistEntryTransformItem), - jsonSerializerContext) as global::Google.Gemini.NextGen.AllowlistEntryTransformItem; + typeof(global::Google.Gemini.NextGen.RotateSigningSecretResponse), + jsonSerializerContext) as global::Google.Gemini.NextGen.RotateSigningSecretResponse; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.AllowlistEntryTransformItem? FromJson( + public static global::Google.Gemini.NextGen.RotateSigningSecretResponse? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.AllowlistEntryTransformItem? FromJson( + public static global::Google.Gemini.NextGen.RotateSigningSecretResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.AllowlistEntryTransformItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.AllowlistEntryTransformItem; + typeof(global::Google.Gemini.NextGen.RotateSigningSecretResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.RotateSigningSecretResponse; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookRotateSigningSecretResponse.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RotateSigningSecretResponse.g.cs similarity index 77% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookRotateSigningSecretResponse.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RotateSigningSecretResponse.g.cs index d46a77f47..47aed78e5 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookRotateSigningSecretResponse.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RotateSigningSecretResponse.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// Response message for WebhookService.RotateSigningSecret. /// - public sealed partial class WebhookRotateSigningSecretResponse + public sealed partial class RotateSigningSecretResponse { /// /// Output only. The newly generated signing secret.
@@ -22,7 +22,7 @@ public sealed partial class WebhookRotateSigningSecretResponse public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Output only. The newly generated signing secret.
@@ -31,16 +31,16 @@ public sealed partial class WebhookRotateSigningSecretResponse #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public WebhookRotateSigningSecretResponse( + public RotateSigningSecretResponse( string? secret) { this.Secret = secret; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public WebhookRotateSigningSecretResponse() + public RotateSigningSecretResponse() { } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SafetySettingThreshold.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SafetySettingThreshold.g.cs index 9ad6623e1..b865e605c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SafetySettingThreshold.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SafetySettingThreshold.g.cs @@ -20,10 +20,6 @@ public enum SafetySettingThreshold /// /// /// - BlockNone, - /// - /// - /// BlockOnlyHigh, /// /// @@ -45,7 +41,6 @@ public static string ToValueString(this SafetySettingThreshold value) { SafetySettingThreshold.BlockLowAndAbove => "block_low_and_above", SafetySettingThreshold.BlockMediumAndAbove => "block_medium_and_above", - SafetySettingThreshold.BlockNone => "block_none", SafetySettingThreshold.BlockOnlyHigh => "block_only_high", SafetySettingThreshold.Off => "off", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -60,7 +55,6 @@ public static string ToValueString(this SafetySettingThreshold value) { "block_low_and_above" => SafetySettingThreshold.BlockLowAndAbove, "block_medium_and_above" => SafetySettingThreshold.BlockMediumAndAbove, - "block_none" => SafetySettingThreshold.BlockNone, "block_only_high" => SafetySettingThreshold.BlockOnlyHigh, "off" => SafetySettingThreshold.Off, _ => null, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ServiceTier.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ServiceTier.g.cs index 562e544d2..6b3bb8fa6 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ServiceTier.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ServiceTier.g.cs @@ -8,10 +8,6 @@ namespace Google.Gemini.NextGen /// public enum ServiceTier { - /// - /// - /// - Deferred, /// /// /// @@ -38,7 +34,6 @@ public static string ToValueString(this ServiceTier value) { return value switch { - ServiceTier.Deferred => "deferred", ServiceTier.Flex => "flex", ServiceTier.Priority => "priority", ServiceTier.Standard => "standard", @@ -52,7 +47,6 @@ public static string ToValueString(this ServiceTier value) { return value switch { - "deferred" => ServiceTier.Deferred, "flex" => ServiceTier.Flex, "priority" => ServiceTier.Priority, "standard" => ServiceTier.Standard, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SessionConfig.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SessionConfig.Json.g.cs deleted file mode 100644 index e8bef12f8..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SessionConfig.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class SessionConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.SessionConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.SessionConfig), - jsonSerializerContext) as global::Google.Gemini.NextGen.SessionConfig; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.SessionConfig? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.SessionConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.SessionConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.SessionConfig; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SessionConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SessionConfig.g.cs deleted file mode 100644 index af6fbd027..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SessionConfig.g.cs +++ /dev/null @@ -1,48 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// The configuration of CodeMender sessions. - /// - public sealed partial class SessionConfig - { - /// - /// The maximum number of interaction rounds the agent is allowed to perform
- /// before reaching a timeout. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("max_rounds")] - public int? MaxRounds { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The maximum number of interaction rounds the agent is allowed to perform
- /// before reaching a timeout. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public SessionConfig( - int? maxRounds) - { - this.MaxRounds = maxRounds; - } - - /// - /// Initializes a new instance of the class. - /// - public SessionConfig() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SourceType.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SourceType.g.cs index 43a10e17f..cfe62cb28 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SourceType.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SourceType.g.cs @@ -20,10 +20,6 @@ public enum SourceType /// ///
Repository, - /// - /// - /// - SkillRegistry, } /// @@ -41,7 +37,6 @@ public static string ToValueString(this SourceType value) SourceType.Gcs => "gcs", SourceType.Inline => "inline", SourceType.Repository => "repository", - SourceType.SkillRegistry => "skill_registry", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -55,7 +50,6 @@ public static string ToValueString(this SourceType value) "gcs" => SourceType.Gcs, "inline" => SourceType.Inline, "repository" => SourceType.Repository, - "skill_registry" => SourceType.SkillRegistry, _ => null, }; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeakerConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeakerConfig.g.cs index 14c73893a..764c2eaf3 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeakerConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeakerConfig.g.cs @@ -12,7 +12,7 @@ public sealed partial class SpeakerConfig /// Individual speaker configurations. /// [global::System.Text.Json.Serialization.JsonPropertyName("speakers")] - public global::System.Collections.Generic.IList? Speakers { get; set; } + public global::System.Collections.Generic.IList? Speakers { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -30,7 +30,7 @@ public sealed partial class SpeakerConfig [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SpeakerConfig( - global::System.Collections.Generic.IList? speakers) + global::System.Collections.Generic.IList? speakers) { this.Speakers = speakers; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig2.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig.Json.g.cs similarity index 93% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig2.Json.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig.Json.g.cs index e5969f549..981b8e848 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig2.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class SpeechConfig2 + public sealed partial class SpeechConfig { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -47,20 +47,20 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.SpeechConfig2? FromJson( + public static global::Google.Gemini.NextGen.SpeechConfig? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::Google.Gemini.NextGen.SpeechConfig2), - jsonSerializerContext) as global::Google.Gemini.NextGen.SpeechConfig2; + typeof(global::Google.Gemini.NextGen.SpeechConfig), + jsonSerializerContext) as global::Google.Gemini.NextGen.SpeechConfig; } /// /// Deserializes a JSON string using the generated default JsonSerializerContext. /// - public static global::Google.Gemini.NextGen.SpeechConfig2? FromJson( + public static global::Google.Gemini.NextGen.SpeechConfig? FromJson( string json) { return FromJson( @@ -75,7 +75,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::Google.Gemini.NextGen.SpeechConfig2? FromJson( + public static global::Google.Gemini.NextGen.SpeechConfig? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -86,7 +86,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -94,20 +94,20 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::Google.Gemini.NextGen.SpeechConfig2), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.SpeechConfig2; + typeof(global::Google.Gemini.NextGen.SpeechConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.SpeechConfig; } /// /// Deserializes a JSON stream using the generated default JsonSerializerContext. /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream) { return FromJsonStreamAsync( @@ -122,7 +122,7 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { @@ -133,7 +133,7 @@ public string ToJson( global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); } - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig.g.cs similarity index 93% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig2.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig.g.cs index 039e52dbf..fb95f3e79 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig2.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig.g.cs @@ -6,7 +6,7 @@ namespace Google.Gemini.NextGen /// /// The configuration for speech interaction. /// - public sealed partial class SpeechConfig2 + public sealed partial class SpeechConfig { /// /// The voice of the speaker. @@ -33,7 +33,7 @@ public sealed partial class SpeechConfig2 public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The voice of the speaker. @@ -47,7 +47,7 @@ public sealed partial class SpeechConfig2 #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public SpeechConfig2( + public SpeechConfig( string? voice, string? language, string? speaker) @@ -58,9 +58,9 @@ public SpeechConfig2( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public SpeechConfig2() + public SpeechConfig() { } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Status.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Status.Json.g.cs deleted file mode 100644 index 372f0128e..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Status.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class Status - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.Status? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.Status), - jsonSerializerContext) as global::Google.Gemini.NextGen.Status; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.Status? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.Status? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.Status), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.Status; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Status.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Status.g.cs deleted file mode 100644 index 23fa1d013..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Status.g.cs +++ /dev/null @@ -1,79 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// The `Status` type defines a logical error model that is suitable for
- /// different programming environments, including REST APIs and RPC APIs. It is
- /// used by [gRPC](https://github.com/grpc). Each `Status` message contains
- /// three pieces of data: error code, error message, and error details.
- /// You can find out more about this error model and how to work with it in the
- /// [API Design Guide](https://cloud.google.com/apis/design/errors). - ///
- public sealed partial class Status - { - /// - /// The status code, which should be an enum value of google.rpc.Code. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("code")] - public int? Code { get; set; } - - /// - /// A developer-facing error message, which should be in English. Any
- /// user-facing error message should be localized and sent in the
- /// google.rpc.Status.details field, or localized by the client. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - - /// - /// A list of messages that carry the error details. There is a common set of
- /// message types for APIs to use. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("details")] - public global::System.Collections.Generic.IList? Details { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The status code, which should be an enum value of google.rpc.Code. - /// - /// - /// A developer-facing error message, which should be in English. Any
- /// user-facing error message should be localized and sent in the
- /// google.rpc.Status.details field, or localized by the client. - /// - /// - /// A list of messages that carry the error details. There is a common set of
- /// message types for APIs to use. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public Status( - int? code, - string? message, - global::System.Collections.Generic.IList? details) - { - this.Code = code; - this.Message = message; - this.Details = details; - } - - /// - /// Initializes a new instance of the class. - /// - public Status() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StatusDetail.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StatusDetail.Json.g.cs deleted file mode 100644 index 9f061aacc..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StatusDetail.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class StatusDetail - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.StatusDetail? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.StatusDetail), - jsonSerializerContext) as global::Google.Gemini.NextGen.StatusDetail; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.StatusDetail? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.StatusDetail? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.StatusDetail), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.StatusDetail; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StatusDetail2.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StatusDetail2.Json.g.cs deleted file mode 100644 index 83e1199b6..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StatusDetail2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class StatusDetail2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.StatusDetail2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.StatusDetail2), - jsonSerializerContext) as global::Google.Gemini.NextGen.StatusDetail2; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.StatusDetail2? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.StatusDetail2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.StatusDetail2), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.StatusDetail2; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StatusDetail2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StatusDetail2.g.cs deleted file mode 100644 index 7e906f25e..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StatusDetail2.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Properties of the object. Contains field @type with type URL. - /// - public sealed partial class StatusDetail2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Step.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Step.g.cs index 57e3a6f9f..8d6c108f4 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Step.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Step.g.cs @@ -10,8 +10,7 @@ namespace Google.Gemini.NextGen public readonly partial struct Step : global::System.IEquatable { /// - /// Code execution call step.
- /// Example: {"type":"code_execution_call","arguments":{"code":"print(sum(range(1, 11)))","language":"python"},"id":"code_call_71021"} + /// Code execution call step. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.CodeExecutionCallStep? CodeExecutionCall { get; init; } @@ -48,8 +47,7 @@ public bool TryPickCodeExecutionCall( : throw new global::System.InvalidOperationException($"Expected union variant 'CodeExecutionCall' but the value was {ToString()}."); /// - /// Code execution result step.
- /// Example: {"type":"code_execution_result","call_id":"code_call_71021","result":"55\n"} + /// Code execution result step. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.CodeExecutionResultStep? CodeExecutionResult { get; init; } @@ -86,8 +84,7 @@ public bool TryPickCodeExecutionResult( : throw new global::System.InvalidOperationException($"Expected union variant 'CodeExecutionResult' but the value was {ToString()}."); /// - /// File Search call step.
- /// Example: {"type":"file_search_call","id":"file_call_88192"} + /// File Search call step. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.FileSearchCallStep? FileSearchCall { get; init; } @@ -124,8 +121,7 @@ public bool TryPickFileSearchCall( : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchCall' but the value was {ToString()}."); /// - /// File Search result step.
- /// Example: {"type":"file_search_result","call_id":"file_call_88192"} + /// File Search result step. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.FileSearchResultStep? FileSearchResult { get; init; } @@ -162,8 +158,7 @@ public bool TryPickFileSearchResult( : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchResult' but the value was {ToString()}."); /// - /// A function tool call step.
- /// Example: {"name":"get_weather","type":"function_call","arguments":{"location":"Boston, MA"},"id":"call_98231"} + /// A function tool call step. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.FunctionCallStep? FunctionCall { get; init; } @@ -200,8 +195,7 @@ public bool TryPickFunctionCall( : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCall' but the value was {ToString()}."); /// - /// Result of a function tool call.
- /// Example: {"name":"get_weather","type":"function_result","call_id":"call_98231","result":[{"type":"text","text":"{\u0022weather\u0022:\u0022sunny\u0022}"}]} + /// Result of a function tool call. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.FunctionResultStep? FunctionResult { get; init; } @@ -238,8 +232,7 @@ public bool TryPickFunctionResult( : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionResult' but the value was {ToString()}."); /// - /// Google Maps call step.
- /// Example: {"type":"google_maps_call","arguments":{"queries":["parks near San Francisco"]},"id":"maps_call_39201"} + /// Google Maps call step. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.GoogleMapsCallStep? GoogleMapsCall { get; init; } @@ -276,8 +269,7 @@ public bool TryPickGoogleMapsCall( : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleMapsCall' but the value was {ToString()}."); /// - /// Google Maps result step.
- /// Example: {"type":"google_maps_result","call_id":"maps_call_39201","result":[{"places":[{"url":"https://maps.google.com/?cid=12345","name":"Golden Gate Park","place_id":"ChIJIQBpAG2ahYAR9R7bNdTLg8M"}]}]} + /// Google Maps result step. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.GoogleMapsResultStep? GoogleMapsResult { get; init; } @@ -314,8 +306,7 @@ public bool TryPickGoogleMapsResult( : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleMapsResult' but the value was {ToString()}."); /// - /// Google Search call step.
- /// Example: {"type":"google_search_call","arguments":{"queries":["Who won the men\u0027s 100m in Paris 2024?"]},"id":"search_call_19201"} + /// Google Search call step. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.GoogleSearchCallStep? GoogleSearchCall { get; init; } @@ -352,8 +343,7 @@ public bool TryPickGoogleSearchCall( : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSearchCall' but the value was {ToString()}."); /// - /// Google Search result step.
- /// Example: {"type":"google_search_result","call_id":"search_call_19201","result":[{"search_suggestions":"\u003Cdiv class=\u0022container\u0022\u003E...\u003C/div\u003E"}]} + /// Google Search result step. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.GoogleSearchResultStep? GoogleSearchResult { get; init; } @@ -390,84 +380,81 @@ public bool TryPickGoogleSearchResult( : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSearchResult' but the value was {ToString()}."); /// - /// MCPServer tool call step.
- /// Example: {"name":"calculate_tax","type":"mcp_server_tool_call","arguments":{"income":120000,"state":"CA"},"id":"mcp_call_29012","server_name":"financial_mcp_server"} + /// MCPServer tool call step. ///
#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.MCPServerToolCallStep? MCPServerToolCall { get; init; } + public global::Google.Gemini.NextGen.McpServerToolCallStep? McpServerToolCall { get; init; } #else - public global::Google.Gemini.NextGen.MCPServerToolCallStep? MCPServerToolCall { get; } + public global::Google.Gemini.NextGen.McpServerToolCallStep? McpServerToolCall { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MCPServerToolCall))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(McpServerToolCall))] #endif - public bool IsMCPServerToolCall => MCPServerToolCall != null; + public bool IsMcpServerToolCall => McpServerToolCall != null; /// /// /// - public bool TryPickMCPServerToolCall( + public bool TryPickMcpServerToolCall( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Google.Gemini.NextGen.MCPServerToolCallStep? value) + out global::Google.Gemini.NextGen.McpServerToolCallStep? value) { - value = MCPServerToolCall; - return IsMCPServerToolCall; + value = McpServerToolCall; + return IsMcpServerToolCall; } /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolCallStep PickMCPServerToolCall() => MCPServerToolCall is { } value + public global::Google.Gemini.NextGen.McpServerToolCallStep PickMcpServerToolCall() => McpServerToolCall is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'MCPServerToolCall' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'McpServerToolCall' but the value was {ToString()}."); /// - /// MCPServer tool result step.
- /// Example: {"name":"calculate_tax","type":"mcp_server_tool_result","call_id":"mcp_call_29012","result":{"tax_due":32400},"server_name":"financial_mcp_server"} + /// MCPServer tool result step. ///
#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.MCPServerToolResultStep? MCPServerToolResult { get; init; } + public global::Google.Gemini.NextGen.McpServerToolResultStep? McpServerToolResult { get; init; } #else - public global::Google.Gemini.NextGen.MCPServerToolResultStep? MCPServerToolResult { get; } + public global::Google.Gemini.NextGen.McpServerToolResultStep? McpServerToolResult { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MCPServerToolResult))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(McpServerToolResult))] #endif - public bool IsMCPServerToolResult => MCPServerToolResult != null; + public bool IsMcpServerToolResult => McpServerToolResult != null; /// /// /// - public bool TryPickMCPServerToolResult( + public bool TryPickMcpServerToolResult( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Google.Gemini.NextGen.MCPServerToolResultStep? value) + out global::Google.Gemini.NextGen.McpServerToolResultStep? value) { - value = MCPServerToolResult; - return IsMCPServerToolResult; + value = McpServerToolResult; + return IsMcpServerToolResult; } /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolResultStep PickMCPServerToolResult() => MCPServerToolResult is { } value + public global::Google.Gemini.NextGen.McpServerToolResultStep PickMcpServerToolResult() => McpServerToolResult is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'MCPServerToolResult' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'McpServerToolResult' but the value was {ToString()}."); /// - /// Output generated by the model.
- /// Example: {"type":"model_output","content":[{"type":"text","text":"The capital of France is Paris."}]} + /// Output generated by the model. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.ModelOutputStep? ModelOutput { get; init; } @@ -579,86 +566,7 @@ public bool TryPickProcessingResult( : throw new global::System.InvalidOperationException($"Expected union variant 'ProcessingResult' but the value was {ToString()}."); /// - /// Retrieval call step.
- /// Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,
- /// etc. RetrievalType decides which tool is used. - ///
-#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.RetrievalCallStep? RetrievalCall { get; init; } -#else - public global::Google.Gemini.NextGen.RetrievalCallStep? RetrievalCall { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RetrievalCall))] -#endif - public bool IsRetrievalCall => RetrievalCall != null; - - /// - /// - /// - public bool TryPickRetrievalCall( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Google.Gemini.NextGen.RetrievalCallStep? value) - { - value = RetrievalCall; - return IsRetrievalCall; - } - - /// - /// - /// - public global::Google.Gemini.NextGen.RetrievalCallStep PickRetrievalCall() => RetrievalCall is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'RetrievalCall' but the value was {ToString()}."); - - /// - /// Vertex Retrieval result step.
- /// Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,
- /// etc. - ///
-#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.RetrievalResultStep? RetrievalResult { get; init; } -#else - public global::Google.Gemini.NextGen.RetrievalResultStep? RetrievalResult { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RetrievalResult))] -#endif - public bool IsRetrievalResult => RetrievalResult != null; - - /// - /// - /// - public bool TryPickRetrievalResult( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Google.Gemini.NextGen.RetrievalResultStep? value) - { - value = RetrievalResult; - return IsRetrievalResult; - } - - /// - /// - /// - public global::Google.Gemini.NextGen.RetrievalResultStep PickRetrievalResult() => RetrievalResult is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'RetrievalResult' but the value was {ToString()}."); - - /// - /// A thought step.
- /// Example: {"type":"thought","signature":"thought_sig_abcd1234","summary":[{"type":"text","text":"The model is searching Google for the capital of France."}]} + /// A thought step. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.ThoughtStep? Thought { get; init; } @@ -695,8 +603,7 @@ public bool TryPickThought( : throw new global::System.InvalidOperationException($"Expected union variant 'Thought' but the value was {ToString()}."); /// - /// URL context call step.
- /// Example: {"type":"url_context_call","arguments":{"urls":["https://www.example.com"]},"id":"url_call_10219"} + /// URL context call step. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.URLContextCallStep? URLContextCall { get; init; } @@ -733,8 +640,7 @@ public bool TryPickURLContextCall( : throw new global::System.InvalidOperationException($"Expected union variant 'URLContextCall' but the value was {ToString()}."); /// - /// URL context result step.
- /// Example: {"type":"url_context_result","call_id":"url_call_10219","result":[{"url":"https://www.example.com","status":"success"}]} + /// URL context result step. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.URLContextResultStep? URLContextResult { get; init; } @@ -771,8 +677,7 @@ public bool TryPickURLContextResult( : throw new global::System.InvalidOperationException($"Expected union variant 'URLContextResult' but the value was {ToString()}."); /// - /// Input provided by the user.
- /// Example: {"type":"user_input","content":[{"type":"text","text":"What is the capital of France?"}]} + /// Input provided by the user. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.UserInputStep? UserInput { get; init; } @@ -1040,48 +945,48 @@ public Step(global::Google.Gemini.NextGen.GoogleSearchResultStep? value) /// /// /// - public static implicit operator Step(global::Google.Gemini.NextGen.MCPServerToolCallStep value) => new Step((global::Google.Gemini.NextGen.MCPServerToolCallStep?)value); + public static implicit operator Step(global::Google.Gemini.NextGen.McpServerToolCallStep value) => new Step((global::Google.Gemini.NextGen.McpServerToolCallStep?)value); /// /// /// - public static implicit operator global::Google.Gemini.NextGen.MCPServerToolCallStep?(Step @this) => @this.MCPServerToolCall; + public static implicit operator global::Google.Gemini.NextGen.McpServerToolCallStep?(Step @this) => @this.McpServerToolCall; /// /// /// - public Step(global::Google.Gemini.NextGen.MCPServerToolCallStep? value) + public Step(global::Google.Gemini.NextGen.McpServerToolCallStep? value) { - MCPServerToolCall = value; + McpServerToolCall = value; } /// /// /// - public static Step FromMCPServerToolCall(global::Google.Gemini.NextGen.MCPServerToolCallStep? value) => new Step(value); + public static Step FromMcpServerToolCall(global::Google.Gemini.NextGen.McpServerToolCallStep? value) => new Step(value); /// /// /// - public static implicit operator Step(global::Google.Gemini.NextGen.MCPServerToolResultStep value) => new Step((global::Google.Gemini.NextGen.MCPServerToolResultStep?)value); + public static implicit operator Step(global::Google.Gemini.NextGen.McpServerToolResultStep value) => new Step((global::Google.Gemini.NextGen.McpServerToolResultStep?)value); /// /// /// - public static implicit operator global::Google.Gemini.NextGen.MCPServerToolResultStep?(Step @this) => @this.MCPServerToolResult; + public static implicit operator global::Google.Gemini.NextGen.McpServerToolResultStep?(Step @this) => @this.McpServerToolResult; /// /// /// - public Step(global::Google.Gemini.NextGen.MCPServerToolResultStep? value) + public Step(global::Google.Gemini.NextGen.McpServerToolResultStep? value) { - MCPServerToolResult = value; + McpServerToolResult = value; } /// /// /// - public static Step FromMCPServerToolResult(global::Google.Gemini.NextGen.MCPServerToolResultStep? value) => new Step(value); + public static Step FromMcpServerToolResult(global::Google.Gemini.NextGen.McpServerToolResultStep? value) => new Step(value); /// /// @@ -1152,52 +1057,6 @@ public Step(global::Google.Gemini.NextGen.ProcessingResultStep? value) /// public static Step FromProcessingResult(global::Google.Gemini.NextGen.ProcessingResultStep? value) => new Step(value); - /// - /// - /// - public static implicit operator Step(global::Google.Gemini.NextGen.RetrievalCallStep value) => new Step((global::Google.Gemini.NextGen.RetrievalCallStep?)value); - - /// - /// - /// - public static implicit operator global::Google.Gemini.NextGen.RetrievalCallStep?(Step @this) => @this.RetrievalCall; - - /// - /// - /// - public Step(global::Google.Gemini.NextGen.RetrievalCallStep? value) - { - RetrievalCall = value; - } - - /// - /// - /// - public static Step FromRetrievalCall(global::Google.Gemini.NextGen.RetrievalCallStep? value) => new Step(value); - - /// - /// - /// - public static implicit operator Step(global::Google.Gemini.NextGen.RetrievalResultStep value) => new Step((global::Google.Gemini.NextGen.RetrievalResultStep?)value); - - /// - /// - /// - public static implicit operator global::Google.Gemini.NextGen.RetrievalResultStep?(Step @this) => @this.RetrievalResult; - - /// - /// - /// - public Step(global::Google.Gemini.NextGen.RetrievalResultStep? value) - { - RetrievalResult = value; - } - - /// - /// - /// - public static Step FromRetrievalResult(global::Google.Gemini.NextGen.RetrievalResultStep? value) => new Step(value); - /// /// /// @@ -1304,13 +1163,11 @@ public Step( global::Google.Gemini.NextGen.GoogleMapsResultStep? googleMapsResult, global::Google.Gemini.NextGen.GoogleSearchCallStep? googleSearchCall, global::Google.Gemini.NextGen.GoogleSearchResultStep? googleSearchResult, - global::Google.Gemini.NextGen.MCPServerToolCallStep? mCPServerToolCall, - global::Google.Gemini.NextGen.MCPServerToolResultStep? mCPServerToolResult, + global::Google.Gemini.NextGen.McpServerToolCallStep? mcpServerToolCall, + global::Google.Gemini.NextGen.McpServerToolResultStep? mcpServerToolResult, global::Google.Gemini.NextGen.ModelOutputStep? modelOutput, global::Google.Gemini.NextGen.ProcessingCallStep? processingCall, global::Google.Gemini.NextGen.ProcessingResultStep? processingResult, - global::Google.Gemini.NextGen.RetrievalCallStep? retrievalCall, - global::Google.Gemini.NextGen.RetrievalResultStep? retrievalResult, global::Google.Gemini.NextGen.ThoughtStep? thought, global::Google.Gemini.NextGen.URLContextCallStep? uRLContextCall, global::Google.Gemini.NextGen.URLContextResultStep? uRLContextResult, @@ -1327,13 +1184,11 @@ public Step( GoogleMapsResult = googleMapsResult; GoogleSearchCall = googleSearchCall; GoogleSearchResult = googleSearchResult; - MCPServerToolCall = mCPServerToolCall; - MCPServerToolResult = mCPServerToolResult; + McpServerToolCall = mcpServerToolCall; + McpServerToolResult = mcpServerToolResult; ModelOutput = modelOutput; ProcessingCall = processingCall; ProcessingResult = processingResult; - RetrievalCall = retrievalCall; - RetrievalResult = retrievalResult; Thought = thought; URLContextCall = uRLContextCall; URLContextResult = uRLContextResult; @@ -1348,13 +1203,11 @@ UserInput as object ?? URLContextResult as object ?? URLContextCall as object ?? Thought as object ?? - RetrievalResult as object ?? - RetrievalCall as object ?? ProcessingResult as object ?? ProcessingCall as object ?? ModelOutput as object ?? - MCPServerToolResult as object ?? - MCPServerToolCall as object ?? + McpServerToolResult as object ?? + McpServerToolCall as object ?? GoogleSearchResult as object ?? GoogleSearchCall as object ?? GoogleMapsResult as object ?? @@ -1381,13 +1234,11 @@ CodeExecutionCall as object GoogleMapsResult?.ToString() ?? GoogleSearchCall?.ToString() ?? GoogleSearchResult?.ToString() ?? - MCPServerToolCall?.ToString() ?? - MCPServerToolResult?.ToString() ?? + McpServerToolCall?.ToString() ?? + McpServerToolResult?.ToString() ?? ModelOutput?.ToString() ?? ProcessingCall?.ToString() ?? ProcessingResult?.ToString() ?? - RetrievalCall?.ToString() ?? - RetrievalResult?.ToString() ?? Thought?.ToString() ?? URLContextCall?.ToString() ?? URLContextResult?.ToString() ?? @@ -1399,7 +1250,7 @@ CodeExecutionCall as object /// public bool Validate() { - return IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsThought && !IsURLContextCall && !IsURLContextResult && IsUserInput; + return IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && IsThought && !IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && IsURLContextCall && !IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && IsURLContextResult && !IsUserInput || !IsCodeExecutionCall && !IsCodeExecutionResult && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionCall && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsModelOutput && !IsProcessingCall && !IsProcessingResult && !IsThought && !IsURLContextCall && !IsURLContextResult && IsUserInput; } /// @@ -1416,13 +1267,11 @@ public bool Validate() global::System.Func? googleMapsResult = null, global::System.Func? googleSearchCall = null, global::System.Func? googleSearchResult = null, - global::System.Func? mCPServerToolCall = null, - global::System.Func? mCPServerToolResult = null, + global::System.Func? mcpServerToolCall = null, + global::System.Func? mcpServerToolResult = null, global::System.Func? modelOutput = null, global::System.Func? processingCall = null, global::System.Func? processingResult = null, - global::System.Func? retrievalCall = null, - global::System.Func? retrievalResult = null, global::System.Func? thought = null, global::System.Func? uRLContextCall = null, global::System.Func? uRLContextResult = null, @@ -1474,13 +1323,13 @@ public bool Validate() { return googleSearchResult(__value9); } - else if (MCPServerToolCall is { } __value10 && mCPServerToolCall != null) + else if (McpServerToolCall is { } __value10 && mcpServerToolCall != null) { - return mCPServerToolCall(__value10); + return mcpServerToolCall(__value10); } - else if (MCPServerToolResult is { } __value11 && mCPServerToolResult != null) + else if (McpServerToolResult is { } __value11 && mcpServerToolResult != null) { - return mCPServerToolResult(__value11); + return mcpServerToolResult(__value11); } else if (ModelOutput is { } __value12 && modelOutput != null) { @@ -1494,29 +1343,21 @@ public bool Validate() { return processingResult(__value14); } - else if (RetrievalCall is { } __value15 && retrievalCall != null) - { - return retrievalCall(__value15); - } - else if (RetrievalResult is { } __value16 && retrievalResult != null) + else if (Thought is { } __value15 && thought != null) { - return retrievalResult(__value16); + return thought(__value15); } - else if (Thought is { } __value17 && thought != null) + else if (URLContextCall is { } __value16 && uRLContextCall != null) { - return thought(__value17); + return uRLContextCall(__value16); } - else if (URLContextCall is { } __value18 && uRLContextCall != null) + else if (URLContextResult is { } __value17 && uRLContextResult != null) { - return uRLContextCall(__value18); + return uRLContextResult(__value17); } - else if (URLContextResult is { } __value19 && uRLContextResult != null) + else if (UserInput is { } __value18 && userInput != null) { - return uRLContextResult(__value19); - } - else if (UserInput is { } __value20 && userInput != null) - { - return userInput(__value20); + return userInput(__value18); } return default(TResult); @@ -1546,9 +1387,9 @@ public void Match( global::System.Action? googleSearchResult = null, - global::System.Action? mCPServerToolCall = null, + global::System.Action? mcpServerToolCall = null, - global::System.Action? mCPServerToolResult = null, + global::System.Action? mcpServerToolResult = null, global::System.Action? modelOutput = null, @@ -1556,10 +1397,6 @@ public void Match( global::System.Action? processingResult = null, - global::System.Action? retrievalCall = null, - - global::System.Action? retrievalResult = null, - global::System.Action? thought = null, global::System.Action? uRLContextCall = null, @@ -1614,13 +1451,13 @@ public void Match( { googleSearchResult?.Invoke(__value9); } - else if (MCPServerToolCall is { } __value10) + else if (McpServerToolCall is { } __value10) { - mCPServerToolCall?.Invoke(__value10); + mcpServerToolCall?.Invoke(__value10); } - else if (MCPServerToolResult is { } __value11) + else if (McpServerToolResult is { } __value11) { - mCPServerToolResult?.Invoke(__value11); + mcpServerToolResult?.Invoke(__value11); } else if (ModelOutput is { } __value12) { @@ -1634,29 +1471,21 @@ public void Match( { processingResult?.Invoke(__value14); } - else if (RetrievalCall is { } __value15) - { - retrievalCall?.Invoke(__value15); - } - else if (RetrievalResult is { } __value16) + else if (Thought is { } __value15) { - retrievalResult?.Invoke(__value16); + thought?.Invoke(__value15); } - else if (Thought is { } __value17) + else if (URLContextCall is { } __value16) { - thought?.Invoke(__value17); + uRLContextCall?.Invoke(__value16); } - else if (URLContextCall is { } __value18) + else if (URLContextResult is { } __value17) { - uRLContextCall?.Invoke(__value18); + uRLContextResult?.Invoke(__value17); } - else if (URLContextResult is { } __value19) + else if (UserInput is { } __value18) { - uRLContextResult?.Invoke(__value19); - } - else if (UserInput is { } __value20) - { - userInput?.Invoke(__value20); + userInput?.Invoke(__value18); } } @@ -1674,13 +1503,11 @@ public void Switch( global::System.Action? googleMapsResult = null, global::System.Action? googleSearchCall = null, global::System.Action? googleSearchResult = null, - global::System.Action? mCPServerToolCall = null, - global::System.Action? mCPServerToolResult = null, + global::System.Action? mcpServerToolCall = null, + global::System.Action? mcpServerToolResult = null, global::System.Action? modelOutput = null, global::System.Action? processingCall = null, global::System.Action? processingResult = null, - global::System.Action? retrievalCall = null, - global::System.Action? retrievalResult = null, global::System.Action? thought = null, global::System.Action? uRLContextCall = null, global::System.Action? uRLContextResult = null, @@ -1732,13 +1559,13 @@ public void Switch( { googleSearchResult?.Invoke(__value9); } - else if (MCPServerToolCall is { } __value10) + else if (McpServerToolCall is { } __value10) { - mCPServerToolCall?.Invoke(__value10); + mcpServerToolCall?.Invoke(__value10); } - else if (MCPServerToolResult is { } __value11) + else if (McpServerToolResult is { } __value11) { - mCPServerToolResult?.Invoke(__value11); + mcpServerToolResult?.Invoke(__value11); } else if (ModelOutput is { } __value12) { @@ -1752,29 +1579,21 @@ public void Switch( { processingResult?.Invoke(__value14); } - else if (RetrievalCall is { } __value15) - { - retrievalCall?.Invoke(__value15); - } - else if (RetrievalResult is { } __value16) - { - retrievalResult?.Invoke(__value16); - } - else if (Thought is { } __value17) + else if (Thought is { } __value15) { - thought?.Invoke(__value17); + thought?.Invoke(__value15); } - else if (URLContextCall is { } __value18) + else if (URLContextCall is { } __value16) { - uRLContextCall?.Invoke(__value18); + uRLContextCall?.Invoke(__value16); } - else if (URLContextResult is { } __value19) + else if (URLContextResult is { } __value17) { - uRLContextResult?.Invoke(__value19); + uRLContextResult?.Invoke(__value17); } - else if (UserInput is { } __value20) + else if (UserInput is { } __value18) { - userInput?.Invoke(__value20); + userInput?.Invoke(__value18); } } @@ -1805,20 +1624,16 @@ public override int GetHashCode() typeof(global::Google.Gemini.NextGen.GoogleSearchCallStep), GoogleSearchResult, typeof(global::Google.Gemini.NextGen.GoogleSearchResultStep), - MCPServerToolCall, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallStep), - MCPServerToolResult, - typeof(global::Google.Gemini.NextGen.MCPServerToolResultStep), + McpServerToolCall, + typeof(global::Google.Gemini.NextGen.McpServerToolCallStep), + McpServerToolResult, + typeof(global::Google.Gemini.NextGen.McpServerToolResultStep), ModelOutput, typeof(global::Google.Gemini.NextGen.ModelOutputStep), ProcessingCall, typeof(global::Google.Gemini.NextGen.ProcessingCallStep), ProcessingResult, typeof(global::Google.Gemini.NextGen.ProcessingResultStep), - RetrievalCall, - typeof(global::Google.Gemini.NextGen.RetrievalCallStep), - RetrievalResult, - typeof(global::Google.Gemini.NextGen.RetrievalResultStep), Thought, typeof(global::Google.Gemini.NextGen.ThoughtStep), URLContextCall, @@ -1853,13 +1668,11 @@ public bool Equals(Step other) global::System.Collections.Generic.EqualityComparer.Default.Equals(GoogleMapsResult, other.GoogleMapsResult) && global::System.Collections.Generic.EqualityComparer.Default.Equals(GoogleSearchCall, other.GoogleSearchCall) && global::System.Collections.Generic.EqualityComparer.Default.Equals(GoogleSearchResult, other.GoogleSearchResult) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MCPServerToolCall, other.MCPServerToolCall) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MCPServerToolResult, other.MCPServerToolResult) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(McpServerToolCall, other.McpServerToolCall) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(McpServerToolResult, other.McpServerToolResult) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ModelOutput, other.ModelOutput) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ProcessingCall, other.ProcessingCall) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ProcessingResult, other.ProcessingResult) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RetrievalCall, other.RetrievalCall) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RetrievalResult, other.RetrievalResult) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Thought, other.Thought) && global::System.Collections.Generic.EqualityComparer.Default.Equals(URLContextCall, other.URLContextCall) && global::System.Collections.Generic.EqualityComparer.Default.Equals(URLContextResult, other.URLContextResult) && diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDelta.g.cs index 675c0b72c..b1b679e46 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDelta.g.cs @@ -4,7 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Example: {"delta":{"type":"text","text":"Hello"},"event_type":"step.delta","index":0} + /// /// public sealed partial class StepDelta { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDeltaData.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDeltaData.g.cs index eafeaf876..888f48485 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDeltaData.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDeltaData.g.cs @@ -494,75 +494,75 @@ public bool TryPickImage( /// /// #if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.MCPServerToolCallDelta? MCPServerToolCall { get; init; } + public global::Google.Gemini.NextGen.McpServerToolCallDelta? McpServerToolCall { get; init; } #else - public global::Google.Gemini.NextGen.MCPServerToolCallDelta? MCPServerToolCall { get; } + public global::Google.Gemini.NextGen.McpServerToolCallDelta? McpServerToolCall { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MCPServerToolCall))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(McpServerToolCall))] #endif - public bool IsMCPServerToolCall => MCPServerToolCall != null; + public bool IsMcpServerToolCall => McpServerToolCall != null; /// /// /// - public bool TryPickMCPServerToolCall( + public bool TryPickMcpServerToolCall( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Google.Gemini.NextGen.MCPServerToolCallDelta? value) + out global::Google.Gemini.NextGen.McpServerToolCallDelta? value) { - value = MCPServerToolCall; - return IsMCPServerToolCall; + value = McpServerToolCall; + return IsMcpServerToolCall; } /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolCallDelta PickMCPServerToolCall() => MCPServerToolCall is { } value + public global::Google.Gemini.NextGen.McpServerToolCallDelta PickMcpServerToolCall() => McpServerToolCall is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'MCPServerToolCall' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'McpServerToolCall' but the value was {ToString()}."); /// /// /// #if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.MCPServerToolResultDelta? MCPServerToolResult { get; init; } + public global::Google.Gemini.NextGen.McpServerToolResultDelta? McpServerToolResult { get; init; } #else - public global::Google.Gemini.NextGen.MCPServerToolResultDelta? MCPServerToolResult { get; } + public global::Google.Gemini.NextGen.McpServerToolResultDelta? McpServerToolResult { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MCPServerToolResult))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(McpServerToolResult))] #endif - public bool IsMCPServerToolResult => MCPServerToolResult != null; + public bool IsMcpServerToolResult => McpServerToolResult != null; /// /// /// - public bool TryPickMCPServerToolResult( + public bool TryPickMcpServerToolResult( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Google.Gemini.NextGen.MCPServerToolResultDelta? value) + out global::Google.Gemini.NextGen.McpServerToolResultDelta? value) { - value = MCPServerToolResult; - return IsMCPServerToolResult; + value = McpServerToolResult; + return IsMcpServerToolResult; } /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolResultDelta PickMCPServerToolResult() => MCPServerToolResult is { } value + public global::Google.Gemini.NextGen.McpServerToolResultDelta PickMcpServerToolResult() => McpServerToolResult is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'MCPServerToolResult' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'McpServerToolResult' but the value was {ToString()}."); /// /// Streaming delta for a server-initiated media processing step. @@ -638,83 +638,6 @@ public bool TryPickProcessingResult( ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProcessingResult' but the value was {ToString()}."); - /// - /// Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,
- /// etc. RetrievalType decides which tool is used. - ///
-#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.RetrievalCallDelta? RetrievalCall { get; init; } -#else - public global::Google.Gemini.NextGen.RetrievalCallDelta? RetrievalCall { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RetrievalCall))] -#endif - public bool IsRetrievalCall => RetrievalCall != null; - - /// - /// - /// - public bool TryPickRetrievalCall( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Google.Gemini.NextGen.RetrievalCallDelta? value) - { - value = RetrievalCall; - return IsRetrievalCall; - } - - /// - /// - /// - public global::Google.Gemini.NextGen.RetrievalCallDelta PickRetrievalCall() => RetrievalCall is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'RetrievalCall' but the value was {ToString()}."); - - /// - /// Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,
- /// etc.
- /// ToolResultDelta.type - ///
-#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.RetrievalResultDelta? RetrievalResult { get; init; } -#else - public global::Google.Gemini.NextGen.RetrievalResultDelta? RetrievalResult { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(RetrievalResult))] -#endif - public bool IsRetrievalResult => RetrievalResult != null; - - /// - /// - /// - public bool TryPickRetrievalResult( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Google.Gemini.NextGen.RetrievalResultDelta? value) - { - value = RetrievalResult; - return IsRetrievalResult; - } - - /// - /// - /// - public global::Google.Gemini.NextGen.RetrievalResultDelta PickRetrievalResult() => RetrievalResult is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'RetrievalResult' but the value was {ToString()}."); - /// /// /// @@ -1275,48 +1198,48 @@ public StepDeltaData(global::Google.Gemini.NextGen.ImageDelta? value) /// /// /// - public static implicit operator StepDeltaData(global::Google.Gemini.NextGen.MCPServerToolCallDelta value) => new StepDeltaData((global::Google.Gemini.NextGen.MCPServerToolCallDelta?)value); + public static implicit operator StepDeltaData(global::Google.Gemini.NextGen.McpServerToolCallDelta value) => new StepDeltaData((global::Google.Gemini.NextGen.McpServerToolCallDelta?)value); /// /// /// - public static implicit operator global::Google.Gemini.NextGen.MCPServerToolCallDelta?(StepDeltaData @this) => @this.MCPServerToolCall; + public static implicit operator global::Google.Gemini.NextGen.McpServerToolCallDelta?(StepDeltaData @this) => @this.McpServerToolCall; /// /// /// - public StepDeltaData(global::Google.Gemini.NextGen.MCPServerToolCallDelta? value) + public StepDeltaData(global::Google.Gemini.NextGen.McpServerToolCallDelta? value) { - MCPServerToolCall = value; + McpServerToolCall = value; } /// /// /// - public static StepDeltaData FromMCPServerToolCall(global::Google.Gemini.NextGen.MCPServerToolCallDelta? value) => new StepDeltaData(value); + public static StepDeltaData FromMcpServerToolCall(global::Google.Gemini.NextGen.McpServerToolCallDelta? value) => new StepDeltaData(value); /// /// /// - public static implicit operator StepDeltaData(global::Google.Gemini.NextGen.MCPServerToolResultDelta value) => new StepDeltaData((global::Google.Gemini.NextGen.MCPServerToolResultDelta?)value); + public static implicit operator StepDeltaData(global::Google.Gemini.NextGen.McpServerToolResultDelta value) => new StepDeltaData((global::Google.Gemini.NextGen.McpServerToolResultDelta?)value); /// /// /// - public static implicit operator global::Google.Gemini.NextGen.MCPServerToolResultDelta?(StepDeltaData @this) => @this.MCPServerToolResult; + public static implicit operator global::Google.Gemini.NextGen.McpServerToolResultDelta?(StepDeltaData @this) => @this.McpServerToolResult; /// /// /// - public StepDeltaData(global::Google.Gemini.NextGen.MCPServerToolResultDelta? value) + public StepDeltaData(global::Google.Gemini.NextGen.McpServerToolResultDelta? value) { - MCPServerToolResult = value; + McpServerToolResult = value; } /// /// /// - public static StepDeltaData FromMCPServerToolResult(global::Google.Gemini.NextGen.MCPServerToolResultDelta? value) => new StepDeltaData(value); + public static StepDeltaData FromMcpServerToolResult(global::Google.Gemini.NextGen.McpServerToolResultDelta? value) => new StepDeltaData(value); /// /// @@ -1364,52 +1287,6 @@ public StepDeltaData(global::Google.Gemini.NextGen.ProcessingResultDelta? value) /// public static StepDeltaData FromProcessingResult(global::Google.Gemini.NextGen.ProcessingResultDelta? value) => new StepDeltaData(value); - /// - /// - /// - public static implicit operator StepDeltaData(global::Google.Gemini.NextGen.RetrievalCallDelta value) => new StepDeltaData((global::Google.Gemini.NextGen.RetrievalCallDelta?)value); - - /// - /// - /// - public static implicit operator global::Google.Gemini.NextGen.RetrievalCallDelta?(StepDeltaData @this) => @this.RetrievalCall; - - /// - /// - /// - public StepDeltaData(global::Google.Gemini.NextGen.RetrievalCallDelta? value) - { - RetrievalCall = value; - } - - /// - /// - /// - public static StepDeltaData FromRetrievalCall(global::Google.Gemini.NextGen.RetrievalCallDelta? value) => new StepDeltaData(value); - - /// - /// - /// - public static implicit operator StepDeltaData(global::Google.Gemini.NextGen.RetrievalResultDelta value) => new StepDeltaData((global::Google.Gemini.NextGen.RetrievalResultDelta?)value); - - /// - /// - /// - public static implicit operator global::Google.Gemini.NextGen.RetrievalResultDelta?(StepDeltaData @this) => @this.RetrievalResult; - - /// - /// - /// - public StepDeltaData(global::Google.Gemini.NextGen.RetrievalResultDelta? value) - { - RetrievalResult = value; - } - - /// - /// - /// - public static StepDeltaData FromRetrievalResult(global::Google.Gemini.NextGen.RetrievalResultDelta? value) => new StepDeltaData(value); - /// /// /// @@ -1588,12 +1465,10 @@ public StepDeltaData( global::Google.Gemini.NextGen.GoogleSearchCallDelta? googleSearchCall, global::Google.Gemini.NextGen.GoogleSearchResultDelta? googleSearchResult, global::Google.Gemini.NextGen.ImageDelta? image, - global::Google.Gemini.NextGen.MCPServerToolCallDelta? mCPServerToolCall, - global::Google.Gemini.NextGen.MCPServerToolResultDelta? mCPServerToolResult, + global::Google.Gemini.NextGen.McpServerToolCallDelta? mcpServerToolCall, + global::Google.Gemini.NextGen.McpServerToolResultDelta? mcpServerToolResult, global::Google.Gemini.NextGen.ProcessingCallDelta? processingCall, global::Google.Gemini.NextGen.ProcessingResultDelta? processingResult, - global::Google.Gemini.NextGen.RetrievalCallDelta? retrievalCall, - global::Google.Gemini.NextGen.RetrievalResultDelta? retrievalResult, global::Google.Gemini.NextGen.TextAnnotationDelta? textAnnotation, global::Google.Gemini.NextGen.TextDelta? text, global::Google.Gemini.NextGen.ThoughtSignatureDelta? thoughtSignature, @@ -1616,12 +1491,10 @@ public StepDeltaData( GoogleSearchCall = googleSearchCall; GoogleSearchResult = googleSearchResult; Image = image; - MCPServerToolCall = mCPServerToolCall; - MCPServerToolResult = mCPServerToolResult; + McpServerToolCall = mcpServerToolCall; + McpServerToolResult = mcpServerToolResult; ProcessingCall = processingCall; ProcessingResult = processingResult; - RetrievalCall = retrievalCall; - RetrievalResult = retrievalResult; TextAnnotation = textAnnotation; Text = text; ThoughtSignature = thoughtSignature; @@ -1642,12 +1515,10 @@ ThoughtSummary as object ?? ThoughtSignature as object ?? Text as object ?? TextAnnotation as object ?? - RetrievalResult as object ?? - RetrievalCall as object ?? ProcessingResult as object ?? ProcessingCall as object ?? - MCPServerToolResult as object ?? - MCPServerToolCall as object ?? + McpServerToolResult as object ?? + McpServerToolCall as object ?? Image as object ?? GoogleSearchResult as object ?? GoogleSearchCall as object ?? @@ -1680,12 +1551,10 @@ Arguments as object GoogleSearchCall?.ToString() ?? GoogleSearchResult?.ToString() ?? Image?.ToString() ?? - MCPServerToolCall?.ToString() ?? - MCPServerToolResult?.ToString() ?? + McpServerToolCall?.ToString() ?? + McpServerToolResult?.ToString() ?? ProcessingCall?.ToString() ?? ProcessingResult?.ToString() ?? - RetrievalCall?.ToString() ?? - RetrievalResult?.ToString() ?? TextAnnotation?.ToString() ?? Text?.ToString() ?? ThoughtSignature?.ToString() ?? @@ -1700,7 +1569,7 @@ Arguments as object ///
public bool Validate() { - return IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMCPServerToolCall && !IsMCPServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsRetrievalCall && !IsRetrievalResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && IsVideo; + return IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && IsURLContextCall && !IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && IsURLContextResult && !IsVideo || !IsArguments && !IsAudio && !IsCodeExecutionCall && !IsCodeExecutionResult && !IsDocument && !IsFileSearchCall && !IsFileSearchResult && !IsFunctionResult && !IsGoogleMapsCall && !IsGoogleMapsResult && !IsGoogleSearchCall && !IsGoogleSearchResult && !IsImage && !IsMcpServerToolCall && !IsMcpServerToolResult && !IsProcessingCall && !IsProcessingResult && !IsTextAnnotation && !IsText && !IsThoughtSignature && !IsThoughtSummary && !IsURLContextCall && !IsURLContextResult && IsVideo; } /// @@ -1720,12 +1589,10 @@ public bool Validate() global::System.Func? googleSearchCall = null, global::System.Func? googleSearchResult = null, global::System.Func? image = null, - global::System.Func? mCPServerToolCall = null, - global::System.Func? mCPServerToolResult = null, + global::System.Func? mcpServerToolCall = null, + global::System.Func? mcpServerToolResult = null, global::System.Func? processingCall = null, global::System.Func? processingResult = null, - global::System.Func? retrievalCall = null, - global::System.Func? retrievalResult = null, global::System.Func? textAnnotation = null, global::System.Func? text = null, global::System.Func? thoughtSignature = null, @@ -1792,13 +1659,13 @@ public bool Validate() { return image(__value12); } - else if (MCPServerToolCall is { } __value13 && mCPServerToolCall != null) + else if (McpServerToolCall is { } __value13 && mcpServerToolCall != null) { - return mCPServerToolCall(__value13); + return mcpServerToolCall(__value13); } - else if (MCPServerToolResult is { } __value14 && mCPServerToolResult != null) + else if (McpServerToolResult is { } __value14 && mcpServerToolResult != null) { - return mCPServerToolResult(__value14); + return mcpServerToolResult(__value14); } else if (ProcessingCall is { } __value15 && processingCall != null) { @@ -1808,41 +1675,33 @@ public bool Validate() { return processingResult(__value16); } - else if (RetrievalCall is { } __value17 && retrievalCall != null) - { - return retrievalCall(__value17); - } - else if (RetrievalResult is { } __value18 && retrievalResult != null) + else if (TextAnnotation is { } __value17 && textAnnotation != null) { - return retrievalResult(__value18); + return textAnnotation(__value17); } - else if (TextAnnotation is { } __value19 && textAnnotation != null) + else if (Text is { } __value18 && text != null) { - return textAnnotation(__value19); + return text(__value18); } - else if (Text is { } __value20 && text != null) + else if (ThoughtSignature is { } __value19 && thoughtSignature != null) { - return text(__value20); + return thoughtSignature(__value19); } - else if (ThoughtSignature is { } __value21 && thoughtSignature != null) + else if (ThoughtSummary is { } __value20 && thoughtSummary != null) { - return thoughtSignature(__value21); + return thoughtSummary(__value20); } - else if (ThoughtSummary is { } __value22 && thoughtSummary != null) + else if (URLContextCall is { } __value21 && uRLContextCall != null) { - return thoughtSummary(__value22); + return uRLContextCall(__value21); } - else if (URLContextCall is { } __value23 && uRLContextCall != null) + else if (URLContextResult is { } __value22 && uRLContextResult != null) { - return uRLContextCall(__value23); + return uRLContextResult(__value22); } - else if (URLContextResult is { } __value24 && uRLContextResult != null) + else if (Video is { } __value23 && video != null) { - return uRLContextResult(__value24); - } - else if (Video is { } __value25 && video != null) - { - return video(__value25); + return video(__value23); } return default(TResult); @@ -1878,18 +1737,14 @@ public void Match( global::System.Action? image = null, - global::System.Action? mCPServerToolCall = null, + global::System.Action? mcpServerToolCall = null, - global::System.Action? mCPServerToolResult = null, + global::System.Action? mcpServerToolResult = null, global::System.Action? processingCall = null, global::System.Action? processingResult = null, - global::System.Action? retrievalCall = null, - - global::System.Action? retrievalResult = null, - global::System.Action? textAnnotation = null, global::System.Action? text = null, @@ -1962,13 +1817,13 @@ public void Match( { image?.Invoke(__value12); } - else if (MCPServerToolCall is { } __value13) + else if (McpServerToolCall is { } __value13) { - mCPServerToolCall?.Invoke(__value13); + mcpServerToolCall?.Invoke(__value13); } - else if (MCPServerToolResult is { } __value14) + else if (McpServerToolResult is { } __value14) { - mCPServerToolResult?.Invoke(__value14); + mcpServerToolResult?.Invoke(__value14); } else if (ProcessingCall is { } __value15) { @@ -1978,41 +1833,33 @@ public void Match( { processingResult?.Invoke(__value16); } - else if (RetrievalCall is { } __value17) - { - retrievalCall?.Invoke(__value17); - } - else if (RetrievalResult is { } __value18) + else if (TextAnnotation is { } __value17) { - retrievalResult?.Invoke(__value18); + textAnnotation?.Invoke(__value17); } - else if (TextAnnotation is { } __value19) + else if (Text is { } __value18) { - textAnnotation?.Invoke(__value19); + text?.Invoke(__value18); } - else if (Text is { } __value20) + else if (ThoughtSignature is { } __value19) { - text?.Invoke(__value20); + thoughtSignature?.Invoke(__value19); } - else if (ThoughtSignature is { } __value21) + else if (ThoughtSummary is { } __value20) { - thoughtSignature?.Invoke(__value21); + thoughtSummary?.Invoke(__value20); } - else if (ThoughtSummary is { } __value22) + else if (URLContextCall is { } __value21) { - thoughtSummary?.Invoke(__value22); + uRLContextCall?.Invoke(__value21); } - else if (URLContextCall is { } __value23) + else if (URLContextResult is { } __value22) { - uRLContextCall?.Invoke(__value23); + uRLContextResult?.Invoke(__value22); } - else if (URLContextResult is { } __value24) + else if (Video is { } __value23) { - uRLContextResult?.Invoke(__value24); - } - else if (Video is { } __value25) - { - video?.Invoke(__value25); + video?.Invoke(__value23); } } @@ -2033,12 +1880,10 @@ public void Switch( global::System.Action? googleSearchCall = null, global::System.Action? googleSearchResult = null, global::System.Action? image = null, - global::System.Action? mCPServerToolCall = null, - global::System.Action? mCPServerToolResult = null, + global::System.Action? mcpServerToolCall = null, + global::System.Action? mcpServerToolResult = null, global::System.Action? processingCall = null, global::System.Action? processingResult = null, - global::System.Action? retrievalCall = null, - global::System.Action? retrievalResult = null, global::System.Action? textAnnotation = null, global::System.Action? text = null, global::System.Action? thoughtSignature = null, @@ -2105,13 +1950,13 @@ public void Switch( { image?.Invoke(__value12); } - else if (MCPServerToolCall is { } __value13) + else if (McpServerToolCall is { } __value13) { - mCPServerToolCall?.Invoke(__value13); + mcpServerToolCall?.Invoke(__value13); } - else if (MCPServerToolResult is { } __value14) + else if (McpServerToolResult is { } __value14) { - mCPServerToolResult?.Invoke(__value14); + mcpServerToolResult?.Invoke(__value14); } else if (ProcessingCall is { } __value15) { @@ -2121,41 +1966,33 @@ public void Switch( { processingResult?.Invoke(__value16); } - else if (RetrievalCall is { } __value17) - { - retrievalCall?.Invoke(__value17); - } - else if (RetrievalResult is { } __value18) - { - retrievalResult?.Invoke(__value18); - } - else if (TextAnnotation is { } __value19) + else if (TextAnnotation is { } __value17) { - textAnnotation?.Invoke(__value19); + textAnnotation?.Invoke(__value17); } - else if (Text is { } __value20) + else if (Text is { } __value18) { - text?.Invoke(__value20); + text?.Invoke(__value18); } - else if (ThoughtSignature is { } __value21) + else if (ThoughtSignature is { } __value19) { - thoughtSignature?.Invoke(__value21); + thoughtSignature?.Invoke(__value19); } - else if (ThoughtSummary is { } __value22) + else if (ThoughtSummary is { } __value20) { - thoughtSummary?.Invoke(__value22); + thoughtSummary?.Invoke(__value20); } - else if (URLContextCall is { } __value23) + else if (URLContextCall is { } __value21) { - uRLContextCall?.Invoke(__value23); + uRLContextCall?.Invoke(__value21); } - else if (URLContextResult is { } __value24) + else if (URLContextResult is { } __value22) { - uRLContextResult?.Invoke(__value24); + uRLContextResult?.Invoke(__value22); } - else if (Video is { } __value25) + else if (Video is { } __value23) { - video?.Invoke(__value25); + video?.Invoke(__value23); } } @@ -2192,18 +2029,14 @@ public override int GetHashCode() typeof(global::Google.Gemini.NextGen.GoogleSearchResultDelta), Image, typeof(global::Google.Gemini.NextGen.ImageDelta), - MCPServerToolCall, - typeof(global::Google.Gemini.NextGen.MCPServerToolCallDelta), - MCPServerToolResult, - typeof(global::Google.Gemini.NextGen.MCPServerToolResultDelta), + McpServerToolCall, + typeof(global::Google.Gemini.NextGen.McpServerToolCallDelta), + McpServerToolResult, + typeof(global::Google.Gemini.NextGen.McpServerToolResultDelta), ProcessingCall, typeof(global::Google.Gemini.NextGen.ProcessingCallDelta), ProcessingResult, typeof(global::Google.Gemini.NextGen.ProcessingResultDelta), - RetrievalCall, - typeof(global::Google.Gemini.NextGen.RetrievalCallDelta), - RetrievalResult, - typeof(global::Google.Gemini.NextGen.RetrievalResultDelta), TextAnnotation, typeof(global::Google.Gemini.NextGen.TextAnnotationDelta), Text, @@ -2247,12 +2080,10 @@ public bool Equals(StepDeltaData other) global::System.Collections.Generic.EqualityComparer.Default.Equals(GoogleSearchCall, other.GoogleSearchCall) && global::System.Collections.Generic.EqualityComparer.Default.Equals(GoogleSearchResult, other.GoogleSearchResult) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Image, other.Image) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MCPServerToolCall, other.MCPServerToolCall) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MCPServerToolResult, other.MCPServerToolResult) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(McpServerToolCall, other.McpServerToolCall) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(McpServerToolResult, other.McpServerToolResult) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ProcessingCall, other.ProcessingCall) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ProcessingResult, other.ProcessingResult) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RetrievalCall, other.RetrievalCall) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(RetrievalResult, other.RetrievalResult) && global::System.Collections.Generic.EqualityComparer.Default.Equals(TextAnnotation, other.TextAnnotation) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Text, other.Text) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ThoughtSignature, other.ThoughtSignature) && diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDeltaMetadata.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDeltaMetadata.g.cs index d9989fdab..4b9bb48da 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDeltaMetadata.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDeltaMetadata.g.cs @@ -9,8 +9,7 @@ namespace Google.Gemini.NextGen public sealed partial class StepDeltaMetadata { /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// Statistics on the interaction request's token usage. ///
[global::System.Text.Json.Serialization.JsonPropertyName("total_usage")] public global::Google.Gemini.NextGen.Usage? TotalUsage { get; set; } @@ -25,8 +24,7 @@ public sealed partial class StepDeltaMetadata /// Initializes a new instance of the class. ///
/// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// Statistics on the interaction request's token usage. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStart.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStart.g.cs index ab0d1400e..16199142a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStart.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStart.g.cs @@ -4,7 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Example: {"event_type":"step.start","index":0,"step":{"type":"model_output"}} + /// /// public sealed partial class StepStart { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStop.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStop.g.cs index a0936ff11..bb4a887dd 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStop.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStop.g.cs @@ -4,7 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Example: {"event_type":"step.stop","index":0} + /// /// public sealed partial class StepStop { @@ -23,15 +23,13 @@ public sealed partial class StepStop public required object EventType { get; set; } /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// Statistics on the interaction request's token usage. ///
[global::System.Text.Json.Serialization.JsonPropertyName("usage")] public global::Google.Gemini.NextGen.Usage? Usage { get; set; } /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// Statistics on the interaction request's token usage. ///
[global::System.Text.Json.Serialization.JsonPropertyName("step_usage")] public global::Google.Gemini.NextGen.Usage? StepUsage { get; set; } @@ -55,12 +53,10 @@ public sealed partial class StepStop /// /// /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// Statistics on the interaction request's token usage. /// /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// Statistics on the interaction request's token usage. /// /// /// The event_id token to be used to resume the interaction stream, from
diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextContent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextContent.g.cs index 2261bc779..13aa767dd 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextContent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextContent.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// A text content block.
- /// Example: {"type":"text","text":"Hello, how are you?"} + /// A text content block. ///
public sealed partial class TextContent { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextResponseFormat.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextResponseFormat.g.cs index 19f417cd0..565806fd0 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextResponseFormat.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextResponseFormat.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Configuration for text output format.
- /// Example: {"type":"text","mime_type":"application/json","schema":{"type":"object","properties":{"ingredients":{"type":"array","items":{"type":"string"}},"recipe_name":{"type":"string"}},"required":["ingredients","recipe_name"]}} + /// Configuration for text output format. ///
public sealed partial class TextResponseFormat { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtStep.g.cs index f84306b9d..26367422d 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtStep.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// A thought step.
- /// Example: {"type":"thought","signature":"thought_sig_abcd1234","summary":[{"type":"text","text":"The model is searching Google for the capital of France."}]} + /// A thought step. ///
public sealed partial class ThoughtStep { @@ -26,7 +25,7 @@ public sealed partial class ThoughtStep /// A summary of the thought. /// [global::System.Text.Json.Serialization.JsonPropertyName("summary")] - public global::System.Collections.Generic.IList? Summary { get; set; } + public global::System.Collections.Generic.IList? Summary { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -50,7 +49,7 @@ public sealed partial class ThoughtStep public ThoughtStep( object type, byte[]? signature, - global::System.Collections.Generic.IList? summary) + global::System.Collections.Generic.IList? summary) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Signature = signature; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtSummaryContent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtSummaryContent.g.cs index 53077fffd..d3af4b94d 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtSummaryContent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtSummaryContent.g.cs @@ -10,8 +10,7 @@ namespace Google.Gemini.NextGen public readonly partial struct ThoughtSummaryContent : global::System.IEquatable { /// - /// An image content block.
- /// Example: {"type":"image","data":"BASE64_ENCODED_IMAGE","mime_type":"image/png"} + /// An image content block. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.ImageContent? Image { get; init; } @@ -48,8 +47,7 @@ public bool TryPickImage( : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// - /// A text content block.
- /// Example: {"type":"text","text":"Hello, how are you?"} + /// A text content block. ///
#if NET6_0_OR_GREATER public global::Google.Gemini.NextGen.TextContent? Text { get; init; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Tool.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Tool.g.cs index 78ddc46fb..d59f4b5ff 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Tool.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Tool.g.cs @@ -235,75 +235,38 @@ public bool TryPickGoogleSearch( /// A MCPServer is a server that can be called by the model to perform actions. ///
#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.MCPServer? MCPServer { get; init; } + public global::Google.Gemini.NextGen.McpServer? McpServer { get; init; } #else - public global::Google.Gemini.NextGen.MCPServer? MCPServer { get; } + public global::Google.Gemini.NextGen.McpServer? McpServer { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MCPServer))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(McpServer))] #endif - public bool IsMCPServer => MCPServer != null; + public bool IsMcpServer => McpServer != null; /// /// /// - public bool TryPickMCPServer( + public bool TryPickMcpServer( #if NET6_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] #endif - out global::Google.Gemini.NextGen.MCPServer? value) + out global::Google.Gemini.NextGen.McpServer? value) { - value = MCPServer; - return IsMCPServer; + value = McpServer; + return IsMcpServer; } /// /// /// - public global::Google.Gemini.NextGen.MCPServer PickMCPServer() => MCPServer is { } value + public global::Google.Gemini.NextGen.McpServer PickMcpServer() => McpServer is { } value ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'MCPServer' but the value was {ToString()}."); - - /// - /// A tool that can be used by the model to retrieve files. - /// -#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.Retrieval? Retrieval { get; init; } -#else - public global::Google.Gemini.NextGen.Retrieval? Retrieval { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Retrieval))] -#endif - public bool IsRetrieval => Retrieval != null; - - /// - /// - /// - public bool TryPickRetrieval( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Google.Gemini.NextGen.Retrieval? value) - { - value = Retrieval; - return IsRetrieval; - } - - /// - /// - /// - public global::Google.Gemini.NextGen.Retrieval PickRetrieval() => Retrieval is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Retrieval' but the value was {ToString()}."); + : throw new global::System.InvalidOperationException($"Expected union variant 'McpServer' but the value was {ToString()}."); /// /// A tool that can be used by the model to fetch URL context. @@ -482,48 +445,25 @@ public Tool(global::Google.Gemini.NextGen.GoogleSearch? value) /// /// /// - public static implicit operator Tool(global::Google.Gemini.NextGen.MCPServer value) => new Tool((global::Google.Gemini.NextGen.MCPServer?)value); + public static implicit operator Tool(global::Google.Gemini.NextGen.McpServer value) => new Tool((global::Google.Gemini.NextGen.McpServer?)value); /// /// /// - public static implicit operator global::Google.Gemini.NextGen.MCPServer?(Tool @this) => @this.MCPServer; + public static implicit operator global::Google.Gemini.NextGen.McpServer?(Tool @this) => @this.McpServer; /// /// /// - public Tool(global::Google.Gemini.NextGen.MCPServer? value) + public Tool(global::Google.Gemini.NextGen.McpServer? value) { - MCPServer = value; + McpServer = value; } /// /// /// - public static Tool FromMCPServer(global::Google.Gemini.NextGen.MCPServer? value) => new Tool(value); - - /// - /// - /// - public static implicit operator Tool(global::Google.Gemini.NextGen.Retrieval value) => new Tool((global::Google.Gemini.NextGen.Retrieval?)value); - - /// - /// - /// - public static implicit operator global::Google.Gemini.NextGen.Retrieval?(Tool @this) => @this.Retrieval; - - /// - /// - /// - public Tool(global::Google.Gemini.NextGen.Retrieval? value) - { - Retrieval = value; - } - - /// - /// - /// - public static Tool FromRetrieval(global::Google.Gemini.NextGen.Retrieval? value) => new Tool(value); + public static Tool FromMcpServer(global::Google.Gemini.NextGen.McpServer? value) => new Tool(value); /// /// @@ -558,8 +498,7 @@ public Tool( global::Google.Gemini.NextGen.Function? function, global::Google.Gemini.NextGen.GoogleMaps? googleMaps, global::Google.Gemini.NextGen.GoogleSearch? googleSearch, - global::Google.Gemini.NextGen.MCPServer? mCPServer, - global::Google.Gemini.NextGen.Retrieval? retrieval, + global::Google.Gemini.NextGen.McpServer? mcpServer, global::Google.Gemini.NextGen.URLContext? uRLContext ) { @@ -569,8 +508,7 @@ public Tool( Function = function; GoogleMaps = googleMaps; GoogleSearch = googleSearch; - MCPServer = mCPServer; - Retrieval = retrieval; + McpServer = mcpServer; URLContext = uRLContext; } @@ -579,8 +517,7 @@ public Tool( /// public object? Object => URLContext as object ?? - Retrieval as object ?? - MCPServer as object ?? + McpServer as object ?? GoogleSearch as object ?? GoogleMaps as object ?? Function as object ?? @@ -599,8 +536,7 @@ CodeExecution as object Function?.ToString() ?? GoogleMaps?.ToString() ?? GoogleSearch?.ToString() ?? - MCPServer?.ToString() ?? - Retrieval?.ToString() ?? + McpServer?.ToString() ?? URLContext?.ToString() ; @@ -609,7 +545,7 @@ CodeExecution as object /// public bool Validate() { - return IsCodeExecution && !IsComputerUse && !IsFileSearch && !IsFunction && !IsGoogleMaps && !IsGoogleSearch && !IsMCPServer && !IsRetrieval && !IsURLContext || !IsCodeExecution && IsComputerUse && !IsFileSearch && !IsFunction && !IsGoogleMaps && !IsGoogleSearch && !IsMCPServer && !IsRetrieval && !IsURLContext || !IsCodeExecution && !IsComputerUse && IsFileSearch && !IsFunction && !IsGoogleMaps && !IsGoogleSearch && !IsMCPServer && !IsRetrieval && !IsURLContext || !IsCodeExecution && !IsComputerUse && !IsFileSearch && IsFunction && !IsGoogleMaps && !IsGoogleSearch && !IsMCPServer && !IsRetrieval && !IsURLContext || !IsCodeExecution && !IsComputerUse && !IsFileSearch && !IsFunction && IsGoogleMaps && !IsGoogleSearch && !IsMCPServer && !IsRetrieval && !IsURLContext || !IsCodeExecution && !IsComputerUse && !IsFileSearch && !IsFunction && !IsGoogleMaps && IsGoogleSearch && !IsMCPServer && !IsRetrieval && !IsURLContext || !IsCodeExecution && !IsComputerUse && !IsFileSearch && !IsFunction && !IsGoogleMaps && !IsGoogleSearch && IsMCPServer && !IsRetrieval && !IsURLContext || !IsCodeExecution && !IsComputerUse && !IsFileSearch && !IsFunction && !IsGoogleMaps && !IsGoogleSearch && !IsMCPServer && IsRetrieval && !IsURLContext || !IsCodeExecution && !IsComputerUse && !IsFileSearch && !IsFunction && !IsGoogleMaps && !IsGoogleSearch && !IsMCPServer && !IsRetrieval && IsURLContext; + return IsCodeExecution && !IsComputerUse && !IsFileSearch && !IsFunction && !IsGoogleMaps && !IsGoogleSearch && !IsMcpServer && !IsURLContext || !IsCodeExecution && IsComputerUse && !IsFileSearch && !IsFunction && !IsGoogleMaps && !IsGoogleSearch && !IsMcpServer && !IsURLContext || !IsCodeExecution && !IsComputerUse && IsFileSearch && !IsFunction && !IsGoogleMaps && !IsGoogleSearch && !IsMcpServer && !IsURLContext || !IsCodeExecution && !IsComputerUse && !IsFileSearch && IsFunction && !IsGoogleMaps && !IsGoogleSearch && !IsMcpServer && !IsURLContext || !IsCodeExecution && !IsComputerUse && !IsFileSearch && !IsFunction && IsGoogleMaps && !IsGoogleSearch && !IsMcpServer && !IsURLContext || !IsCodeExecution && !IsComputerUse && !IsFileSearch && !IsFunction && !IsGoogleMaps && IsGoogleSearch && !IsMcpServer && !IsURLContext || !IsCodeExecution && !IsComputerUse && !IsFileSearch && !IsFunction && !IsGoogleMaps && !IsGoogleSearch && IsMcpServer && !IsURLContext || !IsCodeExecution && !IsComputerUse && !IsFileSearch && !IsFunction && !IsGoogleMaps && !IsGoogleSearch && !IsMcpServer && IsURLContext; } /// @@ -622,8 +558,7 @@ public bool Validate() global::System.Func? function = null, global::System.Func? googleMaps = null, global::System.Func? googleSearch = null, - global::System.Func? mCPServer = null, - global::System.Func? retrieval = null, + global::System.Func? mcpServer = null, global::System.Func? uRLContext = null, bool validate = true) { @@ -656,17 +591,13 @@ public bool Validate() { return googleSearch(__value5); } - else if (MCPServer is { } __value6 && mCPServer != null) - { - return mCPServer(__value6); - } - else if (Retrieval is { } __value7 && retrieval != null) + else if (McpServer is { } __value6 && mcpServer != null) { - return retrieval(__value7); + return mcpServer(__value6); } - else if (URLContext is { } __value8 && uRLContext != null) + else if (URLContext is { } __value7 && uRLContext != null) { - return uRLContext(__value8); + return uRLContext(__value7); } return default(TResult); @@ -688,9 +619,7 @@ public void Match( global::System.Action? googleSearch = null, - global::System.Action? mCPServer = null, - - global::System.Action? retrieval = null, + global::System.Action? mcpServer = null, global::System.Action? uRLContext = null, bool validate = true) @@ -724,17 +653,13 @@ public void Match( { googleSearch?.Invoke(__value5); } - else if (MCPServer is { } __value6) - { - mCPServer?.Invoke(__value6); - } - else if (Retrieval is { } __value7) + else if (McpServer is { } __value6) { - retrieval?.Invoke(__value7); + mcpServer?.Invoke(__value6); } - else if (URLContext is { } __value8) + else if (URLContext is { } __value7) { - uRLContext?.Invoke(__value8); + uRLContext?.Invoke(__value7); } } @@ -748,8 +673,7 @@ public void Switch( global::System.Action? function = null, global::System.Action? googleMaps = null, global::System.Action? googleSearch = null, - global::System.Action? mCPServer = null, - global::System.Action? retrieval = null, + global::System.Action? mcpServer = null, global::System.Action? uRLContext = null, bool validate = true) { @@ -782,17 +706,13 @@ public void Switch( { googleSearch?.Invoke(__value5); } - else if (MCPServer is { } __value6) - { - mCPServer?.Invoke(__value6); - } - else if (Retrieval is { } __value7) + else if (McpServer is { } __value6) { - retrieval?.Invoke(__value7); + mcpServer?.Invoke(__value6); } - else if (URLContext is { } __value8) + else if (URLContext is { } __value7) { - uRLContext?.Invoke(__value8); + uRLContext?.Invoke(__value7); } } @@ -815,10 +735,8 @@ public override int GetHashCode() typeof(global::Google.Gemini.NextGen.GoogleMaps), GoogleSearch, typeof(global::Google.Gemini.NextGen.GoogleSearch), - MCPServer, - typeof(global::Google.Gemini.NextGen.MCPServer), - Retrieval, - typeof(global::Google.Gemini.NextGen.Retrieval), + McpServer, + typeof(global::Google.Gemini.NextGen.McpServer), URLContext, typeof(global::Google.Gemini.NextGen.URLContext), }; @@ -843,8 +761,7 @@ public bool Equals(Tool other) global::System.Collections.Generic.EqualityComparer.Default.Equals(Function, other.Function) && global::System.Collections.Generic.EqualityComparer.Default.Equals(GoogleMaps, other.GoogleMaps) && global::System.Collections.Generic.EqualityComparer.Default.Equals(GoogleSearch, other.GoogleSearch) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(MCPServer, other.MCPServer) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Retrieval, other.Retrieval) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(McpServer, other.McpServer) && global::System.Collections.Generic.EqualityComparer.Default.Equals(URLContext, other.URLContext) ; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TranscriptionConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TranscriptionConfig.g.cs index 06f5ae86f..c974272ae 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TranscriptionConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TranscriptionConfig.g.cs @@ -10,13 +10,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class TranscriptionConfig { - /// - /// Discriminated transcription mode options or enum. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? Mode { get; set; } - /// /// Optional. BCP-47 language codes providing hints about the languages present in the
/// audio. If omitted or empty, defaults to automatic language detection. @@ -31,6 +24,13 @@ public sealed partial class TranscriptionConfig [global::System.Text.Json.Serialization.JsonPropertyName("custom_vocabulary")] public global::System.Collections.Generic.IList? CustomVocabulary { get; set; } + /// + /// Discriminated transcription mode options or enum. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? Mode { get; set; } + /// /// Optional. The granularity of timestamps to include in the transcription output.
/// Supported values: "word". If empty, no timestamps are generated. @@ -53,13 +53,6 @@ public sealed partial class TranscriptionConfig [global::System.Obsolete("This property marked as deprecated.")] public global::System.Collections.Generic.IList? AdaptationPhrases { get; set; } - /// - /// Deprecated: use language_codes. BCP-47 language codes providing hints about the languages present in the audio. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("language_hints")] - [global::System.Obsolete("This property marked as deprecated.")] - public global::System.Collections.Generic.IList? LanguageHints { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -69,9 +62,6 @@ public sealed partial class TranscriptionConfig /// /// Initializes a new instance of the class. /// - /// - /// Discriminated transcription mode options or enum. - /// /// /// Optional. BCP-47 language codes providing hints about the languages present in the
/// audio. If omitted or empty, defaults to automatic language detection. @@ -80,17 +70,20 @@ public sealed partial class TranscriptionConfig /// Optional. A list of custom vocabulary phrases to bias the speech recognition model
/// toward recognizing specific terms. /// + /// + /// Discriminated transcription mode options or enum. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranscriptionConfig( - global::Google.Gemini.NextGen.OneOf? mode, global::System.Collections.Generic.IList? languageCodes, - global::System.Collections.Generic.IList? customVocabulary) + global::System.Collections.Generic.IList? customVocabulary, + global::Google.Gemini.NextGen.OneOf? mode) { - this.Mode = mode; this.LanguageCodes = languageCodes; this.CustomVocabulary = customVocabulary; + this.Mode = mode; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Trigger.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Trigger.g.cs index 5c47d1e94..2766b01eb 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Trigger.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Trigger.g.cs @@ -8,14 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class Trigger { - /// - /// Required. Output only. Identifier. The ID of the trigger.
- /// Included only in responses - ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string Id { get; set; } = default!; - /// /// Required. The cron schedule on which the trigger should run.
/// Standard cron format. @@ -32,12 +24,20 @@ public sealed partial class Trigger public required string TimeZone { get; set; } /// - /// Interaction for generating the completion using agents. + /// Parameters for creating agent interactions /// [global::System.Text.Json.Serialization.JsonPropertyName("interaction")] [global::System.Text.Json.Serialization.JsonRequired] public required global::Google.Gemini.NextGen.CreateAgentInteraction CreateAgentInteraction { get; set; } + /// + /// Required. Output only. Identifier. The ID of the trigger.
+ /// Included only in responses + ///
+ /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string Id { get; set; } = default!; + /// /// Optional. The display name of the trigger. /// @@ -145,7 +145,7 @@ public sealed partial class Trigger /// Required. Time zone in which the schedule should be interpreted. /// /// - /// Interaction for generating the completion using agents. + /// Parameters for creating agent interactions /// /// /// Optional. The display name of the trigger. @@ -223,10 +223,10 @@ public Trigger( global::Google.Gemini.NextGen.TriggerStatus? status, string id = default!) { - this.Id = id; this.Schedule = schedule ?? throw new global::System.ArgumentNullException(nameof(schedule)); this.TimeZone = timeZone ?? throw new global::System.ArgumentNullException(nameof(timeZone)); this.CreateAgentInteraction = createAgentInteraction ?? throw new global::System.ArgumentNullException(nameof(createAgentInteraction)); + this.Id = id; this.DisplayName = displayName; this.EnvironmentId = environmentId; this.MaxConsecutiveFailures = maxConsecutiveFailures; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TriggerCreateParams.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TriggerCreateParams.g.cs deleted file mode 100644 index ab1a2f343..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TriggerCreateParams.g.cs +++ /dev/null @@ -1,119 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Parameters for creating a trigger. - /// - public sealed partial class TriggerCreateParams - { - /// - /// Required. The cron schedule on which the trigger should run.
- /// Standard cron format. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("schedule")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Schedule { get; set; } - - /// - /// Required. Time zone in which the schedule should be interpreted. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("time_zone")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string TimeZone { get; set; } - - /// - /// Interaction for generating the completion using agents. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("interaction")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.CreateAgentInteraction CreateAgentInteraction { get; set; } - - /// - /// Optional. The display name of the trigger. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("display_name")] - public string? DisplayName { get; set; } - - /// - /// Optional. The environment ID for the trigger execution. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("environment_id")] - public string? EnvironmentId { get; set; } - - /// - /// Optional. The maximum number of consecutive failures allowed before
- /// the trigger is automatically paused (status becomes ERROR). - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("max_consecutive_failures")] - public int? MaxConsecutiveFailures { get; set; } - - /// - /// Optional. The execution timeout for the triggered interaction. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("execution_timeout_seconds")] - public int? ExecutionTimeoutSeconds { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Required. The cron schedule on which the trigger should run.
- /// Standard cron format. - /// - /// - /// Required. Time zone in which the schedule should be interpreted. - /// - /// - /// Interaction for generating the completion using agents. - /// - /// - /// Optional. The display name of the trigger. - /// - /// - /// Optional. The environment ID for the trigger execution. - /// - /// - /// Optional. The maximum number of consecutive failures allowed before
- /// the trigger is automatically paused (status becomes ERROR). - /// - /// - /// Optional. The execution timeout for the triggered interaction. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public TriggerCreateParams( - string schedule, - string timeZone, - global::Google.Gemini.NextGen.CreateAgentInteraction createAgentInteraction, - string? displayName, - string? environmentId, - int? maxConsecutiveFailures, - int? executionTimeoutSeconds) - { - this.Schedule = schedule ?? throw new global::System.ArgumentNullException(nameof(schedule)); - this.TimeZone = timeZone ?? throw new global::System.ArgumentNullException(nameof(timeZone)); - this.CreateAgentInteraction = createAgentInteraction ?? throw new global::System.ArgumentNullException(nameof(createAgentInteraction)); - this.DisplayName = displayName; - this.EnvironmentId = environmentId; - this.MaxConsecutiveFailures = maxConsecutiveFailures; - this.ExecutionTimeoutSeconds = executionTimeoutSeconds; - } - - /// - /// Initializes a new instance of the class. - /// - public TriggerCreateParams() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextCallStep.g.cs index 2b8d5f56f..338e8e984 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextCallStep.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// URL context call step.
- /// Example: {"type":"url_context_call","arguments":{"urls":["https://www.example.com"]},"id":"url_call_10219"} + /// URL context call step. ///
public sealed partial class URLContextCallStep { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResultStep.g.cs index 528345da1..8d7d0ed05 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResultStep.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// URL context result step.
- /// Example: {"type":"url_context_result","call_id":"url_call_10219","result":[{"url":"https://www.example.com","status":"success"}]} + /// URL context result step. ///
public sealed partial class URLContextResultStep { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextCallStepArguments.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextCallStepArguments.Json.g.cs deleted file mode 100644 index 2781af0b7..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextCallStepArguments.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class UrlContextCallStepArguments - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.UrlContextCallStepArguments? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.UrlContextCallStepArguments), - jsonSerializerContext) as global::Google.Gemini.NextGen.UrlContextCallStepArguments; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.UrlContextCallStepArguments? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.UrlContextCallStepArguments? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.UrlContextCallStepArguments), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.UrlContextCallStepArguments; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextCallStepArguments.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextCallStepArguments.g.cs deleted file mode 100644 index 40a404394..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextCallStepArguments.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// The arguments to pass to the URL context. - /// - public sealed partial class UrlContextCallStepArguments - { - /// - /// The URLs to fetch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("urls")] - public global::System.Collections.Generic.IList? Urls { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The URLs to fetch. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UrlContextCallStepArguments( - global::System.Collections.Generic.IList? urls) - { - this.Urls = urls; - } - - /// - /// Initializes a new instance of the class. - /// - public UrlContextCallStepArguments() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItem.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItem.Json.g.cs deleted file mode 100644 index 88013e702..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItem.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class UrlContextResultItem - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.UrlContextResultItem? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.UrlContextResultItem), - jsonSerializerContext) as global::Google.Gemini.NextGen.UrlContextResultItem; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.UrlContextResultItem? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.UrlContextResultItem? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.UrlContextResultItem), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.UrlContextResultItem; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItem.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItem.g.cs deleted file mode 100644 index b7ce4f666..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItem.g.cs +++ /dev/null @@ -1,58 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// The result of the URL context. - /// - public sealed partial class UrlContextResultItem - { - /// - /// The URL that was fetched. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("url")] - public string? Url { get; set; } - - /// - /// The status of the URL retrieval. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.UrlContextResultItemStatusJsonConverter))] - public global::Google.Gemini.NextGen.UrlContextResultItemStatus? Status { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The URL that was fetched. - /// - /// - /// The status of the URL retrieval. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public UrlContextResultItem( - string? url, - global::Google.Gemini.NextGen.UrlContextResultItemStatus? status) - { - this.Url = url; - this.Status = status; - } - - /// - /// Initializes a new instance of the class. - /// - public UrlContextResultItem() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItemStatus.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItemStatus.g.cs deleted file mode 100644 index 8a906a102..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItemStatus.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// The status of the URL retrieval. - /// - public enum UrlContextResultItemStatus - { - /// - /// - /// - Error, - /// - /// - /// - Paywall, - /// - /// - /// - Success, - /// - /// - /// - Unsafe, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class UrlContextResultItemStatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this UrlContextResultItemStatus value) - { - return value switch - { - UrlContextResultItemStatus.Error => "error", - UrlContextResultItemStatus.Paywall => "paywall", - UrlContextResultItemStatus.Success => "success", - UrlContextResultItemStatus.Unsafe => "unsafe", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static UrlContextResultItemStatus? ToEnum(string value) - { - return value switch - { - "error" => UrlContextResultItemStatus.Error, - "paywall" => UrlContextResultItemStatus.Paywall, - "success" => UrlContextResultItemStatus.Success, - "unsafe" => UrlContextResultItemStatus.Unsafe, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Usage.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Usage.g.cs index d512b8357..5360b54d7 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Usage.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Usage.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// Statistics on the interaction request's token usage. ///
public sealed partial class Usage { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UserInputStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UserInputStep.g.cs index fdd596c17..f5d46334c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UserInputStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UserInputStep.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Input provided by the user.
- /// Example: {"type":"user_input","content":[{"type":"text","text":"What is the capital of France?"}]} + /// Input provided by the user. ///
public sealed partial class UserInputStep { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VertexAISearchConfig.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VertexAISearchConfig.Json.g.cs deleted file mode 100644 index 13aa3912c..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VertexAISearchConfig.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class VertexAISearchConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.VertexAISearchConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.VertexAISearchConfig), - jsonSerializerContext) as global::Google.Gemini.NextGen.VertexAISearchConfig; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.VertexAISearchConfig? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.VertexAISearchConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.VertexAISearchConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.VertexAISearchConfig; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VertexAISearchConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VertexAISearchConfig.g.cs deleted file mode 100644 index 0e467861b..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VertexAISearchConfig.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Used to specify configuration for VertexAISearch. - /// - public sealed partial class VertexAISearchConfig - { - /// - /// Optional. Used to specify Vertex AI Search engine. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("engine")] - public string? Engine { get; set; } - - /// - /// Optional. Used to specify Vertex AI Search datastores. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("datastores")] - public global::System.Collections.Generic.IList? Datastores { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// Optional. Used to specify Vertex AI Search engine. - /// - /// - /// Optional. Used to specify Vertex AI Search datastores. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public VertexAISearchConfig( - string? engine, - global::System.Collections.Generic.IList? datastores) - { - this.Engine = engine; - this.Datastores = datastores; - } - - /// - /// Initializes a new instance of the class. - /// - public VertexAISearchConfig() - { - } - - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoContent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoContent.g.cs index 145f7c485..b2f8c5e92 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoContent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoContent.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// A video content block.
- /// Example: {"type":"video","uri":"https://www.youtube.com/watch?v=9hE5-98ZeCg"} + /// A video content block. ///
public sealed partial class VideoContent { @@ -28,13 +27,6 @@ public sealed partial class VideoContent [global::System.Text.Json.Serialization.JsonPropertyName("uri")] public string? Uri { get; set; } - /// - /// How the model processes this video for understanding. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("processing")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? Processing { get; set; } - /// /// /// @@ -42,6 +34,13 @@ public sealed partial class VideoContent [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.MediaResolutionJsonConverter))] public global::Google.Gemini.NextGen.MediaResolution? Resolution { get; set; } + /// + /// How the model processes this video for understanding. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("processing")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? Processing { get; set; } + /// /// A user-defined name for this content block. Can be referenced by the model
/// in the final response. @@ -72,10 +71,10 @@ public sealed partial class VideoContent /// /// The URI of the video. /// + /// /// /// How the model processes this video for understanding. /// - /// /// /// A user-defined name for this content block. Can be referenced by the model
/// in the final response. @@ -90,16 +89,16 @@ public VideoContent( object type, byte[]? data, string? uri, - global::Google.Gemini.NextGen.OneOf? processing, global::Google.Gemini.NextGen.MediaResolution? resolution, + global::Google.Gemini.NextGen.OneOf? processing, string? name, global::Google.Gemini.NextGen.VideoContentMimeType? mimeType) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Data = data; this.Uri = uri; - this.Processing = processing; this.Resolution = resolution; + this.Processing = processing; this.Name = name; this.MimeType = mimeType; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoDelta.g.cs index 05f994a9d..e06298198 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoDelta.g.cs @@ -18,21 +18,21 @@ public sealed partial class VideoDelta /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public byte[]? Data { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.VideoDeltaMimeTypeJsonConverter))] + public global::Google.Gemini.NextGen.VideoDeltaMimeType? MimeType { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + public byte[]? Data { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.VideoDeltaMimeTypeJsonConverter))] - public global::Google.Gemini.NextGen.VideoDeltaMimeType? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// /// @@ -51,24 +51,24 @@ public sealed partial class VideoDelta /// Initializes a new instance of the class. /// /// + /// /// /// - /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public VideoDelta( object type, + global::Google.Gemini.NextGen.VideoDeltaMimeType? mimeType, byte[]? data, string? uri, - global::Google.Gemini.NextGen.VideoDeltaMimeType? mimeType, global::Google.Gemini.NextGen.MediaResolution? resolution) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.MimeType = mimeType; this.Data = data; this.Uri = uri; - this.MimeType = mimeType; this.Resolution = resolution; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoResponseFormat.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoResponseFormat.g.cs index c2017ca3d..6cb1291ea 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoResponseFormat.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoResponseFormat.g.cs @@ -4,8 +4,7 @@ namespace Google.Gemini.NextGen { /// - /// Configuration for video output format.
- /// Example: {"type":"video","aspect_ratio":"16:9","delivery":"inline"} + /// Configuration for video output format. ///
public sealed partial class VideoResponseFormat { @@ -23,13 +22,6 @@ public sealed partial class VideoResponseFormat [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.VideoResponseFormatDeliveryJsonConverter))] public global::Google.Gemini.NextGen.VideoResponseFormatDelivery? Delivery { get; set; } - /// - /// The Cloud Storage URI to store the video output. Required for Vertex if
- /// delivery mode is URI. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("gcs_uri")] - public string? GcsUri { get; set; } - /// /// The aspect ratio for the video output. /// @@ -63,10 +55,6 @@ public sealed partial class VideoResponseFormat /// /// The delivery mode for the video output. /// - /// - /// The Cloud Storage URI to store the video output. Required for Vertex if
- /// delivery mode is URI. - /// /// /// The aspect ratio for the video output. /// @@ -82,14 +70,12 @@ public sealed partial class VideoResponseFormat public VideoResponseFormat( object type, global::Google.Gemini.NextGen.VideoResponseFormatDelivery? delivery, - string? gcsUri, global::Google.Gemini.NextGen.VideoResponseFormatAspectRatio? aspectRatio, string? duration, global::Google.Gemini.NextGen.VideoResponseFormatResolution? resolution) { this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Delivery = delivery; - this.GcsUri = gcsUri; this.AspectRatio = aspectRatio; this.Duration = duration; this.Resolution = resolution; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Voice.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Voice.g.cs index 01a86da5a..1368d6b15 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Voice.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Voice.g.cs @@ -56,8 +56,7 @@ public sealed partial class Voice /// /// Input only. Parameters for replicated voice generation.
/// Required on input when `type` is `"replicated"`. Not returned in
- /// responses.
- /// Included only in requests + /// responses. ///
[global::System.Text.Json.Serialization.JsonPropertyName("replicated")] public global::Google.Gemini.NextGen.ReplicatedVoice? Replicated { get; set; } @@ -142,8 +141,7 @@ public sealed partial class Voice public string? Description { get; set; } /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// Statistics on the interaction request's token usage. ///
[global::System.Text.Json.Serialization.JsonPropertyName("usage")] public global::Google.Gemini.NextGen.Usage? Usage { get; set; } @@ -194,8 +192,7 @@ public sealed partial class Voice /// /// Input only. Parameters for replicated voice generation.
/// Required on input when `type` is `"replicated"`. Not returned in
- /// responses.
- /// Included only in requests + /// responses. /// /// /// Output only. The timestamp at which a custom stored voice (`store = true`)
@@ -241,8 +238,7 @@ public sealed partial class Voice /// Optional. Descriptive summary of vocal timbre, personality, and tone. /// /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// Statistics on the interaction request's token usage. /// /// /// Audio payload used for voice creation. diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Webhook.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Webhook.g.cs index 345d93373..cb13d449c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Webhook.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Webhook.g.cs @@ -28,7 +28,7 @@ public sealed partial class Webhook ///
[global::System.Text.Json.Serialization.JsonPropertyName("subscribed_events")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList SubscribedEvents { get; set; } + public required global::System.Collections.Generic.IList SubscribedEvents { get; set; } /// /// Optional. The user-provided name of the webhook. @@ -134,7 +134,7 @@ public sealed partial class Webhook #endif public Webhook( string uri, - global::System.Collections.Generic.IList subscribedEvents, + global::System.Collections.Generic.IList subscribedEvents, string? name, global::System.DateTime? createTime, global::System.DateTime? updateTime, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookPingResponse.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookPingResponse.Json.g.cs deleted file mode 100644 index 042580e58..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookPingResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class WebhookPingResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.WebhookPingResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.WebhookPingResponse), - jsonSerializerContext) as global::Google.Gemini.NextGen.WebhookPingResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.WebhookPingResponse? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.WebhookPingResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.WebhookPingResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.WebhookPingResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookRotateSigningSecretResponse.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookRotateSigningSecretResponse.Json.g.cs deleted file mode 100644 index 68e72c1a2..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookRotateSigningSecretResponse.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class WebhookRotateSigningSecretResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse), - jsonSerializerContext) as global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookSubscribedEvent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookSubscribedEvent.g.cs deleted file mode 100644 index b4a66be58..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookSubscribedEvent.g.cs +++ /dev/null @@ -1,155 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - - /// - /// - /// - public readonly partial struct WebhookSubscribedEvent : global::System.IEquatable - { - /// - /// - /// - public WebhookSubscribedEvent(string value) - { - Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); - } - - /// - /// - /// - public string Value { get; } - /// - /// Batch has not been processed within the 48h timeframe. - /// - public static WebhookSubscribedEvent BatchExpired { get; } = new("batch.expired"); - - /// - /// Batch job failed. - /// - public static WebhookSubscribedEvent BatchFailed { get; } = new("batch.failed"); - - /// - /// Batch processing finished successfully. - /// - public static WebhookSubscribedEvent BatchSucceeded { get; } = new("batch.succeeded"); - - /// - /// Interaction completed successfully. - /// - public static WebhookSubscribedEvent InteractionCompleted { get; } = new("interaction.completed"); - - /// - /// Interaction failed. - /// - public static WebhookSubscribedEvent InteractionFailed { get; } = new("interaction.failed"); - - /// - /// Interaction requires action (e.g., function calling). - /// - public static WebhookSubscribedEvent InteractionRequiresAction { get; } = new("interaction.requires_action"); - - /// - /// Video generation completed. - /// - public static WebhookSubscribedEvent VideoGenerated { get; } = new("video.generated"); - /// - /// - /// - public static WebhookSubscribedEvent FromValue(string value) - { - value = value ?? throw new global::System.ArgumentNullException(nameof(value)); - - return value switch - { - "batch.expired" => BatchExpired, - "batch.failed" => BatchFailed, - "batch.succeeded" => BatchSucceeded, - "interaction.completed" => InteractionCompleted, - "interaction.failed" => InteractionFailed, - "interaction.requires_action" => InteractionRequiresAction, - "video.generated" => VideoGenerated, - _ => new WebhookSubscribedEvent(value), - }; - } - - /// - /// - /// - public bool IsKnown => Value switch - { - "batch.expired" => true, - "batch.failed" => true, - "batch.succeeded" => true, - "interaction.completed" => true, - "interaction.failed" => true, - "interaction.requires_action" => true, - "video.generated" => true, - _ => false, - }; - - /// - /// - /// - public override string ToString() => Value ?? string.Empty; - - /// - /// - /// - public bool Equals(WebhookSubscribedEvent other) - { - return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is WebhookSubscribedEvent other && Equals(other); - } - - /// - /// - /// - public override int GetHashCode() - { - return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); - } - - /// - /// - /// - public static bool operator ==(WebhookSubscribedEvent left, WebhookSubscribedEvent right) => left.Equals(right); - - /// - /// - /// - public static bool operator !=(WebhookSubscribedEvent left, WebhookSubscribedEvent right) => !left.Equals(right); - } - - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class WebhookSubscribedEventExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this WebhookSubscribedEvent value) - { - return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); - } - - /// - /// Converts an string to a enum. - /// - public static WebhookSubscribedEvent? ToEnum(string value) - { - return WebhookSubscribedEvent.FromValue(value); - } - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookUpdate.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookUpdate.g.cs index 945df513e..0336bad07 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookUpdate.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookUpdate.g.cs @@ -32,7 +32,7 @@ public sealed partial class WebhookUpdate /// - video.generated /// [global::System.Text.Json.Serialization.JsonPropertyName("subscribed_events")] - public global::System.Collections.Generic.IList? SubscribedEvents { get; set; } + public global::System.Collections.Generic.IList? SubscribedEvents { get; set; } /// /// Optional. The state of the webhook. @@ -76,7 +76,7 @@ public sealed partial class WebhookUpdate public WebhookUpdate( string? name, string? uri, - global::System.Collections.Generic.IList? subscribedEvents, + global::System.Collections.Generic.IList? subscribedEvents, global::Google.Gemini.NextGen.WebhookUpdateState? state) { this.Name = name; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookUpdateSubscribedEvent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookUpdateSubscribedEvent.g.cs deleted file mode 100644 index 092c35f03..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookUpdateSubscribedEvent.g.cs +++ /dev/null @@ -1,155 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - - /// - /// - /// - public readonly partial struct WebhookUpdateSubscribedEvent : global::System.IEquatable - { - /// - /// - /// - public WebhookUpdateSubscribedEvent(string value) - { - Value = value ?? throw new global::System.ArgumentNullException(nameof(value)); - } - - /// - /// - /// - public string Value { get; } - /// - /// Batch has not been processed within the 48h timeframe. - /// - public static WebhookUpdateSubscribedEvent BatchExpired { get; } = new("batch.expired"); - - /// - /// Batch job failed. - /// - public static WebhookUpdateSubscribedEvent BatchFailed { get; } = new("batch.failed"); - - /// - /// Batch processing finished successfully. - /// - public static WebhookUpdateSubscribedEvent BatchSucceeded { get; } = new("batch.succeeded"); - - /// - /// Interaction completed successfully. - /// - public static WebhookUpdateSubscribedEvent InteractionCompleted { get; } = new("interaction.completed"); - - /// - /// Interaction failed. - /// - public static WebhookUpdateSubscribedEvent InteractionFailed { get; } = new("interaction.failed"); - - /// - /// Interaction requires action (e.g., function calling). - /// - public static WebhookUpdateSubscribedEvent InteractionRequiresAction { get; } = new("interaction.requires_action"); - - /// - /// Video generation completed. - /// - public static WebhookUpdateSubscribedEvent VideoGenerated { get; } = new("video.generated"); - /// - /// - /// - public static WebhookUpdateSubscribedEvent FromValue(string value) - { - value = value ?? throw new global::System.ArgumentNullException(nameof(value)); - - return value switch - { - "batch.expired" => BatchExpired, - "batch.failed" => BatchFailed, - "batch.succeeded" => BatchSucceeded, - "interaction.completed" => InteractionCompleted, - "interaction.failed" => InteractionFailed, - "interaction.requires_action" => InteractionRequiresAction, - "video.generated" => VideoGenerated, - _ => new WebhookUpdateSubscribedEvent(value), - }; - } - - /// - /// - /// - public bool IsKnown => Value switch - { - "batch.expired" => true, - "batch.failed" => true, - "batch.succeeded" => true, - "interaction.completed" => true, - "interaction.failed" => true, - "interaction.requires_action" => true, - "video.generated" => true, - _ => false, - }; - - /// - /// - /// - public override string ToString() => Value ?? string.Empty; - - /// - /// - /// - public bool Equals(WebhookUpdateSubscribedEvent other) - { - return string.Equals(Value, other.Value, global::System.StringComparison.Ordinal); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is WebhookUpdateSubscribedEvent other && Equals(other); - } - - /// - /// - /// - public override int GetHashCode() - { - return global::System.StringComparer.Ordinal.GetHashCode(Value ?? string.Empty); - } - - /// - /// - /// - public static bool operator ==(WebhookUpdateSubscribedEvent left, WebhookUpdateSubscribedEvent right) => left.Equals(right); - - /// - /// - /// - public static bool operator !=(WebhookUpdateSubscribedEvent left, WebhookUpdateSubscribedEvent right) => !left.Equals(right); - } - - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class WebhookUpdateSubscribedEventExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this WebhookUpdateSubscribedEvent value) - { - return value.Value ?? throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null); - } - - /// - /// Converts an string to a enum. - /// - public static WebhookUpdateSubscribedEvent? ToEnum(string value) - { - return WebhookUpdateSubscribedEvent.FromValue(value); - } - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.4.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.4.Json.g.cs deleted file mode 100644 index 5dc3138ad..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.4.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public readonly partial struct OneOf - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.OneOf? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.OneOf), - jsonSerializerContext) as global::Google.Gemini.NextGen.OneOf?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.OneOf? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.OneOf? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize>( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.OneOf), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.OneOf?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask?> FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.4.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.4.g.cs deleted file mode 100644 index 866426952..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.4.g.cs +++ /dev/null @@ -1,460 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// - /// - public readonly partial struct OneOf : global::System.IEquatable> - { - /// - /// - /// -#if NET6_0_OR_GREATER - public T1? Value1 { get; init; } -#else - public T1? Value1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] -#endif - public bool IsValue1 => Value1 != null; - - /// - /// - /// - public bool TryPickValue1( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T1? value) - { - value = Value1; - return IsValue1; - } - - /// - /// - /// - public T1 PickValue1() => Value1 is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public T2? Value2 { get; init; } -#else - public T2? Value2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] -#endif - public bool IsValue2 => Value2 != null; - - /// - /// - /// - public bool TryPickValue2( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T2? value) - { - value = Value2; - return IsValue2; - } - - /// - /// - /// - public T2 PickValue2() => Value2 is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public T3? Value3 { get; init; } -#else - public T3? Value3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] -#endif - public bool IsValue3 => Value3 != null; - - /// - /// - /// - public bool TryPickValue3( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T3? value) - { - value = Value3; - return IsValue3; - } - - /// - /// - /// - public T3 PickValue3() => Value3 is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); - - /// - /// - /// -#if NET6_0_OR_GREATER - public T4? Value4 { get; init; } -#else - public T4? Value4 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value4))] -#endif - public bool IsValue4 => Value4 != null; - - /// - /// - /// - public bool TryPickValue4( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out T4? value) - { - value = Value4; - return IsValue4; - } - - /// - /// - /// - public T4 PickValue4() => Value4 is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator OneOf(T1 value) => new OneOf((T1?)value); - - /// - /// - /// - public static implicit operator T1?(OneOf @this) => @this.Value1; - - /// - /// - /// - public OneOf(T1? value) - { - Value1 = value; - } - - /// - /// - /// - public static OneOf FromValue1(T1? value) => new OneOf(value); - - /// - /// - /// - public static implicit operator OneOf(T2 value) => new OneOf((T2?)value); - - /// - /// - /// - public static implicit operator T2?(OneOf @this) => @this.Value2; - - /// - /// - /// - public OneOf(T2? value) - { - Value2 = value; - } - - /// - /// - /// - public static OneOf FromValue2(T2? value) => new OneOf(value); - - /// - /// - /// - public static implicit operator OneOf(T3 value) => new OneOf((T3?)value); - - /// - /// - /// - public static implicit operator T3?(OneOf @this) => @this.Value3; - - /// - /// - /// - public OneOf(T3? value) - { - Value3 = value; - } - - /// - /// - /// - public static OneOf FromValue3(T3? value) => new OneOf(value); - - /// - /// - /// - public static implicit operator OneOf(T4 value) => new OneOf((T4?)value); - - /// - /// - /// - public static implicit operator T4?(OneOf @this) => @this.Value4; - - /// - /// - /// - public OneOf(T4? value) - { - Value4 = value; - } - - /// - /// - /// - public static OneOf FromValue4(T4? value) => new OneOf(value); - - /// - /// - /// - public OneOf( - T1? value1, - T2? value2, - T3? value3, - T4? value4 - ) - { - Value1 = value1; - Value2 = value2; - Value3 = value3; - Value4 = value4; - } - - /// - /// - /// - public object? Object => - Value4 as object ?? - Value3 as object ?? - Value2 as object ?? - Value1 as object - ; - - /// - /// - /// - public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() ?? - Value4?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsValue1 && !IsValue2 && !IsValue3 && !IsValue4 || !IsValue1 && IsValue2 && !IsValue3 && !IsValue4 || !IsValue1 && !IsValue2 && IsValue3 && !IsValue4 || !IsValue1 && !IsValue2 && !IsValue3 && IsValue4; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, - global::System.Func? value3 = null, - global::System.Func? value4 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (Value1 is { } __value0 && value1 != null) - { - return value1(__value0); - } - else if (Value2 is { } __value1 && value2 != null) - { - return value2(__value1); - } - else if (Value3 is { } __value2 && value3 != null) - { - return value3(__value2); - } - else if (Value4 is { } __value3 && value4 != null) - { - return value4(__value3); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? value1 = null, - - global::System.Action? value2 = null, - - global::System.Action? value3 = null, - - global::System.Action? value4 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (Value1 is { } __value0) - { - value1?.Invoke(__value0); - } - else if (Value2 is { } __value1) - { - value2?.Invoke(__value1); - } - else if (Value3 is { } __value2) - { - value3?.Invoke(__value2); - } - else if (Value4 is { } __value3) - { - value4?.Invoke(__value3); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? value1 = null, - global::System.Action? value2 = null, - global::System.Action? value3 = null, - global::System.Action? value4 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (Value1 is { } __value0) - { - value1?.Invoke(__value0); - } - else if (Value2 is { } __value1) - { - value2?.Invoke(__value1); - } - else if (Value3 is { } __value2) - { - value3?.Invoke(__value2); - } - else if (Value4 is { } __value3) - { - value4?.Invoke(__value3); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - Value1, - typeof(T1), - Value2, - typeof(T2), - Value3, - typeof(T3), - Value4, - typeof(T4), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(OneOf other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value4, other.Value4) - ; - } - - /// - /// - /// - public static bool operator ==(OneOf obj1, OneOf obj2) - { - return global::System.Collections.Generic.EqualityComparer>.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(OneOf obj1, OneOf obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is OneOf o && Equals(o); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.CreateTrigger.g.cs similarity index 93% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.Create.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.CreateTrigger.g.cs index 0ea345b8d..160d38367 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.Create.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.CreateTrigger.g.cs @@ -7,7 +7,7 @@ public partial class TriggersClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_CreateTriggerSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class TriggersClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_CreateTriggerSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_CreateSecurityRequirement0, + { s_CreateTriggerSecurityRequirement0, }; - partial void PrepareCreateArguments( + partial void PrepareCreateTriggerArguments( global::System.Net.Http.HttpClient httpClient, - global::Google.Gemini.NextGen.TriggerCreateParams request); - partial void PrepareCreateRequest( + global::Google.Gemini.NextGen.Trigger request); + partial void PrepareCreateTriggerRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Google.Gemini.NextGen.TriggerCreateParams request); - partial void ProcessCreateResponse( + global::Google.Gemini.NextGen.Trigger request); + partial void ProcessCreateTriggerResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateResponseContent( + partial void ProcessCreateTriggerResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -63,13 +63,13 @@ partial void ProcessCreateResponseContent( /// }
/// }' /// - public async global::System.Threading.Tasks.Task CreateAsync( + public async global::System.Threading.Tasks.Task CreateTriggerAsync( - global::Google.Gemini.NextGen.TriggerCreateParams request, + global::Google.Gemini.NextGen.Trigger request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await CreateAsResponseAsync( + var __response = await CreateTriggerAsResponseAsync( request: request, requestOptions: requestOptions, @@ -100,9 +100,9 @@ partial void ProcessCreateResponseContent( /// }
/// }' /// - public async global::System.Threading.Tasks.Task> CreateAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateTriggerAsResponseAsync( - global::Google.Gemini.NextGen.TriggerCreateParams request, + global::Google.Gemini.NextGen.Trigger request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -110,15 +110,15 @@ partial void ProcessCreateResponseContent( PrepareArguments( client: HttpClient); - PrepareCreateArguments( + PrepareCreateTriggerArguments( httpClient: HttpClient, request: request); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CreateSecurityRequirements, - operationName: "CreateAsync"); + securityRequirements: s_CreateTriggerSecurityRequirements, + operationName: "CreateTriggerAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -183,7 +183,7 @@ partial void ProcessCreateResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCreateRequest( + PrepareCreateTriggerRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -203,8 +203,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateTrigger", + methodName: "CreateTriggerAsync", pathTemplate: "\"/v1beta/triggers\"", httpMethod: "POST", baseUri: BaseUri, @@ -237,8 +237,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateTrigger", + methodName: "CreateTriggerAsync", pathTemplate: "\"/v1beta/triggers\"", httpMethod: "POST", baseUri: BaseUri, @@ -278,8 +278,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateTrigger", + methodName: "CreateTriggerAsync", pathTemplate: "\"/v1beta/triggers\"", httpMethod: "POST", baseUri: BaseUri, @@ -318,7 +318,7 @@ partial void ProcessCreateResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessCreateResponse( + ProcessCreateTriggerResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -326,8 +326,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateTrigger", + methodName: "CreateTriggerAsync", pathTemplate: "\"/v1beta/triggers\"", httpMethod: "POST", baseUri: BaseUri, @@ -348,8 +348,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateTrigger", + methodName: "CreateTriggerAsync", pathTemplate: "\"/v1beta/triggers\"", httpMethod: "POST", baseUri: BaseUri, @@ -415,7 +415,7 @@ partial void ProcessCreateResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessCreateResponseContent( + ProcessCreateTriggerResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -510,7 +510,7 @@ partial void ProcessCreateResponseContent( /// Required. Time zone in which the schedule should be interpreted. /// /// - /// Interaction for generating the completion using agents. + /// Parameters for creating agent interactions /// /// /// Optional. The display name of the trigger. @@ -528,7 +528,7 @@ partial void ProcessCreateResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateAsync( + public async global::System.Threading.Tasks.Task CreateTriggerAsync( string schedule, string timeZone, global::Google.Gemini.NextGen.CreateAgentInteraction createAgentInteraction, @@ -539,7 +539,7 @@ partial void ProcessCreateResponseContent( global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Google.Gemini.NextGen.TriggerCreateParams + var __request = new global::Google.Gemini.NextGen.Trigger { Schedule = schedule, TimeZone = timeZone, @@ -550,7 +550,7 @@ partial void ProcessCreateResponseContent( ExecutionTimeoutSeconds = executionTimeoutSeconds, }; - return await CreateAsync( + return await CreateTriggerAsync( request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.Delete.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.DeleteTrigger.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.Delete.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.DeleteTrigger.g.cs index a7f6052a8..8c5466d30 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.Delete.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.DeleteTrigger.g.cs @@ -7,7 +7,7 @@ public partial class TriggersClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_DeleteTriggerSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class TriggersClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_DeleteTriggerSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_DeleteSecurityRequirement0, + { s_DeleteTriggerSecurityRequirement0, }; - partial void PrepareDeleteArguments( + partial void PrepareDeleteTriggerArguments( global::System.Net.Http.HttpClient httpClient, ref string id); - partial void PrepareDeleteRequest( + partial void PrepareDeleteTriggerRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string id); - partial void ProcessDeleteResponse( + partial void ProcessDeleteTriggerResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessDeleteResponseContent( + partial void ProcessDeleteTriggerResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -48,12 +48,12 @@ partial void ProcessDeleteResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DeleteAsync( + public async global::System.Threading.Tasks.Task DeleteTriggerAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await DeleteAsResponseAsync( + var __response = await DeleteTriggerAsResponseAsync( id: id, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -68,22 +68,22 @@ partial void ProcessDeleteResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> DeleteAsResponseAsync( + public async global::System.Threading.Tasks.Task> DeleteTriggerAsResponseAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareDeleteArguments( + PrepareDeleteTriggerArguments( httpClient: HttpClient, id: ref id); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_DeleteSecurityRequirements, - operationName: "DeleteAsync"); + securityRequirements: s_DeleteTriggerSecurityRequirements, + operationName: "DeleteTriggerAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -142,7 +142,7 @@ partial void ProcessDeleteResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareDeleteRequest( + PrepareDeleteTriggerRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, id: id); @@ -162,8 +162,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteTrigger", + methodName: "DeleteTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -196,8 +196,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteTrigger", + methodName: "DeleteTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -237,8 +237,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteTrigger", + methodName: "DeleteTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -277,7 +277,7 @@ partial void ProcessDeleteResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessDeleteResponse( + ProcessDeleteTriggerResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -285,8 +285,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteTrigger", + methodName: "DeleteTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -307,8 +307,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteTrigger", + methodName: "DeleteTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -374,7 +374,7 @@ partial void ProcessDeleteResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessDeleteResponseContent( + ProcessDeleteTriggerResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.Get.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.GetTrigger.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.Get.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.GetTrigger.g.cs index d27cf9de9..ce419a6ca 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.Get.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.GetTrigger.g.cs @@ -7,7 +7,7 @@ public partial class TriggersClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_GetSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_GetTriggerSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class TriggersClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_GetSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_GetTriggerSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_GetSecurityRequirement0, + { s_GetTriggerSecurityRequirement0, }; - partial void PrepareGetArguments( + partial void PrepareGetTriggerArguments( global::System.Net.Http.HttpClient httpClient, ref string id); - partial void PrepareGetRequest( + partial void PrepareGetTriggerRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string id); - partial void ProcessGetResponse( + partial void ProcessGetTriggerResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetResponseContent( + partial void ProcessGetTriggerResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -48,12 +48,12 @@ partial void ProcessGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetAsync( + public async global::System.Threading.Tasks.Task GetTriggerAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetAsResponseAsync( + var __response = await GetTriggerAsResponseAsync( id: id, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -68,22 +68,22 @@ partial void ProcessGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> GetAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetTriggerAsResponseAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetArguments( + PrepareGetTriggerArguments( httpClient: HttpClient, id: ref id); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetSecurityRequirements, - operationName: "GetAsync"); + securityRequirements: s_GetTriggerSecurityRequirements, + operationName: "GetTriggerAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -142,7 +142,7 @@ partial void ProcessGetResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetRequest( + PrepareGetTriggerRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, id: id); @@ -162,8 +162,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetTrigger", + methodName: "GetTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -196,8 +196,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetTrigger", + methodName: "GetTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -237,8 +237,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetTrigger", + methodName: "GetTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -277,7 +277,7 @@ partial void ProcessGetResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessGetResponse( + ProcessGetTriggerResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -285,8 +285,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetTrigger", + methodName: "GetTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -307,8 +307,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetTrigger", + methodName: "GetTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -374,7 +374,7 @@ partial void ProcessGetResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessGetResponseContent( + ProcessGetTriggerResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.List.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.ListTriggers.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.List.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.ListTriggers.g.cs index 6966b2bf4..794ed3d8f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.List.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.ListTriggers.g.cs @@ -7,7 +7,7 @@ public partial class TriggersClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_ListSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_ListTriggersSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,26 +21,26 @@ public partial class TriggersClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_ListSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_ListTriggersSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_ListSecurityRequirement0, + { s_ListTriggersSecurityRequirement0, }; - partial void PrepareListArguments( + partial void PrepareListTriggersArguments( global::System.Net.Http.HttpClient httpClient, ref string? filter, ref int? pageSize, ref string? pageToken); - partial void PrepareListRequest( + partial void PrepareListTriggersRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string? filter, int? pageSize, string? pageToken); - partial void ProcessListResponse( + partial void ProcessListTriggersResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessListResponseContent( + partial void ProcessListTriggersResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -54,14 +54,14 @@ partial void ProcessListResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ListAsync( + public async global::System.Threading.Tasks.Task ListTriggersAsync( string? filter = default, int? pageSize = default, string? pageToken = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ListAsResponseAsync( + var __response = await ListTriggersAsResponseAsync( filter: filter, pageSize: pageSize, pageToken: pageToken, @@ -80,7 +80,7 @@ partial void ProcessListResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ListAsResponseAsync( + public async global::System.Threading.Tasks.Task> ListTriggersAsResponseAsync( string? filter = default, int? pageSize = default, string? pageToken = default, @@ -89,7 +89,7 @@ partial void ProcessListResponseContent( { PrepareArguments( client: HttpClient); - PrepareListArguments( + PrepareListTriggersArguments( httpClient: HttpClient, filter: ref filter, pageSize: ref pageSize, @@ -98,8 +98,8 @@ partial void ProcessListResponseContent( var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ListSecurityRequirements, - operationName: "ListAsync"); + securityRequirements: s_ListTriggersSecurityRequirements, + operationName: "ListTriggersAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -163,7 +163,7 @@ partial void ProcessListResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareListRequest( + PrepareListTriggersRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, filter: filter, @@ -185,8 +185,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListTriggers", + methodName: "ListTriggersAsync", pathTemplate: "\"/v1beta/triggers\"", httpMethod: "GET", baseUri: BaseUri, @@ -219,8 +219,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListTriggers", + methodName: "ListTriggersAsync", pathTemplate: "\"/v1beta/triggers\"", httpMethod: "GET", baseUri: BaseUri, @@ -260,8 +260,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListTriggers", + methodName: "ListTriggersAsync", pathTemplate: "\"/v1beta/triggers\"", httpMethod: "GET", baseUri: BaseUri, @@ -300,7 +300,7 @@ partial void ProcessListResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessListResponse( + ProcessListTriggersResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -308,8 +308,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListTriggers", + methodName: "ListTriggersAsync", pathTemplate: "\"/v1beta/triggers\"", httpMethod: "GET", baseUri: BaseUri, @@ -330,8 +330,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListTriggers", + methodName: "ListTriggersAsync", pathTemplate: "\"/v1beta/triggers\"", httpMethod: "GET", baseUri: BaseUri, @@ -397,7 +397,7 @@ partial void ProcessListResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessListResponseContent( + ProcessListTriggersResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.Run.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.RunTrigger.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.Run.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.RunTrigger.g.cs index 2889c67ff..8d78dd57d 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.Run.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.RunTrigger.g.cs @@ -7,7 +7,7 @@ public partial class TriggersClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_RunSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_RunTriggerSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class TriggersClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_RunSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_RunTriggerSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_RunSecurityRequirement0, + { s_RunTriggerSecurityRequirement0, }; - partial void PrepareRunArguments( + partial void PrepareRunTriggerArguments( global::System.Net.Http.HttpClient httpClient, ref string triggerId); - partial void PrepareRunRequest( + partial void PrepareRunTriggerRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string triggerId); - partial void ProcessRunResponse( + partial void ProcessRunTriggerResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessRunResponseContent( + partial void ProcessRunTriggerResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -48,12 +48,12 @@ partial void ProcessRunResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task RunAsync( + public async global::System.Threading.Tasks.Task RunTriggerAsync( string triggerId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await RunAsResponseAsync( + var __response = await RunTriggerAsResponseAsync( triggerId: triggerId, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -68,22 +68,22 @@ partial void ProcessRunResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> RunAsResponseAsync( + public async global::System.Threading.Tasks.Task> RunTriggerAsResponseAsync( string triggerId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareRunArguments( + PrepareRunTriggerArguments( httpClient: HttpClient, triggerId: ref triggerId); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_RunSecurityRequirements, - operationName: "RunAsync"); + securityRequirements: s_RunTriggerSecurityRequirements, + operationName: "RunTriggerAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -142,7 +142,7 @@ partial void ProcessRunResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareRunRequest( + PrepareRunTriggerRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, triggerId: triggerId); @@ -162,8 +162,8 @@ partial void ProcessRunResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Run", - methodName: "RunAsync", + operationId: "RunTrigger", + methodName: "RunTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "POST", baseUri: BaseUri, @@ -196,8 +196,8 @@ partial void ProcessRunResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Run", - methodName: "RunAsync", + operationId: "RunTrigger", + methodName: "RunTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "POST", baseUri: BaseUri, @@ -237,8 +237,8 @@ partial void ProcessRunResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Run", - methodName: "RunAsync", + operationId: "RunTrigger", + methodName: "RunTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "POST", baseUri: BaseUri, @@ -277,7 +277,7 @@ partial void ProcessRunResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessRunResponse( + ProcessRunTriggerResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -285,8 +285,8 @@ partial void ProcessRunResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Run", - methodName: "RunAsync", + operationId: "RunTrigger", + methodName: "RunTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "POST", baseUri: BaseUri, @@ -307,8 +307,8 @@ partial void ProcessRunResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Run", - methodName: "RunAsync", + operationId: "RunTrigger", + methodName: "RunTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "POST", baseUri: BaseUri, @@ -374,7 +374,7 @@ partial void ProcessRunResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessRunResponseContent( + ProcessRunTriggerResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.Update.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.UpdateTrigger.g.cs similarity index 91% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.Update.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.UpdateTrigger.g.cs index ee081ac92..b05e4b69c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.Update.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.UpdateTrigger.g.cs @@ -7,7 +7,7 @@ public partial class TriggersClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_UpdateTriggerSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,24 +21,24 @@ public partial class TriggersClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_UpdateTriggerSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_UpdateSecurityRequirement0, + { s_UpdateTriggerSecurityRequirement0, }; - partial void PrepareUpdateArguments( + partial void PrepareUpdateTriggerArguments( global::System.Net.Http.HttpClient httpClient, ref string id, - global::Google.Gemini.NextGen.TriggerUpdate request); - partial void PrepareUpdateRequest( + global::Google.Gemini.NextGen.UpdateTriggerRequest request); + partial void PrepareUpdateTriggerRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string id, - global::Google.Gemini.NextGen.TriggerUpdate request); - partial void ProcessUpdateResponse( + global::Google.Gemini.NextGen.UpdateTriggerRequest request); + partial void ProcessUpdateTriggerResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessUpdateResponseContent( + partial void ProcessUpdateTriggerResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -51,14 +51,14 @@ partial void ProcessUpdateResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task UpdateAsync( + public async global::System.Threading.Tasks.Task UpdateTriggerAsync( string id, - global::Google.Gemini.NextGen.TriggerUpdate request, + global::Google.Gemini.NextGen.UpdateTriggerRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await UpdateAsResponseAsync( + var __response = await UpdateTriggerAsResponseAsync( id: id, request: request, @@ -76,10 +76,10 @@ partial void ProcessUpdateResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> UpdateAsResponseAsync( + public async global::System.Threading.Tasks.Task> UpdateTriggerAsResponseAsync( string id, - global::Google.Gemini.NextGen.TriggerUpdate request, + global::Google.Gemini.NextGen.UpdateTriggerRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -87,7 +87,7 @@ partial void ProcessUpdateResponseContent( PrepareArguments( client: HttpClient); - PrepareUpdateArguments( + PrepareUpdateTriggerArguments( httpClient: HttpClient, id: ref id, request: request); @@ -95,8 +95,8 @@ partial void ProcessUpdateResponseContent( var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_UpdateSecurityRequirements, - operationName: "UpdateAsync"); + securityRequirements: s_UpdateTriggerSecurityRequirements, + operationName: "UpdateTriggerAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -161,7 +161,7 @@ partial void ProcessUpdateResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareUpdateRequest( + PrepareUpdateTriggerRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, id: id, @@ -182,8 +182,8 @@ partial void ProcessUpdateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Update", - methodName: "UpdateAsync", + operationId: "UpdateTrigger", + methodName: "UpdateTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -216,8 +216,8 @@ partial void ProcessUpdateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Update", - methodName: "UpdateAsync", + operationId: "UpdateTrigger", + methodName: "UpdateTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -257,8 +257,8 @@ partial void ProcessUpdateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Update", - methodName: "UpdateAsync", + operationId: "UpdateTrigger", + methodName: "UpdateTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -297,7 +297,7 @@ partial void ProcessUpdateResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessUpdateResponse( + ProcessUpdateTriggerResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -305,8 +305,8 @@ partial void ProcessUpdateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Update", - methodName: "UpdateAsync", + operationId: "UpdateTrigger", + methodName: "UpdateTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -327,8 +327,8 @@ partial void ProcessUpdateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Update", - methodName: "UpdateAsync", + operationId: "UpdateTrigger", + methodName: "UpdateTriggerAsync", pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -394,7 +394,7 @@ partial void ProcessUpdateResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessUpdateResponseContent( + ProcessUpdateTriggerResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -481,29 +481,34 @@ partial void ProcessUpdateResponseContent( /// Updates a trigger. ///
/// - /// - /// Optional. The status of the trigger. + /// + /// Represents the fields of a Trigger that can be updated. /// - /// - /// Optional. The display name of the trigger. + /// + /// Required. The ID of the trigger to update. + /// + /// + /// Optional. The update mask applies to the resource. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task UpdateAsync( + public async global::System.Threading.Tasks.Task UpdateTriggerAsync( string id, - global::Google.Gemini.NextGen.TriggerUpdateStatus? status = default, - string? displayName = default, + global::Google.Gemini.NextGen.TriggerUpdate trigger, + string requestId, + string? updateMask = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Google.Gemini.NextGen.TriggerUpdate + var __request = new global::Google.Gemini.NextGen.UpdateTriggerRequest { - Status = status, - DisplayName = displayName, + Trigger = trigger, + Id = requestId, + UpdateMask = updateMask, }; - return await UpdateAsync( + return await UpdateTriggerAsync( id: id, request: __request, requestOptions: requestOptions, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutions.JsonSerializerContext.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutions.JsonSerializerContext.g.cs new file mode 100644 index 000000000..697511674 --- /dev/null +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutions.JsonSerializerContext.g.cs @@ -0,0 +1,164 @@ + +#nullable enable + +namespace Google.Gemini.NextGen +{ + /// + /// + /// + [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull + )] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ListTriggerExecutionsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TriggerExecution))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TriggerExecutionStatus), TypeInfoPropertyName = "TriggerExecutionStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TriggerExecutionStatus?), TypeInfoPropertyName = "NullableTriggerExecutionStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + internal sealed partial class TriggersExecutionsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext + { + } + /// + /// + /// + public sealed partial class TriggersExecutionsSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext + { + private static readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver Resolver = new LazyChunkResolver(); + + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + internal static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver TypeInfoResolver => Resolver; + + + private static readonly global::System.Text.Json.JsonSerializerOptions DefaultOptions = CreateDefaultOptions(); + + /// + /// + /// + public static TriggersExecutionsSourceGenerationContext Default { get; } = new(DefaultOptions); + + private TriggersExecutionsSourceGenerationContext(global::System.Text.Json.JsonSerializerOptions options) + : base(options) + { + } + + /// + protected override global::System.Text.Json.JsonSerializerOptions? GeneratedSerializerOptions => DefaultOptions; + + /// + public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) + { + return Resolver.GetTypeInfo(type, Options); + } + + /// + /// Adds this package's converters to . + /// + /// + /// A converter has to be on the options a chained resolver builds its JsonTypeInfo against, + /// and a context resolves types from every package below it. Each package contributes only + /// what it owns and calls down the chain for the rest, so the family's converter table is + /// written once rather than copied into all of them. + /// + [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] + public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) + { + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.UnixTimestampJsonConverter()); + options.Converters.Add(new LazyEnumJsonConverterFactory()); + } + + private static global::System.Text.Json.JsonSerializerOptions CreateDefaultOptions() + { + var options = new global::System.Text.Json.JsonSerializerOptions + { + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + TypeInfoResolver = Resolver, + }; + AddConverters(options); + + return options; + } + + + private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Serialization.JsonConverterFactory + { + public override bool CanConvert(global::System.Type typeToConvert) + { + return + typeToConvert == typeof(global::Google.Gemini.NextGen.TriggerExecutionStatus) + + || typeToConvert == typeof(global::Google.Gemini.NextGen.TriggerExecutionStatus?); + } + + public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + if (typeToConvert == typeof(global::Google.Gemini.NextGen.TriggerExecutionStatus)) + { + return new global::Google.Gemini.NextGen.JsonConverters.TriggerExecutionStatusJsonConverter(); + } + + if (typeToConvert == typeof(global::Google.Gemini.NextGen.TriggerExecutionStatus?)) + { + return new global::Google.Gemini.NextGen.JsonConverters.TriggerExecutionStatusNullableJsonConverter(); + } + throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); + } + } + + private sealed class LazyChunkResolver : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver + { + private readonly object _gate = new(); + private readonly global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[] _resolvers = new global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver?[1]; + + public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo( + global::System.Type type, + global::System.Text.Json.JsonSerializerOptions options) + { + for (var index = 0; index < _resolvers.Length; index++) + { + var typeInfo = GetResolver(index).GetTypeInfo(type, options); + if (typeInfo is not null) + { + return typeInfo; + } + } + + return null; + } + + private global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver GetResolver(int index) + { + var resolver = global::System.Threading.Volatile.Read(ref _resolvers[index]); + if (resolver is not null) + { + return resolver; + } + + lock (_gate) + { + return _resolvers[index] ??= CreateResolver(index); + } + } + + private static global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver CreateResolver(int index) + { + return index switch + { + 0 => new TriggersExecutionsSourceGenerationContextChunk0(new global::System.Text.Json.JsonSerializerOptions()), + _ => throw new global::System.ArgumentOutOfRangeException(nameof(index)), + }; + } + } + } +} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsInternalClient.Authorizations.ApiKeyInHeader.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutionsClient.Authorizations.ApiKeyInHeader.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsInternalClient.Authorizations.ApiKeyInHeader.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutionsClient.Authorizations.ApiKeyInHeader.g.cs index 4e6ca6e9e..0b3f8bb3f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsInternalClient.Authorizations.ApiKeyInHeader.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutionsClient.Authorizations.ApiKeyInHeader.g.cs @@ -3,7 +3,7 @@ namespace Google.Gemini.NextGen { - public sealed partial class EnvironmentsInternalClient + public sealed partial class TriggersExecutionsClient { /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsInternalClient.Constructors.ApiKeyInHeader.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutionsClient.Constructors.ApiKeyInHeader.g.cs similarity index 71% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsInternalClient.Constructors.ApiKeyInHeader.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutionsClient.Constructors.ApiKeyInHeader.g.cs index ade3d3b27..d8dbf5127 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsInternalClient.Constructors.ApiKeyInHeader.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutionsClient.Constructors.ApiKeyInHeader.g.cs @@ -3,11 +3,11 @@ namespace Google.Gemini.NextGen { - public sealed partial class EnvironmentsInternalClient + public sealed partial class TriggersExecutionsClient { - /// + /// - public EnvironmentsInternalClient( + public TriggersExecutionsClient( string apiKey, global::System.Net.Http.HttpClient? httpClient = null, global::System.Uri? baseUri = null, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.ListExecutions.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutionsClient.ListTriggerExecutions.g.cs similarity index 92% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.ListExecutions.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutionsClient.ListTriggerExecutions.g.cs index 628e2a858..964891751 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersClient.ListExecutions.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutionsClient.ListTriggerExecutions.g.cs @@ -3,11 +3,11 @@ namespace Google.Gemini.NextGen { - public partial class TriggersClient + public partial class TriggersExecutionsClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_ListExecutionsSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_ListTriggerExecutionsSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,26 +21,28 @@ public partial class TriggersClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_ListExecutionsSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_ListTriggerExecutionsSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_ListExecutionsSecurityRequirement0, + { s_ListTriggerExecutionsSecurityRequirement0, }; - partial void PrepareListExecutionsArguments( + partial void PrepareListTriggerExecutionsArguments( global::System.Net.Http.HttpClient httpClient, + ref string? filter, ref int? pageSize, ref string? pageToken, ref string triggerId); - partial void PrepareListExecutionsRequest( + partial void PrepareListTriggerExecutionsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string? filter, int? pageSize, string? pageToken, string triggerId); - partial void ProcessListExecutionsResponse( + partial void ProcessListTriggerExecutionsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessListExecutionsResponseContent( + partial void ProcessListTriggerExecutionsResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -48,21 +50,24 @@ partial void ProcessListExecutionsResponseContent( /// /// Lists executions for a trigger. /// + /// /// /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ListExecutionsAsync( + public async global::System.Threading.Tasks.Task ListTriggerExecutionsAsync( string triggerId, + string? filter = default, int? pageSize = default, string? pageToken = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ListExecutionsAsResponseAsync( + var __response = await ListTriggerExecutionsAsResponseAsync( triggerId: triggerId, + filter: filter, pageSize: pageSize, pageToken: pageToken, requestOptions: requestOptions, @@ -74,14 +79,16 @@ partial void ProcessListExecutionsResponseContent( /// /// Lists executions for a trigger. /// + /// /// /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ListExecutionsAsResponseAsync( + public async global::System.Threading.Tasks.Task> ListTriggerExecutionsAsResponseAsync( string triggerId, + string? filter = default, int? pageSize = default, string? pageToken = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -89,8 +96,9 @@ partial void ProcessListExecutionsResponseContent( { PrepareArguments( client: HttpClient); - PrepareListExecutionsArguments( + PrepareListTriggerExecutionsArguments( httpClient: HttpClient, + filter: ref filter, pageSize: ref pageSize, pageToken: ref pageToken, triggerId: ref triggerId); @@ -98,8 +106,8 @@ partial void ProcessListExecutionsResponseContent( var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ListExecutionsSecurityRequirements, - operationName: "ListExecutionsAsync"); + securityRequirements: s_ListTriggerExecutionsSecurityRequirements, + operationName: "ListTriggerExecutionsAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -122,6 +130,7 @@ partial void ProcessListExecutionsResponseContent( path: $"/v1beta/triggers/{triggerId}/executions", baseUri: HttpClient.BaseAddress); __pathBuilder + .AddOptionalParameter("filter", filter) .AddOptionalParameter("page_size", pageSize?.ToString()) .AddOptionalParameter("page_token", pageToken) ; @@ -162,9 +171,10 @@ partial void ProcessListExecutionsResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareListExecutionsRequest( + PrepareListTriggerExecutionsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, + filter: filter, pageSize: pageSize, pageToken: pageToken, triggerId: triggerId); @@ -184,8 +194,8 @@ partial void ProcessListExecutionsResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListExecutions", - methodName: "ListExecutionsAsync", + operationId: "ListTriggerExecutions", + methodName: "ListTriggerExecutionsAsync", pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "GET", baseUri: BaseUri, @@ -218,8 +228,8 @@ partial void ProcessListExecutionsResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListExecutions", - methodName: "ListExecutionsAsync", + operationId: "ListTriggerExecutions", + methodName: "ListTriggerExecutionsAsync", pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "GET", baseUri: BaseUri, @@ -259,8 +269,8 @@ partial void ProcessListExecutionsResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListExecutions", - methodName: "ListExecutionsAsync", + operationId: "ListTriggerExecutions", + methodName: "ListTriggerExecutionsAsync", pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "GET", baseUri: BaseUri, @@ -299,7 +309,7 @@ partial void ProcessListExecutionsResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessListExecutionsResponse( + ProcessListTriggerExecutionsResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -307,8 +317,8 @@ partial void ProcessListExecutionsResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListExecutions", - methodName: "ListExecutionsAsync", + operationId: "ListTriggerExecutions", + methodName: "ListTriggerExecutionsAsync", pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "GET", baseUri: BaseUri, @@ -329,8 +339,8 @@ partial void ProcessListExecutionsResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "ListExecutions", - methodName: "ListExecutionsAsync", + operationId: "ListTriggerExecutions", + methodName: "ListTriggerExecutionsAsync", pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "GET", baseUri: BaseUri, @@ -396,7 +406,7 @@ partial void ProcessListExecutionsResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessListExecutionsResponseContent( + ProcessListTriggerExecutionsResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsInternalClient.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutionsClient.g.cs similarity index 91% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsInternalClient.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutionsClient.g.cs index d11e08f42..62bc64c77 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsInternalClient.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.TriggersExecutionsClient.g.cs @@ -7,7 +7,7 @@ namespace Google.Gemini.NextGen /// If no httpClient is provided, a new one will be created.
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. /// - public sealed partial class EnvironmentsInternalClient : global::Google.Gemini.NextGen.IEnvironmentsInternalClient, global::System.IDisposable + public sealed partial class TriggersExecutionsClient : global::Google.Gemini.NextGen.ITriggersExecutionsClient, global::System.IDisposable { /// /// @@ -41,13 +41,13 @@ public sealed partial class EnvironmentsInternalClient : global::Google.Gemini.N /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { - get => JsonSerializerContextProvider?.Value ?? global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default; + get => JsonSerializerContextProvider?.Value ?? global::Google.Gemini.NextGen.TriggersExecutionsSourceGenerationContext.Default; set => JsonSerializerContextProvider = new(() => value); } /// - /// Creates a new instance of the EnvironmentsInternalClient. + /// Creates a new instance of the TriggersExecutionsClient. /// If no httpClient is provided, a new one will be created. /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. /// @@ -55,7 +55,7 @@ public sealed partial class EnvironmentsInternalClient : global::Google.Gemini.N /// The base URL for the API. If not provided, the default baseUri from OpenAPI spec will be used. /// The authorizations to use for the requests. /// Dispose the HttpClient when the instance is disposed. True by default. - public EnvironmentsInternalClient( + public TriggersExecutionsClient( global::System.Net.Http.HttpClient? httpClient = null, global::System.Uri? baseUri = null, global::System.Collections.Generic.List? authorizations = null, @@ -69,14 +69,14 @@ public EnvironmentsInternalClient( } /// - /// Creates a new instance of the EnvironmentsInternalClient with explicit options but no base URL override. + /// Creates a new instance of the TriggersExecutionsClient with explicit options but no base URL override. /// Skips passing baseUri so the default base URL from the OpenAPI spec applies. /// /// The HttpClient instance. If not provided, a new one will be created. /// The authorizations to use for the requests. /// Client-wide request defaults such as headers, query parameters, retries, and timeout. /// Dispose the HttpClient when the instance is disposed. True by default. - public EnvironmentsInternalClient( + public TriggersExecutionsClient( global::System.Net.Http.HttpClient? httpClient, global::System.Collections.Generic.List? authorizations, global::Google.Gemini.NextGen.AutoSDKClientOptions? options, @@ -90,7 +90,7 @@ public EnvironmentsInternalClient( } /// - /// Creates a new instance of the EnvironmentsInternalClient. + /// Creates a new instance of the TriggersExecutionsClient. /// If no httpClient is provided, a new one will be created. /// If no baseUri is provided, the default baseUri from OpenAPI spec will be used. /// @@ -99,7 +99,7 @@ public EnvironmentsInternalClient( /// The authorizations to use for the requests. /// Client-wide request defaults such as headers, query parameters, retries, and timeout. /// Dispose the HttpClient when the instance is disposed. True by default. - public EnvironmentsInternalClient( + public TriggersExecutionsClient( global::System.Net.Http.HttpClient? httpClient, global::System.Uri? baseUri, global::System.Collections.Generic.List? authorizations, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Voices.JsonSerializerContext.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Voices.JsonSerializerContext.g.cs index 0388224d2..f289f211f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Voices.JsonSerializerContext.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Voices.JsonSerializerContext.g.cs @@ -12,14 +12,15 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ResponseModality), TypeInfoPropertyName = "ResponseModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AudioData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ResponseModality), TypeInfoPropertyName = "ResponseModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateVoiceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Voice))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] @@ -36,9 +37,9 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VoiceType), TypeInfoPropertyName = "VoiceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ResponseModality?), TypeInfoPropertyName = "NullableResponseModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ResponseModality?), TypeInfoPropertyName = "NullableResponseModality2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GroundingToolCountType?), TypeInfoPropertyName = "NullableGroundingToolCountType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Pitch?), TypeInfoPropertyName = "NullablePitch2")] @@ -94,7 +95,6 @@ private VoicesSourceGenerationContext(global::System.Text.Json.JsonSerializerOpt [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.CreateVoice.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.Create.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.CreateVoice.g.cs index d9b78afe0..775eb444d 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.Create.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.CreateVoice.g.cs @@ -7,7 +7,7 @@ public partial class VoicesClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_CreateVoiceSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class VoicesClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_CreateVoiceSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_CreateSecurityRequirement0, + { s_CreateVoiceSecurityRequirement0, }; - partial void PrepareCreateArguments( + partial void PrepareCreateVoiceArguments( global::System.Net.Http.HttpClient httpClient, global::Google.Gemini.NextGen.CreateVoiceRequest request); - partial void PrepareCreateRequest( + partial void PrepareCreateVoiceRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::Google.Gemini.NextGen.CreateVoiceRequest request); - partial void ProcessCreateResponse( + partial void ProcessCreateVoiceResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateResponseContent( + partial void ProcessCreateVoiceResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -66,13 +66,13 @@ partial void ProcessCreateResponseContent( /// }
/// }' /// - public async global::System.Threading.Tasks.Task CreateAsync( + public async global::System.Threading.Tasks.Task CreateVoiceAsync( global::Google.Gemini.NextGen.CreateVoiceRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await CreateAsResponseAsync( + var __response = await CreateVoiceAsResponseAsync( request: request, requestOptions: requestOptions, @@ -106,7 +106,7 @@ partial void ProcessCreateResponseContent( /// }
/// }' /// - public async global::System.Threading.Tasks.Task> CreateAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateVoiceAsResponseAsync( global::Google.Gemini.NextGen.CreateVoiceRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -116,15 +116,15 @@ partial void ProcessCreateResponseContent( PrepareArguments( client: HttpClient); - PrepareCreateArguments( + PrepareCreateVoiceArguments( httpClient: HttpClient, request: request); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CreateSecurityRequirements, - operationName: "CreateAsync"); + securityRequirements: s_CreateVoiceSecurityRequirements, + operationName: "CreateVoiceAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -189,7 +189,7 @@ partial void ProcessCreateResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCreateRequest( + PrepareCreateVoiceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, request: request); @@ -209,8 +209,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateVoice", + methodName: "CreateVoiceAsync", pathTemplate: "\"/v1beta/voices\"", httpMethod: "POST", baseUri: BaseUri, @@ -243,8 +243,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateVoice", + methodName: "CreateVoiceAsync", pathTemplate: "\"/v1beta/voices\"", httpMethod: "POST", baseUri: BaseUri, @@ -284,8 +284,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateVoice", + methodName: "CreateVoiceAsync", pathTemplate: "\"/v1beta/voices\"", httpMethod: "POST", baseUri: BaseUri, @@ -324,7 +324,7 @@ partial void ProcessCreateResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessCreateResponse( + ProcessCreateVoiceResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -332,8 +332,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateVoice", + methodName: "CreateVoiceAsync", pathTemplate: "\"/v1beta/voices\"", httpMethod: "POST", baseUri: BaseUri, @@ -354,8 +354,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateVoice", + methodName: "CreateVoiceAsync", pathTemplate: "\"/v1beta/voices\"", httpMethod: "POST", baseUri: BaseUri, @@ -421,7 +421,7 @@ partial void ProcessCreateResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessCreateResponseContent( + ProcessCreateVoiceResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -532,7 +532,7 @@ partial void ProcessCreateResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateAsync( + public async global::System.Threading.Tasks.Task CreateVoiceAsync( global::Google.Gemini.NextGen.Voice voice, bool? store = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -544,7 +544,7 @@ partial void ProcessCreateResponseContent( Store = store, }; - return await CreateAsync( + return await CreateVoiceAsync( request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.Delete.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.DeleteVoice.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.Delete.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.DeleteVoice.g.cs index 0b7a64a48..c6aee0c22 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.Delete.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.DeleteVoice.g.cs @@ -7,7 +7,7 @@ public partial class VoicesClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_DeleteVoiceSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class VoicesClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_DeleteVoiceSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_DeleteSecurityRequirement0, + { s_DeleteVoiceSecurityRequirement0, }; - partial void PrepareDeleteArguments( + partial void PrepareDeleteVoiceArguments( global::System.Net.Http.HttpClient httpClient, ref string voicesId); - partial void PrepareDeleteRequest( + partial void PrepareDeleteVoiceRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string voicesId); - partial void ProcessDeleteResponse( + partial void ProcessDeleteVoiceResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessDeleteResponseContent( + partial void ProcessDeleteVoiceResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -53,12 +53,12 @@ partial void ProcessDeleteResponseContent( /// curl -X DELETE https://generativelanguage.googleapis.com/v1beta/voices/voice_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task DeleteAsync( + public async global::System.Threading.Tasks.Task DeleteVoiceAsync( string voicesId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await DeleteAsResponseAsync( + var __response = await DeleteVoiceAsResponseAsync( voicesId: voicesId, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -78,22 +78,22 @@ partial void ProcessDeleteResponseContent( /// curl -X DELETE https://generativelanguage.googleapis.com/v1beta/voices/voice_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task> DeleteAsResponseAsync( + public async global::System.Threading.Tasks.Task> DeleteVoiceAsResponseAsync( string voicesId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareDeleteArguments( + PrepareDeleteVoiceArguments( httpClient: HttpClient, voicesId: ref voicesId); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_DeleteSecurityRequirements, - operationName: "DeleteAsync"); + securityRequirements: s_DeleteVoiceSecurityRequirements, + operationName: "DeleteVoiceAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -152,7 +152,7 @@ partial void ProcessDeleteResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareDeleteRequest( + PrepareDeleteVoiceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, voicesId: voicesId); @@ -172,8 +172,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteVoice", + methodName: "DeleteVoiceAsync", pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -206,8 +206,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteVoice", + methodName: "DeleteVoiceAsync", pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -247,8 +247,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteVoice", + methodName: "DeleteVoiceAsync", pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -287,7 +287,7 @@ partial void ProcessDeleteResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessDeleteResponse( + ProcessDeleteVoiceResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -295,8 +295,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteVoice", + methodName: "DeleteVoiceAsync", pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -317,8 +317,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteVoice", + methodName: "DeleteVoiceAsync", pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -384,7 +384,7 @@ partial void ProcessDeleteResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessDeleteResponseContent( + ProcessDeleteVoiceResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.Get.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.GetVoice.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.Get.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.GetVoice.g.cs index fb6510746..24e462e7b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.Get.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.GetVoice.g.cs @@ -7,7 +7,7 @@ public partial class VoicesClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_GetSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_GetVoiceSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class VoicesClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_GetSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_GetVoiceSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_GetSecurityRequirement0, + { s_GetVoiceSecurityRequirement0, }; - partial void PrepareGetArguments( + partial void PrepareGetVoiceArguments( global::System.Net.Http.HttpClient httpClient, ref string voicesId); - partial void PrepareGetRequest( + partial void PrepareGetVoiceRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string voicesId); - partial void ProcessGetResponse( + partial void ProcessGetVoiceResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetResponseContent( + partial void ProcessGetVoiceResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -54,12 +54,12 @@ partial void ProcessGetResponseContent( /// curl -X GET https://generativelanguage.googleapis.com/v1beta/voices/voice_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task GetAsync( + public async global::System.Threading.Tasks.Task GetVoiceAsync( string voicesId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetAsResponseAsync( + var __response = await GetVoiceAsResponseAsync( voicesId: voicesId, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -80,22 +80,22 @@ partial void ProcessGetResponseContent( /// curl -X GET https://generativelanguage.googleapis.com/v1beta/voices/voice_abc123 \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task> GetAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetVoiceAsResponseAsync( string voicesId, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetArguments( + PrepareGetVoiceArguments( httpClient: HttpClient, voicesId: ref voicesId); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetSecurityRequirements, - operationName: "GetAsync"); + securityRequirements: s_GetVoiceSecurityRequirements, + operationName: "GetVoiceAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -154,7 +154,7 @@ partial void ProcessGetResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetRequest( + PrepareGetVoiceRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, voicesId: voicesId); @@ -174,8 +174,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetVoice", + methodName: "GetVoiceAsync", pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "GET", baseUri: BaseUri, @@ -208,8 +208,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetVoice", + methodName: "GetVoiceAsync", pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "GET", baseUri: BaseUri, @@ -249,8 +249,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetVoice", + methodName: "GetVoiceAsync", pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "GET", baseUri: BaseUri, @@ -289,7 +289,7 @@ partial void ProcessGetResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessGetResponse( + ProcessGetVoiceResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -297,8 +297,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetVoice", + methodName: "GetVoiceAsync", pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "GET", baseUri: BaseUri, @@ -319,8 +319,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetVoice", + methodName: "GetVoiceAsync", pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "GET", baseUri: BaseUri, @@ -386,7 +386,7 @@ partial void ProcessGetResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessGetResponseContent( + ProcessGetVoiceResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.List.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.ListVoices.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.List.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.ListVoices.g.cs index aa353af0d..c6304b5b8 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.List.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.VoicesClient.ListVoices.g.cs @@ -7,7 +7,7 @@ public partial class VoicesClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_ListSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_ListVoicesSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,14 +21,14 @@ public partial class VoicesClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_ListSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_ListVoicesSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_ListSecurityRequirement0, + { s_ListVoicesSecurityRequirement0, }; - partial void PrepareListArguments( + partial void PrepareListVoicesArguments( global::System.Net.Http.HttpClient httpClient, global::System.Collections.Generic.IList? accent, - global::System.Collections.Generic.IList? contexts, + global::System.Collections.Generic.IList? context, global::System.Collections.Generic.IList? gender, global::System.Collections.Generic.IList? languageCode, ref int? pageSize, @@ -38,11 +38,11 @@ partial void PrepareListArguments( global::System.Collections.Generic.IList? regionCode, ref string? search, global::System.Collections.Generic.IList? type); - partial void PrepareListRequest( + partial void PrepareListVoicesRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, global::System.Collections.Generic.IList? accent, - global::System.Collections.Generic.IList? contexts, + global::System.Collections.Generic.IList? context, global::System.Collections.Generic.IList? gender, global::System.Collections.Generic.IList? languageCode, int? pageSize, @@ -52,11 +52,11 @@ partial void PrepareListRequest( global::System.Collections.Generic.IList? regionCode, string? search, global::System.Collections.Generic.IList? type); - partial void ProcessListResponse( + partial void ProcessListVoicesResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessListResponseContent( + partial void ProcessListVoicesResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -66,7 +66,7 @@ partial void ProcessListResponseContent( /// followed by prebuilt system voices from Google's voice catalog. /// /// - /// + /// /// /// /// @@ -83,9 +83,9 @@ partial void ProcessListResponseContent( /// curl -X GET https://generativelanguage.googleapis.com/v1beta/voices \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task ListAsync( + public async global::System.Threading.Tasks.Task ListVoicesAsync( global::System.Collections.Generic.IList? accent = default, - global::System.Collections.Generic.IList? contexts = default, + global::System.Collections.Generic.IList? context = default, global::System.Collections.Generic.IList? gender = default, global::System.Collections.Generic.IList? languageCode = default, int? pageSize = default, @@ -98,9 +98,9 @@ partial void ProcessListResponseContent( global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ListAsResponseAsync( + var __response = await ListVoicesAsResponseAsync( accent: accent, - contexts: contexts, + context: context, gender: gender, languageCode: languageCode, pageSize: pageSize, @@ -121,7 +121,7 @@ partial void ProcessListResponseContent( /// followed by prebuilt system voices from Google's voice catalog. /// /// - /// + /// /// /// /// @@ -138,9 +138,9 @@ partial void ProcessListResponseContent( /// curl -X GET https://generativelanguage.googleapis.com/v1beta/voices \
/// -H "x-goog-api-key: $GEMINI_API_KEY" /// - public async global::System.Threading.Tasks.Task> ListAsResponseAsync( + public async global::System.Threading.Tasks.Task> ListVoicesAsResponseAsync( global::System.Collections.Generic.IList? accent = default, - global::System.Collections.Generic.IList? contexts = default, + global::System.Collections.Generic.IList? context = default, global::System.Collections.Generic.IList? gender = default, global::System.Collections.Generic.IList? languageCode = default, int? pageSize = default, @@ -155,10 +155,10 @@ partial void ProcessListResponseContent( { PrepareArguments( client: HttpClient); - PrepareListArguments( + PrepareListVoicesArguments( httpClient: HttpClient, accent: accent, - contexts: contexts, + context: context, gender: gender, languageCode: languageCode, pageSize: ref pageSize, @@ -172,8 +172,8 @@ partial void ProcessListResponseContent( var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ListSecurityRequirements, - operationName: "ListAsync"); + securityRequirements: s_ListVoicesSecurityRequirements, + operationName: "ListVoicesAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -197,7 +197,7 @@ partial void ProcessListResponseContent( baseUri: HttpClient.BaseAddress); __pathBuilder .AddOptionalParameter("accent", accent, delimiter: ",", explode: true) - .AddOptionalParameter("contexts", contexts, delimiter: ",", explode: true) + .AddOptionalParameter("context", context, delimiter: ",", explode: true) .AddOptionalParameter("gender", gender, delimiter: ",", explode: true) .AddOptionalParameter("language_code", languageCode, delimiter: ",", explode: true) .AddOptionalParameter("page_size", pageSize?.ToString()) @@ -245,11 +245,11 @@ partial void ProcessListResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareListRequest( + PrepareListVoicesRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, accent: accent, - contexts: contexts, + context: context, gender: gender, languageCode: languageCode, pageSize: pageSize, @@ -275,8 +275,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListVoices", + methodName: "ListVoicesAsync", pathTemplate: "\"/v1beta/voices\"", httpMethod: "GET", baseUri: BaseUri, @@ -309,8 +309,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListVoices", + methodName: "ListVoicesAsync", pathTemplate: "\"/v1beta/voices\"", httpMethod: "GET", baseUri: BaseUri, @@ -350,8 +350,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListVoices", + methodName: "ListVoicesAsync", pathTemplate: "\"/v1beta/voices\"", httpMethod: "GET", baseUri: BaseUri, @@ -390,7 +390,7 @@ partial void ProcessListResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessListResponse( + ProcessListVoicesResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -398,8 +398,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListVoices", + methodName: "ListVoicesAsync", pathTemplate: "\"/v1beta/voices\"", httpMethod: "GET", baseUri: BaseUri, @@ -420,8 +420,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListVoices", + methodName: "ListVoicesAsync", pathTemplate: "\"/v1beta/voices\"", httpMethod: "GET", baseUri: BaseUri, @@ -487,7 +487,7 @@ partial void ProcessListResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessListResponseContent( + ProcessListVoicesResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Webhooks.JsonSerializerContext.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Webhooks.JsonSerializerContext.g.cs index 5c13c762e..63e5e5916 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Webhooks.JsonSerializerContext.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Webhooks.JsonSerializerContext.g.cs @@ -12,39 +12,32 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateWebhookRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Webhook))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Empty))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ListWebhooksResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.PingWebhookRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookPingResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RotateSigningSecretRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior), TypeInfoPropertyName = "RotateSigningSecretRequestRevocationBehavior2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.PingWebhookResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RotateSigningSecretResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SigningSecret))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.UpdateWebhookRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookSubscribedEvent), TypeInfoPropertyName = "WebhookSubscribedEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookState), TypeInfoPropertyName = "WebhookState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent), TypeInfoPropertyName = "WebhookUpdateSubscribedEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdateState), TypeInfoPropertyName = "WebhookUpdateState2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior?), TypeInfoPropertyName = "NullableRotateSigningSecretRequestRevocationBehavior2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookSubscribedEvent?), TypeInfoPropertyName = "NullableWebhookSubscribedEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookState?), TypeInfoPropertyName = "NullableWebhookState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent?), TypeInfoPropertyName = "NullableWebhookUpdateSubscribedEvent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdateState?), TypeInfoPropertyName = "NullableWebhookUpdateState2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class WebhooksSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -92,7 +85,6 @@ private WebhooksSourceGenerationContext(global::System.Text.Json.JsonSerializerO [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -115,22 +107,10 @@ private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Ser public override bool CanConvert(global::System.Type typeToConvert) { return - typeToConvert == typeof(global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior) - - || typeToConvert == typeof(global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior?) - - || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookSubscribedEvent) - - || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookSubscribedEvent?) - - || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookState) + typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookState) || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookState?) - || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent) - - || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent?) - || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateState) || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateState?); @@ -140,26 +120,6 @@ public override bool CanConvert(global::System.Type typeToConvert) global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - if (typeToConvert == typeof(global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior)) - { - return new global::Google.Gemini.NextGen.JsonConverters.RotateSigningSecretRequestRevocationBehaviorJsonConverter(); - } - - if (typeToConvert == typeof(global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior?)) - { - return new global::Google.Gemini.NextGen.JsonConverters.RotateSigningSecretRequestRevocationBehaviorNullableJsonConverter(); - } - - if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookSubscribedEvent)) - { - return new global::Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEventJsonConverter(); - } - - if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookSubscribedEvent?)) - { - return new global::Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEventNullableJsonConverter(); - } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookState)) { return new global::Google.Gemini.NextGen.JsonConverters.WebhookStateJsonConverter(); @@ -170,16 +130,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Google.Gemini.NextGen.JsonConverters.WebhookStateNullableJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent)) - { - return new global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateSubscribedEventJsonConverter(); - } - - if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent?)) - { - return new global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateSubscribedEventNullableJsonConverter(); - } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateState)) { return new global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateStateJsonConverter(); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.CreateWebhook.g.cs similarity index 90% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Create.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.CreateWebhook.g.cs index 4fed16761..06124642c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Create.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.CreateWebhook.g.cs @@ -7,7 +7,7 @@ public partial class WebhooksClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_CreateSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_CreateWebhookSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,24 @@ public partial class WebhooksClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_CreateSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_CreateWebhookSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_CreateSecurityRequirement0, + { s_CreateWebhookSecurityRequirement0, }; - partial void PrepareCreateArguments( + partial void PrepareCreateWebhookArguments( global::System.Net.Http.HttpClient httpClient, - global::Google.Gemini.NextGen.Webhook request); - partial void PrepareCreateRequest( + ref string? webhookId, + global::Google.Gemini.NextGen.CreateWebhookRequest request); + partial void PrepareCreateWebhookRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - global::Google.Gemini.NextGen.Webhook request); - partial void ProcessCreateResponse( + string? webhookId, + global::Google.Gemini.NextGen.CreateWebhookRequest request); + partial void ProcessCreateWebhookResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateResponseContent( + partial void ProcessCreateWebhookResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -44,19 +46,22 @@ partial void ProcessCreateResponseContent( /// /// Creates a new Webhook. /// + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateAsync( + public async global::System.Threading.Tasks.Task CreateWebhookAsync( - global::Google.Gemini.NextGen.Webhook request, + global::Google.Gemini.NextGen.CreateWebhookRequest request, + string? webhookId = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await CreateAsResponseAsync( + var __response = await CreateWebhookAsResponseAsync( request: request, + webhookId: webhookId, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -66,13 +71,15 @@ partial void ProcessCreateResponseContent( /// /// Creates a new Webhook. /// + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> CreateAsResponseAsync( + public async global::System.Threading.Tasks.Task> CreateWebhookAsResponseAsync( - global::Google.Gemini.NextGen.Webhook request, + global::Google.Gemini.NextGen.CreateWebhookRequest request, + string? webhookId = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -80,15 +87,16 @@ partial void ProcessCreateResponseContent( PrepareArguments( client: HttpClient); - PrepareCreateArguments( + PrepareCreateWebhookArguments( httpClient: HttpClient, + webhookId: ref webhookId, request: request); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_CreateSecurityRequirements, - operationName: "CreateAsync"); + securityRequirements: s_CreateWebhookSecurityRequirements, + operationName: "CreateWebhookAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -110,6 +118,9 @@ partial void ProcessCreateResponseContent( var __pathBuilder = new global::Google.Gemini.NextGen.PathBuilder( path: "/v1beta/webhooks", baseUri: HttpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("webhook_id", webhookId) + ; var __path = __pathBuilder.ToString(); __path = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -153,9 +164,10 @@ partial void ProcessCreateResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareCreateRequest( + PrepareCreateWebhookRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, + webhookId: webhookId, request: request); return __httpRequest; @@ -173,8 +185,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateWebhook", + methodName: "CreateWebhookAsync", pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "POST", baseUri: BaseUri, @@ -207,8 +219,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateWebhook", + methodName: "CreateWebhookAsync", pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "POST", baseUri: BaseUri, @@ -248,8 +260,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateWebhook", + methodName: "CreateWebhookAsync", pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "POST", baseUri: BaseUri, @@ -288,7 +300,7 @@ partial void ProcessCreateResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessCreateResponse( + ProcessCreateWebhookResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -296,8 +308,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateWebhook", + methodName: "CreateWebhookAsync", pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "POST", baseUri: BaseUri, @@ -318,8 +330,8 @@ partial void ProcessCreateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Create", - methodName: "CreateAsync", + operationId: "CreateWebhook", + methodName: "CreateWebhookAsync", pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "POST", baseUri: BaseUri, @@ -385,7 +397,7 @@ partial void ProcessCreateResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessCreateResponseContent( + ProcessCreateWebhookResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -471,41 +483,26 @@ partial void ProcessCreateResponseContent( /// /// Creates a new Webhook. /// - /// - /// Required. The URI to which webhook events will be sent. - /// - /// - /// Required. The events that the webhook is subscribed to.
- /// Available events:
- /// - batch.succeeded
- /// - batch.expired
- /// - batch.failed
- /// - interaction.requires_action
- /// - interaction.completed
- /// - interaction.failed
- /// - video.generated - /// - /// - /// Optional. The user-provided name of the webhook. + /// + /// + /// A Webhook resource. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateAsync( - string uri, - global::System.Collections.Generic.IList subscribedEvents, - string? name = default, + public async global::System.Threading.Tasks.Task CreateWebhookAsync( + global::Google.Gemini.NextGen.Webhook webhook, + string? webhookId = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Google.Gemini.NextGen.Webhook + var __request = new global::Google.Gemini.NextGen.CreateWebhookRequest { - Uri = uri, - SubscribedEvents = subscribedEvents, - Name = name, + Webhook = webhook, }; - return await CreateAsync( + return await CreateWebhookAsync( + webhookId: webhookId, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Delete.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.DeleteWebhook.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Delete.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.DeleteWebhook.g.cs index 45ed3595f..c3b5312b3 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Delete.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.DeleteWebhook.g.cs @@ -7,7 +7,7 @@ public partial class WebhooksClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_DeleteSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_DeleteWebhookSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class WebhooksClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_DeleteSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_DeleteWebhookSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_DeleteSecurityRequirement0, + { s_DeleteWebhookSecurityRequirement0, }; - partial void PrepareDeleteArguments( + partial void PrepareDeleteWebhookArguments( global::System.Net.Http.HttpClient httpClient, ref string id); - partial void PrepareDeleteRequest( + partial void PrepareDeleteWebhookRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string id); - partial void ProcessDeleteResponse( + partial void ProcessDeleteWebhookResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessDeleteResponseContent( + partial void ProcessDeleteWebhookResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -48,12 +48,12 @@ partial void ProcessDeleteResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DeleteAsync( + public async global::System.Threading.Tasks.Task DeleteWebhookAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await DeleteAsResponseAsync( + var __response = await DeleteWebhookAsResponseAsync( id: id, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -68,22 +68,22 @@ partial void ProcessDeleteResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> DeleteAsResponseAsync( + public async global::System.Threading.Tasks.Task> DeleteWebhookAsResponseAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareDeleteArguments( + PrepareDeleteWebhookArguments( httpClient: HttpClient, id: ref id); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_DeleteSecurityRequirements, - operationName: "DeleteAsync"); + securityRequirements: s_DeleteWebhookSecurityRequirements, + operationName: "DeleteWebhookAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -142,7 +142,7 @@ partial void ProcessDeleteResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareDeleteRequest( + PrepareDeleteWebhookRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, id: id); @@ -162,8 +162,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteWebhook", + methodName: "DeleteWebhookAsync", pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -196,8 +196,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteWebhook", + methodName: "DeleteWebhookAsync", pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -237,8 +237,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteWebhook", + methodName: "DeleteWebhookAsync", pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -277,7 +277,7 @@ partial void ProcessDeleteResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessDeleteResponse( + ProcessDeleteWebhookResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -285,8 +285,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteWebhook", + methodName: "DeleteWebhookAsync", pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -307,8 +307,8 @@ partial void ProcessDeleteResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Delete", - methodName: "DeleteAsync", + operationId: "DeleteWebhook", + methodName: "DeleteWebhookAsync", pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, @@ -374,7 +374,7 @@ partial void ProcessDeleteResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessDeleteResponseContent( + ProcessDeleteWebhookResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Get.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.GetWebhook.g.cs similarity index 94% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Get.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.GetWebhook.g.cs index cc32f9f1a..8a784a69a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Get.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.GetWebhook.g.cs @@ -7,7 +7,7 @@ public partial class WebhooksClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_GetSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_GetWebhookSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,22 +21,22 @@ public partial class WebhooksClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_GetSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_GetWebhookSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_GetSecurityRequirement0, + { s_GetWebhookSecurityRequirement0, }; - partial void PrepareGetArguments( + partial void PrepareGetWebhookArguments( global::System.Net.Http.HttpClient httpClient, ref string id); - partial void PrepareGetRequest( + partial void PrepareGetWebhookRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string id); - partial void ProcessGetResponse( + partial void ProcessGetWebhookResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetResponseContent( + partial void ProcessGetWebhookResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -48,12 +48,12 @@ partial void ProcessGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetAsync( + public async global::System.Threading.Tasks.Task GetWebhookAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await GetAsResponseAsync( + var __response = await GetWebhookAsResponseAsync( id: id, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -68,22 +68,22 @@ partial void ProcessGetResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> GetAsResponseAsync( + public async global::System.Threading.Tasks.Task> GetWebhookAsResponseAsync( string id, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); - PrepareGetArguments( + PrepareGetWebhookArguments( httpClient: HttpClient, id: ref id); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_GetSecurityRequirements, - operationName: "GetAsync"); + securityRequirements: s_GetWebhookSecurityRequirements, + operationName: "GetWebhookAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -142,7 +142,7 @@ partial void ProcessGetResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareGetRequest( + PrepareGetWebhookRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, id: id); @@ -162,8 +162,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetWebhook", + methodName: "GetWebhookAsync", pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -196,8 +196,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetWebhook", + methodName: "GetWebhookAsync", pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -237,8 +237,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetWebhook", + methodName: "GetWebhookAsync", pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -277,7 +277,7 @@ partial void ProcessGetResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessGetResponse( + ProcessGetWebhookResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -285,8 +285,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetWebhook", + methodName: "GetWebhookAsync", pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -307,8 +307,8 @@ partial void ProcessGetResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Get", - methodName: "GetAsync", + operationId: "GetWebhook", + methodName: "GetWebhookAsync", pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "GET", baseUri: BaseUri, @@ -374,7 +374,7 @@ partial void ProcessGetResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessGetResponseContent( + ProcessGetWebhookResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.List.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.ListWebhooks.g.cs similarity index 91% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.List.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.ListWebhooks.g.cs index 6bf01b09f..4397e402c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.List.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.ListWebhooks.g.cs @@ -7,7 +7,7 @@ public partial class WebhooksClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_ListSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_ListWebhooksSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,24 +21,24 @@ public partial class WebhooksClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_ListSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_ListWebhooksSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_ListSecurityRequirement0, + { s_ListWebhooksSecurityRequirement0, }; - partial void PrepareListArguments( + partial void PrepareListWebhooksArguments( global::System.Net.Http.HttpClient httpClient, ref int? pageSize, ref string? pageToken); - partial void PrepareListRequest( + partial void PrepareListWebhooksRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, int? pageSize, string? pageToken); - partial void ProcessListResponse( + partial void ProcessListWebhooksResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessListResponseContent( + partial void ProcessListWebhooksResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -51,13 +51,13 @@ partial void ProcessListResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ListAsync( + public async global::System.Threading.Tasks.Task ListWebhooksAsync( int? pageSize = default, string? pageToken = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await ListAsResponseAsync( + var __response = await ListWebhooksAsResponseAsync( pageSize: pageSize, pageToken: pageToken, requestOptions: requestOptions, @@ -74,7 +74,7 @@ partial void ProcessListResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ListAsResponseAsync( + public async global::System.Threading.Tasks.Task> ListWebhooksAsResponseAsync( int? pageSize = default, string? pageToken = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, @@ -82,7 +82,7 @@ partial void ProcessListResponseContent( { PrepareArguments( client: HttpClient); - PrepareListArguments( + PrepareListWebhooksArguments( httpClient: HttpClient, pageSize: ref pageSize, pageToken: ref pageToken); @@ -90,8 +90,8 @@ partial void ProcessListResponseContent( var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_ListSecurityRequirements, - operationName: "ListAsync"); + securityRequirements: s_ListWebhooksSecurityRequirements, + operationName: "ListWebhooksAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -154,7 +154,7 @@ partial void ProcessListResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareListRequest( + PrepareListWebhooksRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, pageSize: pageSize, @@ -175,8 +175,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListWebhooks", + methodName: "ListWebhooksAsync", pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "GET", baseUri: BaseUri, @@ -209,8 +209,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListWebhooks", + methodName: "ListWebhooksAsync", pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "GET", baseUri: BaseUri, @@ -250,8 +250,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListWebhooks", + methodName: "ListWebhooksAsync", pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "GET", baseUri: BaseUri, @@ -290,7 +290,7 @@ partial void ProcessListResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessListResponse( + ProcessListWebhooksResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -298,8 +298,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListWebhooks", + methodName: "ListWebhooksAsync", pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "GET", baseUri: BaseUri, @@ -320,8 +320,8 @@ partial void ProcessListResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "List", - methodName: "ListAsync", + operationId: "ListWebhooks", + methodName: "ListWebhooksAsync", pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "GET", baseUri: BaseUri, @@ -342,19 +342,19 @@ partial void ProcessListResponseContent( { string? __content_default = null; global::System.Exception? __exception_default = null; - global::Google.Gemini.NextGen.WebhookListResponse? __value_default = null; + global::Google.Gemini.NextGen.ListWebhooksResponse? __value_default = null; try { if (__effectiveReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_default = global::Google.Gemini.NextGen.WebhookListResponse.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Google.Gemini.NextGen.ListWebhooksResponse.FromJson(__content_default, JsonSerializerContext); } else { __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_default = global::Google.Gemini.NextGen.WebhookListResponse.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Google.Gemini.NextGen.ListWebhooksResponse.FromJson(__content_default, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -363,7 +363,7 @@ partial void ProcessListResponseContent( } - throw global::Google.Gemini.NextGen.ApiException.Create( + throw global::Google.Gemini.NextGen.ApiException.Create( statusCode: __response.StatusCode, message: __content_default ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_default, @@ -387,7 +387,7 @@ partial void ProcessListResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessListResponseContent( + ProcessListWebhooksResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -396,9 +396,9 @@ partial void ProcessListResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Google.Gemini.NextGen.WebhookListResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Google.Gemini.NextGen.ListWebhooksResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( + return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -428,9 +428,9 @@ partial void ProcessListResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Google.Gemini.NextGen.WebhookListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Google.Gemini.NextGen.ListWebhooksResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( + return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Ping.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Ping.g.cs deleted file mode 100644 index 4f723bb8e..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Ping.g.cs +++ /dev/null @@ -1,503 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - public partial class WebhooksClient - { - - - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_PingSecurityRequirement0 = - new global::Google.Gemini.NextGen.EndPointSecurityRequirement - { - Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] - { new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement - { - Type = "ApiKey", - SchemeId = "ApikeyXGoogApiKey", - Location = "Header", - Name = "x-goog-api-key", - FriendlyName = "ApiKeyInHeader", - }, - }, - }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_PingSecurityRequirements = - new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_PingSecurityRequirement0, - }; - partial void PreparePingArguments( - global::System.Net.Http.HttpClient httpClient, - ref string id, - global::Google.Gemini.NextGen.PingWebhookRequest request); - partial void PreparePingRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string id, - global::Google.Gemini.NextGen.PingWebhookRequest request); - partial void ProcessPingResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessPingResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// Sends a ping event to a Webhook. - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task PingAsync( - string id, - - global::Google.Gemini.NextGen.PingWebhookRequest request, - global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __response = await PingAsResponseAsync( - id: id, - - request: request, - requestOptions: requestOptions, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - return __response.Body; - } - /// - /// Sends a ping event to a Webhook. - /// - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task> PingAsResponseAsync( - string id, - - global::Google.Gemini.NextGen.PingWebhookRequest request, - global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - - PrepareArguments( - client: HttpClient); - PreparePingArguments( - httpClient: HttpClient, - id: ref id, - request: request); - - - var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( - availableAuthorizations: Authorizations, - securityRequirements: s_PingSecurityRequirements, - operationName: "PingAsync"); - - using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( - clientOptions: Options, - requestOptions: requestOptions, - cancellationToken: cancellationToken); - var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; - var __effectiveReadResponseAsString = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.GetReadResponseAsString( - clientOptions: Options, - requestOptions: requestOptions, - fallbackValue: ReadResponseAsString); - var __maxAttempts = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.GetMaxAttempts( - clientOptions: Options, - requestOptions: requestOptions, - supportsRetry: true); - - global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() - { - - var __pathBuilder = new global::Google.Gemini.NextGen.PathBuilder( - path: $"/v1beta/webhooks/{id}:ping", - baseUri: HttpClient.BaseAddress); - var __path = __pathBuilder.ToString(); - __path = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.AppendQueryParameters( - path: __path, - clientParameters: Options.QueryParameters, - requestParameters: requestOptions?.QueryParameters); - var __httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); -#if NET6_0_OR_GREATER - __httpRequest.Version = global::System.Net.HttpVersion.Version11; - __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; -#endif - - foreach (var __authorization in __authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2" || - __authorization.Type == "OpenIdConnect") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; - global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.ApplyHeaders( - request: __httpRequest, - clientHeaders: Options.Headers, - requestHeaders: requestOptions?.Headers); - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PreparePingRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - id: id, - request: request); - - return __httpRequest; - } - - global::System.Net.Http.HttpRequestMessage? __httpRequest = null; - global::System.Net.Http.HttpResponseMessage? __response = null; - var __attemptNumber = 0; - try - { - for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) - { - __attemptNumber = __attempt; - __httpRequest = __CreateHttpRequest(); - await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( - clientOptions: Options, - context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Ping", - methodName: "PingAsync", - pathTemplate: "$\"/v1beta/webhooks/{id}:ping\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - try - { - __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - } - catch (global::System.Net.Http.HttpRequestException __exception) - { - var __retryDelay = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: null, - attempt: __attempt); - var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; - await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Ping", - methodName: "PingAsync", - pathTemplate: "$\"/v1beta/webhooks/{id}:ping\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: null, - exception: __exception, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: __willRetry, - retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, - retryReason: "exception", - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - if (!__willRetry) - { - throw; - } - - __httpRequest.Dispose(); - __httpRequest = null; - await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - if (__response != null && - __attempt < __maxAttempts && - global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) - { - var __retryDelay = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.GetRetryDelay( - clientOptions: Options, - requestOptions: requestOptions, - response: __response, - attempt: __attempt); - await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Ping", - methodName: "PingAsync", - pathTemplate: "$\"/v1beta/webhooks/{id}:ping\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attempt, - maxAttempts: __maxAttempts, - willRetry: true, - retryDelay: __retryDelay, - retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - __response.Dispose(); - __response = null; - __httpRequest.Dispose(); - __httpRequest = null; - await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( - retryDelay: __retryDelay, - cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); - continue; - } - - break; - } - - if (__response == null) - { - throw new global::System.InvalidOperationException("No response received."); - } - - using (__response) - { - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessPingResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - if (__response.IsSuccessStatusCode) - { - await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( - clientOptions: Options, - context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Ping", - methodName: "PingAsync", - pathTemplate: "$\"/v1beta/webhooks/{id}:ping\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - else - { - await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( - clientOptions: Options, - context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Ping", - methodName: "PingAsync", - pathTemplate: "$\"/v1beta/webhooks/{id}:ping\"", - httpMethod: "POST", - baseUri: BaseUri, - request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), - response: __response, - exception: null, - clientOptions: Options, - requestOptions: requestOptions, - attempt: __attemptNumber, - maxAttempts: __maxAttempts, - willRetry: false, - retryDelay: null, - retryReason: global::System.String.Empty, - cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); - } - // Successful operation - if (!__response.IsSuccessStatusCode) - { - string? __content_default = null; - global::System.Exception? __exception_default = null; - global::Google.Gemini.NextGen.WebhookPingResponse? __value_default = null; - try - { - if (__effectiveReadResponseAsString) - { - __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_default = global::Google.Gemini.NextGen.WebhookPingResponse.FromJson(__content_default, JsonSerializerContext); - } - else - { - __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - - __value_default = global::Google.Gemini.NextGen.WebhookPingResponse.FromJson(__content_default, JsonSerializerContext); - } - } - catch (global::System.Exception __ex) - { - __exception_default = __ex; - } - - - throw global::Google.Gemini.NextGen.ApiException.Create( - statusCode: __response.StatusCode, - message: __content_default ?? __response.ReasonPhrase ?? string.Empty, - innerException: __exception_default, - responseBody: __content_default, - responseObject: __value_default, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - - if (__effectiveReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessPingResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - - var __value = global::Google.Gemini.NextGen.WebhookPingResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - throw global::Google.Gemini.NextGen.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - using var __content = await __response.Content.ReadAsStreamAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - - var __value = await global::Google.Gemini.NextGen.WebhookPingResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( - statusCode: __response.StatusCode, - headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), - requestUri: __response.RequestMessage?.RequestUri, - body: __value); - } - catch (global::System.Exception __ex) - { - string? __content = null; - try - { - __content = await __response.Content.ReadAsStringAsync( - #if NET5_0_OR_GREATER - __effectiveCancellationToken - #endif - ).ConfigureAwait(false); - } - catch (global::System.Exception) - { - } - - throw global::Google.Gemini.NextGen.ApiException.Create( - statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - responseBody: __content, - responseHeaders: global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value)); - } - } - - } - } - finally - { - __httpRequest?.Dispose(); - } - } - /// - /// Sends a ping event to a Webhook. - /// - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task PingAsync( - string id, - global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Google.Gemini.NextGen.PingWebhookRequest - { - }; - - return await PingAsync( - id: id, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.PingWebhook.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.PingWebhook.g.cs new file mode 100644 index 000000000..7bcd6afa5 --- /dev/null +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.PingWebhook.g.cs @@ -0,0 +1,461 @@ + +#nullable enable + +namespace Google.Gemini.NextGen +{ + public partial class WebhooksClient + { + + + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_PingWebhookSecurityRequirement0 = + new global::Google.Gemini.NextGen.EndPointSecurityRequirement + { + Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] + { new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyXGoogApiKey", + Location = "Header", + Name = "x-goog-api-key", + FriendlyName = "ApiKeyInHeader", + }, + }, + }; + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_PingWebhookSecurityRequirements = + new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] + { s_PingWebhookSecurityRequirement0, + }; + partial void PreparePingWebhookArguments( + global::System.Net.Http.HttpClient httpClient, + ref string id); + partial void PreparePingWebhookRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string id); + partial void ProcessPingWebhookResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessPingWebhookResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Sends a ping event to a Webhook. + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task PingWebhookAsync( + string id, + global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await PingWebhookAsResponseAsync( + id: id, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Sends a ping event to a Webhook. + /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> PingWebhookAsResponseAsync( + string id, + global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PreparePingWebhookArguments( + httpClient: HttpClient, + id: ref id); + + + var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_PingWebhookSecurityRequirements, + operationName: "PingWebhookAsync"); + + using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Google.Gemini.NextGen.PathBuilder( + path: $"/v1beta/webhooks/{id}:ping", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PreparePingWebhookRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "PingWebhook", + methodName: "PingWebhookAsync", + pathTemplate: "$\"/v1beta/webhooks/{id}:ping\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "PingWebhook", + methodName: "PingWebhookAsync", + pathTemplate: "$\"/v1beta/webhooks/{id}:ping\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "PingWebhook", + methodName: "PingWebhookAsync", + pathTemplate: "$\"/v1beta/webhooks/{id}:ping\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessPingWebhookResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "PingWebhook", + methodName: "PingWebhookAsync", + pathTemplate: "$\"/v1beta/webhooks/{id}:ping\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "PingWebhook", + methodName: "PingWebhookAsync", + pathTemplate: "$\"/v1beta/webhooks/{id}:ping\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Successful operation + if (!__response.IsSuccessStatusCode) + { + string? __content_default = null; + global::System.Exception? __exception_default = null; + global::Google.Gemini.NextGen.PingWebhookResponse? __value_default = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_default = global::Google.Gemini.NextGen.PingWebhookResponse.FromJson(__content_default, JsonSerializerContext); + } + else + { + __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_default = global::Google.Gemini.NextGen.PingWebhookResponse.FromJson(__content_default, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_default = __ex; + } + + + throw global::Google.Gemini.NextGen.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_default ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_default, + responseBody: __content_default, + responseObject: __value_default, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessPingWebhookResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Google.Gemini.NextGen.PingWebhookResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Google.Gemini.NextGen.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Google.Gemini.NextGen.PingWebhookResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Google.Gemini.NextGen.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.RotateSigningSecret.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.RotateSigningSecret.g.cs index 237e55ef9..2464c8f02 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.RotateSigningSecret.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.RotateSigningSecret.g.cs @@ -27,13 +27,11 @@ public partial class WebhooksClient }; partial void PrepareRotateSigningSecretArguments( global::System.Net.Http.HttpClient httpClient, - ref string id, - global::Google.Gemini.NextGen.RotateSigningSecretRequest request); + ref string id); partial void PrepareRotateSigningSecretRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string id, - global::Google.Gemini.NextGen.RotateSigningSecretRequest request); + string id); partial void ProcessRotateSigningSecretResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -47,21 +45,16 @@ partial void ProcessRotateSigningSecretResponseContent( /// Generates a new signing secret for a Webhook. /// /// - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task RotateSigningSecretAsync( + public async global::System.Threading.Tasks.Task RotateSigningSecretAsync( string id, - - global::Google.Gemini.NextGen.RotateSigningSecretRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await RotateSigningSecretAsResponseAsync( id: id, - - request: request, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -72,25 +65,19 @@ partial void ProcessRotateSigningSecretResponseContent( /// Generates a new signing secret for a Webhook. /// /// - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> RotateSigningSecretAsResponseAsync( + public async global::System.Threading.Tasks.Task> RotateSigningSecretAsResponseAsync( string id, - - global::Google.Gemini.NextGen.RotateSigningSecretRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - request = request ?? throw new global::System.ArgumentNullException(nameof(request)); - PrepareArguments( client: HttpClient); PrepareRotateSigningSecretArguments( httpClient: HttpClient, - id: ref id, - request: request); + id: ref id); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( @@ -147,12 +134,6 @@ partial void ProcessRotateSigningSecretResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); - var __httpRequestContent = new global::System.Net.Http.StringContent( - content: __httpRequestContentBody, - encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/json"); - __httpRequest.Content = __httpRequestContent; global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.ApplyHeaders( request: __httpRequest, clientHeaders: Options.Headers, @@ -164,8 +145,7 @@ partial void ProcessRotateSigningSecretResponseContent( PrepareRotateSigningSecretRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id, - request: request); + id: id); return __httpRequest; } @@ -349,19 +329,19 @@ partial void ProcessRotateSigningSecretResponseContent( { string? __content_default = null; global::System.Exception? __exception_default = null; - global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse? __value_default = null; + global::Google.Gemini.NextGen.RotateSigningSecretResponse? __value_default = null; try { if (__effectiveReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_default = global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Google.Gemini.NextGen.RotateSigningSecretResponse.FromJson(__content_default, JsonSerializerContext); } else { __content_default = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_default = global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Google.Gemini.NextGen.RotateSigningSecretResponse.FromJson(__content_default, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -370,7 +350,7 @@ partial void ProcessRotateSigningSecretResponseContent( } - throw global::Google.Gemini.NextGen.ApiException.Create( + throw global::Google.Gemini.NextGen.ApiException.Create( statusCode: __response.StatusCode, message: __content_default ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_default, @@ -403,9 +383,9 @@ partial void ProcessRotateSigningSecretResponseContent( { __response.EnsureSuccessStatusCode(); - var __value = global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse.FromJson(__content, JsonSerializerContext) ?? + var __value = global::Google.Gemini.NextGen.RotateSigningSecretResponse.FromJson(__content, JsonSerializerContext) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( + return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -435,9 +415,9 @@ partial void ProcessRotateSigningSecretResponseContent( #endif ).ConfigureAwait(false); - var __value = await global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + var __value = await global::Google.Gemini.NextGen.RotateSigningSecretResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); - return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( + return new global::Google.Gemini.NextGen.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::Google.Gemini.NextGen.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, @@ -477,32 +457,5 @@ partial void ProcessRotateSigningSecretResponseContent( __httpRequest?.Dispose(); } } - /// - /// Generates a new signing secret for a Webhook. - /// - /// - /// - /// Optional. The revocation behavior for previous signing secrets. - /// - /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. - /// The token to cancel the operation with - /// - public async global::System.Threading.Tasks.Task RotateSigningSecretAsync( - string id, - global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior? revocationBehavior = default, - global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - var __request = new global::Google.Gemini.NextGen.RotateSigningSecretRequest - { - RevocationBehavior = revocationBehavior, - }; - - return await RotateSigningSecretAsync( - id: id, - request: __request, - requestOptions: requestOptions, - cancellationToken: cancellationToken).ConfigureAwait(false); - } } } \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Update.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.UpdateWebhook.g.cs similarity index 88% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Update.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.UpdateWebhook.g.cs index ca07437e0..fde96a2eb 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.Update.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.WebhooksClient.UpdateWebhook.g.cs @@ -7,7 +7,7 @@ public partial class WebhooksClient { - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_UpdateSecurityRequirement0 = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement s_UpdateWebhookSecurityRequirement0 = new global::Google.Gemini.NextGen.EndPointSecurityRequirement { Authorizations = new global::Google.Gemini.NextGen.EndPointAuthorizationRequirement[] @@ -21,26 +21,24 @@ public partial class WebhooksClient }, }, }; - private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_UpdateSecurityRequirements = + private static readonly global::Google.Gemini.NextGen.EndPointSecurityRequirement[] s_UpdateWebhookSecurityRequirements = new global::Google.Gemini.NextGen.EndPointSecurityRequirement[] - { s_UpdateSecurityRequirement0, + { s_UpdateWebhookSecurityRequirement0, }; - partial void PrepareUpdateArguments( + partial void PrepareUpdateWebhookArguments( global::System.Net.Http.HttpClient httpClient, ref string id, - ref string? updateMask, - global::Google.Gemini.NextGen.WebhookUpdate request); - partial void PrepareUpdateRequest( + global::Google.Gemini.NextGen.UpdateWebhookRequest request); + partial void PrepareUpdateWebhookRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string id, - string? updateMask, - global::Google.Gemini.NextGen.WebhookUpdate request); - partial void ProcessUpdateResponse( + global::Google.Gemini.NextGen.UpdateWebhookRequest request); + partial void ProcessUpdateWebhookResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessUpdateResponseContent( + partial void ProcessUpdateWebhookResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -49,24 +47,21 @@ partial void ProcessUpdateResponseContent( /// Updates an existing Webhook. /// /// - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task UpdateAsync( + public async global::System.Threading.Tasks.Task UpdateWebhookAsync( string id, - global::Google.Gemini.NextGen.WebhookUpdate request, - string? updateMask = default, + global::Google.Gemini.NextGen.UpdateWebhookRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __response = await UpdateAsResponseAsync( + var __response = await UpdateWebhookAsResponseAsync( id: id, request: request, - updateMask: updateMask, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -77,16 +72,14 @@ partial void ProcessUpdateResponseContent( /// Updates an existing Webhook. /// /// - /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> UpdateAsResponseAsync( + public async global::System.Threading.Tasks.Task> UpdateWebhookAsResponseAsync( string id, - global::Google.Gemini.NextGen.WebhookUpdate request, - string? updateMask = default, + global::Google.Gemini.NextGen.UpdateWebhookRequest request, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -94,17 +87,16 @@ partial void ProcessUpdateResponseContent( PrepareArguments( client: HttpClient); - PrepareUpdateArguments( + PrepareUpdateWebhookArguments( httpClient: HttpClient, id: ref id, - updateMask: ref updateMask, request: request); var __authorizations = global::Google.Gemini.NextGen.EndPointSecurityResolver.ResolveAuthorizations( availableAuthorizations: Authorizations, - securityRequirements: s_UpdateSecurityRequirements, - operationName: "UpdateAsync"); + securityRequirements: s_UpdateWebhookSecurityRequirements, + operationName: "UpdateWebhookAsync"); using var __timeoutCancellationTokenSource = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( clientOptions: Options, @@ -126,9 +118,6 @@ partial void ProcessUpdateResponseContent( var __pathBuilder = new global::Google.Gemini.NextGen.PathBuilder( path: $"/v1beta/webhooks/{id}", baseUri: HttpClient.BaseAddress); - __pathBuilder - .AddOptionalParameter("update_mask", updateMask) - ; var __path = __pathBuilder.ToString(); __path = global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.AppendQueryParameters( path: __path, @@ -172,11 +161,10 @@ partial void ProcessUpdateResponseContent( PrepareRequest( client: HttpClient, request: __httpRequest); - PrepareUpdateRequest( + PrepareUpdateWebhookRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, id: id, - updateMask: updateMask, request: request); return __httpRequest; @@ -194,8 +182,8 @@ partial void ProcessUpdateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Update", - methodName: "UpdateAsync", + operationId: "UpdateWebhook", + methodName: "UpdateWebhookAsync", pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -228,8 +216,8 @@ partial void ProcessUpdateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Update", - methodName: "UpdateAsync", + operationId: "UpdateWebhook", + methodName: "UpdateWebhookAsync", pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -269,8 +257,8 @@ partial void ProcessUpdateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Update", - methodName: "UpdateAsync", + operationId: "UpdateWebhook", + methodName: "UpdateWebhookAsync", pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -309,7 +297,7 @@ partial void ProcessUpdateResponseContent( ProcessResponse( client: HttpClient, response: __response); - ProcessUpdateResponse( + ProcessUpdateWebhookResponse( httpClient: HttpClient, httpResponseMessage: __response); if (__response.IsSuccessStatusCode) @@ -317,8 +305,8 @@ partial void ProcessUpdateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Update", - methodName: "UpdateAsync", + operationId: "UpdateWebhook", + methodName: "UpdateWebhookAsync", pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -339,8 +327,8 @@ partial void ProcessUpdateResponseContent( await global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( clientOptions: Options, context: global::Google.Gemini.NextGen.AutoSDKRequestOptionsSupport.CreateHookContext( - operationId: "Update", - methodName: "UpdateAsync", + operationId: "UpdateWebhook", + methodName: "UpdateWebhookAsync", pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, @@ -406,7 +394,7 @@ partial void ProcessUpdateResponseContent( client: HttpClient, response: __response, content: ref __content); - ProcessUpdateResponseContent( + ProcessUpdateWebhookResponseContent( httpClient: HttpClient, httpResponseMessage: __response, content: ref __content); @@ -493,51 +481,33 @@ partial void ProcessUpdateResponseContent( /// Updates an existing Webhook. /// /// - /// - /// - /// Optional. The user-provided name of the webhook. - /// - /// - /// Optional. The URI to which webhook events will be sent. - /// - /// - /// Optional. The events that the webhook is subscribed to.
- /// Available events:
- /// - batch.succeeded
- /// - batch.expired
- /// - batch.failed
- /// - interaction.requires_action
- /// - interaction.completed
- /// - interaction.failed
- /// - video.generated + /// + /// + /// Required. The ID of the webhook to update. /// - /// - /// Optional. The state of the webhook. + /// + /// Optional. The list of fields to update. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task UpdateAsync( + public async global::System.Threading.Tasks.Task UpdateWebhookAsync( string id, + global::Google.Gemini.NextGen.WebhookUpdate webhook, + string requestId, string? updateMask = default, - string? name = default, - string? uri = default, - global::System.Collections.Generic.IList? subscribedEvents = default, - global::Google.Gemini.NextGen.WebhookUpdateState? state = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::Google.Gemini.NextGen.WebhookUpdate + var __request = new global::Google.Gemini.NextGen.UpdateWebhookRequest { - Name = name, - Uri = uri, - SubscribedEvents = subscribedEvents, - State = state, + Webhook = webhook, + Id = requestId, + UpdateMask = updateMask, }; - return await UpdateAsync( + return await UpdateWebhookAsync( id: id, - updateMask: updateMask, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/Google.Gemini/NextGen/Generated/autosdk.generated-examples.json b/src/libs/Google.Gemini/NextGen/Generated/autosdk.generated-examples.json index d68e11cfd..935a57183 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/autosdk.generated-examples.json +++ b/src/libs/Google.Gemini/NextGen/Generated/autosdk.generated-examples.json @@ -6,7 +6,7 @@ "Slug": "createagent", "Description": "Creates a new Agent (Typed version for SDK).", "Language": "http", - "Code": "### Creates a new Agent (Typed version for SDK).\n# @name CreateAgent\nPOST {{host}}/v1beta/agents\nx-goog-api-key: {{api_key}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022agent_config\u0022: {\n \u0022type\u0022: \u0022string\u0022,\n \u0022model\u0022: \u0022string\u0022,\n \u0022max_total_tokens\u0022: \u0022string\u0022\n },\n \u0022base_environment\u0022: {\n \u0022type\u0022: \u0022string\u0022,\n \u0022network\u0022: {\n \u0022allowlist\u0022: [\n {\n \u0022domain\u0022: \u0022github.com\u0022,\n \u0022transform\u0022: [\n {\n \u0022Authorization\u0022: \u0022Bearer your-token\u0022\n }\n ]\n },\n {\n \u0022domain\u0022: \u0022*.googleapis.com\u0022\n }\n ]\n },\n \u0022sources\u0022: [\n {}\n ],\n \u0022environment_id\u0022: \u0022string\u0022,\n \u0022env\u0022: {}\n },\n \u0022id\u0022: \u0022string\u0022,\n \u0022base_agent\u0022: \u0022string\u0022,\n \u0022system_instruction\u0022: \u0022string\u0022,\n \u0022description\u0022: \u0022string\u0022,\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022string\u0022\n }\n ]\n}\n\n## Responses\n# default\n# Description: Successful operation\n# Content-Type: application/json", + "Code": "### Creates a new Agent (Typed version for SDK).\n# @name CreateAgent\nPOST {{host}}/v1beta/agents?parent={{parent}}\nx-goog-api-key: {{api_key}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022id\u0022: \u0022string\u0022,\n \u0022base_agent\u0022: \u0022string\u0022,\n \u0022system_instruction\u0022: \u0022string\u0022,\n \u0022description\u0022: \u0022string\u0022,\n \u0022agent_config\u0022: {\n \u0022type\u0022: \u0022string\u0022,\n \u0022model\u0022: \u0022string\u0022,\n \u0022max_total_tokens\u0022: \u0022string\u0022\n },\n \u0022base_environment\u0022: {\n \u0022type\u0022: \u0022string\u0022,\n \u0022sources\u0022: [\n {}\n ],\n \u0022network\u0022: {\n \u0022allowlist\u0022: []\n },\n \u0022environment_id\u0022: \u0022string\u0022,\n \u0022env\u0022: {}\n },\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022string\u0022\n }\n ]\n}\n\n## Responses\n# default\n# Description: Successful operation\n# Content-Type: application/json", "Format": "http", "OperationId": "CreateAgent", "Setup": null @@ -38,41 +38,41 @@ "Title": "Lists all Agents.", "Slug": "listagents", "Description": "Lists all Agents.", - "Language": "csharp", - "Code": "using var client = new GeminiNextGenClient(apiKey);\nvar response = await client.Agents.ListAsync();", - "Format": "sdk", + "Language": "http", + "Code": "### Lists all Agents.\n# @name ListAgents\nGET {{host}}/v1beta/agents?page_size={{page_size}}\u0026page_token={{page_token}}\u0026parent={{parent}}\nx-goog-api-key: {{api_key}}\nAccept: application/json\n\n## Responses\n# default\n# Description: Successful operation\n# Content-Type: application/json", + "Format": "http", "OperationId": "ListAgents", - "Setup": "This example assumes \u0060using Google.Gemini.NextGen;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." + "Setup": null }, { "Order": 5, - "Title": "Cancels an interaction by id. This only applies to background interactions\nthat are still running.", + "Title": "Canceling an interaction", "Slug": "cancelinteractionbyid", - "Description": "Cancels an interaction by id. This only applies to background interactions\nthat are still running.", + "Description": "Cancels an interaction by id. This only applies to background interactions that are still running.", "Language": "http", - "Code": "### Cancels an interaction by id. This only applies to background interactions\nthat are still running.\n# @name cancelInteractionById\nPOST {{host}}/v1beta/interactions/{{interactionsId}}/cancel\nx-goog-api-key: {{api_key}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: Successful operation\n# Content-Type: application/json\n# 4XX\n# Description: Client Error\n# Content-Type: application/json\n# 5XX\n# Description: Server Error\n# Content-Type: application/json", + "Code": "### Canceling an interaction\n# @name cancelInteractionById\nPOST {{host}}/v1beta/interactions/{{id}}/cancel\nx-goog-api-key: {{api_key}}\nAccept: application/json\n\n## Responses\n# 200\n# Description: Successful operation\n# Content-Type: application/json\n# 4XX\n# Description: Error cancelling interaction\n# Content-Type: application/json\n# 5XX\n# Description: Error cancelling interaction\n# Content-Type: application/json", "Format": "http", "OperationId": "cancelInteractionById", "Setup": null }, { "Order": 6, - "Title": "Creates a new interaction.", + "Title": "Creating an interaction", "Slug": "createinteraction", "Description": "Creates a new interaction.", "Language": "http", - "Code": "### Creates a new interaction.\n# @name CreateInteraction\nPOST {{host}}/v1beta/interactions\nx-goog-api-key: {{api_key}}\nContent-Type: application/json\nAccept: application/json, text/event-stream\n\n{\n \u0022agent\u0022: \u0022deep-research-pro-preview-12-2025\u0022,\n \u0022agent_config\u0022: {\n \u0022type\u0022: \u0022string\u0022,\n \u0022model\u0022: \u0022string\u0022,\n \u0022max_total_tokens\u0022: \u0022string\u0022\n },\n \u0022input\u0022: {\n \u0022type\u0022: \u0022audio\u0022,\n \u0022data\u0022: \u0022BASE64_ENCODED_AUDIO\u0022,\n \u0022mime_type\u0022: \u0022audio/wav\u0022\n },\n \u0022response_format\u0022: {\n \u0022type\u0022: \u0022audio\u0022,\n \u0022sample_rate\u0022: 24000\n },\n \u0022environment\u0022: {\n \u0022type\u0022: \u0022string\u0022,\n \u0022network\u0022: {\n \u0022allowlist\u0022: [\n {\n \u0022domain\u0022: \u0022github.com\u0022,\n \u0022transform\u0022: [\n {\n \u0022Authorization\u0022: \u0022Bearer your-token\u0022\n }\n ]\n },\n {\n \u0022domain\u0022: \u0022*.googleapis.com\u0022\n }\n ]\n },\n \u0022sources\u0022: [\n {}\n ],\n \u0022environment_id\u0022: \u0022string\u0022,\n \u0022env\u0022: {}\n },\n \u0022system_instruction\u0022: \u0022string\u0022,\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022string\u0022\n }\n ],\n \u0022response_modalities\u0022: [\n \u0022text\u0022\n ],\n \u0022response_mime_type\u0022: \u0022string\u0022,\n \u0022previous_interaction_id\u0022: \u0022string\u0022,\n \u0022service_tier\u0022: \u0022flex\u0022,\n \u0022webhook_config\u0022: {\n \u0022uris\u0022: [\n \u0022string\u0022\n ],\n \u0022user_metadata\u0022: {}\n },\n \u0022safety_settings\u0022: [\n {\n \u0022type\u0022: \u0022hate_speech\u0022,\n \u0022threshold\u0022: \u0022block_low_and_above\u0022,\n \u0022method\u0022: \u0022severity\u0022\n }\n ],\n \u0022labels\u0022: {},\n \u0022stream\u0022: true,\n \u0022store\u0022: true,\n \u0022background\u0022: true\n}\n\n## Responses\n# 200\n# Description: Successful operation\n# Content-Type: application/json, text/event-stream\n# 4XX\n# Description: Client Error\n# Content-Type: application/json\n# 5XX\n# Description: Server Error\n# Content-Type: application/json", + "Code": "### Creating an interaction\n# @name CreateInteraction\nPOST {{host}}/v1beta/interactions\nx-goog-api-key: {{api_key}}\nContent-Type: application/json\nAccept: application/json, text/event-stream\n\n{\n \u0022agent\u0022: \u0022deep-research-pro-preview-12-2025\u0022,\n \u0022input\u0022: {\n \u0022type\u0022: \u0022string\u0022,\n \u0022data\u0022: \u0022\u0022,\n \u0022uri\u0022: \u0022string\u0022,\n \u0022channels\u0022: 0,\n \u0022sample_rate\u0022: 0,\n \u0022mime_type\u0022: \u0022audio/wav\u0022\n },\n \u0022agent_config\u0022: {\n \u0022type\u0022: \u0022string\u0022,\n \u0022model\u0022: \u0022string\u0022,\n \u0022max_total_tokens\u0022: \u0022string\u0022\n },\n \u0022id\u0022: \u0022string\u0022,\n \u0022status\u0022: \u0022in_progress\u0022,\n \u0022created\u0022: \u0022string\u0022,\n \u0022updated\u0022: \u0022string\u0022,\n \u0022system_instruction\u0022: \u0022string\u0022,\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022string\u0022\n }\n ],\n \u0022response_modalities\u0022: [\n \u0022text\u0022\n ],\n \u0022response_format\u0022: {\n \u0022type\u0022: \u0022string\u0022,\n \u0022mime_type\u0022: \u0022audio/mp3\u0022,\n \u0022delivery\u0022: \u0022inline\u0022,\n \u0022sample_rate\u0022: 0,\n \u0022bit_rate\u0022: 0\n },\n \u0022response_mime_type\u0022: \u0022string\u0022,\n \u0022previous_interaction_id\u0022: \u0022string\u0022,\n \u0022environment\u0022: {\n \u0022type\u0022: \u0022string\u0022,\n \u0022sources\u0022: [\n {}\n ],\n \u0022network\u0022: {\n \u0022allowlist\u0022: []\n },\n \u0022environment_id\u0022: \u0022string\u0022,\n \u0022env\u0022: {}\n },\n \u0022environment_id\u0022: \u0022string\u0022,\n \u0022service_tier\u0022: \u0022flex\u0022,\n \u0022webhook_config\u0022: {\n \u0022uris\u0022: [\n \u0022string\u0022\n ],\n \u0022user_metadata\u0022: {}\n },\n \u0022safety_settings\u0022: [\n {\n \u0022type\u0022: \u0022hate_speech\u0022,\n \u0022threshold\u0022: \u0022block_low_and_above\u0022,\n \u0022method\u0022: \u0022severity\u0022\n }\n ],\n \u0022labels\u0022: {},\n \u0022stream\u0022: true,\n \u0022store\u0022: true,\n \u0022background\u0022: true\n}\n\n## Responses\n# 200\n# Description: Successful operation\n# Content-Type: application/json, text/event-stream\n# 4XX\n# Description: Error creating interaction\n# Content-Type: application/json\n# 5XX\n# Description: Error creating interaction\n# Content-Type: application/json", "Format": "http", "OperationId": "CreateInteraction", "Setup": null }, { "Order": 7, - "Title": "Retrieves the full details of a single interaction based on its\n\u0060Interaction.id\u0060.", + "Title": "Retrieving an interaction", "Slug": "getinteractionbyid", - "Description": "Retrieves the full details of a single interaction based on its\n\u0060Interaction.id\u0060.", + "Description": "Retrieves the full details of a single interaction based on its \u0060Interaction.id\u0060.", "Language": "http", - "Code": "### Retrieves the full details of a single interaction based on its\n\u0060Interaction.id\u0060.\n# @name getInteractionById\nGET {{host}}/v1beta/interactions/{{interactionsId}}?include_input={{include_input}}\u0026last_event_id={{last_event_id}}\u0026stream={{stream}}\nx-goog-api-key: {{api_key}}\nAccept: application/json, text/event-stream\n\n## Responses\n# 200\n# Description: Successful retrieval of the interaction.\n# Content-Type: application/json, text/event-stream\n# 4XX\n# Description: Client Error\n# Content-Type: application/json\n# 5XX\n# Description: Server Error\n# Content-Type: application/json", + "Code": "### Retrieving an interaction\n# @name getInteractionById\nGET {{host}}/v1beta/interactions/{{id}}?last_event_id={{last_event_id}}\u0026stream=false\nx-goog-api-key: {{api_key}}\nAccept: application/json, text/event-stream\n\n## Responses\n# 200\n# Description: Successful retrieval of the interaction.\n# Content-Type: application/json, text/event-stream\n# 4XX\n# Description: Error getting interaction\n# Content-Type: application/json\n# 5XX\n# Description: Error getting interaction\n# Content-Type: application/json", "Format": "http", "OperationId": "getInteractionById", "Setup": null diff --git a/src/libs/Google.Gemini/nextgen.openapi.json b/src/libs/Google.Gemini/nextgen.openapi.json index e7721b575..1d27489f8 100644 --- a/src/libs/Google.Gemini/nextgen.openapi.json +++ b/src/libs/Google.Gemini/nextgen.openapi.json @@ -54,8 +54,6 @@ } }, "summary": "Start an environment file upload", - "x-speakeasy-group": "environments._internal", - "x-speakeasy-name-override": "startUpload", "x-codeSamples": [ { "label": "start_upload", @@ -89,6 +87,7 @@ "name": "parent", "in": "query", "description": "Required. The parent resource to list agents from.\nFormat: `projects/{project}/locations/{location}`", + "required": true, "schema": { "type": "string" } @@ -129,14 +128,6 @@ "tags": [ "agents" ], - "x-speakeasy-exports": [ - { - "name": "AgentListParams", - "group": "agents", - "representation": "input" - } - ], - "x-speakeasy-name-override": "list", "x-codeSamples": [ { "label": "list", @@ -168,7 +159,17 @@ "post": { "operationId": "CreateAgent", "description": "Creates a new Agent (Typed version for SDK).", - "parameters": [], + "parameters": [ + { + "name": "parent", + "in": "query", + "description": "Required. The parent resource where this agent will be created.\nFormat: `projects/{project}/locations/{location}`", + "required": true, + "schema": { + "type": "string" + } + } + ], "requestBody": { "description": "Required. The request body.", "required": true, @@ -244,14 +245,6 @@ "tags": [ "agents" ], - "x-speakeasy-exports": [ - { - "name": "AgentCreateParams", - "group": "agents", - "representation": "input" - } - ], - "x-speakeasy-name-override": "create", "x-codeSamples": [ { "label": "create", @@ -367,14 +360,6 @@ "tags": [ "agents" ], - "x-speakeasy-exports": [ - { - "name": "AgentDeleteParams", - "group": "agents", - "representation": "input" - } - ], - "x-speakeasy-name-override": "delete", "x-codeSamples": [ { "label": "delete", @@ -450,14 +435,6 @@ "tags": [ "agents" ], - "x-speakeasy-exports": [ - { - "name": "AgentGetParams", - "group": "agents", - "representation": "input" - } - ], - "x-speakeasy-name-override": "get", "x-codeSamples": [ { "label": "get", @@ -524,15 +501,7 @@ }, "tags": [ "credentials" - ], - "x-speakeasy-exports": [ - { - "name": "CredentialListParams", - "group": "credentials", - "representation": "input" - } - ], - "x-speakeasy-name-override": "list" + ] }, "post": { "operationId": "CreateCredential", @@ -563,15 +532,7 @@ }, "tags": [ "credentials" - ], - "x-speakeasy-exports": [ - { - "name": "CredentialCreateParams", - "group": "credentials", - "representation": "input" - } - ], - "x-speakeasy-name-override": "create" + ] } }, "/v1beta/credentials/{id}": { @@ -603,15 +564,7 @@ }, "tags": [ "credentials" - ], - "x-speakeasy-exports": [ - { - "name": "CredentialDeleteParams", - "group": "credentials", - "representation": "input" - } - ], - "x-speakeasy-name-override": "delete" + ] }, "get": { "operationId": "GetCredential", @@ -641,15 +594,7 @@ }, "tags": [ "credentials" - ], - "x-speakeasy-exports": [ - { - "name": "CredentialGetParams", - "group": "credentials", - "representation": "input" - } - ], - "x-speakeasy-name-override": "get" + ] }, "patch": { "operationId": "UpdateCredential", @@ -698,15 +643,7 @@ }, "tags": [ "credentials" - ], - "x-speakeasy-exports": [ - { - "name": "CredentialUpdate", - "group": "credentials", - "representation": "input" - } - ], - "x-speakeasy-name-override": "update" + ] } }, "/v1beta/environments": { @@ -771,7 +708,7 @@ { "label": "list", "lang": "go", - "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai/interactions/models/operations\"\n)\n\nfunc main() {\n ctx := context.Background()\n client := interactions.New()\n\n res, err := client.Environments.ListEnvironments(ctx, operations.ListEnvironmentsRequest{})\n if err != nil {\n log.Fatal(err)\n }\n\n if res.ListEnvironmentsResponse != nil {\n for _, env := range res.ListEnvironmentsResponse.Environments {\n if env.ID != \"\" {\n fmt.Println(env.ID)\n }\n }\n }\n}\n" + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\n \"google.golang.org/genai/interactions/models/operations\"\n)\n\nfunc main() {\n ctx := context.Background()\n client, err := genai.NewClient(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n\n res, err := client.Environments.ListEnvironments(ctx, operations.ListEnvironmentsRequest{})\n if err != nil {\n log.Fatal(err)\n }\n\n if res.ListEnvironmentsResponse != nil {\n for _, env := range res.ListEnvironmentsResponse.Environments {\n if env.ID != \"\" {\n fmt.Println(env.ID)\n }\n }\n }\n}\n" } ] }, @@ -849,12 +786,12 @@ { "label": "create", "lang": "go", - "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\n gaos_environments \"google.golang.org/genai/interactions/models/environments\"\n gaos_interactions \"google.golang.org/genai/interactions/models/interactions\"\n \"google.golang.org/genai/interactions/models/operations\"\n)\n\nfunc main() {\n ctx := context.Background()\n client := interactions.New()\n\n req := operations.CreateEnvironmentRequest{\n Body: gaos_environments.CreateEnvironmentRequest{\n Sources: []gaos_interactions.Source{\n {\n Type: genai.Ptr(gaos_interactions.SourceTypeInline),\n Target: genai.Ptr(\"main.py\"),\n Content: genai.Ptr(\"print('Hello, World!')\"),\n },\n },\n },\n }\n\n res, err := client.Environments.CreateEnvironment(ctx, req)\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Environment != nil && res.Environment.ID != \"\" {\n fmt.Println(res.Environment.ID)\n\n }\n}\n" + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\n gaos_environments \"google.golang.org/genai/interactions/models/environments\"\n gaos_interactions \"google.golang.org/genai/interactions/models/interactions\"\n \"google.golang.org/genai/interactions/models/operations\"\n)\n\nfunc main() {\n ctx := context.Background()\n client, err := genai.NewClient(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n\n req := operations.CreateEnvironmentRequest{\n Body: gaos_environments.CreateEnvironmentRequest{\n Sources: []gaos_interactions.Source{\n {\n Type: genai.Ptr(gaos_interactions.SourceTypeInline),\n Target: genai.Ptr(\"main.py\"),\n Content: genai.Ptr(\"print('Hello, World!')\"),\n },\n },\n },\n }\n\n res, err := client.Environments.CreateEnvironment(ctx, req)\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Environment != nil && res.Environment.ID != \"\" {\n fmt.Println(res.Environment.ID)\n\n }\n}\n" }, { "label": "copy", "lang": "go", - "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\n gaos_environments \"google.golang.org/genai/interactions/models/environments\"\n \"google.golang.org/genai/interactions/models/operations\"\n)\n\nfunc main() {\n ctx := context.Background()\n client := interactions.New()\n\n\n res, err := client.Environments.CreateEnvironment(ctx, operations.CreateEnvironmentRequest{\n Body: gaos_environments.CreateEnvironmentRequest{\n FromEnvironment: genai.Ptr(sourceEnvID),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Environment != nil && res.Environment.ID != \"\" {\n fmt.Println(res.Environment.ID)\n\n }\n}\n" + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\n gaos_environments \"google.golang.org/genai/interactions/models/environments\"\n \"google.golang.org/genai/interactions/models/operations\"\n)\n\nfunc main() {\n ctx := context.Background()\n client, err := genai.NewClient(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n\n\n res, err := client.Environments.CreateEnvironment(ctx, operations.CreateEnvironmentRequest{\n Body: gaos_environments.CreateEnvironmentRequest{\n FromEnvironment: genai.Ptr(sourceEnvID),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Environment != nil && res.Environment.ID != \"\" {\n fmt.Println(res.Environment.ID)\n\n }\n}\n" } ] } @@ -905,7 +842,6 @@ "tags": [ "environments.files" ], - "x-speakeasy-name-override": "list", "x-codeSamples": [ { "label": "list_files", @@ -960,12 +896,12 @@ { "label": "list_files", "lang": "go", - "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai/interactions/models/operations\"\n)\n\nfunc main() {\n ctx := context.Background()\n client := interactions.New()\n\n\n res, err := client.Environments.Files.List(ctx, operations.GetEnvironmentFilesRequest{\n Environment: envID,\n Path: \"src\",\n })\n if err != nil {\n log.Fatal(err)\n }\n\n if res.GetEnvironmentFilesResponse != nil {\n for _, file := range res.GetEnvironmentFilesResponse.Files {\n name := \"\"\n if file.Name != nil {\n name = *file.Name\n }\n fileType := \"\"\n if file.Type != nil {\n fileType = string(*file.Type)\n }\n var size int64\n if file.SizeBytes != nil {\n size = *file.SizeBytes\n }\n fmt.Println(name, fileType, size)\n }\n }\n}\n" + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\n \"google.golang.org/genai/interactions/models/operations\"\n)\n\nfunc main() {\n ctx := context.Background()\n client, err := genai.NewClient(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n\n\n res, err := client.Environments.Files.List(ctx, operations.GetEnvironmentFilesRequest{\n Environment: envID,\n Path: \"src\",\n })\n if err != nil {\n log.Fatal(err)\n }\n\n if res.GetEnvironmentFilesResponse != nil {\n for _, file := range res.GetEnvironmentFilesResponse.Files {\n name := \"\"\n if file.Name != nil {\n name = *file.Name\n }\n fileType := \"\"\n if file.Type != nil {\n fileType = string(*file.Type)\n }\n var size int64\n if file.SizeBytes != nil {\n size = *file.SizeBytes\n }\n fmt.Println(name, fileType, size)\n }\n }\n}\n" }, { "label": "get_file", "lang": "go", - "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai/interactions/models/operations\"\n)\n\nfunc main() {\n ctx := context.Background()\n client := interactions.New()\n\n\n res, err := client.Environments.Files.List(ctx, operations.GetEnvironmentFilesRequest{\n Environment: envID,\n Path: \"main.py\",\n })\n if err != nil {\n log.Fatal(err)\n }\n\n if res.GetEnvironmentFilesResponse != nil {\n for _, file := range res.GetEnvironmentFilesResponse.Files {\n name := \"\"\n if file.Name != nil {\n name = *file.Name\n }\n var size int64\n if file.SizeBytes != nil {\n size = *file.SizeBytes\n }\n fmt.Println(name, size)\n }\n }\n}\n" + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\n \"google.golang.org/genai/interactions/models/operations\"\n)\n\nfunc main() {\n ctx := context.Background()\n client, err := genai.NewClient(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n\n\n res, err := client.Environments.Files.List(ctx, operations.GetEnvironmentFilesRequest{\n Environment: envID,\n Path: \"main.py\",\n })\n if err != nil {\n log.Fatal(err)\n }\n\n if res.GetEnvironmentFilesResponse != nil {\n for _, file := range res.GetEnvironmentFilesResponse.Files {\n name := \"\"\n if file.Name != nil {\n name = *file.Name\n }\n var size int64\n if file.SizeBytes != nil {\n size = *file.SizeBytes\n }\n fmt.Println(name, size)\n }\n }\n}\n" } ] } @@ -1024,7 +960,7 @@ { "label": "delete", "lang": "go", - "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai/interactions/models/operations\"\n)\n\nfunc main() {\n ctx := context.Background()\n client := interactions.New()\n\n\n _, err = client.Environments.DeleteEnvironment(ctx, operations.DeleteEnvironmentRequest{\n ID: envID,\n })\n if err != nil {\n log.Fatal(err)\n }\n fmt.Println(\"Environment deleted successfully.\")\n}\n" + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\n \"google.golang.org/genai/interactions/models/operations\"\n)\n\nfunc main() {\n ctx := context.Background()\n client, err := genai.NewClient(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n\n\n _, err = client.Environments.DeleteEnvironment(ctx, operations.DeleteEnvironmentRequest{\n ID: envID,\n })\n if err != nil {\n log.Fatal(err)\n }\n fmt.Println(\"Environment deleted successfully.\")\n}\n" } ] }, @@ -1081,7 +1017,7 @@ { "label": "get", "lang": "go", - "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai/interactions/models/operations\"\n)\n\nfunc main() {\n ctx := context.Background()\n client := interactions.New()\n\n\n res, err := client.Environments.GetEnvironment(ctx, operations.GetEnvironmentRequest{\n ID: envID,\n })\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Environment != nil && res.Environment.ID != \"\" {\n fmt.Println(res.Environment.ID)\n }\n}\n" + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\n \"google.golang.org/genai/interactions/models/operations\"\n)\n\nfunc main() {\n ctx := context.Background()\n client, err := genai.NewClient(ctx, nil)\n if err != nil {\n log.Fatal(err)\n }\n\n\n res, err := client.Environments.GetEnvironment(ctx, operations.GetEnvironmentRequest{\n ID: envID,\n })\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Environment != nil && res.Environment.ID != \"\" {\n fmt.Println(res.Environment.ID)\n }\n}\n" } ] } @@ -1090,7 +1026,6 @@ "post": { "operationId": "CreateInteraction", "description": "Creates a new interaction.", - "parameters": [], "requestBody": { "description": "The request body.", "required": true, @@ -1099,10 +1034,10 @@ "schema": { "oneOf": [ { - "$ref": "#/components/schemas/AgentInteraction" + "$ref": "#/components/schemas/CreateAgentInteractionParams" }, { - "$ref": "#/components/schemas/ModelInteraction" + "$ref": "#/components/schemas/CreateModelInteractionParams" } ] } @@ -1379,14 +1314,14 @@ }, "text/event-stream": { "schema": { - "$ref": "#/components/schemas/InteractionSseStreamEnvelope" + "$ref": "#/components/schemas/InteractionSseStreamEvent" }, "x-speakeasy-sse-sentinel": "[DONE]" } } }, "4XX": { - "description": "Client Error", + "description": "Error creating interaction", "content": { "application/json": { "schema": { @@ -1404,7 +1339,7 @@ } }, "5XX": { - "description": "Server Error", + "description": "Error creating interaction", "content": { "application/json": { "schema": { @@ -1422,9 +1357,7 @@ } } }, - "tags": [ - "interactions" - ], + "summary": "Creating an interaction", "x-speakeasy-exports": [ { "name": "InteractionCreateParams", @@ -1432,6 +1365,7 @@ "representation": "input" } ], + "x-speakeasy-group": "interactions", "x-speakeasy-name-override": "create", "x-codeSamples": [ { @@ -1662,11 +1596,23 @@ ] } }, - "/v1beta/interactions/{interactionsId}": { + "/v1beta/interactions/{id}": { "delete": { "operationId": "deleteInteraction", "description": "Deletes the interaction by id.", "parameters": [ + { + "$ref": "#/components/parameters/api_version" + }, + { + "name": "id", + "in": "path", + "description": "The unique identifier of the interaction to delete.", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "interactionsId", "in": "path", @@ -1682,7 +1628,7 @@ "description": "Successful deletion of the interaction." }, "4XX": { - "description": "Client Error", + "description": "Error deleting interaction", "content": { "application/json": { "schema": { @@ -1700,7 +1646,7 @@ } }, "5XX": { - "description": "Server Error", + "description": "Error deleting interaction", "content": { "application/json": { "schema": { @@ -1718,9 +1664,7 @@ } } }, - "tags": [ - "interactions" - ], + "summary": "Deleting an interaction", "x-speakeasy-exports": [ { "name": "InteractionDeleteParams", @@ -1728,6 +1672,7 @@ "representation": "input" } ], + "x-speakeasy-group": "interactions", "x-speakeasy-name-override": "delete", "x-codeSamples": [ { @@ -1759,20 +1704,15 @@ }, "get": { "operationId": "getInteractionById", - "description": "Retrieves the full details of a single interaction based on its\n`Interaction.id`.", + "description": "Retrieves the full details of a single interaction based on its `Interaction.id`.", "parameters": [ { - "name": "include_input", - "in": "query", - "description": "If true, includes the input in the response.", - "schema": { - "type": "boolean" - } + "$ref": "#/components/parameters/api_version" }, { - "name": "interactionsId", + "name": "id", "in": "path", - "description": "Required. The name of the interaction to retrieve.", + "description": "The unique identifier of the interaction to retrieve.", "required": true, "schema": { "type": "string" @@ -1781,7 +1721,7 @@ { "name": "last_event_id", "in": "query", - "description": "If set, resumes the interaction stream from the chunk after the event\nmarked by the event id. Can only be used if `stream` is true.", + "description": "Optional. If set, resumes the interaction stream from the next chunk after the event marked by the event id. Can only be used if `stream` is true.", "schema": { "type": "string" } @@ -1789,9 +1729,10 @@ { "name": "stream", "in": "query", - "description": "If true, streams the interaction events as Server-Sent Events.", + "description": "If set to true, the generated content will be streamed incrementally.", "schema": { - "type": "boolean" + "type": "boolean", + "default": false } } ], @@ -1830,14 +1771,14 @@ }, "text/event-stream": { "schema": { - "$ref": "#/components/schemas/InteractionSseStreamEnvelope" + "$ref": "#/components/schemas/InteractionSseStreamEvent" }, "x-speakeasy-sse-sentinel": "[DONE]" } } }, "4XX": { - "description": "Client Error", + "description": "Error getting interaction", "content": { "application/json": { "schema": { @@ -1855,7 +1796,7 @@ } }, "5XX": { - "description": "Server Error", + "description": "Error getting interaction", "content": { "application/json": { "schema": { @@ -1873,9 +1814,7 @@ } } }, - "tags": [ - "interactions" - ], + "summary": "Retrieving an interaction", "x-speakeasy-exports": [ { "name": "InteractionGetParams", @@ -1883,6 +1822,7 @@ "representation": "input" } ], + "x-speakeasy-group": "interactions", "x-speakeasy-name-override": "get", "x-speakeasy-sse-overload": true, "x-codeSamples": [ @@ -1914,15 +1854,18 @@ ] } }, - "/v1beta/interactions/{interactionsId}/cancel": { + "/v1beta/interactions/{id}/cancel": { "post": { "operationId": "cancelInteractionById", - "description": "Cancels an interaction by id. This only applies to background interactions\nthat are still running.", + "description": "Cancels an interaction by id. This only applies to background interactions that are still running.", "parameters": [ { - "name": "interactionsId", + "$ref": "#/components/parameters/api_version" + }, + { + "name": "id", "in": "path", - "description": "Required. The name of the interaction to cancel.", + "description": "The unique identifier of the interaction to cancel.", "required": true, "schema": { "type": "string" @@ -1938,23 +1881,12 @@ "cancel": { "summary": "Cancel Interaction", "value": { - "agent": "deep-research-pro-preview-12-2025", - "created": "2026-06-22T04:55:47Z", - "id": "v1_ChdVc0E0YXJTYk1zYlV6N0lQcXRXVG1BYxIXVXNBNGFyU2JNc2JVejdJUHF0V1RtQWM", + "created": "2025-11-26T12:25:15Z", + "id": "v1_ChdPU0F4YWFtNkFwS2kxZThQZ05lbXdROBIXT1NBeGFhbTZBcEtpMWU4UGdOZW13UTg", + "model": "gemini-3.6-flash", "object": "interaction", "status": "cancelled", - "steps": [ - { - "type": "user_input", - "content": [ - { - "type": "text", - "text": "Research the history of the Google TPUs with a focus on 2025 specs." - } - ] - } - ], - "updated": "2026-06-22T04:55:47Z" + "updated": "2025-11-26T12:25:15Z" } } }, @@ -1965,7 +1897,7 @@ } }, "4XX": { - "description": "Client Error", + "description": "Error cancelling interaction", "content": { "application/json": { "schema": { @@ -1983,7 +1915,7 @@ } }, "5XX": { - "description": "Server Error", + "description": "Error cancelling interaction", "content": { "application/json": { "schema": { @@ -2001,16 +1933,8 @@ } } }, - "tags": [ - "interactions" - ], - "x-speakeasy-exports": [ - { - "name": "InteractionCancelParams", - "group": "interactions", - "representation": "input" - } - ], + "summary": "Canceling an interaction", + "x-speakeasy-group": "interactions", "x-speakeasy-name-override": "cancel", "x-codeSamples": [ { @@ -2086,15 +2010,7 @@ }, "tags": [ "triggers" - ], - "x-speakeasy-exports": [ - { - "name": "TriggerListParams", - "group": "triggers", - "representation": "input" - } - ], - "x-speakeasy-name-override": "list" + ] }, "post": { "operationId": "CreateTrigger", @@ -2106,7 +2022,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TriggerCreateParams" + "$ref": "#/components/schemas/Trigger" } } } @@ -2126,14 +2042,6 @@ "tags": [ "triggers" ], - "x-speakeasy-exports": [ - { - "name": "TriggerCreateParams", - "group": "triggers", - "representation": "input" - } - ], - "x-speakeasy-name-override": "create", "x-codeSamples": [ { "label": "create", @@ -2187,15 +2095,7 @@ }, "tags": [ "triggers" - ], - "x-speakeasy-exports": [ - { - "name": "TriggerDeleteParams", - "group": "triggers", - "representation": "input" - } - ], - "x-speakeasy-name-override": "delete" + ] }, "get": { "operationId": "GetTrigger", @@ -2225,15 +2125,7 @@ }, "tags": [ "triggers" - ], - "x-speakeasy-exports": [ - { - "name": "TriggerGetParams", - "group": "triggers", - "representation": "input" - } - ], - "x-speakeasy-name-override": "get" + ] }, "patch": { "operationId": "UpdateTrigger", @@ -2255,7 +2147,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TriggerUpdate" + "$ref": "#/components/schemas/UpdateTriggerRequest" } } } @@ -2274,15 +2166,7 @@ }, "tags": [ "triggers" - ], - "x-speakeasy-exports": [ - { - "name": "TriggerUpdateParams", - "group": "triggers", - "representation": "input" - } - ], - "x-speakeasy-name-override": "update" + ] } }, "/v1beta/triggers/{triggerId}/executions": { @@ -2290,6 +2174,14 @@ "operationId": "ListTriggerExecutions", "description": "Lists executions for a trigger.", "parameters": [ + { + "name": "filter", + "in": "query", + "description": "Optional. Filter expression.", + "schema": { + "type": "string" + } + }, { "name": "page_size", "in": "query", @@ -2331,16 +2223,7 @@ }, "tags": [ "triggers.executions" - ], - "x-speakeasy-exports": [ - { - "name": "TriggerListExecutionsParams", - "group": "triggers", - "representation": "input" - } - ], - "x-speakeasy-group": "triggers", - "x-speakeasy-name-override": "list_executions" + ] }, "post": { "operationId": "RunTrigger", @@ -2370,15 +2253,7 @@ }, "tags": [ "triggers" - ], - "x-speakeasy-exports": [ - { - "name": "TriggerRunParams", - "group": "triggers", - "representation": "input" - } - ], - "x-speakeasy-name-override": "run" + ] } }, "/v1beta/voices": { @@ -2406,8 +2281,7 @@ "items": { "type": "string" } - }, - "x-speakeasy-name-override": "contexts" + } }, { "name": "gender", @@ -2516,14 +2390,6 @@ "tags": [ "voices" ], - "x-speakeasy-exports": [ - { - "name": "VoiceListParams", - "group": "voices", - "representation": "input" - } - ], - "x-speakeasy-name-override": "list", "x-codeSamples": [ { "label": "list", @@ -2577,14 +2443,6 @@ "tags": [ "voices" ], - "x-speakeasy-exports": [ - { - "name": "VoiceCreateParams", - "group": "voices", - "representation": "input" - } - ], - "x-speakeasy-name-override": "create", "x-codeSamples": [ { "label": "create", @@ -2639,14 +2497,6 @@ "tags": [ "voices" ], - "x-speakeasy-exports": [ - { - "name": "VoiceDeleteParams", - "group": "voices", - "representation": "input" - } - ], - "x-speakeasy-name-override": "delete", "x-codeSamples": [ { "label": "delete", @@ -2699,14 +2549,6 @@ "tags": [ "voices" ], - "x-speakeasy-exports": [ - { - "name": "VoiceGetParams", - "group": "voices", - "representation": "input" - } - ], - "x-speakeasy-name-override": "get", "x-codeSamples": [ { "label": "get", @@ -2768,27 +2610,28 @@ }, "tags": [ "webhooks" - ], - "x-speakeasy-exports": [ - { - "name": "WebhookListParams", - "group": "webhooks", - "representation": "input" - } - ], - "x-speakeasy-name-override": "list" + ] }, "post": { "operationId": "CreateWebhook", "description": "Creates a new Webhook.", - "parameters": [], + "parameters": [ + { + "name": "webhook_id", + "in": "query", + "description": "The webhook_id to use for the webhook. If not specified, the server will\ngenerate a unique ID.", + "schema": { + "type": "string" + } + } + ], "requestBody": { "description": "Required. The request body.", "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Webhook" + "$ref": "#/components/schemas/CreateWebhookRequest" } } } @@ -2807,15 +2650,7 @@ }, "tags": [ "webhooks" - ], - "x-speakeasy-exports": [ - { - "name": "WebhookCreateParams", - "group": "webhooks", - "representation": "input" - } - ], - "x-speakeasy-name-override": "create" + ] } }, "/v1beta/webhooks/{id}": { @@ -2847,15 +2682,7 @@ }, "tags": [ "webhooks" - ], - "x-speakeasy-exports": [ - { - "name": "WebhookDeleteParams", - "group": "webhooks", - "representation": "input" - } - ], - "x-speakeasy-name-override": "delete" + ] }, "get": { "operationId": "GetWebhook", @@ -2885,15 +2712,7 @@ }, "tags": [ "webhooks" - ], - "x-speakeasy-exports": [ - { - "name": "WebhookGetParams", - "group": "webhooks", - "representation": "input" - } - ], - "x-speakeasy-name-override": "get" + ] }, "patch": { "operationId": "UpdateWebhook", @@ -2907,14 +2726,6 @@ "schema": { "type": "string" } - }, - { - "name": "update_mask", - "in": "query", - "description": "Optional list of fields to update.", - "schema": { - "type": "string" - } } ], "requestBody": { @@ -2923,7 +2734,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/WebhookUpdate" + "$ref": "#/components/schemas/UpdateWebhookRequest" } } } @@ -2942,8 +2753,7 @@ }, "tags": [ "webhooks" - ], - "x-speakeasy-name-override": "update" + ] } }, "/v1beta/webhooks/{id}:ping": { @@ -2961,16 +2771,6 @@ } } ], - "requestBody": { - "description": "The request body.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PingWebhookRequest" - } - } - } - }, "responses": { "default": { "description": "Successful operation", @@ -2985,8 +2785,7 @@ }, "tags": [ "webhooks" - ], - "x-speakeasy-name-override": "ping" + ] } }, "/v1beta/webhooks/{id}:rotateSigningSecret": { @@ -3004,17 +2803,6 @@ } } ], - "requestBody": { - "description": "Required. The request body.", - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RotateSigningSecretRequest" - } - } - } - }, "responses": { "default": { "description": "Successful operation", @@ -3029,8 +2817,7 @@ }, "tags": [ "webhooks" - ], - "x-speakeasy-name-override": "rotate_signing_secret" + ] } } }, @@ -3128,25 +2915,6 @@ "description": "An agent definition for the CreateAgent API.\nThis message is the target for annotation-parser-based JSON parsing.\nNew format:\n {\n \"id\": \"customer-sentinel\",\n \"base_agent\": \"\",\n \"system_instruction\": \"...\",\n \"base_environment\": { \"type\": \"remote\", \"sources\": [...] },\n \"tools\": [ {\"type\": \"code_execution\"} ]\n }", "type": "object", "properties": { - "agent_config": { - "description": "Configuration parameters for the agent.", - "oneOf": [ - { - "$ref": "#/components/schemas/AntigravityAgentConfig" - } - ] - }, - "base_environment": { - "description": "The environment configuration for the agent.", - "oneOf": [ - { - "$ref": "#/components/schemas/EnvironmentConfig" - }, - { - "type": "string" - } - ] - }, "id": { "description": "The unique identifier for the agent.", "type": "string" @@ -3163,68 +2931,16 @@ "description": "Agent description for developers to quickly read and understand.", "type": "string" }, - "tools": { - "description": "The tools available to the agent.", - "type": "array", - "items": { - "$ref": "#/components/schemas/AgentTool" - } - } - }, - "x-speakeasy-exports": [ - { - "name": "Agent", - "group": "agents" - } - ], - "x-speakeasy-model-namespace": "agents" - }, - "AgentInteraction": { - "description": "Interaction for generating the completion using agents.", - "type": "object", - "properties": { - "agent": { - "description": "The name of the `Agent` used for generating the interaction.", - "$ref": "#/components/schemas/AgentOption" - }, "agent_config": { - "description": "Configuration parameters for the agent interaction.", + "description": "Configuration parameters for the agent.", "oneOf": [ { "$ref": "#/components/schemas/AntigravityAgentConfig" - }, - { - "$ref": "#/components/schemas/CodeMenderAgentConfig" - }, - { - "$ref": "#/components/schemas/DeepResearchAgentConfig" - }, - { - "$ref": "#/components/schemas/DynamicAgentConfig" - } - ], - "x-speakeasy-unknown-values": "disallow" - }, - "input": { - "$ref": "#/components/schemas/InteractionsInput" - }, - "response_format": { - "description": "Enforces that the generated response is a JSON object that complies with\nthe JSON schema specified in this field.", - "oneOf": [ - { - "$ref": "#/components/schemas/ResponseFormat" - }, - { - "title": "ResponseFormatList", - "type": "array", - "items": { - "$ref": "#/components/schemas/ResponseFormat" - } } ] }, - "environment": { - "description": "The environment configuration for the interaction. Can be an object\nspecifying remote environment sources or a string referencing an existing\nenvironment ID.", + "base_environment": { + "description": "The environment configuration for the agent.", "oneOf": [ { "$ref": "#/components/schemas/EnvironmentConfig" @@ -3232,89 +2948,17 @@ { "type": "string" } - ], - "x-speakeasy-unknown-values": "disallow" - }, - "system_instruction": { - "description": "System instruction for the interaction.", - "type": "string" + ] }, "tools": { - "description": "A list of tool declarations the model may call during interaction.", - "type": "array", - "items": { - "$ref": "#/components/schemas/Tool" - } - }, - "response_modalities": { - "description": "The requested modalities of the response (TEXT, IMAGE, AUDIO).", - "type": "array", - "deprecated": true, - "items": { - "$ref": "#/components/schemas/ResponseModality" - } - }, - "response_mime_type": { - "description": "The mime type of the response. This is required if response_format is set.", - "type": "string", - "deprecated": true - }, - "previous_interaction_id": { - "description": "The ID of the previous interaction, if any.", - "type": "string" - }, - "service_tier": { - "description": "The service tier for the interaction.", - "$ref": "#/components/schemas/ServiceTier" - }, - "webhook_config": { - "description": "Optional. Webhook configuration for receiving notifications when the\ninteraction completes.", - "$ref": "#/components/schemas/WebhookConfig" - }, - "safety_settings": { - "description": "Safety settings for the interaction.", + "description": "The tools available to the agent.", "type": "array", "items": { - "$ref": "#/components/schemas/SafetySetting" - } - }, - "labels": { - "description": "The labels with user-defined metadata for the request.\n\nLabel keys and values can be no longer than 63 characters\n(Unicode codepoints) and can only contain lowercase letters, numeric\ncharacters, underscores, and dashes. International characters are allowed.\nLabel values are optional. Label keys must start with a letter.", - "type": "object", - "additionalProperties": { - "type": "string" + "$ref": "#/components/schemas/AgentTool" } - }, - "stream": { - "description": "Input only. Whether the interaction will be streamed.", - "type": "boolean" - }, - "store": { - "description": "Input only. Whether to store the response and request for later retrieval.", - "type": "boolean" - }, - "background": { - "description": "Input only. Whether to run the model interaction in the background.", - "type": "boolean" } }, - "required": [ - "agent" - ], - "x-speakeasy-exports": [ - { - "name": "CreateAgentInteractionParamsNonStreaming", - "group": "interactions", - "representation": "input" - }, - { - "name": "CreateAgentInteractionParamsStreaming", - "group": "interactions", - "representation": "input" - } - ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-name-override": "CreateAgentInteraction" + "x-speakeasy-model-namespace": "interactions" }, "AgentOption": { "title": "Agent", @@ -3355,13 +2999,7 @@ "$ref": "#/components/schemas/UrlContext" } ], - "x-speakeasy-exports": [ - { - "name": "AgentTool", - "group": "agents" - } - ], - "x-speakeasy-model-namespace": "agents" + "x-speakeasy-model-namespace": "interactions" }, "AllowedTools": { "description": "The configuration for allowed tools.", @@ -3381,12 +3019,6 @@ "No tool choice.", "Validated tool choice." ], - "x-speakeasy-exports": [ - { - "name": "ToolChoiceType", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions", "description": "The mode of the tool choice." }, @@ -3398,16 +3030,11 @@ } } }, - "x-speakeasy-exports": [ - { - "name": "AllowedTools", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "Annotation": { "description": "Citation information for model-generated content.", + "type": "object", "oneOf": [ { "$ref": "#/components/schemas/FileCitation" @@ -3425,12 +3052,6 @@ "$ref": "#/components/schemas/WordInfo" } ], - "x-speakeasy-exports": [ - { - "name": "Annotation", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "AntigravityAgentConfig": { @@ -3453,14 +3074,7 @@ "required": [ "type" ], - "x-speakeasy-exports": [ - { - "name": "AntigravityAgentConfig", - "group": "interactions" - } - ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-unknown-values": "disallow" + "x-speakeasy-model-namespace": "interactions" }, "ArgumentsDelta": { "type": "object", @@ -3535,25 +3149,30 @@ "OPUS audio format", "ALAW audio format", "MULAW audio format", - "WebM audio format" + "WEBM audio format" ] } }, "required": [ "type" ], - "example": { - "type": "audio", - "data": "BASE64_ENCODED_AUDIO", - "mime_type": "audio/wav" - }, - "x-example-summaries": [ - "Audio" + "examples": [ + { + "audio": { + "summary": "Audio", + "value": { + "type": "audio", + "data": "BASE64_ENCODED_AUDIO", + "mime_type": "audio/wav" + } + } + } ], "x-speakeasy-exports": [ { - "name": "AudioContent", - "group": "interactions" + "name": "audio_content_param", + "group": "interactions", + "representation": "input" } ], "x-speakeasy-model-namespace": "interactions" @@ -3577,13 +3196,7 @@ "data", "mime_type" ], - "x-speakeasy-exports": [ - { - "name": "AudioData", - "group": "voices" - } - ], - "x-speakeasy-model-namespace": "voices" + "x-speakeasy-model-namespace": "interactions" }, "AudioDelta": { "type": "object", @@ -3591,14 +3204,6 @@ "type": { "const": "audio" }, - "data": { - "type": "string", - "format": "byte", - "x-speakeasy-base64-input-mode": "file" - }, - "uri": { - "type": "string" - }, "mime_type": { "type": "string", "enum": [ @@ -3632,6 +3237,14 @@ "WEBM audio format" ] }, + "data": { + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "uri": { + "type": "string" + }, "rate": { "description": "Deprecated. Use sample_rate instead. The value is ignored.", "type": "integer", @@ -3707,17 +3320,15 @@ "required": [ "type" ], - "example": { - "type": "audio", - "sample_rate": 24000 - }, - "x-example-summaries": [ - "Audio Output" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "AudioResponseFormat", - "group": "interactions" + "audio_response_format": { + "summary": "Audio Output", + "value": { + "type": "audio", + "sample_rate": 24000 + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -3834,21 +3445,18 @@ "id", "type" ], - "example": { - "type": "code_execution_call", - "arguments": { - "code": "print(sum(range(1, 11)))", - "language": "python" - }, - "id": "code_call_71021" - }, - "x-example-summaries": [ - "CodeExecutionCallStep" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "CodeExecutionCallStep", - "group": "interactions" + "code_execution_call": { + "summary": "CodeExecutionCallStep", + "value": { + "type": "code_execution_call", + "arguments": { + "code": "print(sum(range(1, 11)))" + }, + "id": "code_call_71021" + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -3874,12 +3482,6 @@ "type": "string" } }, - "x-speakeasy-exports": [ - { - "name": "CodeExecutionCallArguments", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions", "x-speakeasy-name-override": "CodeExecutionCallArguments" }, @@ -3939,68 +3541,26 @@ "result", "type" ], - "example": { - "type": "code_execution_result", - "call_id": "code_call_71021", - "result": "55\n" - }, - "x-example-summaries": [ - "CodeExecutionResultStep" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "CodeExecutionResultStep", - "group": "interactions" + "code_execution_result": { + "summary": "CodeExecutionResultStep", + "value": { + "type": "code_execution_result", + "call_id": "code_call_71021", + "result": "55\n" + } + } } ], "x-speakeasy-model-namespace": "interactions" }, - "CodeMenderAgentConfig": { - "description": "Configuration for the CodeMender agent.", + "ComputerUse": { + "description": "A tool that can be used by the model to interact with the computer.", "type": "object", "properties": { "type": { - "const": "code-mender" - }, - "find_request": { - "description": "Parameters for finding vulnerabilities.", - "$ref": "#/components/schemas/FindRequest" - }, - "fix_request": { - "description": "Parameters for fixing vulnerabilities.", - "$ref": "#/components/schemas/FixRequest" - }, - "session_id": { - "description": "Parameter for grouping multiple interactions that belong to\nthe same CodeMender session.", - "type": "string" - }, - "session_config": { - "description": "Optional session-specific configurations to override default agent\nbehavior.", - "$ref": "#/components/schemas/SessionConfig" - }, - "model": { - "description": "The name of the model to use for the CodeMender agent. One\nCodeMender session will only use one model.", - "type": "string" - } - }, - "required": [ - "type" - ], - "x-speakeasy-exports": [ - { - "name": "CodeMenderAgentConfig", - "group": "interactions" - } - ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-unknown-values": "disallow" - }, - "ComputerUse": { - "description": "A tool that can be used by the model to interact with the computer.", - "type": "object", - "properties": { - "type": { - "const": "computer_use" + "const": "computer_use" }, "environment": { "description": "The environment being operated.", @@ -4087,6 +3647,7 @@ }, "Content": { "description": "The content of the response.", + "type": "object", "oneOf": [ { "$ref": "#/components/schemas/AudioContent" @@ -4104,13 +3665,182 @@ "$ref": "#/components/schemas/VideoContent" } ], - "x-speakeasy-exports": [ - { - "name": "Content", - "group": "interactions" + "x-speakeasy-model-namespace": "interactions" + }, + "CreateAgentInteractionParams": { + "description": "Parameters for creating agent interactions", + "properties": { + "agent": { + "description": "The name of the `Agent` used for generating the interaction.", + "$ref": "#/components/schemas/AgentOption" + }, + "input": { + "$ref": "#/components/schemas/InteractionsInput" + }, + "agent_config": { + "description": "Configuration parameters for the agent interaction.", + "oneOf": [ + { + "$ref": "#/components/schemas/AntigravityAgentConfig" + }, + { + "$ref": "#/components/schemas/DeepResearchAgentConfig" + }, + { + "$ref": "#/components/schemas/DynamicAgentConfig" + } + ] + }, + "id": { + "description": "Required. Output only. A unique identifier for the interaction completion.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "Required. Output only. The status of the interaction.", + "type": "string", + "enum": [ + "in_progress", + "requires_action", + "completed", + "failed", + "cancelled", + "incomplete", + "budget_exceeded" + ], + "readOnly": true, + "x-google-enum-deprecated": [ + false, + false, + false, + false, + false, + false, + true + ], + "x-google-enum-descriptions": [ + "The interaction is in progress.", + "The interaction requires action/input from the user.", + "The interaction is completed.", + "The interaction failed.", + "The interaction was cancelled.", + "The interaction is completed, but contains incomplete results (e.g.\nhitting max_tokens).", + "Deprecated: Token and execution budget exhaustion returns INCOMPLETE\n(11)." + ] + }, + "created": { + "description": "Required. Output only. The time at which the response was created in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", + "type": "string", + "readOnly": true + }, + "updated": { + "description": "Required. Output only. The time at which the response was last updated in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", + "type": "string", + "readOnly": true + }, + "system_instruction": { + "description": "System instruction for the interaction.", + "type": "string" + }, + "tools": { + "description": "A list of tool declarations the model may call during interaction.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Tool" + } + }, + "response_modalities": { + "description": "The requested modalities of the response (TEXT, IMAGE, AUDIO).", + "type": "array", + "deprecated": true, + "items": { + "$ref": "#/components/schemas/ResponseModality" + } + }, + "response_format": { + "description": "Enforces that the generated response is a JSON object that complies with\nthe JSON schema specified in this field.", + "oneOf": [ + { + "$ref": "#/components/schemas/ResponseFormat" + }, + { + "title": "ResponseFormatList", + "type": "array", + "items": { + "$ref": "#/components/schemas/ResponseFormat" + } + } + ] + }, + "response_mime_type": { + "description": "The mime type of the response. This is required if response_format is set.", + "type": "string", + "deprecated": true + }, + "previous_interaction_id": { + "description": "The ID of the previous interaction, if any.", + "type": "string" + }, + "environment": { + "description": "The environment configuration for the interaction. Can be an object\nspecifying remote environment sources or a string referencing an existing\nenvironment ID.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentConfig" + }, + { + "type": "string" + } + ] + }, + "environment_id": { + "description": "Output only. The environment ID for the interaction. Only populated if environment\nconfig is set in the request.", + "type": "string", + "readOnly": true + }, + "service_tier": { + "description": "The service tier for the interaction.", + "$ref": "#/components/schemas/ServiceTier" + }, + "webhook_config": { + "description": "Optional. Webhook configuration for receiving notifications when the\ninteraction completes.", + "$ref": "#/components/schemas/WebhookConfig" + }, + "safety_settings": { + "description": "Safety settings for the interaction.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SafetySetting" + } + }, + "labels": { + "description": "The labels with user-defined metadata for the request.\n\nLabel keys and values can be no longer than 63 characters\n(Unicode codepoints) and can only contain lowercase letters, numeric\ncharacters, underscores, and dashes. International characters are allowed.\nLabel values are optional. Label keys must start with a letter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "stream": { + "description": "Input only. Whether the interaction will be streamed.", + "type": "boolean", + "writeOnly": true + }, + "store": { + "description": "Input only. Whether to store the response and request for later retrieval.", + "type": "boolean", + "writeOnly": true + }, + "background": { + "description": "Input only. Whether to run the model interaction in the background.", + "type": "boolean", + "writeOnly": true } + }, + "required": [ + "agent", + "input" ], - "x-speakeasy-model-namespace": "interactions" + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "CreateAgentInteraction" }, "CreateEnvironmentRequest": { "description": "Request for `CreateEnvironment`.", @@ -4145,65 +3875,219 @@ "type": "string" } }, - "x-speakeasy-exports": [ - { - "name": "CreateEnvironmentRequest", - "group": "environments" - } - ], - "x-speakeasy-model-namespace": "environments" - }, - "CreateVoiceRequest": { - "description": "Request message for `VoicesService.CreateVoice`.", - "type": "object", - "properties": { - "voice": { - "description": "Required. The voice to create.\n`voice.model` is optional; if omitted, the service selects the default\nvoice creation model. Output-only fields on `Voice` (`id`, `key`,\n`expire_time`, `usage`) are ignored if set.", - "$ref": "#/components/schemas/Voice" - }, - "store": { - "description": "Optional. Whether the created voice is persisted and managed by Google.\n\n* When `true`, Google stores the voice and returns `Voice.id` (for example,\n `voice_abc123def456`), which can be managed via `GetVoice`, `ListVoices`,\n and `DeleteVoice` and referenced by ID in synthesis requests. Stored\n voices expire after 1 year of inactivity; using a stored voice in speech\n synthesis or as a `base_voice` in `CreateVoice` extends its\n `expire_time`. Projects are subject to a maximum active stored voice\n quota; exceeding the quota returns `RESOURCE_EXHAUSTED`.\n* When `false` (default), the voice is not stored by Google and `Voice.key`\n (for example, `voicekey_...`) is returned for client-side storage and\n synthesis. Optional discovery metadata fields on `voice` are not\n persisted or returned when `store` is `false`.\n* Required to be `true` when `voice.type` is `\"prompted\"`\n (otherwise fails with `INVALID_ARGUMENT`).", - "type": "boolean" - } - }, - "required": [ - "voice" - ], - "x-speakeasy-exports": [ - { - "name": "CreateVoiceRequest", - "group": "voices" - } - ], - "x-speakeasy-model-namespace": "voices" - }, - "CreateWebhookRequest": { - "description": "Request message for WebhookService.CreateWebhook.", - "type": "object", - "properties": { - "webhook": { - "description": "Required. The webhook to create.", - "$ref": "#/components/schemas/Webhook" - } - }, - "required": [ - "webhook" - ], "x-speakeasy-model-namespace": "interactions" }, - "Credential": { - "description": "Server-managed credential resource stored in Secret Manager.", - "type": "object", + "CreateModelInteractionParams": { + "description": "Parameters for creating model interactions", "properties": { + "model": { + "description": "The name of the `Model` used for generating the interaction.", + "$ref": "#/components/schemas/ModelOption" + }, + "input": { + "$ref": "#/components/schemas/InteractionsInput" + }, + "generation_config": { + "description": "Input only. Configuration parameters for the model interaction.", + "$ref": "#/components/schemas/GenerationConfig", + "writeOnly": true + }, "id": { - "description": "Required. Output only. Identifier. Unique identifier for the credential.", + "description": "Required. Output only. A unique identifier for the interaction completion.", "type": "string", - "readOnly": true, - "x-google-identifier": true + "readOnly": true }, - "type": { - "description": "Required. Output only. The type of credential.", - "type": "string", + "status": { + "description": "Required. Output only. The status of the interaction.", + "type": "string", + "enum": [ + "in_progress", + "requires_action", + "completed", + "failed", + "cancelled", + "incomplete", + "budget_exceeded" + ], + "readOnly": true, + "x-google-enum-deprecated": [ + false, + false, + false, + false, + false, + false, + true + ], + "x-google-enum-descriptions": [ + "The interaction is in progress.", + "The interaction requires action/input from the user.", + "The interaction is completed.", + "The interaction failed.", + "The interaction was cancelled.", + "The interaction is completed, but contains incomplete results (e.g.\nhitting max_tokens).", + "Deprecated: Token and execution budget exhaustion returns INCOMPLETE\n(11)." + ] + }, + "created": { + "description": "Required. Output only. The time at which the response was created in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", + "type": "string", + "readOnly": true + }, + "updated": { + "description": "Required. Output only. The time at which the response was last updated in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", + "type": "string", + "readOnly": true + }, + "system_instruction": { + "description": "System instruction for the interaction.", + "type": "string" + }, + "tools": { + "description": "A list of tool declarations the model may call during interaction.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Tool" + } + }, + "response_modalities": { + "description": "The requested modalities of the response (TEXT, IMAGE, AUDIO).", + "type": "array", + "deprecated": true, + "items": { + "$ref": "#/components/schemas/ResponseModality" + } + }, + "response_format": { + "description": "Enforces that the generated response is a JSON object that complies with\nthe JSON schema specified in this field.", + "oneOf": [ + { + "$ref": "#/components/schemas/ResponseFormat" + }, + { + "title": "ResponseFormatList", + "type": "array", + "items": { + "$ref": "#/components/schemas/ResponseFormat" + } + } + ] + }, + "response_mime_type": { + "description": "The mime type of the response. This is required if response_format is set.", + "type": "string", + "deprecated": true + }, + "previous_interaction_id": { + "description": "The ID of the previous interaction, if any.", + "type": "string" + }, + "environment": { + "description": "The environment configuration for the interaction. Can be an object\nspecifying remote environment sources or a string referencing an existing\nenvironment ID.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentConfig" + }, + { + "type": "string" + } + ] + }, + "environment_id": { + "description": "Output only. The environment ID for the interaction. Only populated if environment\nconfig is set in the request.", + "type": "string", + "readOnly": true + }, + "service_tier": { + "description": "The service tier for the interaction.", + "$ref": "#/components/schemas/ServiceTier" + }, + "webhook_config": { + "description": "Optional. Webhook configuration for receiving notifications when the\ninteraction completes.", + "$ref": "#/components/schemas/WebhookConfig" + }, + "safety_settings": { + "description": "Safety settings for the interaction.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SafetySetting" + } + }, + "labels": { + "description": "The labels with user-defined metadata for the request.\n\nLabel keys and values can be no longer than 63 characters\n(Unicode codepoints) and can only contain lowercase letters, numeric\ncharacters, underscores, and dashes. International characters are allowed.\nLabel values are optional. Label keys must start with a letter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "stream": { + "description": "Input only. Whether the interaction will be streamed.", + "type": "boolean", + "writeOnly": true + }, + "store": { + "description": "Input only. Whether to store the response and request for later retrieval.", + "type": "boolean", + "writeOnly": true + }, + "background": { + "description": "Input only. Whether to run the model interaction in the background.", + "type": "boolean", + "writeOnly": true + } + }, + "required": [ + "input", + "model" + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "CreateModelInteraction" + }, + "CreateVoiceRequest": { + "description": "Request message for `VoicesService.CreateVoice`.", + "type": "object", + "properties": { + "voice": { + "description": "Required. The voice to create.\n`voice.model` is optional; if omitted, the service selects the default\nvoice creation model. Output-only fields on `Voice` (`id`, `key`,\n`expire_time`, `usage`) are ignored if set.", + "$ref": "#/components/schemas/Voice" + }, + "store": { + "description": "Optional. Whether the created voice is persisted and managed by Google.\n\n* When `true`, Google stores the voice and returns `Voice.id` (for example,\n `voice_abc123def456`), which can be managed via `GetVoice`, `ListVoices`,\n and `DeleteVoice` and referenced by ID in synthesis requests. Stored\n voices expire after 1 year of inactivity; using a stored voice in speech\n synthesis or as a `base_voice` in `CreateVoice` extends its\n `expire_time`. Projects are subject to a maximum active stored voice\n quota; exceeding the quota returns `RESOURCE_EXHAUSTED`.\n* When `false` (default), the voice is not stored by Google and `Voice.key`\n (for example, `voicekey_...`) is returned for client-side storage and\n synthesis. Optional discovery metadata fields on `voice` are not\n persisted or returned when `store` is `false`.\n* Required to be `true` when `voice.type` is `\"prompted\"`\n (otherwise fails with `INVALID_ARGUMENT`).", + "type": "boolean" + } + }, + "required": [ + "voice" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "CreateWebhookRequest": { + "description": "Request message for WebhookService.CreateWebhook.", + "type": "object", + "properties": { + "webhook": { + "description": "Required. The webhook to create.", + "$ref": "#/components/schemas/Webhook" + } + }, + "required": [ + "webhook" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "Credential": { + "description": "Server-managed credential resource stored in Secret Manager.", + "type": "object", + "properties": { + "id": { + "description": "Required. Output only. Identifier. Unique identifier for the credential.", + "type": "string", + "readOnly": true, + "x-google-identifier": true + }, + "type": { + "description": "Required. Output only. The type of credential.", + "type": "string", "enum": [ "bearer_token", "oauth2", @@ -4246,14 +4130,7 @@ "id", "type" ], - "x-speakeasy-exports": [ - { - "name": "Credential", - "group": "credentials", - "representation": "model" - } - ], - "x-speakeasy-model-namespace": "credentials" + "x-speakeasy-model-namespace": "interactions" }, "CredentialCreateParams": { "description": "Represents the fields of a Credential provided on creation.", @@ -4268,14 +4145,7 @@ "$ref": "#/components/schemas/OAuth2Config" } ], - "x-speakeasy-exports": [ - { - "name": "CredentialCreateParams", - "group": "credentials", - "representation": "input" - } - ], - "x-speakeasy-model-namespace": "credentials" + "x-speakeasy-model-namespace": "interactions" }, "CredentialUpdateParams": { "description": "Represents the fields of a Credential that can be updated.", @@ -4290,15 +4160,7 @@ "$ref": "#/components/schemas/OAuth2UpdateConfig" } ], - "x-speakeasy-exports": [ - { - "name": "CredentialUpdate", - "group": "credentials", - "representation": "input" - } - ], - "x-speakeasy-model-namespace": "credentials", - "x-speakeasy-name-override": "CredentialUpdate" + "x-speakeasy-model-namespace": "interactions" }, "DeepResearchAgentConfig": { "description": "Configuration for the Deep Research agent.", @@ -4326,34 +4188,17 @@ "collaborative_planning": { "description": "Enables human-in-the-loop planning for the Deep Research agent. If set to\ntrue, the Deep Research agent will provide a research plan in its response.\nThe agent will then proceed only if the user confirms the plan in the next\nturn.", "type": "boolean" - }, - "enable_bigquery_tool": { - "description": "Enables bigquery tool for the Deep Research agent.", - "type": "boolean" } }, "required": [ "type" ], - "x-speakeasy-exports": [ - { - "name": "DeepResearchAgentConfig", - "group": "interactions" - } - ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-unknown-values": "disallow" + "x-speakeasy-model-namespace": "interactions" }, "DeleteVoiceResponse": { "description": "Response message for `VoicesService.DeleteVoice`.", "type": "object", - "x-speakeasy-exports": [ - { - "name": "VoiceDeleteResponse", - "group": "voices" - } - ], - "x-speakeasy-model-namespace": "voices" + "x-speakeasy-model-namespace": "interactions" }, "DocumentContent": { "description": "A document content block.", @@ -4388,18 +4233,16 @@ "required": [ "type" ], - "example": { - "type": "document", - "data": "BASE64_ENCODED_DOCUMENT", - "mime_type": "application/pdf" - }, - "x-example-summaries": [ - "Document" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "DocumentContent", - "group": "interactions" + "document": { + "summary": "Document", + "value": { + "type": "document", + "data": "BASE64_ENCODED_DOCUMENT", + "mime_type": "application/pdf" + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -4410,14 +4253,6 @@ "type": { "const": "document" }, - "data": { - "type": "string", - "format": "byte", - "x-speakeasy-base64-input-mode": "file" - }, - "uri": { - "type": "string" - }, "mime_type": { "type": "string", "enum": [ @@ -4428,6 +4263,14 @@ "PDF document format", "CSV document format" ] + }, + "data": { + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "uri": { + "type": "string" } }, "required": [ @@ -4446,15 +4289,10 @@ "required": [ "type" ], - "additionalProperties": true, - "x-speakeasy-exports": [ - { - "name": "DynamicAgentConfig", - "group": "interactions" - } - ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-unknown-values": "disallow" + "additionalProperties": { + "description": "For agents that are not supported statically in the API definition." + }, + "x-speakeasy-model-namespace": "interactions" }, "EgressRule": { "description": "A single domain allowlist rule with optional header injection.", @@ -4465,27 +4303,11 @@ "type": "string" }, "transform": { - "description": "Headers to inject on all outbound requests matching this domain. Accepts a single dict or a list of dicts. The egress proxy injects these automatically.", - "oneOf": [ - { - "description": "A list of headers to inject.", - "type": "array", - "items": { - "description": "A single header to inject.", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - }, - { - "description": "A single header injection mapping, e.g., {\"Authorization\": \"Bearer token\"}.", - "type": "object", - "additionalProperties": { - "type": "string" - } - } - ] + "description": "Headers to inject into requests matching this rule.\nKey: header name (e.g., \"Authorization\").\nValue: header value (e.g., \"Bearer your-token\").", + "type": "object", + "additionalProperties": { + "type": "string" + } }, "credential": { "description": "Optional. Reference to a server-managed Credential resource by ID.", @@ -4495,38 +4317,11 @@ "required": [ "domain" ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-name-override": "AllowlistEntry" + "x-speakeasy-model-namespace": "interactions" }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }", "type": "object", - "x-speakeasy-exports": [ - { - "name": "InteractionDeleteResponse", - "group": "interactions" - }, - { - "name": "AgentDeleteResponse", - "group": "agents" - }, - { - "name": "WebhookDeleteResponse", - "group": "webhooks" - }, - { - "name": "TriggerDeleteResponse", - "group": "triggers" - }, - { - "name": "EnvironmentDeleteResponse", - "group": "environments" - }, - { - "name": "CredentialDeleteResponse", - "group": "credentials" - } - ], "x-speakeasy-model-namespace": "interactions" }, "EnvVar": { @@ -4553,23 +4348,6 @@ "type": "string", "readOnly": true }, - "network": { - "description": "Network configuration for the environment.", - "oneOf": [ - { - "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" - }, - { - "type": "string", - "enum": [ - "disabled" - ], - "x-google-enum-descriptions": [ - "All network egress is blocked." - ] - } - ] - }, "sources": { "description": "Sources to be mounted into the environment.", "type": "array", @@ -4605,6 +4383,23 @@ "" ] }, + "network": { + "description": "Network configuration for the environment.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" + }, + { + "type": "string", + "enum": [ + "disabled" + ], + "x-google-enum-descriptions": [ + "All network egress is blocked." + ] + } + ] + }, "file_count": { "description": "Output only. The number of files in the environment, output only.", "type": "string", @@ -4621,13 +4416,7 @@ "required": [ "id" ], - "x-speakeasy-exports": [ - { - "name": "Environment", - "group": "environments" - } - ], - "x-speakeasy-model-namespace": "environments" + "x-speakeasy-model-namespace": "interactions" }, "EnvironmentConfig": { "description": "Configuration for a custom environment.", @@ -4636,6 +4425,12 @@ "type": { "const": "remote" }, + "sources": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Source" + } + }, "network": { "description": "Network configuration for the environment.", "oneOf": [ @@ -4653,29 +4448,23 @@ } ] }, - "sources": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Source" - } - }, "environment_id": { "description": "Optional. The environment ID for the interaction. If specified, the request will\nupdate the existing environment instead of creating a new one.", "type": "string" }, "env": { "description": "Environment variables to set in the sandbox environment.", - "type": "object", - "additionalProperties": { - "oneOf": [ - { + "oneOf": [ + { + "type": "object", + "additionalProperties": { "$ref": "#/components/schemas/EnvVar" - }, - { - "type": "string" } - ] - } + }, + { + "type": "string" + } + ] } }, "required": [ @@ -4683,77 +4472,83 @@ ], "examples": [ { - "type": "remote", - "sources": [ - { - "type": "inline", - "content": "You are a data analyst. Always include visualizations and export results as PDF.", - "target": ".agents/AGENTS.md" - }, - { - "type": "inline", - "content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", - "target": ".agents/skills/slide-maker/SKILL.md" + "inline_sources": { + "summary": "Inline Sources", + "value": { + "type": "remote", + "sources": [ + { + "type": "inline", + "content": "You are a data analyst. Always include visualizations and export results as PDF.", + "target": ".agents/AGENTS.md" + }, + { + "type": "inline", + "content": "---\nname: slide-maker\ndescription: Create HTML slide decks\n---\n# Slide Maker\n\nWhen asked to create a presentation:\n1. Analyze the input data\n2. Create an HTML slide deck with reveal.js\n3. Save to /workspace/output/slides.html", + "target": ".agents/skills/slide-maker/SKILL.md" + } + ] } - ] + } }, { - "type": "remote", - "sources": [ - { - "type": "repository", - "source": "https://github.com/my-org/my-skills.git", - "target": ".agents/skills" - }, - { - "type": "gcs", - "source": "gs://my-bucket/my-folder", - "target": "/workspace/data" + "external_sources": { + "summary": "External Sources", + "value": { + "type": "remote", + "sources": [ + { + "type": "repository", + "source": "https://github.com/my-org/my-skills.git", + "target": ".agents/skills" + }, + { + "type": "gcs", + "source": "gs://my-bucket/my-folder", + "target": "/workspace/data" + } + ] } - ] + } }, { - "type": "remote", - "network": { - "allowlist": [ - { - "domain": "pypi.org" - }, - { - "domain": "*.github.com" + "network_allowlist": { + "summary": "Network Allowlist", + "value": { + "type": "remote", + "network": { + "allowlist": [ + { + "domain": "pypi.org" + }, + { + "domain": "*.github.com" + } + ] } - ] + } } }, { - "type": "remote", - "network": { - "allowlist": [ - { - "domain": "api.github.com", - "transform": { - "Authorization": "Bearer YOUR_GITHUB_TOKEN" - } + "proxy_credentials": { + "summary": "Proxy Credentials", + "value": { + "type": "remote", + "network": { + "allowlist": [ + { + "domain": "api.github.com", + "transform": { + "Authorization": "Bearer YOUR_GITHUB_TOKEN" + } + } + ] } - ] + } } } ], - "x-example-summaries": [ - "Inline Sources", - "External Sources", - "Network Allowlist", - "Proxy Credentials" - ], - "x-speakeasy-exports": [ - { - "name": "Environment", - "group": "interactions" - } - ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-name-override": "Environment", - "x-speakeasy-unknown-values": "disallow" + "x-speakeasy-model-namespace": "interactions" }, "EnvironmentFile": { "description": "Metadata for a file or directory within an environment.", @@ -4806,13 +4601,7 @@ "readOnly": true } }, - "x-speakeasy-exports": [ - { - "name": "EnvironmentFile", - "group": "environments" - } - ], - "x-speakeasy-model-namespace": "environments" + "x-speakeasy-model-namespace": "interactions" }, "EnvironmentNetworkEgressAllowlist": { "description": "Network egress configuration for the environment.", @@ -4828,7 +4617,6 @@ } }, { - "title": "Disabled", "type": "string", "enum": [ "disabled" @@ -4840,23 +4628,27 @@ ] } }, - "example": { - "allowlist": [ - { - "domain": "github.com", - "transform": [ - { - "Authorization": "Bearer your-token" - } - ] - }, - { - "domain": "*.googleapis.com" + "examples": [ + { + "network_allowlist": { + "summary": "Network Allowlist", + "value": { + "allowlist": [ + { + "domain": "github.com", + "transform": [ + { + "Authorization": "Bearer your-token" + } + ] + }, + { + "domain": "*.googleapis.com" + } + ] + } } - ] - }, - "x-example-summaries": [ - "Network Allowlist" + } ], "x-speakeasy-model-namespace": "interactions" }, @@ -4867,8 +4659,7 @@ "value": { "description": "Required. Input only. Secret value of the environment variable. Write-only; never\nreturned in responses.", "type": "string", - "writeOnly": true, - "x-speakeasy-param-sensitive": true + "writeOnly": true }, "injection_location": { "description": "Required. Locations where the environment variable can be injected in\noutgoing HTTP requests. Must contain at least one location.\nAccepts either a single location (e.g. \"header\") or an array of locations.", @@ -4904,13 +4695,7 @@ "type", "value" ], - "x-speakeasy-exports": [ - { - "name": "EnvironmentVariableConfig", - "group": "credentials" - } - ], - "x-speakeasy-model-namespace": "credentials" + "x-speakeasy-model-namespace": "interactions" }, "EnvironmentVariableUpdateConfig": { "description": "Configuration for updating environment variable credentials.", @@ -4922,8 +4707,7 @@ "value": { "description": "Optional. Input only. Secret value of the environment variable. Write-only; never\nreturned in responses.", "type": "string", - "writeOnly": true, - "x-speakeasy-param-sensitive": true + "writeOnly": true }, "trusted_domains": { "description": "Optional. List of domains allowed to receive this environment variable\nvalue in HTTP requests.", @@ -4950,13 +4734,7 @@ "required": [ "type" ], - "x-speakeasy-exports": [ - { - "name": "EnvironmentVariableUpdateConfig", - "group": "credentials" - } - ], - "x-speakeasy-model-namespace": "credentials" + "x-speakeasy-model-namespace": "interactions" }, "Error": { "description": "Error message from an interaction.", @@ -4971,12 +4749,6 @@ "type": "string" } }, - "x-speakeasy-exports": [ - { - "name": "Error", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "ErrorEvent": { @@ -4996,43 +4768,19 @@ "required": [ "event_type" ], - "example": { - "error": { - "code": "not_found", - "message": "Failed to get completed interaction: Result not found." - }, - "event_type": "error" - }, - "x-example-summaries": [ - "Error Event" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "ErrorEvent", - "group": "interactions" - } - ], - "x-speakeasy-model-namespace": "interactions" - }, - "ExaAISearchConfig": { - "description": "Used to specify configuration for ExaAISearch.", - "type": "object", - "properties": { - "api_key": { - "description": "Required. The API key for ExaAiSearch.", - "type": "string", - "x-speakeasy-param-sensitive": true - }, - "custom_config": { - "description": "Optional. This field can be used to pass any parameter from the Exa.ai Search API.", - "type": "object", - "additionalProperties": { - "description": "Properties of the object." + "error_event": { + "summary": "Error Event", + "value": { + "error": { + "code": "not_found", + "message": "Failed to get completed interaction: Result not found." + }, + "event_type": "error" + } } } - }, - "required": [ - "api_key" ], "x-speakeasy-model-namespace": "interactions" }, @@ -5085,27 +4833,6 @@ "required": [ "type" ], - "x-speakeasy-exports": [ - { - "name": "FileCitation", - "group": "interactions" - } - ], - "x-speakeasy-model-namespace": "interactions" - }, - "FileContent": { - "description": "Content of a single file in the codebase.", - "type": "object", - "properties": { - "path": { - "description": "The relative path of the file from the project root.", - "type": "string" - }, - "content": { - "description": "The UTF-8 encoded text content of the file.", - "type": "string" - } - }, "x-speakeasy-model-namespace": "interactions" }, "FileSearch": { @@ -5204,17 +4931,15 @@ "id", "type" ], - "example": { - "type": "file_search_call", - "id": "file_call_88192" - }, - "x-example-summaries": [ - "FileSearchCallStep" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "FileSearchCallStep", - "group": "interactions" + "file_search_call": { + "summary": "FileSearchCallStep", + "value": { + "type": "file_search_call", + "id": "file_call_88192" + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -5271,126 +4996,41 @@ "call_id", "type" ], - "example": { - "type": "file_search_result", - "call_id": "file_call_88192" - }, - "x-example-summaries": [ - "FileSearchResultStep" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "FileSearchResultStep", - "group": "interactions" + "file_search_result": { + "summary": "FileSearchResultStep", + "value": { + "type": "file_search_result", + "call_id": "file_call_88192" + } + } } ], "x-speakeasy-model-namespace": "interactions" }, - "Filter": { - "description": "Config for filters.", + "Function": { + "description": "A tool that can be used by the model.", "type": "object", "properties": { - "vector_distance_threshold": { - "description": "Optional. Only returns contexts with vector distance smaller than the\nthreshold.", - "type": "number", - "format": "double" + "type": { + "const": "function" }, - "vector_similarity_threshold": { - "description": "Optional. Only returns contexts with vector similarity larger than the\nthreshold.", - "type": "number", - "format": "double" + "name": { + "description": "The name of the function.", + "type": "string" }, - "metadata_filter": { - "description": "Optional. String for metadata filtering.", + "description": { + "description": "A description of the function.", "type": "string" - } - }, - "x-speakeasy-model-namespace": "interactions" - }, - "FindRequest": { - "description": "Request parameters specific to FIND sessions, used for discovering\nvulnerabilities in a codebase.", - "type": "object", - "properties": { - "source_files": { - "description": "A list of source files to provide as context for the scan.", - "type": "array", - "items": { - "$ref": "#/components/schemas/FileContent" - } - }, - "finding_id": { - "description": "The identifier of a specific finding to verify. This is primarily used in\nVERIFY mode to focus the agent's execution-based validation on a single\nvulnerability.", - "type": "string" - }, - "description": { - "description": "Additional context or custom instructions provided by the user to guide\nthe vulnerability analysis.", - "type": "string" - }, - "mode": { - "description": "The mode of the find session.", - "type": "string", - "enum": [ - "scan", - "verify" - ], - "x-google-enum-descriptions": [ - "Fast scan using only the initial classifier.", - "Performs classification followed by detailed investigation." - ] - } - }, - "x-speakeasy-model-namespace": "interactions" - }, - "FixRequest": { - "description": "Request parameters specific to FIX sessions, used for generating and\nvalidating security patches.", - "type": "object", - "properties": { - "source_files": { - "description": "A list of source files providing context for the remediation. These files\nare typically the ones containing the identified vulnerability.", - "type": "array", - "items": { - "$ref": "#/components/schemas/FileContent" - } - }, - "finding_id": { - "description": "The identifier of the specific security finding to be remediated. This ID\nmaps to a previously discovered vulnerability.", - "type": "string" - }, - "description": { - "description": "Additional context or custom instructions provided by the user to guide\nthe patch generation process.", - "type": "string" - } - }, - "x-speakeasy-model-namespace": "interactions" - }, - "Function": { - "description": "A tool that can be used by the model.", - "type": "object", - "properties": { - "type": { - "const": "function" - }, - "name": { - "description": "The name of the function.", - "type": "string" - }, - "description": { - "description": "A description of the function.", - "type": "string" - }, - "parameters": { - "description": "The JSON Schema for the function's parameters.\n\nSupports a subset of JSON Schema. `minLength`, `maxLength`,\n`minProperties`, `maxProperties`, `uniqueItems`, `contains`,\n`minContains`, and `maxContains` are ignored and not enforced." + }, + "parameters": { + "description": "The JSON Schema for the function's parameters.\n\nSupports a subset of JSON Schema. `minLength`, `maxLength`,\n`minProperties`, `maxProperties`, `uniqueItems`, `contains`,\n`minContains`, and `maxContains` are ignored and not enforced." } }, "required": [ "type" ], - "x-speakeasy-exports": [ - { - "name": "Function", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions", "x-codeSamples": [ { @@ -5449,21 +5089,19 @@ "name", "type" ], - "example": { - "name": "get_weather", - "type": "function_call", - "arguments": { - "location": "Boston, MA" - }, - "id": "call_98231" - }, - "x-example-summaries": [ - "FunctionCallStep" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "FunctionCallStep", - "group": "interactions" + "function_call": { + "summary": "FunctionCallStep", + "value": { + "name": "get_weather", + "type": "function_call", + "arguments": { + "location": "Boston, MA" + }, + "id": "call_98231" + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -5559,24 +5197,22 @@ "result", "type" ], - "example": { - "name": "get_weather", - "type": "function_result", - "call_id": "call_98231", - "result": [ - { - "type": "text", - "text": "{\"weather\":\"sunny\"}" - } - ] - }, - "x-example-summaries": [ - "FunctionResultStep" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "FunctionResultStep", - "group": "interactions" + "function_result": { + "summary": "FunctionResultStep", + "value": { + "name": "get_weather", + "type": "function_result", + "call_id": "call_98231", + "result": [ + { + "type": "text", + "text": "{\"weather\":\"sunny\"}" + } + ] + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -5585,36 +5221,6 @@ "description": "Configuration parameters for model interactions.", "type": "object", "properties": { - "tool_choice": { - "description": "The tool choice configuration.", - "oneOf": [ - { - "$ref": "#/components/schemas/ToolChoiceConfig" - }, - { - "type": "string", - "enum": [ - "auto", - "any", - "none", - "validated" - ], - "x-google-enum-descriptions": [ - "Auto tool choice.", - "Any tool choice.", - "No tool choice.", - "Validated tool choice." - ], - "x-speakeasy-exports": [ - { - "name": "ToolChoiceType", - "group": "interactions" - } - ], - "x-speakeasy-model-namespace": "interactions" - } - ] - }, "temperature": { "description": "Controls the randomness of the output.", "type": "number", @@ -5639,6 +5245,30 @@ "type": "string" } }, + "tool_choice": { + "description": "The tool choice configuration.", + "oneOf": [ + { + "$ref": "#/components/schemas/ToolChoiceConfig" + }, + { + "type": "string", + "enum": [ + "auto", + "any", + "none", + "validated" + ], + "x-google-enum-descriptions": [ + "Auto tool choice.", + "Any tool choice.", + "No tool choice.", + "Validated tool choice." + ], + "x-speakeasy-model-namespace": "interactions" + } + ] + }, "thinking_level": { "description": "The level of thought tokens that the model should generate.", "$ref": "#/components/schemas/ThinkingLevel" @@ -5665,8 +5295,8 @@ "description": "Optional. Configuration for speech recognition (transcription). If present, ASR is\nenabled.", "$ref": "#/components/schemas/TranscriptionConfig" }, - "speech_config": { - "description": "Optional. Speech and multi-speaker configuration.", + "structured_speech_config": { + "description": "Speech and multi-speaker configuration.", "oneOf": [ { "$ref": "#/components/schemas/SpeakerConfig" @@ -5680,12 +5310,6 @@ ] } }, - "x-speakeasy-exports": [ - { - "name": "GenerationConfig", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "GetEnvironmentFilesResponse": { @@ -5704,39 +5328,6 @@ "type": "string" } }, - "x-speakeasy-exports": [ - { - "name": "GetEnvironmentFilesResponse", - "group": "environments" - } - ], - "x-speakeasy-model-namespace": "environments" - }, - "GetInteractionRequest": { - "description": "Request for InteractionService.GetInteraction.", - "type": "object", - "properties": { - "name": { - "description": "Required. The name of the interaction to retrieve.\nFormat: interactions/{interaction}", - "type": "string" - }, - "stream": { - "description": "If true, streams the interaction events as Server-Sent Events.", - "type": "boolean" - }, - "last_event_id": { - "description": "If set, resumes the interaction stream from the chunk after the event\nmarked by the event id. Can only be used if `stream` is true.", - "type": "string" - }, - "include_input": { - "description": "If true, includes the input in the response.", - "type": "boolean", - "deprecated": true - } - }, - "required": [ - "name" - ], "x-speakeasy-model-namespace": "interactions" }, "GoogleMaps": { @@ -5855,22 +5446,19 @@ "id", "type" ], - "example": { - "type": "google_maps_call", - "arguments": { - "queries": [ - "parks near San Francisco" - ] - }, - "id": "maps_call_39201" - }, - "x-example-summaries": [ - "GoogleMapsCallStep" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "GoogleMapsCallStep", - "group": "interactions" + "google_maps_call": { + "summary": "GoogleMapsCallStep", + "value": { + "type": "google_maps_call", + "arguments": { + "latitude": 37.7749, + "longitude": -122.4194 + }, + "id": "maps_call_39201" + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -5887,12 +5475,6 @@ } } }, - "x-speakeasy-exports": [ - { - "name": "GoogleMapsCallArguments", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions", "x-speakeasy-name-override": "GoogleMapsCallArguments" }, @@ -5953,12 +5535,6 @@ "type": "string" } }, - "x-speakeasy-exports": [ - { - "name": "GoogleMapsResult", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions", "x-speakeasy-name-override": "GoogleMapsResult" }, @@ -6012,28 +5588,22 @@ "result", "type" ], - "example": { - "type": "google_maps_result", - "call_id": "maps_call_39201", - "result": [ - { - "places": [ - { - "url": "https://maps.google.com/?cid=12345", - "name": "Golden Gate Park", - "place_id": "ChIJIQBpAG2ahYAR9R7bNdTLg8M" - } - ] - } - ] - }, - "x-example-summaries": [ - "GoogleMapsResultStep" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "GoogleMapsResultStep", - "group": "interactions" + "google_maps_result": { + "summary": "GoogleMapsResultStep", + "value": { + "type": "google_maps_result", + "call_id": "maps_call_39201", + "result": [ + { + "name": "Golden Gate Park", + "place_id": "ChIJIQBpAG2ahYAR9R7bNdTLg8M", + "rating": 4.8 + } + ] + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -6052,13 +5622,11 @@ "type": "string", "enum": [ "web_search", - "image_search", - "enterprise_web_search" + "image_search" ], "x-google-enum-descriptions": [ "Setting this field enables web search. Only text results are returned.", - "Setting this field enables image search. Image bytes are returned.", - "Setting this field enables enterprise web search." + "Setting this field enables image search. Image bytes are returned." ] } } @@ -6151,13 +5719,11 @@ "type": "string", "enum": [ "web_search", - "image_search", - "enterprise_web_search" + "image_search" ], "x-google-enum-descriptions": [ "Setting this field enables web search. Only text results are returned.", - "Setting this field enables image search. Image bytes are returned.", - "Setting this field enables enterprise web search." + "Setting this field enables image search. Image bytes are returned." ] }, "signature": { @@ -6172,22 +5738,18 @@ "id", "type" ], - "example": { - "type": "google_search_call", - "arguments": { - "queries": [ - "Who won the men's 100m in Paris 2024?" - ] - }, - "id": "search_call_19201" - }, - "x-example-summaries": [ - "GoogleSearchCallStep" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "GoogleSearchCallStep", - "group": "interactions" + "google_search_call": { + "summary": "GoogleSearchCallStep", + "value": { + "type": "google_search_call", + "arguments": { + "query": "Who won the men's 100m in Paris 2024?" + }, + "id": "search_call_19201" + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -6204,12 +5766,6 @@ } } }, - "x-speakeasy-exports": [ - { - "name": "GoogleSearchCallArguments", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions", "x-speakeasy-name-override": "GoogleSearchCallArguments" }, @@ -6261,12 +5817,6 @@ "type": "string" } }, - "x-speakeasy-exports": [ - { - "name": "GoogleSearchResult", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions", "x-speakeasy-name-override": "GoogleSearchResult" }, @@ -6304,22 +5854,22 @@ "result", "type" ], - "example": { - "type": "google_search_result", - "call_id": "search_call_19201", - "result": [ - { - "search_suggestions": "
...
" - } - ] - }, - "x-example-summaries": [ - "GoogleSearchResultStep" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "GoogleSearchResultStep", - "group": "interactions" + "google_search_result": { + "summary": "GoogleSearchResultStep", + "value": { + "type": "google_search_result", + "call_id": "search_call_19201", + "result": [ + { + "title": "Paris 2024 Olympics: Noah Lyles wins men's 100m gold", + "url": "https://olympics.com/en/news/paris-2024-noah-lyles-wins-mens-100m-gold", + "snippet": "American Noah Lyles won the Olympic men's 100m gold medal in a photo finish." + } + ] + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -6333,13 +5883,11 @@ "type": "string", "enum": [ "google_search", - "google_maps", - "retrieval" + "google_maps" ], "x-google-enum-descriptions": [ "Grounding with Google Web Search and Image Search, & Web Grounding\nfor Enterprise.", - "Grounding with Google Maps.", - "Grounding with customer's data, for example, VertexAISearch." + "Grounding with Google Maps." ] }, "count": { @@ -6357,43 +5905,15 @@ "dangerous_content", "harassment", "sexually_explicit", - "civic_integrity", - "image_hate", - "image_dangerous_content", - "image_harassment", - "image_sexually_explicit", "jailbreak" ], - "x-google-enum-deprecated": [ - false, - false, - false, - false, - true, - false, - false, - false, - false, - false - ], "x-google-enum-descriptions": [ "Content that promotes violence or incites hatred against individuals or\ngroups based on certain attributes.", "Content that promotes, facilitates, or enables dangerous activities.", "Abusive, threatening, or content intended to bully, torment, or ridicule.", "Content that contains sexually explicit material.", - "Deprecated: Election filter is not longer supported.\nThe harm category is civic integrity.", - "Images that contain hate speech.", - "Images that contain dangerous content.", - "Images that contain harassment.", - "Images that contain sexually explicit content.", "Prompts designed to bypass safety filters." ], - "x-speakeasy-exports": [ - { - "name": "HarmCategory", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "HttpBearerConfig": { @@ -6403,8 +5923,7 @@ "token": { "description": "Required. Input only. The static bearer token. Write-only; never returned in responses.", "type": "string", - "writeOnly": true, - "x-speakeasy-param-sensitive": true + "writeOnly": true }, "id": { "type": "string" @@ -6426,13 +5945,7 @@ "token", "type" ], - "x-speakeasy-exports": [ - { - "name": "HttpBearerConfig", - "group": "credentials" - } - ], - "x-speakeasy-model-namespace": "credentials" + "x-speakeasy-model-namespace": "interactions" }, "HttpBearerUpdateConfig": { "description": "Configuration for updating HTTP Bearer token credentials.", @@ -6444,8 +5957,7 @@ "token": { "description": "Optional. Input only. The static bearer token. Write-only; never returned in responses.", "type": "string", - "writeOnly": true, - "x-speakeasy-param-sensitive": true + "writeOnly": true }, "header_name": { "description": "Optional. Header name to inject the token into. Defaults to\n'Authorization'.", @@ -6459,13 +5971,7 @@ "required": [ "type" ], - "x-speakeasy-exports": [ - { - "name": "HttpBearerUpdateConfig", - "group": "credentials" - } - ], - "x-speakeasy-model-namespace": "credentials" + "x-speakeasy-model-namespace": "interactions" }, "HttpBody": { "description": "Message that represents an arbitrary HTTP body. It should only be used for\npayload formats that can't be represented as JSON, such as raw binary or\nan HTML page.\n\n\nThis message can be used both in streaming and non-streaming API methods in\nthe request as well as the response.\n\nIt can be used as a top-level request field, which is convenient if one\nwants to extract parameters from either the URL or HTTP template into the\nrequest fields and also want access to the raw HTTP body.\n\nExample:\n\n message GetResourceRequest {\n // A unique request id.\n string request_id = 1;\n\n // The raw HTTP body is bound to this field.\n google.api.HttpBody http_body = 2;\n\n }\n\n service ResourceService {\n rpc GetResource(GetResourceRequest)\n returns (google.api.HttpBody);\n rpc UpdateResource(google.api.HttpBody)\n returns (google.protobuf.Empty);\n\n }\n\nExample with streaming methods:\n\n service CaldavService {\n rpc GetCalendar(stream google.api.HttpBody)\n returns (stream google.api.HttpBody);\n rpc UpdateCalendar(stream google.api.HttpBody)\n returns (stream google.api.HttpBody);\n\n }\n\nUse of this type only changes how the request and response bodies are\nhandled, all other features will continue to work unchanged.", @@ -6494,73 +6000,17 @@ }, "x-speakeasy-model-namespace": "interactions" }, - "HybridSearch": { - "description": "Config for Hybrid Search.", - "type": "object", - "properties": { - "alpha": { - "description": "Optional. Alpha value controls the weight between dense and sparse vector search\nresults.", - "type": "number", - "format": "float" - } - }, - "x-speakeasy-model-namespace": "interactions" - }, - "ImageConfig": { - "description": "The configuration for image interaction.", + "ImageConfig": { + "description": "The configuration for image interaction.", "type": "object", "properties": { "aspect_ratio": { "description": "The aspect ratio of the image to generate. Supported aspect ratios: 1:1,\n2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9.\n\nIf not specified, the model will choose a default aspect ratio based on any\nreference images provided.", - "type": "string", - "enum": [ - "1:1", - "2:3", - "3:2", - "3:4", - "4:3", - "4:5", - "5:4", - "9:16", - "16:9", - "21:9", - "1:8", - "8:1", - "1:4", - "4:1" - ], - "x-google-enum-descriptions": [ - "1:1 aspect ratio.", - "2:3 aspect ratio.", - "3:2 aspect ratio.", - "3:4 aspect ratio.", - "4:3 aspect ratio.", - "4:5 aspect ratio.", - "5:4 aspect ratio.", - "9:16 aspect ratio.", - "16:9 aspect ratio.", - "21:9 aspect ratio.", - "1:8 aspect ratio.", - "8:1 aspect ratio.", - "1:4 aspect ratio.", - "4:1 aspect ratio." - ] + "type": "string" }, "image_size": { "description": "Specifies the size of generated images. Supported values are `1K`, `2K`,\n`4K`. If not specified, the model will use default value `1K`.", - "type": "string", - "enum": [ - "1K", - "2K", - "4K", - "512" - ], - "x-google-enum-descriptions": [ - "1K image size.", - "2K image size.", - "4K image size.", - "512 image size." - ] + "type": "string" } }, "deprecated": true, @@ -6615,18 +6065,16 @@ "required": [ "type" ], - "example": { - "type": "image", - "data": "BASE64_ENCODED_IMAGE", - "mime_type": "image/png" - }, - "x-example-summaries": [ - "Image" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "ImageContent", - "group": "interactions" + "image": { + "summary": "Image", + "value": { + "type": "image", + "data": "BASE64_ENCODED_IMAGE", + "mime_type": "image/png" + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -6637,14 +6085,6 @@ "type": { "const": "image" }, - "data": { - "type": "string", - "format": "byte", - "x-speakeasy-base64-input-mode": "file" - }, - "uri": { - "type": "string" - }, "mime_type": { "type": "string", "enum": [ @@ -6668,6 +6108,14 @@ "TIFF image format" ] }, + "data": { + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "uri": { + "type": "string" + }, "resolution": { "description": "The resolution of the media.", "$ref": "#/components/schemas/MediaResolution" @@ -6763,19 +6211,17 @@ "required": [ "type" ], - "example": { - "type": "image", - "aspect_ratio": "16:9", - "image_size": "1K", - "mime_type": "image/jpeg" - }, - "x-example-summaries": [ - "Image Output" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "ImageResponseFormat", - "group": "interactions" + "image_response_format": { + "summary": "Image Output", + "value": { + "type": "image", + "aspect_ratio": "16:9", + "image_size": "1K", + "mime_type": "image/jpeg" + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -6792,17 +6238,10 @@ "Injected into HTTP URL query parameters.", "Injected into HTTP request body." ], - "x-speakeasy-exports": [ - { - "name": "InjectionLocation", - "group": "credentials" - } - ], - "x-speakeasy-model-namespace": "credentials" + "x-speakeasy-model-namespace": "interactions" }, "Interaction": { "description": "The Interaction resource.", - "type": "object", "properties": { "id": { "description": "Required. Output only. A unique identifier for the interaction completion.", @@ -6820,8 +6259,7 @@ "failed", "cancelled", "incomplete", - "budget_exceeded", - "queued" + "budget_exceeded" ], "readOnly": true, "x-google-enum-deprecated": [ @@ -6831,8 +6269,7 @@ false, false, false, - true, - false + true ], "x-google-enum-descriptions": [ "The interaction is in progress.", @@ -6841,8 +6278,7 @@ "The interaction failed.", "The interaction was cancelled.", "The interaction is completed, but contains incomplete results (e.g.\nhitting max_tokens).", - "Deprecated: Token and execution budget exhaustion returns INCOMPLETE\n(11).", - "The interaction is queued, waiting for processing (e.g. waiting for\noff-peak capacity)." + "Deprecated: Token and execution budget exhaustion returns INCOMPLETE\n(11)." ] }, "created": { @@ -6872,35 +6308,6 @@ "$ref": "#/components/schemas/GenerationConfig", "writeOnly": true }, - "input": { - "$ref": "#/components/schemas/InteractionsInput" - }, - "response_format": { - "description": "Enforces that the generated response is a JSON object that complies with\nthe JSON schema specified in this field.", - "oneOf": [ - { - "$ref": "#/components/schemas/ResponseFormat" - }, - { - "title": "ResponseFormatList", - "type": "array", - "items": { - "$ref": "#/components/schemas/ResponseFormat" - } - } - ] - }, - "environment": { - "description": "The environment configuration for the interaction. Can be an object\nspecifying remote environment sources or a string referencing an existing\nenvironment ID.", - "oneOf": [ - { - "$ref": "#/components/schemas/EnvironmentConfig" - }, - { - "type": "string" - } - ] - }, "system_instruction": { "description": "System instruction for the interaction.", "type": "string" @@ -6912,6 +6319,9 @@ "$ref": "#/components/schemas/Tool" } }, + "input": { + "$ref": "#/components/schemas/InteractionsInput" + }, "usage": { "description": "Output only. Statistics on the interaction request's token usage.", "$ref": "#/components/schemas/Usage", @@ -6925,6 +6335,21 @@ "$ref": "#/components/schemas/ResponseModality" } }, + "response_format": { + "description": "Enforces that the generated response is a JSON object that complies with\nthe JSON schema specified in this field.", + "oneOf": [ + { + "$ref": "#/components/schemas/ResponseFormat" + }, + { + "title": "ResponseFormatList", + "type": "array", + "items": { + "$ref": "#/components/schemas/ResponseFormat" + } + } + ] + }, "response_mime_type": { "description": "The mime type of the response. This is required if response_format is set.", "type": "string", @@ -6934,6 +6359,17 @@ "description": "The ID of the previous interaction, if any.", "type": "string" }, + "environment": { + "description": "The environment configuration for the interaction. Can be an object\nspecifying remote environment sources or a string referencing an existing\nenvironment ID.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentConfig" + }, + { + "type": "string" + } + ] + }, "environment_id": { "description": "Output only. The environment ID for the interaction. Only populated if environment\nconfig is set in the request.", "type": "string", @@ -6994,9 +6430,6 @@ { "$ref": "#/components/schemas/AntigravityAgentConfig" }, - { - "$ref": "#/components/schemas/CodeMenderAgentConfig" - }, { "$ref": "#/components/schemas/DeepResearchAgentConfig" }, @@ -7005,10 +6438,10 @@ } ] }, - "cached_content": { - "description": "The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}", + "max_total_tokens": { + "description": "Max total tokens for the agent run.", "type": "string", - "deprecated": true + "format": "int64" } }, "required": [ @@ -7051,12 +6484,6 @@ "total_tool_use_tokens": 0 } }, - "x-speakeasy-exports": [ - { - "name": "Interaction", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "InteractionCompletedEvent": { @@ -7079,24 +6506,39 @@ "event_type", "interaction" ], - "example": { - "event_id": "evt_123", - "event_type": "interaction.completed", - "interaction": { - "created": "2025-12-04T15:01:45Z", - "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", - "model": "gemini-3.6-flash", - "status": "completed", - "updated": "2025-12-04T15:01:45Z" - } - }, - "x-example-summaries": [ - "Interaction Completed" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "InteractionCompletedEvent", - "group": "interactions" + "interaction_completed": { + "summary": "Interaction Completed", + "value": { + "event_id": "evt_123", + "event_type": "interaction.completed", + "interaction": { + "created": "2025-12-04T15:01:45Z", + "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", + "model": "gemini-3.6-flash", + "status": "completed", + "updated": "2025-12-04T15:01:45Z" + } + } + } + }, + { + "interaction_completed": { + "summary": "Interaction Completed", + "value": { + "event_id": "evt_123", + "event_type": "interaction.completed", + "interaction": { + "created": "2025-12-04T15:01:45Z", + "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", + "model": "gemini-3-flash-preview", + "object": "interaction", + "status": "completed", + "updated": "2025-12-04T15:01:45Z" + } + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -7121,27 +6563,68 @@ "event_type", "interaction" ], - "example": { - "event_id": "evt_123", - "event_type": "interaction.created", - "interaction": { - "created": "2025-12-04T15:01:45Z", - "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", - "model": "gemini-3.6-flash", - "status": "in_progress", - "updated": "2025-12-04T15:01:45Z" + "examples": [ + { + "interaction_created": { + "summary": "Interaction Created", + "value": { + "event_id": "evt_123", + "event_type": "interaction.created", + "interaction": { + "created": "2025-12-04T15:01:45Z", + "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", + "model": "gemini-3.6-flash", + "status": "in_progress", + "updated": "2025-12-04T15:01:45Z" + } + } + } + }, + { + "interaction_created": { + "summary": "Interaction Created", + "value": { + "event_id": "evt_123", + "event_type": "interaction.created", + "interaction": { + "id": "v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg", + "model": "gemini-3-flash-preview", + "object": "interaction", + "status": "in_progress" + } + } + } } - }, - "x-example-summaries": [ - "Interaction Created" ], - "x-speakeasy-exports": [ + "x-speakeasy-model-namespace": "interactions" + }, + "InteractionSseEvent": { + "type": "object", + "oneOf": [ { - "name": "InteractionCreatedEvent", - "group": "interactions" + "$ref": "#/components/schemas/ErrorEvent" + }, + { + "$ref": "#/components/schemas/InteractionCompletedEvent" + }, + { + "$ref": "#/components/schemas/InteractionCreatedEvent" + }, + { + "$ref": "#/components/schemas/InteractionStatusUpdate" + }, + { + "$ref": "#/components/schemas/StepDelta" + }, + { + "$ref": "#/components/schemas/StepStart" + }, + { + "$ref": "#/components/schemas/StepStop" } ], - "x-speakeasy-model-namespace": "interactions" + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "InteractionSSEEvent" }, "InteractionSseEventInteraction": { "description": "Partial interaction resource emitted by interaction lifecycle SSE events.\nStreaming lifecycle payloads may omit fields that are only available on\nfull non-streaming Interaction responses.\n", @@ -7161,30 +6644,16 @@ "completed", "failed", "cancelled", - "incomplete", - "budget_exceeded", - "queued" + "incomplete" ], "readOnly": true, - "x-google-enum-deprecated": [ - false, - false, - false, - false, - false, - false, - true, - false - ], "x-google-enum-descriptions": [ "The interaction is in progress.", "The interaction requires action/input from the user.", "The interaction is completed.", "The interaction failed.", "The interaction was cancelled.", - "The interaction is completed, but contains incomplete results (e.g.\nhitting max_tokens).", - "Deprecated: Token and execution budget exhaustion returns INCOMPLETE\n(11).", - "The interaction is queued, waiting for processing (e.g. waiting for\noff-peak capacity)." + "The interaction is completed, but contains incomplete results (e.g. hitting max_tokens)." ] }, "model": { @@ -7223,10 +6692,10 @@ "type": "string" }, "continuation_token": { - "description": "Output only. Opaque token to resume a long decode when status is incomplete.", + "description": "Opaque token to resume a long decode.\nOutput: set when status is INCOMPLETE and decoding can be resumed.\nInput: pass the latest token back unchanged in CreateInteraction to\ncontinue decoding.", "type": "string", "format": "byte", - "readOnly": true + "x-speakeasy-base64-input-mode": "file" }, "object": { "description": "Output only. The resource type.", @@ -7240,11 +6709,11 @@ ], "x-speakeasy-model-namespace": "interactions" }, - "InteractionSseStreamEnvelope": { + "InteractionSseStreamEvent": { "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/InteractionSseStreamEvent" + "$ref": "#/components/schemas/InteractionSseEvent" } }, "required": [ @@ -7253,44 +6722,11 @@ "x-speakeasy-model-namespace": "interactions", "x-speakeasy-name-override": "InteractionSSEStreamEvent" }, - "InteractionSseStreamEvent": { - "oneOf": [ - { - "$ref": "#/components/schemas/ErrorEvent" - }, - { - "$ref": "#/components/schemas/InteractionCompletedEvent" - }, - { - "$ref": "#/components/schemas/InteractionCreatedEvent" - }, - { - "$ref": "#/components/schemas/InteractionStatusUpdate" - }, - { - "$ref": "#/components/schemas/StepDelta" - }, - { - "$ref": "#/components/schemas/StepStart" - }, - { - "$ref": "#/components/schemas/StepStop" - } - ], - "x-speakeasy-exports": [ - { - "name": "InteractionSSEEvent", - "group": "interactions" - } - ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-name-override": "InteractionSSEEvent" - }, - "InteractionStatusUpdate": { - "type": "object", - "properties": { - "interaction_id": { - "type": "string" + "InteractionStatusUpdate": { + "type": "object", + "properties": { + "interaction_id": { + "type": "string" }, "status": { "type": "string", @@ -7301,8 +6737,7 @@ "failed", "cancelled", "incomplete", - "budget_exceeded", - "queued" + "budget_exceeded" ], "x-google-enum-deprecated": [ false, @@ -7311,8 +6746,7 @@ false, false, false, - true, - false + true ], "x-google-enum-descriptions": [ "The interaction is in progress.", @@ -7321,8 +6755,7 @@ "The interaction failed.", "The interaction was cancelled.", "The interaction is completed, but contains incomplete results (e.g.\nhitting max_tokens).", - "Deprecated: Token and execution budget exhaustion returns INCOMPLETE\n(11).", - "The interaction is queued, waiting for processing (e.g. waiting for\noff-peak capacity)." + "Deprecated: Token and execution budget exhaustion returns INCOMPLETE\n(11)." ] }, "event_type": { @@ -7331,7 +6764,8 @@ "continuation_token": { "description": "An optional opaque continuation token used to resume decoding from the\nlatest checkpoint after a disconnected stream.", "type": "string", - "format": "byte" + "format": "byte", + "x-speakeasy-base64-input-mode": "file" }, "usage": { "description": "Model usage statistics up to this checkpoint.", @@ -7347,18 +6781,16 @@ "interaction_id", "status" ], - "example": { - "event_type": "interaction.status_update", - "interaction_id": "v1_ChdTMjQ0YWJ5TUF1TzcxZThQdjRpcnFRcxIXUzI0NGFieU1BdU83MWU4UHY0aXJxUXM", - "status": "in_progress" - }, - "x-example-summaries": [ - "Interaction Status Update" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "InteractionStatusUpdate", - "group": "interactions" + "interaction_status_update": { + "summary": "Interaction Status Update", + "value": { + "event_type": "interaction.status_update", + "interaction_id": "v1_ChdTMjQ0YWJ5TUF1TzcxZThQdjRpcnFRcxIXUzI0NGFieU1BdU83MWU4UHY0aXJxUXM", + "status": "in_progress" + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -7404,14 +6836,7 @@ "type": "string" } }, - "x-speakeasy-exports": [ - { - "name": "AgentListResponse", - "group": "agents" - } - ], - "x-speakeasy-model-namespace": "agents", - "x-speakeasy-name-override": "AgentListResponse" + "x-speakeasy-model-namespace": "interactions" }, "ListCredentialsResponse": { "type": "object", @@ -7426,14 +6851,7 @@ "type": "string" } }, - "x-speakeasy-exports": [ - { - "name": "CredentialListResponse", - "group": "credentials" - } - ], - "x-speakeasy-model-namespace": "credentials", - "x-speakeasy-name-override": "CredentialListResponse" + "x-speakeasy-model-namespace": "interactions" }, "ListEnvironmentsResponse": { "description": "Response for `ListEnvironments`.", @@ -7451,13 +6869,7 @@ "type": "string" } }, - "x-speakeasy-exports": [ - { - "name": "EnvironmentListResponse", - "group": "environments" - } - ], - "x-speakeasy-model-namespace": "environments" + "x-speakeasy-model-namespace": "interactions" }, "ListTriggerExecutionsResponse": { "description": "Response message for TriggerService.ListTriggerExecutions.", @@ -7475,13 +6887,7 @@ "type": "string" } }, - "x-speakeasy-exports": [ - { - "name": "TriggerListExecutionsResponse", - "group": "triggers" - } - ], - "x-speakeasy-model-namespace": "triggers" + "x-speakeasy-model-namespace": "interactions" }, "ListTriggersResponse": { "description": "Response message for TriggerService.ListTriggers.", @@ -7499,13 +6905,7 @@ "type": "string" } }, - "x-speakeasy-exports": [ - { - "name": "TriggerListResponse", - "group": "triggers" - } - ], - "x-speakeasy-model-namespace": "triggers" + "x-speakeasy-model-namespace": "interactions" }, "ListVoicesResponse": { "description": "Response message for `VoicesService.ListVoices`.", @@ -7523,13 +6923,7 @@ "type": "string" } }, - "x-speakeasy-exports": [ - { - "name": "VoiceListResponse", - "group": "voices" - } - ], - "x-speakeasy-model-namespace": "voices" + "x-speakeasy-model-namespace": "interactions" }, "ListWebhooksResponse": { "description": "Response message for WebhookService.ListWebhooks.", @@ -7547,14 +6941,7 @@ "type": "string" } }, - "x-speakeasy-exports": [ - { - "name": "WebhookListResponse", - "group": "webhooks" - } - ], - "x-speakeasy-model-namespace": "webhooks", - "x-speakeasy-name-override": "WebhookListResponse" + "x-speakeasy-model-namespace": "interactions" }, "McpServer": { "description": "A MCPServer is a server that can be called by the model to perform actions.", @@ -7563,14 +6950,14 @@ "type": { "const": "mcp_server" }, - "url": { - "description": "The full URL for the MCPServer endpoint.\nExample: \"https://api.example.com/mcp\"", - "type": "string" - }, "name": { "description": "The name of the MCPServer.", "type": "string" }, + "url": { + "description": "The full URL for the MCPServer endpoint.\nExample: \"https://api.example.com/mcp\"", + "type": "string" + }, "headers": { "description": "Optional: Fields for authentication headers, timeouts, etc., if needed.", "type": "object", @@ -7590,7 +6977,6 @@ "type" ], "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-name-override": "MCPServer", "x-codeSamples": [ { "label": "mcp_server", @@ -7644,8 +7030,7 @@ "server_name", "type" ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-name-override": "MCPServerToolCallDelta" + "x-speakeasy-model-namespace": "interactions" }, "McpServerToolCallStep": { "description": "MCPServer tool call step.", @@ -7681,27 +7066,24 @@ "server_name", "type" ], - "example": { - "name": "calculate_tax", - "type": "mcp_server_tool_call", - "arguments": { - "income": 120000, - "state": "CA" - }, - "id": "mcp_call_29012", - "server_name": "financial_mcp_server" - }, - "x-example-summaries": [ - "McpServerToolCallStep" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "MCPServerToolCallStep", - "group": "interactions" + "mcp_server_tool_call": { + "summary": "McpServerToolCallStep", + "value": { + "name": "calculate_tax", + "type": "mcp_server_tool_call", + "arguments": { + "income": 120000, + "state": "CA" + }, + "id": "mcp_call_29012", + "server_name": "financial_mcp_server" + } + } } ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-name-override": "MCPServerToolCallStep" + "x-speakeasy-model-namespace": "interactions" }, "McpServerToolResultDelta": { "type": "object", @@ -7743,8 +7125,7 @@ "result", "type" ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-name-override": "MCPServerToolResultDelta" + "x-speakeasy-model-namespace": "interactions" }, "McpServerToolResultStep": { "description": "MCPServer tool result step.", @@ -7795,26 +7176,23 @@ "result", "type" ], - "example": { - "name": "calculate_tax", - "type": "mcp_server_tool_result", - "call_id": "mcp_call_29012", - "result": { - "tax_due": 32400 - }, - "server_name": "financial_mcp_server" - }, - "x-example-summaries": [ - "McpServerToolResultStep" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "MCPServerToolResultStep", - "group": "interactions" + "mcp_server_tool_result": { + "summary": "McpServerToolResultStep", + "value": { + "name": "calculate_tax", + "type": "mcp_server_tool_result", + "call_id": "mcp_call_29012", + "result": { + "tax_due": 32400 + }, + "server_name": "financial_mcp_server" + } + } } ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-name-override": "MCPServerToolResultStep" + "x-speakeasy-model-namespace": "interactions" }, "MediaProcessing": { "oneOf": [ @@ -7856,931 +7234,282 @@ }, "x-speakeasy-model-namespace": "interactions" }, - "ModelInteraction": { - "description": "Interaction for generating the completion using models.", + "ModelOption": { + "title": "Model", + "description": "The model that will complete your prompt.\\n\\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details.", + "type": "string", + "enum": [ + "gemma-4-26b-a4b-it", + "gemma-4-31b-it", + "gemini-flash-latest", + "gemini-flash-lite-latest", + "gemini-pro-latest", + "gemini-2.5-flash", + "gemini-2.5-pro", + "gemini-2.5-flash-lite", + "gemini-3.5-flash-lite", + "gemini-2.5-flash-image", + "gemini-3-flash-preview", + "gemini-3.1-pro-preview", + "gemini-3.1-pro-preview-customtools", + "gemini-3.1-flash-lite", + "gemini-3.1-flash-lite-image", + "gemini-3-pro-image", + "nano-banana-pro-preview", + "gemini-3.1-flash-image", + "gemini-nano-banana-2.1", + "gemini-3.1-flash-tts-preview", + "gemini-3.5-flash", + "gemini-3.6-flash", + "gemini-3.7-flash", + "gemini-3.8-flash", + "gemini-3.8-flash-tts", + "gemini-3.8-flash-lite-tts", + "lyria-3-clip-preview", + "lyria-3-pro-preview", + "gemini-robotics-er-1.6-preview", + "gemini-robotics-er-2-preview", + "lyria-3.5", + "gemini-omni-1.1-flash", + "gemini-omni-flash-preview" + ], + "x-speakeasy-enum-descriptions": [ + "Gemma 4 26B A4B IT", + "Gemma 4 31B IT", + "Latest release of Gemini Flash", + "Latest release of Gemini Flash-Lite", + "Latest release of Gemini Pro", + "Our first hybrid reasoning model which supports a 1M token context window and has thinking budgets.", + "Our state-of-the-art multipurpose model, which excels at coding and complex reasoning tasks.", + "Our smallest and most cost effective model, built for at scale usage.", + "Gemini 3.5 Flash-Lite - Our fastest, most cost-effective 3.5 model for high-throughput execution.", + "Our native image generation model, optimized for speed, flexibility, and contextual understanding. Text input and output is priced the same as 2.5 Flash.", + "Our most intelligent model built for speed, combining frontier intelligence with superior search and grounding.", + "Our latest SOTA reasoning model with unprecedented depth and nuance, and powerful multimodal understanding and coding capabilities.", + "Gemini 3.1 Pro Preview optimized for custom tool usage", + "Our most cost-efficient model, optimized for high-volume agentic tasks, translation, and simple data processing.", + "Gemini 3.1 Flash Lite Image.", + "Gemini 3 Pro Image", + "Gemini 3 Pro Image Preview", + "Gemini 3.1 Flash Image.", + "Gemini Nano Banana 2.1.", + "Gemini 3.1 Flash TTS: Powerful, low-latency speech generation. Enjoy natural outputs, steerable prompts, and new expressive audio tags for precise narration control.", + "Gemini 3.5 Flash - Our earlier Flash model, built for speed and foundational performance across routine, high-throughput workloads.", + "Gemini 3.6 Flash - Our previous generation Flash model, balancing speed and multimodal capabilities across general agentic and everyday tasks.", + "Gemini 3.7 Flash - Our high-speed, efficient Flash model built for everyday coding, agentic tool use, and reliable multi-step execution.", + "Gemini 3.8 Flash - Our most intelligent Flash model, engineered for long-horizon software engineering, autonomous agents, and complex enterprise workflows.", + "Gemini 3.8 Flash TTS - Flagship TTS model for Voice Design and dual-speaker screenplay control. Prompt custom vocal personas, direct line-by-line delivery, and add vocal bursts.", + "Gemini 3.8 Flash Lite TTS - High-speed and cost-efficient, ideal for rapid dubbing, media localization, and high-throughput voice agents. Direct replacement for gemini-3.1-flash-tts-preview.", + "Our low-latency, music generation model optimized for high-fidelity audio clips and precise rhythmic control.", + "Our advanced, full-song generative model with deep compositional understanding, optimized for precise structural control and complex transitions across diverse musical styles.", + "Gemini Robotics-ER 1.6 Preview", + "Gemini Robotics Embodied Reasoning 2 Preview", + "Our flagship music generation model, optimized for full-length songs with complex structural coherence.", + "Our high-performance multimodal model designed for fast, conversational video generation, editing, and cinematic control.", + "Preview release of our multimodal model for conversational video generation, editing, and cinematic control." + ], + "x-speakeasy-enum-format": "union", + "x-speakeasy-exports": [ + { + "name": "model", + "group": "interactions" + }, + { + "name": "model_param", + "group": "interactions" + } + ], + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-name-override": "Model", + "x-speakeasy-unknown-values": "allow" + }, + "ModelOutputStep": { + "description": "Output generated by the model.", + "type": "object", + "properties": { + "type": { + "const": "model_output" + }, + "content": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Content" + } + } + }, + "required": [ + "type" + ], + "examples": [ + { + "model_output": { + "summary": "ModelOutputStep", + "value": { + "type": "model_output", + "content": [ + { + "type": "text", + "text": "The capital of France is Paris." + } + ] + } + } + } + ], + "x-speakeasy-model-namespace": "interactions" + }, + "OAuth2Config": { + "description": "Configuration for OAuth2 credentials with automatic token refresh.", "type": "object", "properties": { - "model": { - "description": "The name of the `Model` used for generating the interaction.", - "$ref": "#/components/schemas/ModelOption" + "client_id": { + "description": "Required. OAuth2 client ID.", + "type": "string" }, - "generation_config": { - "description": "Input only. Configuration parameters for the model interaction.", - "$ref": "#/components/schemas/GenerationConfig", + "client_secret": { + "description": "Required. Input only. OAuth2 client secret. Write-only; never returned in responses.", + "type": "string", "writeOnly": true }, - "input": { - "$ref": "#/components/schemas/InteractionsInput" + "refresh_token": { + "description": "Required. Input only. OAuth2 refresh token. Write-only; never returned in responses.", + "type": "string", + "writeOnly": true }, - "response_format": { - "description": "Enforces that the generated response is a JSON object that complies with\nthe JSON schema specified in this field.", - "oneOf": [ - { - "$ref": "#/components/schemas/ResponseFormat" - }, - { - "title": "ResponseFormatList", - "type": "array", - "items": { - "$ref": "#/components/schemas/ResponseFormat" - } - } - ] + "token_url": { + "description": "Required. OAuth2 token endpoint URL for refreshing access tokens.", + "type": "string" }, - "environment": { - "description": "The environment configuration for the interaction. Can be an object\nspecifying remote environment sources or a string referencing an existing\nenvironment ID.", - "oneOf": [ - { - "$ref": "#/components/schemas/EnvironmentConfig" - }, - { - "type": "string" - } - ] - }, - "id": { - "description": "Required. Output only. A unique identifier for the interaction completion.", - "type": "string", - "readOnly": true - }, - "status": { - "description": "Required. Output only. The status of the interaction.", - "type": "string", - "enum": [ - "in_progress", - "requires_action", - "completed", - "failed", - "cancelled", - "incomplete", - "budget_exceeded", - "queued" - ], - "readOnly": true, - "x-google-enum-deprecated": [ - false, - false, - false, - false, - false, - false, - true, - false - ], - "x-google-enum-descriptions": [ - "The interaction is in progress.", - "The interaction requires action/input from the user.", - "The interaction is completed.", - "The interaction failed.", - "The interaction was cancelled.", - "The interaction is completed, but contains incomplete results (e.g.\nhitting max_tokens).", - "Deprecated: Token and execution budget exhaustion returns INCOMPLETE\n(11).", - "The interaction is queued, waiting for processing (e.g. waiting for\noff-peak capacity)." - ] - }, - "created": { - "description": "Required. Output only. The time at which the response was created in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", - "type": "string", - "readOnly": true - }, - "updated": { - "description": "Required. Output only. The time at which the response was last updated in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", - "type": "string", - "readOnly": true - }, - "system_instruction": { - "description": "System instruction for the interaction.", - "type": "string" - }, - "tools": { - "description": "A list of tool declarations the model may call during interaction.", - "type": "array", - "items": { - "$ref": "#/components/schemas/Tool" - } - }, - "response_modalities": { - "description": "The requested modalities of the response (TEXT, IMAGE, AUDIO).", - "type": "array", - "deprecated": true, - "items": { - "$ref": "#/components/schemas/ResponseModality" - } - }, - "response_mime_type": { - "description": "The mime type of the response. This is required if response_format is set.", - "type": "string", - "deprecated": true - }, - "previous_interaction_id": { - "description": "The ID of the previous interaction, if any.", - "type": "string" - }, - "environment_id": { - "description": "Output only. The environment ID for the interaction. Only populated if environment\nconfig is set in the request.", - "type": "string", - "readOnly": true - }, - "service_tier": { - "description": "The service tier for the interaction.", - "$ref": "#/components/schemas/ServiceTier" - }, - "webhook_config": { - "description": "Optional. Webhook configuration for receiving notifications when the\ninteraction completes.", - "$ref": "#/components/schemas/WebhookConfig" - }, - "safety_settings": { - "description": "Safety settings for the interaction.", - "type": "array", - "items": { - "$ref": "#/components/schemas/SafetySetting" - } - }, - "labels": { - "description": "The labels with user-defined metadata for the request.\n\nLabel keys and values can be no longer than 63 characters\n(Unicode codepoints) and can only contain lowercase letters, numeric\ncharacters, underscores, and dashes. International characters are allowed.\nLabel values are optional. Label keys must start with a letter.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "stream": { - "description": "Input only. Whether the interaction will be streamed.", - "type": "boolean", - "writeOnly": true - }, - "store": { - "description": "Input only. Whether to store the response and request for later retrieval.", - "type": "boolean", - "writeOnly": true - }, - "background": { - "description": "Input only. Whether to run the model interaction in the background.", - "type": "boolean", - "writeOnly": true - }, - "cached_content": { - "description": "The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}", - "type": "string", - "deprecated": true - } - }, - "required": [ - "created", - "id", - "model", - "status", - "steps", - "updated" - ], - "x-speakeasy-exports": [ - { - "name": "CreateModelInteractionParamsNonStreaming", - "group": "interactions", - "representation": "input" - }, - { - "name": "CreateModelInteractionParamsStreaming", - "group": "interactions", - "representation": "input" - } - ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-name-override": "CreateModelInteraction" - }, - "ModelOption": { - "title": "Model", - "description": "The model that will complete your prompt.\\n\\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details.", - "type": "string", - "enum": [ - "gemma-4-26b-a4b-it", - "gemma-4-31b-it", - "gemini-flash-latest", - "gemini-flash-lite-latest", - "gemini-pro-latest", - "gemini-2.5-flash", - "gemini-2.5-pro", - "gemini-2.5-flash-lite", - "gemini-3.5-flash-lite", - "gemini-2.5-flash-image", - "gemini-3-flash-preview", - "gemini-3.1-pro-preview", - "gemini-3.1-pro-preview-customtools", - "gemini-3.1-flash-lite", - "gemini-3.1-flash-lite-image", - "gemini-3-pro-image", - "nano-banana-pro-preview", - "gemini-3.1-flash-image", - "gemini-nano-banana-2.1", - "gemini-3.1-flash-tts-preview", - "gemini-3.5-flash", - "gemini-3.6-flash", - "gemini-3.7-flash", - "gemini-3.8-flash", - "gemini-4-argon", - "gemini-3.8-flash-tts", - "gemini-3.8-flash-lite-tts", - "lyria-3-clip-preview", - "lyria-3-pro-preview", - "gemini-robotics-er-1.6-preview", - "gemini-robotics-er-2-preview", - "lyria-3.5", - "gemini-omni-1.1-flash", - "gemini-omni-flash-preview" - ], - "x-speakeasy-enum-descriptions": [ - "Gemma 4 26B A4B IT", - "Gemma 4 31B IT", - "Latest release of Gemini Flash", - "Latest release of Gemini Flash-Lite", - "Latest release of Gemini Pro", - "Our first hybrid reasoning model which supports a 1M token context window and has thinking budgets.", - "Our state-of-the-art multipurpose model, which excels at coding and complex reasoning tasks.", - "Our smallest and most cost effective model, built for at scale usage.", - "Gemini 3.5 Flash-Lite - Our fastest, most cost-effective 3.5 model for high-throughput execution.", - "Our native image generation model, optimized for speed, flexibility, and contextual understanding. Text input and output is priced the same as 2.5 Flash.", - "Our most intelligent model built for speed, combining frontier intelligence with superior search and grounding.", - "Our latest SOTA reasoning model with unprecedented depth and nuance, and powerful multimodal understanding and coding capabilities.", - "Gemini 3.1 Pro Preview optimized for custom tool usage", - "Our most cost-efficient model, optimized for high-volume agentic tasks, translation, and simple data processing.", - "Gemini 3.1 Flash Lite Image.", - "Gemini 3 Pro Image", - "Gemini 3 Pro Image Preview", - "Gemini 3.1 Flash Image.", - "Gemini Nano Banana 2.1.", - "Gemini 3.1 Flash TTS: Powerful, low-latency speech generation. Enjoy natural outputs, steerable prompts, and new expressive audio tags for precise narration control.", - "Gemini 3.5 Flash - Our earlier Flash model, built for speed and foundational performance across routine, high-throughput workloads.", - "Gemini 3.6 Flash - Our previous generation Flash model, balancing speed and multimodal capabilities across general agentic and everyday tasks.", - "Gemini 3.7 Flash - Our high-speed, efficient Flash model built for everyday coding, agentic tool use, and reliable multi-step execution.", - "Gemini 3.8 Flash - Our most intelligent Flash model, engineered for long-horizon software engineering, autonomous agents, and complex enterprise workflows.", - "Gemini 4 Argon - Our new frontier model, built to solve the hardest problems with depth and precision across real-world software engineering and knowledge work.", - "Gemini 3.8 Flash TTS - Flagship TTS model for Voice Design and dual-speaker screenplay control. Prompt custom vocal personas, direct line-by-line delivery, and add vocal bursts.", - "Gemini 3.8 Flash Lite TTS - High-speed and cost-efficient, ideal for rapid dubbing, media localization, and high-throughput voice agents. Direct replacement for gemini-3.1-flash-tts-preview.", - "Our low-latency, music generation model optimized for high-fidelity audio clips and precise rhythmic control.", - "Our advanced, full-song generative model with deep compositional understanding, optimized for precise structural control and complex transitions across diverse musical styles.", - "Gemini Robotics-ER 1.6 Preview", - "Gemini Robotics Embodied Reasoning 2 Preview", - "Our flagship music generation model, optimized for full-length songs with complex structural coherence.", - "Our high-performance multimodal model designed for fast, conversational video generation, editing, and cinematic control.", - "Preview release of our multimodal model for conversational video generation, editing, and cinematic control." - ], - "x-speakeasy-enum-format": "union", - "x-speakeasy-enum-groups": { - "gemini-2.5-flash": "Gemini", - "gemini-2.5-flash-image": "Image", - "gemini-2.5-flash-lite": "Gemini", - "gemini-2.5-pro": "Gemini", - "gemini-3-flash-preview": "Gemini", - "gemini-3-pro-image": "Image", - "gemini-3.1-flash-image": "Image", - "gemini-3.1-flash-lite": "Gemini", - "gemini-3.1-flash-lite-image": "Image", - "gemini-3.1-flash-tts-preview": "Speech", - "gemini-3.1-pro-preview": "Gemini", - "gemini-3.1-pro-preview-customtools": "Gemini", - "gemini-3.5-flash": "Gemini", - "gemini-3.5-flash-lite": "Gemini", - "gemini-3.6-flash": "Gemini", - "gemini-3.7-flash": "Gemini", - "gemini-3.8-flash": "Gemini", - "gemini-3.8-flash-lite-tts": "Speech", - "gemini-3.8-flash-tts": "Speech", - "gemini-4-argon": "Gemini", - "gemini-flash-latest": "Gemini", - "gemini-flash-lite-latest": "Gemini", - "gemini-nano-banana-2.1": "Image", - "gemini-omni-1.1-flash": "Video", - "gemini-omni-flash-preview": "Video", - "gemini-pro-latest": "Gemini", - "gemini-robotics-er-1.6-preview": "Robotics", - "gemini-robotics-er-2-preview": "Robotics", - "gemma-4-26b-a4b-it": "Gemma", - "gemma-4-31b-it": "Gemma", - "lyria-3-clip-preview": "Music", - "lyria-3-pro-preview": "Music", - "lyria-3.5": "Music", - "nano-banana-pro-preview": "Image" - }, - "x-speakeasy-exports": [ - { - "name": "Model", - "group": "interactions" - } - ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-name-override": "Model", - "x-speakeasy-unknown-values": "allow" - }, - "ModelOutputStep": { - "description": "Output generated by the model.", - "type": "object", - "properties": { - "type": { - "const": "model_output" - }, - "content": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Content" - } - }, - "error": { - "description": "The error result of the operation in case of failure or cancellation.", - "$ref": "#/components/schemas/Status", - "deprecated": true - } - }, - "required": [ - "type" - ], - "example": { - "type": "model_output", - "content": [ - { - "type": "text", - "text": "The capital of France is Paris." - } - ] - }, - "x-example-summaries": [ - "ModelOutputStep" - ], - "x-speakeasy-exports": [ - { - "name": "ModelOutputStep", - "group": "interactions" - } - ], - "x-speakeasy-model-namespace": "interactions" - }, - "OAuth2Config": { - "description": "Configuration for OAuth2 credentials with automatic token refresh.", - "type": "object", - "properties": { - "client_id": { - "description": "Required. OAuth2 client ID.", - "type": "string" - }, - "client_secret": { - "description": "Required. Input only. OAuth2 client secret. Write-only; never returned in responses.", - "type": "string", - "writeOnly": true, - "x-speakeasy-param-sensitive": true - }, - "refresh_token": { - "description": "Required. Input only. OAuth2 refresh token. Write-only; never returned in responses.", - "type": "string", - "writeOnly": true, - "x-speakeasy-param-sensitive": true - }, - "token_url": { - "description": "Required. OAuth2 token endpoint URL for refreshing access tokens.", - "type": "string" - }, - "id": { - "type": "string" - }, - "type": { - "const": "oauth2" - }, - "scopes": { - "description": "Optional. List of OAuth2 scopes.", - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "client_id", - "client_secret", - "id", - "refresh_token", - "token_url", - "type" - ], - "x-speakeasy-exports": [ - { - "name": "OAuth2Config", - "group": "credentials" - } - ], - "x-speakeasy-model-namespace": "credentials" - }, - "OAuth2UpdateConfig": { - "description": "Configuration for updating OAuth2 credentials.", - "type": "object", - "properties": { - "type": { - "const": "oauth2" - }, - "client_id": { - "description": "Optional. OAuth2 client ID.", - "type": "string" - }, - "client_secret": { - "description": "Optional. Input only. OAuth2 client secret. Write-only; never returned in responses.", - "type": "string", - "writeOnly": true, - "x-speakeasy-param-sensitive": true - }, - "refresh_token": { - "description": "Optional. Input only. OAuth2 refresh token. Write-only; never returned in responses.", - "type": "string", - "writeOnly": true, - "x-speakeasy-param-sensitive": true - }, - "token_url": { - "description": "Optional. OAuth2 token endpoint URL for refreshing access tokens.", - "type": "string" - }, - "scopes": { - "description": "Optional. List of OAuth2 scopes.", - "type": "array", - "items": { - "type": "string" - } - } - }, - "required": [ - "type" - ], - "x-speakeasy-exports": [ - { - "name": "OAuth2UpdateConfig", - "group": "credentials" - } - ], - "x-speakeasy-model-namespace": "credentials" - }, - "ParallelAISearchConfig": { - "description": "Used to specify configuration for ParallelAISearch.", - "type": "object", - "properties": { - "api_key": { - "description": "Optional. The API key for ParallelAiSearch.", - "type": "string", - "x-speakeasy-param-sensitive": true - }, - "custom_config": { - "description": "Optional. Custom configs for ParallelAiSearch.", - "type": "object", - "additionalProperties": { - "description": "Properties of the object." - } - } - }, - "x-speakeasy-model-namespace": "interactions" - }, - "PingWebhookRequest": { - "description": "Request message for WebhookService.PingWebhook.", - "type": "object", - "properties": {}, - "x-speakeasy-exports": [ - { - "name": "WebhookPingParams", - "group": "webhooks", - "representation": "input" - } - ], - "x-speakeasy-model-namespace": "webhooks" - }, - "PingWebhookResponse": { - "description": "Response message for WebhookService.PingWebhook.", - "type": "object", - "x-speakeasy-exports": [ - { - "name": "WebhookPingResponse", - "group": "webhooks" - } - ], - "x-speakeasy-model-namespace": "webhooks", - "x-speakeasy-name-override": "WebhookPingResponse" - }, - "Pitch": { - "type": "string", - "enum": [ - "low", - "medium", - "high" - ], - "x-google-enum-descriptions": [ - "Lower pitch voice.", - "Medium pitch voice.", - "Higher pitch voice." - ], - "x-speakeasy-exports": [ - { - "name": "Pitch", - "group": "voices" - } - ], - "x-speakeasy-model-namespace": "voices" - }, - "PlaceCitation": { - "description": "A place citation annotation.", - "type": "object", - "properties": { - "type": { - "const": "place_citation" - }, - "place_id": { - "description": "The ID of the place, in `places/{place_id}` format.", - "type": "string" - }, - "name": { - "description": "Title of the place.", - "type": "string" - }, - "url": { - "description": "URI reference of the place.", - "type": "string" - }, - "review_snippets": { - "description": "Snippets of reviews that are used to generate answers about the\nfeatures of a given place in Google Maps.", - "type": "array", - "items": { - "$ref": "#/components/schemas/ReviewSnippet" - } - }, - "start_index": { - "description": "Start of segment of the response that is attributed to this source.\n\nIndex indicates the start of the segment, measured in bytes.", - "type": "integer", - "format": "int32" - }, - "end_index": { - "description": "End of the attributed segment, exclusive.", - "type": "integer", - "format": "int32" - } - }, - "required": [ - "type" - ], - "x-speakeasy-exports": [ - { - "name": "PlaceCitation", - "group": "interactions" - } - ], - "x-speakeasy-model-namespace": "interactions" - }, - "Places": { - "type": "object", - "properties": { - "place_id": { - "description": "The ID of the place, in `places/{place_id}` format.", - "type": "string" - }, - "name": { - "description": "Title of the place.", + "id": { "type": "string" }, - "url": { - "description": "URI reference of the place.", - "type": "string" + "type": { + "const": "oauth2" }, - "review_snippets": { - "description": "Snippets of reviews that are used to generate answers about the\nfeatures of a given place in Google Maps.", + "scopes": { + "description": "Optional. List of OAuth2 scopes.", "type": "array", "items": { - "$ref": "#/components/schemas/ReviewSnippet" + "type": "string" } } }, - "x-speakeasy-model-namespace": "interactions" - }, - "ProcessingCallDelta": { - "description": "Streaming delta for a server-initiated media processing step.", - "type": "object", - "properties": { - "type": { - "const": "processing_call" - }, - "signature": { - "description": "A signature hash for backend validation.", - "type": "string", - "format": "byte", - "x-speakeasy-base64-input-mode": "file" - } - }, - "required": [ - "type" - ], - "x-speakeasy-model-namespace": "interactions" - }, - "ProcessingCallStep": { - "description": "A server-initiated processing step for media analysis (e.g. video\nunderstanding).", - "type": "object", - "properties": { - "id": { - "description": "Required. A unique ID for this specific tool call.", - "type": "string" - }, - "type": { - "const": "processing_call" - }, - "signature": { - "description": "A signature hash for backend validation.", - "type": "string", - "format": "byte", - "x-speakeasy-base64-input-mode": "file" - } - }, "required": [ + "client_id", + "client_secret", "id", + "refresh_token", + "token_url", "type" ], - "x-speakeasy-exports": [ - { - "name": "ProcessingCallStep", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, - "ProcessingResultDelta": { - "description": "Streaming delta for the result of a server-initiated media processing step.", + "OAuth2UpdateConfig": { + "description": "Configuration for updating OAuth2 credentials.", "type": "object", "properties": { "type": { - "const": "processing_result" + "const": "oauth2" }, - "signature": { - "description": "A signature hash for backend validation.", - "type": "string", - "format": "byte", - "x-speakeasy-base64-input-mode": "file" - } - }, - "required": [ - "type" - ], - "x-speakeasy-model-namespace": "interactions" - }, - "ProcessingResultStep": { - "description": "The result of a server-initiated media processing step.", - "type": "object", - "properties": { - "call_id": { - "description": "Required. ID to match the ID from the function call block.", + "client_id": { + "description": "Optional. OAuth2 client ID.", "type": "string" }, - "type": { - "const": "processing_result" + "client_secret": { + "description": "Optional. Input only. OAuth2 client secret. Write-only; never returned in responses.", + "type": "string", + "writeOnly": true }, - "signature": { - "description": "A signature hash for backend validation.", + "refresh_token": { + "description": "Optional. Input only. OAuth2 refresh token. Write-only; never returned in responses.", "type": "string", - "format": "byte", - "x-speakeasy-base64-input-mode": "file" - } - }, - "required": [ - "call_id", - "type" - ], - "x-speakeasy-exports": [ - { - "name": "ProcessingResultStep", - "group": "interactions" - } - ], - "x-speakeasy-model-namespace": "interactions" - }, - "PromptedVoice": { - "description": "Parameters for prompted voice generation.\nRequired in `CreateVoice` when `type` is `\"prompted\"`. Returned in\n`CreateVoice`, `GetVoice`, and `ListVoices` responses for prompted voices.", - "type": "object", - "properties": { - "input": { - "description": "Required. The natural-language prompt describing the desired voice, e.g.\n\"A deep, booming male voice of a massive evil ogre in his middle years.\"", - "type": "string" + "writeOnly": true }, - "base_voice": { - "description": "Optional. The name or ID of an existing base voice to edit or remix.\nUse the voice name for prebuilt voices (e.g., `Puck`) or the voice ID for\npreviously created voices (e.g., `voice_abc123`). This can be any\nprompted or replicated voice that the user has access to.\nWhen present, `input` describes relative alterations to make to the base\nvoice.", - "type": "string" - } - }, - "required": [ - "input" - ], - "x-speakeasy-exports": [ - { - "name": "PromptedVoice", - "group": "voices" - } - ], - "x-speakeasy-model-namespace": "voices" - }, - "RagResource": { - "description": "The definition of the Rag resource.", - "type": "object", - "properties": { - "rag_corpus": { - "description": "Optional. RagCorpora resource name.", + "token_url": { + "description": "Optional. OAuth2 token endpoint URL for refreshing access tokens.", "type": "string" }, - "rag_file_ids": { - "description": "Optional. rag_file_id. The files should be in the same rag_corpus set in\nrag_corpus field.", + "scopes": { + "description": "Optional. List of OAuth2 scopes.", "type": "array", "items": { "type": "string" } } }, + "required": [ + "type" + ], "x-speakeasy-model-namespace": "interactions" }, - "RagRetrievalConfig": { - "description": "Specifies the context retrieval config.", - "type": "object", - "properties": { - "top_k": { - "description": "Optional. The number of contexts to retrieve.", - "type": "integer", - "format": "int32" - }, - "hybrid_search": { - "description": "Optional. Config for Hybrid Search.", - "$ref": "#/components/schemas/HybridSearch" - }, - "filter": { - "description": "Optional. Config for filters.", - "$ref": "#/components/schemas/Filter" - }, - "ranking": { - "description": "Optional. Config for ranking and reranking.", - "$ref": "#/components/schemas/Ranking" - } - }, - "x-speakeasy-model-namespace": "interactions" - }, - "RagStoreConfig": { - "description": "Use to specify configuration for RAG Store.", - "type": "object", - "properties": { - "rag_resources": { - "description": "Optional. The representation of the rag source.", - "type": "array", - "items": { - "$ref": "#/components/schemas/RagResource" - } - }, - "similarity_top_k": { - "description": "Optional. Number of top k results to return from the selected corpora.", - "type": "integer", - "deprecated": true, - "format": "int32" - }, - "vector_distance_threshold": { - "description": "Optional. Only return results with vector distance smaller than the threshold.", - "type": "number", - "deprecated": true, - "format": "double" - }, - "rag_retrieval_config": { - "description": "Optional. The retrieval config for the Rag query.", - "$ref": "#/components/schemas/RagRetrievalConfig" - } - }, - "x-speakeasy-model-namespace": "interactions" - }, - "RankService": { - "description": "Config for Rank Service.", - "type": "object", - "properties": { - "model_name": { - "description": "Optional. The model name of the rank service.", - "type": "string" - } - }, - "x-speakeasy-model-namespace": "interactions" - }, - "Ranking": { - "description": "Config for ranking and reranking.", + "PingWebhookRequest": { + "description": "Request message for WebhookService.PingWebhook.", "type": "object", "properties": { - "ranking_config": { - "const": "rank_service" - }, - "rank_service": { - "description": "Config for Rank Service.", - "$ref": "#/components/schemas/RankService" - }, - "model_name": { - "description": "Optional. The model name of the rank service.", + "id": { + "description": "Required. The ID of the webhook to ping.\nFormat: `{webhook_id}`", "type": "string" } }, "required": [ - "ranking_config" + "id" ], "x-speakeasy-model-namespace": "interactions" }, - "ReplicatedVoice": { - "description": "Input only. Parameters for replicated voice generation.\nRequired on input when `type` is `\"replicated\"`. Not returned in\nresponses.", + "PingWebhookResponse": { + "description": "Response message for WebhookService.PingWebhook.", "type": "object", - "properties": { - "source_audio": { - "description": "Required. The reference audio sample of the speaker's voice to replicate.\nMust be an unmodified recording of an adult human voice.", - "$ref": "#/components/schemas/AudioData" - }, - "consent_audio": { - "description": "Required. Audio recording of the same speaker reading the required\nconsent phrase, confirming authorization to replicate the voice.", - "$ref": "#/components/schemas/AudioData" - } - }, - "required": [ - "consent_audio", - "source_audio" - ], - "writeOnly": true, - "x-speakeasy-exports": [ - { - "name": "ReplicatedVoice", - "group": "voices" - } - ], - "x-speakeasy-model-namespace": "voices" - }, - "ResponseFormat": { - "oneOf": [ - { - "$ref": "#/components/schemas/AudioResponseFormat" - }, - { - "$ref": "#/components/schemas/ImageResponseFormat" - }, - { - "$ref": "#/components/schemas/TextResponseFormat" - }, - { - "$ref": "#/components/schemas/VideoResponseFormat" - }, - { - "type": "object", - "additionalProperties": true - } - ], "x-speakeasy-model-namespace": "interactions" }, - "ResponseModality": { + "Pitch": { "type": "string", "enum": [ - "text", - "image", - "audio", - "video", - "document" + "low", + "medium", + "high" ], "x-google-enum-descriptions": [ - "Indicates the model should return text.", - "Indicates the model should return images.", - "Indicates the model should return audio.", - "Indicates the model should return video.", - "Indicates the model should return documents." + "Lower pitch voice.", + "Medium pitch voice.", + "Higher pitch voice." ], "x-speakeasy-model-namespace": "interactions" }, - "Retrieval": { - "description": "A tool that can be used by the model to retrieve files.", + "PlaceCitation": { + "description": "A place citation annotation.", "type": "object", "properties": { "type": { - "const": "retrieval" + "const": "place_citation" + }, + "place_id": { + "description": "The ID of the place, in `places/{place_id}` format.", + "type": "string" + }, + "name": { + "description": "Title of the place.", + "type": "string" + }, + "url": { + "description": "URI reference of the place.", + "type": "string" }, - "retrieval_types": { - "description": "The types of file retrieval to enable.", + "review_snippets": { + "description": "Snippets of reviews that are used to generate answers about the\nfeatures of a given place in Google Maps.", "type": "array", "items": { - "type": "string", - "enum": [ - "vertex_ai_search", - "rag_store", - "exa_ai_search", - "parallel_ai_search" - ], - "x-google-enum-descriptions": [ - "", - "", - "", - "" - ] + "$ref": "#/components/schemas/ReviewSnippet" } }, - "vertex_ai_search_config": { - "description": "Used to specify configuration for VertexAISearch.", - "$ref": "#/components/schemas/VertexAISearchConfig" - }, - "exa_ai_search_config": { - "description": "Used to specify configuration for ExaAISearch.", - "$ref": "#/components/schemas/ExaAISearchConfig" - }, - "parallel_ai_search_config": { - "description": "Used to specify configuration for ParallelAISearch.", - "$ref": "#/components/schemas/ParallelAISearchConfig" + "start_index": { + "description": "Start of segment of the response that is attributed to this source.\n\nIndex indicates the start of the segment, measured in bytes.", + "type": "integer", + "format": "int32" }, - "rag_store_config": { - "description": "Used to specify configuration for RagStore.", - "$ref": "#/components/schemas/RagStoreConfig" + "end_index": { + "description": "End of the attributed segment, exclusive.", + "type": "integer", + "format": "int32" } }, "required": [ @@ -8788,32 +7517,37 @@ ], "x-speakeasy-model-namespace": "interactions" }, - "RetrievalCallDelta": { - "description": "Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,\netc. RetrievalType decides which tool is used.", + "Places": { "type": "object", "properties": { - "arguments": { - "description": "Required. The arguments to pass to the Retrieval tool.", - "$ref": "#/components/schemas/RetrievalStepArguments" + "place_id": { + "description": "The ID of the place, in `places/{place_id}` format.", + "type": "string" }, - "type": { - "const": "retrieval_call" + "name": { + "description": "Title of the place.", + "type": "string" }, - "retrieval_type": { - "description": "The type of retrieval tools.", - "type": "string", - "enum": [ - "vertex_ai_search", - "rag_store", - "exa_ai_search", - "parallel_ai_search" - ], - "x-google-enum-descriptions": [ - "", - "", - "", - "" - ] + "url": { + "description": "URI reference of the place.", + "type": "string" + }, + "review_snippets": { + "description": "Snippets of reviews that are used to generate answers about the\nfeatures of a given place in Google Maps.", + "type": "array", + "items": { + "$ref": "#/components/schemas/ReviewSnippet" + } + } + }, + "x-speakeasy-model-namespace": "interactions" + }, + "ProcessingCallDelta": { + "description": "Streaming delta for a server-initiated media processing step.", + "type": "object", + "properties": { + "type": { + "const": "processing_call" }, "signature": { "description": "A signature hash for backend validation.", @@ -8823,47 +7557,20 @@ } }, "required": [ - "arguments", "type" ], - "x-speakeasy-exports": [ - { - "name": "RetrievalCallDelta", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, - "RetrievalCallStep": { - "description": "Retrieval call step.\nUsed by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,\netc. RetrievalType decides which tool is used.", + "ProcessingCallStep": { + "description": "A server-initiated processing step for media analysis (e.g. video\nunderstanding).", "type": "object", "properties": { - "arguments": { - "description": "Required. The arguments to pass to the retrieval tool.", - "$ref": "#/components/schemas/RetrievalStepArguments" - }, "id": { "description": "Required. A unique ID for this specific tool call.", "type": "string" }, "type": { - "const": "retrieval_call" - }, - "retrieval_type": { - "description": "The type of retrieval tools.", - "type": "string", - "enum": [ - "vertex_ai_search", - "rag_store", - "exa_ai_search", - "parallel_ai_search" - ], - "x-google-enum-descriptions": [ - "", - "", - "", - "" - ] + "const": "processing_call" }, "signature": { "description": "A signature hash for backend validation.", @@ -8873,28 +7580,17 @@ } }, "required": [ - "arguments", "id", "type" ], - "x-speakeasy-exports": [ - { - "name": "RetrievalCallStep", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, - "RetrievalResultDelta": { - "description": "Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,\netc.\nToolResultDelta.type", + "ProcessingResultDelta": { + "description": "Streaming delta for the result of a server-initiated media processing step.", "type": "object", "properties": { "type": { - "const": "retrieval_result" - }, - "is_error": { - "description": "Whether the retrieval resulted in an error.", - "type": "boolean" + "const": "processing_result" }, "signature": { "description": "A signature hash for backend validation.", @@ -8906,16 +7602,10 @@ "required": [ "type" ], - "x-speakeasy-exports": [ - { - "name": "RetrievalResultDelta", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, - "RetrievalResultStep": { - "description": "Vertex Retrieval result step.\nUsed by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,\netc.", + "ProcessingResultStep": { + "description": "The result of a server-initiated media processing step.", "type": "object", "properties": { "call_id": { @@ -8923,11 +7613,7 @@ "type": "string" }, "type": { - "const": "retrieval_result" - }, - "is_error": { - "description": "Whether the retrieval resulted in an error.", - "type": "boolean" + "const": "processing_result" }, "signature": { "description": "A signature hash for backend validation.", @@ -8940,34 +7626,84 @@ "call_id", "type" ], - "x-speakeasy-exports": [ - { - "name": "RetrievalResultStep", - "group": "interactions" + "x-speakeasy-model-namespace": "interactions" + }, + "PromptedVoice": { + "description": "Parameters for prompted voice generation.\nRequired in `CreateVoice` when `type` is `\"prompted\"`. Returned in\n`CreateVoice`, `GetVoice`, and `ListVoices` responses for prompted voices.", + "type": "object", + "properties": { + "input": { + "description": "Required. The natural-language prompt describing the desired voice, e.g.\n\"A deep, booming male voice of a massive evil ogre in his middle years.\"", + "type": "string" + }, + "base_voice": { + "description": "Optional. The name or ID of an existing base voice to edit or remix.\nUse the voice name for prebuilt voices (e.g., `Puck`) or the voice ID for\npreviously created voices (e.g., `voice_abc123`). This can be any\nprompted or replicated voice that the user has access to.\nWhen present, `input` describes relative alterations to make to the base\nvoice.", + "type": "string" } + }, + "required": [ + "input" ], "x-speakeasy-model-namespace": "interactions" }, - "RetrievalStepArguments": { - "description": "The arguments to pass to Retrieval tools.", + "ReplicatedVoice": { + "description": "Input only. Parameters for replicated voice generation.\nRequired on input when `type` is `\"replicated\"`. Not returned in\nresponses.", "type": "object", "properties": { - "queries": { - "description": "Queries for Retrieval information.", - "type": "array", - "items": { - "type": "string" - } + "source_audio": { + "description": "Required. The reference audio sample of the speaker's voice to replicate.\nMust be an unmodified recording of an adult human voice.", + "$ref": "#/components/schemas/AudioData" + }, + "consent_audio": { + "description": "Required. Audio recording of the same speaker reading the required\nconsent phrase, confirming authorization to replicate the voice.", + "$ref": "#/components/schemas/AudioData" } }, - "x-speakeasy-exports": [ + "required": [ + "consent_audio", + "source_audio" + ], + "x-speakeasy-model-namespace": "interactions" + }, + "ResponseFormat": { + "type": "object", + "oneOf": [ { - "name": "RetrievalCallArguments", - "group": "interactions" + "$ref": "#/components/schemas/AudioResponseFormat" + }, + { + "$ref": "#/components/schemas/ImageResponseFormat" + }, + { + "$ref": "#/components/schemas/TextResponseFormat" + }, + { + "$ref": "#/components/schemas/VideoResponseFormat" + }, + { + "type": "object", + "additionalProperties": true } ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-name-override": "RetrievalCallArguments" + "x-speakeasy-model-namespace": "interactions" + }, + "ResponseModality": { + "type": "string", + "enum": [ + "text", + "image", + "audio", + "video", + "document" + ], + "x-google-enum-descriptions": [ + "Indicates the model should return text.", + "Indicates the model should return images.", + "Indicates the model should return audio.", + "Indicates the model should return video.", + "Indicates the model should return documents." + ], + "x-speakeasy-model-namespace": "interactions" }, "ReviewSnippet": { "description": "Encapsulates a snippet of a user review that answers a question about\nthe features of a specific place in Google Maps.", @@ -8992,6 +7728,10 @@ "description": "Request message for WebhookService.RotateSigningSecret.", "type": "object", "properties": { + "id": { + "description": "Required. The ID of the webhook for which to generate a signing secret.\nFormat: `{webhook_id}`", + "type": "string" + }, "revocation_behavior": { "description": "Optional. The revocation behavior for previous signing secrets.", "type": "string", @@ -9005,14 +7745,10 @@ ] } }, - "x-speakeasy-exports": [ - { - "name": "WebhookRotateSigningSecretParams", - "group": "webhooks", - "representation": "input" - } + "required": [ + "id" ], - "x-speakeasy-model-namespace": "webhooks" + "x-speakeasy-model-namespace": "interactions" }, "RotateSigningSecretResponse": { "description": "Response message for WebhookService.RotateSigningSecret.", @@ -9021,18 +7757,10 @@ "secret": { "description": "Output only. The newly generated signing secret.", "type": "string", - "readOnly": true, - "x-speakeasy-param-sensitive": true + "readOnly": true } }, - "x-speakeasy-exports": [ - { - "name": "WebhookRotateSigningSecretResponse", - "group": "webhooks" - } - ], - "x-speakeasy-model-namespace": "webhooks", - "x-speakeasy-name-override": "WebhookRotateSigningSecretResponse" + "x-speakeasy-model-namespace": "interactions" }, "RunTriggerRequest": { "description": "Request message for TriggerService.RunTrigger.", @@ -9063,14 +7791,12 @@ "block_low_and_above", "block_medium_and_above", "block_only_high", - "block_none", "off" ], "x-google-enum-descriptions": [ "Block content with a low harm probability or higher.", "Block content with a medium harm probability or higher.", "Block content with a high harm probability.", - "Do not block any content, regardless of its harm probability.", "Turn off the safety filter entirely." ] }, @@ -9091,12 +7817,6 @@ "threshold", "type" ], - "x-speakeasy-exports": [ - { - "name": "SafetySetting", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "ServiceTier": { @@ -9104,29 +7824,15 @@ "enum": [ "flex", "standard", - "priority", - "deferred" + "priority" ], "x-google-enum-descriptions": [ "Flex service tier.", "Standard service tier.", - "Priority service tier.", - "Deferred service tier." + "Priority service tier." ], "x-speakeasy-model-namespace": "interactions" }, - "SessionConfig": { - "description": "The configuration of CodeMender sessions.", - "type": "object", - "properties": { - "max_rounds": { - "description": "The maximum number of interaction rounds the agent is allowed to perform\nbefore reaching a timeout.", - "type": "integer", - "format": "int32" - } - }, - "x-speakeasy-model-namespace": "interactions" - }, "SigningSecret": { "description": "Represents a signing secret used to verify webhook payloads.", "type": "object", @@ -9143,13 +7849,7 @@ "readOnly": true } }, - "x-speakeasy-exports": [ - { - "name": "SigningSecret", - "group": "webhooks" - } - ], - "x-speakeasy-model-namespace": "webhooks" + "x-speakeasy-model-namespace": "interactions" }, "SmartTranscriptionMode": { "description": "Configuration for smart transcription mode.", @@ -9173,14 +7873,12 @@ "enum": [ "gcs", "inline", - "repository", - "skill_registry" + "repository" ], "x-google-enum-descriptions": [ "A Cloud Storage bucket.", "Inline content.", - "A generic repository. The protocol prefix in the source URL\nidentifies the provider (e.g., github://, gcs://).", - "A skill resource from the Skill Registry Service.\nSkill: projects/{project}/locations/{location}/skills/{skill}\nSkillRevision:\nprojects/{project}/locations/{location}/skills/{skill}/revisions/{revision}\nSupport mounting all skills under a project:\nprojects/{project}/locations/{location}/skills." + "A generic repository. The protocol prefix in the source URL\nidentifies the provider (e.g., github://, gcs://)." ] }, "source": { @@ -9264,12 +7962,6 @@ "type": "string" } }, - "x-speakeasy-exports": [ - { - "name": "SpeechConfig", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "StaticMediaProcessing": { @@ -9283,50 +7975,25 @@ "type": "string", "format": "google-duration" }, - "end_offset": { - "description": "Optional. Segment end time. Specified as a decimal number of seconds followed\nby an 's' suffix, e.g., \"30s\". Must be non-negative and greater than\n`start_offset` if `start_offset` is set.", - "type": "string", - "format": "google-duration" - }, - "fps": { - "description": "Optional. Video frame-rate sampling density.", - "type": "number", - "format": "double" - } - }, - "required": [ - "type" - ], - "x-speakeasy-model-namespace": "interactions" - }, - "Status": { - "description": "The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).", - "type": "object", - "properties": { - "code": { - "description": "The status code, which should be an enum value of google.rpc.Code.", - "type": "integer", - "format": "int32" - }, - "message": { - "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.", - "type": "string" - }, - "details": { - "description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." - } - } + "end_offset": { + "description": "Optional. Segment end time. Specified as a decimal number of seconds followed\nby an 's' suffix, e.g., \"30s\". Must be non-negative and greater than\n`start_offset` if `start_offset` is set.", + "type": "string", + "format": "google-duration" + }, + "fps": { + "description": "Optional. Video frame-rate sampling density.", + "type": "number", + "format": "double" } }, + "required": [ + "type" + ], "x-speakeasy-model-namespace": "interactions" }, "Step": { "description": "A step in the interaction.", + "type": "object", "oneOf": [ { "$ref": "#/components/schemas/CodeExecutionCallStep" @@ -9373,12 +8040,6 @@ { "$ref": "#/components/schemas/ProcessingResultStep" }, - { - "$ref": "#/components/schemas/RetrievalCallStep" - }, - { - "$ref": "#/components/schemas/RetrievalResultStep" - }, { "$ref": "#/components/schemas/ThoughtStep" }, @@ -9392,12 +8053,6 @@ "$ref": "#/components/schemas/UserInputStep" } ], - "x-speakeasy-exports": [ - { - "name": "Step", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "StepDelta": { @@ -9426,26 +8081,25 @@ "event_type", "index" ], - "example": { - "delta": { - "type": "text", - "text": "Hello" - }, - "event_type": "step.delta", - "index": 0 - }, - "x-example-summaries": [ - "Step Delta" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "StepDelta", - "group": "interactions" + "step_delta": { + "summary": "Step Delta", + "value": { + "delta": { + "type": "text", + "text": "Hello" + }, + "event_type": "step.delta", + "index": 0 + } + } } ], "x-speakeasy-model-namespace": "interactions" }, "StepDeltaData": { + "type": "object", "oneOf": [ { "$ref": "#/components/schemas/ArgumentsDelta" @@ -9498,12 +8152,6 @@ { "$ref": "#/components/schemas/ProcessingResultDelta" }, - { - "$ref": "#/components/schemas/RetrievalCallDelta" - }, - { - "$ref": "#/components/schemas/RetrievalResultDelta" - }, { "$ref": "#/components/schemas/TextAnnotationDelta" }, @@ -9562,20 +8210,18 @@ "index", "step" ], - "example": { - "event_type": "step.start", - "index": 0, - "step": { - "type": "model_output" - } - }, - "x-example-summaries": [ - "Step Start" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "StepStart", - "group": "interactions" + "step_start": { + "summary": "Step Start", + "value": { + "event_type": "step.start", + "index": 0, + "step": { + "type": "model_output" + } + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -9607,17 +8253,15 @@ "event_type", "index" ], - "example": { - "event_type": "step.stop", - "index": 0 - }, - "x-example-summaries": [ - "Step Stop" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "StepStop", - "group": "interactions" + "step_stop": { + "summary": "Step Stop", + "value": { + "event_type": "step.stop", + "index": 0 + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -9664,17 +8308,15 @@ "text", "type" ], - "example": { - "type": "text", - "text": "Hello, how are you?" - }, - "x-example-summaries": [ - "Text" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "TextContent", - "group": "interactions" + "text": { + "summary": "Text", + "value": { + "type": "text", + "text": "Hello, how are you?" + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -9725,35 +8367,33 @@ "required": [ "type" ], - "example": { - "type": "text", - "mime_type": "application/json", - "schema": { - "type": "object", - "properties": { - "ingredients": { - "type": "array", - "items": { - "type": "string" + "examples": [ + { + "text_response_format": { + "summary": "Text Output (JSON Schema)", + "value": { + "type": "text", + "mime_type": "application/json", + "schema": { + "type": "object", + "properties": { + "ingredients": { + "type": "array", + "items": { + "type": "string" + } + }, + "recipe_name": { + "type": "string" + } + }, + "required": [ + "ingredients", + "recipe_name" + ] } - }, - "recipe_name": { - "type": "string" } - }, - "required": [ - "ingredients", - "recipe_name" - ] - } - }, - "x-example-summaries": [ - "Text Output (JSON Schema)" - ], - "x-speakeasy-exports": [ - { - "name": "TextResponseFormat", - "group": "interactions" + } } ], "x-speakeasy-model-namespace": "interactions" @@ -9772,12 +8412,6 @@ "Medium thinking level.", "High thinking level." ], - "x-speakeasy-exports": [ - { - "name": "ThinkingLevel", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "ThinkingSummaries": { @@ -9792,18 +8426,6 @@ ], "x-speakeasy-model-namespace": "interactions" }, - "ThoughtContent": { - "oneOf": [ - { - "$ref": "#/components/schemas/ImageContent" - }, - { - "$ref": "#/components/schemas/TextContent" - } - ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-name-override": "ThoughtSummaryContent" - }, "ThoughtSignatureDelta": { "type": "object", "properties": { @@ -9839,30 +8461,40 @@ "description": "A summary of the thought.", "type": "array", "items": { - "$ref": "#/components/schemas/ThoughtContent" + "$ref": "#/components/schemas/Content" } } }, "required": [ "type" ], - "example": { - "type": "thought", - "signature": "thought_sig_abcd1234", - "summary": [ - { - "type": "text", - "text": "The model is searching Google for the capital of France." + "examples": [ + { + "thought": { + "summary": "ThoughtStep", + "value": { + "type": "thought", + "signature": "thought_sig_abcd1234", + "summary": [ + { + "type": "text", + "text": "The model is searching Google for the capital of France." + } + ] + } } - ] - }, - "x-example-summaries": [ - "ThoughtStep" + } ], - "x-speakeasy-exports": [ + "x-speakeasy-model-namespace": "interactions" + }, + "ThoughtSummaryContent": { + "type": "object", + "oneOf": [ { - "name": "ThoughtStep", - "group": "interactions" + "$ref": "#/components/schemas/ImageContent" + }, + { + "$ref": "#/components/schemas/TextContent" } ], "x-speakeasy-model-namespace": "interactions" @@ -9885,6 +8517,7 @@ }, "Tool": { "description": "A tool that can be used by the model.", + "type": "object", "oneOf": [ { "$ref": "#/components/schemas/CodeExecution" @@ -9907,19 +8540,10 @@ { "$ref": "#/components/schemas/McpServer" }, - { - "$ref": "#/components/schemas/Retrieval" - }, { "$ref": "#/components/schemas/UrlContext" } ], - "x-speakeasy-exports": [ - { - "name": "Tool", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "ToolChoiceConfig": { @@ -9939,23 +8563,27 @@ ] } }, - "x-example-summaries": [ - "Allowed Tools" - ], - "x-speakeasy-exports": [ - { - "name": "ToolChoiceConfig", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "TranscriptionConfig": { "description": "Configuration for speech recognition (transcription).", "type": "object", "properties": { + "language_codes": { + "description": "Optional. BCP-47 language codes providing hints about the languages present in the\naudio. If omitted or empty, defaults to automatic language detection.", + "type": "array", + "items": { + "type": "string" + } + }, + "custom_vocabulary": { + "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model\ntoward recognizing specific terms.", + "type": "array", + "items": { + "type": "string" + } + }, "mode": { - "title": "TranscriptionConfigMode", "description": "Discriminated transcription mode options or enum.", "oneOf": [ { @@ -9974,20 +8602,6 @@ } ] }, - "language_codes": { - "description": "Optional. BCP-47 language codes providing hints about the languages present in the\naudio. If omitted or empty, defaults to automatic language detection.", - "type": "array", - "items": { - "type": "string" - } - }, - "custom_vocabulary": { - "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model\ntoward recognizing specific terms.", - "type": "array", - "items": { - "type": "string" - } - }, "timestamp_granularities": { "description": "Optional. The granularity of timestamps to include in the transcription output.\nSupported values: \"word\". If empty, no timestamps are generated.", "type": "array", @@ -10008,22 +8622,8 @@ "items": { "type": "string" } - }, - "language_hints": { - "description": "Deprecated: use language_codes. BCP-47 language codes providing hints about the languages present in the audio.", - "type": "array", - "deprecated": true, - "items": { - "type": "string" - } } }, - "x-speakeasy-exports": [ - { - "name": "TranscriptionConfig", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "TranscriptionMode": { @@ -10036,24 +8636,12 @@ "$ref": "#/components/schemas/VerbatimTranscriptionMode" } ], - "x-speakeasy-exports": [ - { - "name": "TranscriptionMode", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "Trigger": { "description": "A trigger configuration that is scheduled to run an agent.", "type": "object", "properties": { - "id": { - "description": "Required. Output only. Identifier. The ID of the trigger.", - "type": "string", - "readOnly": true, - "x-google-identifier": true - }, "schedule": { "description": "Required. The cron schedule on which the trigger should run.\nStandard cron format.", "type": "string" @@ -10064,7 +8652,13 @@ }, "interaction": { "description": "Required. The interaction request template to be executed.", - "$ref": "#/components/schemas/AgentInteraction" + "$ref": "#/components/schemas/CreateAgentInteractionParams" + }, + "id": { + "description": "Required. Output only. Identifier. The ID of the trigger.", + "type": "string", + "readOnly": true, + "x-google-identifier": true }, "display_name": { "description": "Optional. The display name of the trigger.", @@ -10120,96 +8714,40 @@ "format": "date-time", "readOnly": true }, - "last_resume_time": { - "description": "Output only. The time when the trigger was last resumed.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "previous_interaction_id": { - "description": "Output only. The ID of the last interaction created by this trigger.", - "type": "string", - "readOnly": true - }, - "status": { - "description": "Output only. The current status of the trigger.", - "type": "string", - "enum": [ - "active", - "paused", - "error" - ], - "readOnly": true, - "x-google-enum-descriptions": [ - "The trigger is active and will fire on schedule.", - "The trigger is paused and will not fire.", - "The trigger has entered an error state due to consecutive failures." - ] - } - }, - "required": [ - "id", - "interaction", - "schedule", - "time_zone" - ], - "x-speakeasy-exports": [ - { - "name": "Trigger", - "group": "triggers", - "representation": "model" - } - ], - "x-speakeasy-model-namespace": "triggers" - }, - "TriggerCreateParams": { - "description": "Parameters for creating a trigger.", - "type": "object", - "properties": { - "schedule": { - "description": "Required. The cron schedule on which the trigger should run.\nStandard cron format.", - "type": "string" - }, - "time_zone": { - "description": "Required. Time zone in which the schedule should be interpreted.", - "type": "string" - }, - "interaction": { - "description": "Required. The interaction request template to be executed.", - "$ref": "#/components/schemas/AgentInteraction" - }, - "display_name": { - "description": "Optional. The display name of the trigger.", - "type": "string" - }, - "environment_id": { - "description": "Optional. The environment ID for the trigger execution.", - "type": "string" + "last_resume_time": { + "description": "Output only. The time when the trigger was last resumed.", + "type": "string", + "format": "date-time", + "readOnly": true }, - "max_consecutive_failures": { - "description": "Optional. The maximum number of consecutive failures allowed before\nthe trigger is automatically paused (status becomes ERROR).", - "type": "integer", - "format": "int32" + "previous_interaction_id": { + "description": "Output only. The ID of the last interaction created by this trigger.", + "type": "string", + "readOnly": true }, - "execution_timeout_seconds": { - "description": "Optional. The execution timeout for the triggered interaction.", - "type": "integer", - "format": "int32" + "status": { + "description": "Output only. The current status of the trigger.", + "type": "string", + "enum": [ + "active", + "paused", + "error" + ], + "readOnly": true, + "x-google-enum-descriptions": [ + "The trigger is active and will fire on schedule.", + "The trigger is paused and will not fire.", + "The trigger has entered an error state due to consecutive failures." + ] } }, "required": [ + "id", "interaction", "schedule", "time_zone" ], - "x-speakeasy-exports": [ - { - "name": "TriggerCreateParams", - "group": "triggers", - "representation": "input" - } - ], - "x-speakeasy-model-namespace": "triggers" + "x-speakeasy-model-namespace": "interactions" }, "TriggerExecution": { "description": "An execution instance of a trigger.", @@ -10284,13 +8822,7 @@ "id", "trigger_id" ], - "x-speakeasy-exports": [ - { - "name": "TriggerExecution", - "group": "triggers" - } - ], - "x-speakeasy-model-namespace": "triggers" + "x-speakeasy-model-namespace": "interactions" }, "TriggerUpdate": { "description": "Represents the fields of a Trigger that can be updated.", @@ -10315,13 +8847,7 @@ "type": "string" } }, - "x-speakeasy-exports": [ - { - "name": "TriggerUpdate", - "group": "triggers" - } - ], - "x-speakeasy-model-namespace": "triggers" + "x-speakeasy-model-namespace": "interactions" }, "UpdateTriggerRequest": { "description": "Request message for TriggerService.UpdateTrigger.", @@ -10431,12 +8957,6 @@ "required": [ "type" ], - "x-speakeasy-exports": [ - { - "name": "URLCitation", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions", "x-speakeasy-name-override": "URLCitation" }, @@ -10493,12 +9013,6 @@ } } }, - "x-speakeasy-exports": [ - { - "name": "URLContextCallArguments", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions", "x-speakeasy-name-override": "URLContextCallArguments" }, @@ -10552,41 +9066,25 @@ "id", "type" ], - "example": { - "type": "url_context_call", - "arguments": { - "urls": [ - "https://www.example.com" - ] - }, - "id": "url_call_10219" - }, - "x-example-summaries": [ - "UrlContextCallStep" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "URLContextCallStep", - "group": "interactions" + "url_context_call": { + "summary": "UrlContextCallStep", + "value": { + "type": "url_context_call", + "arguments": { + "urls": [ + "https://www.example.com" + ] + }, + "id": "url_call_10219" + } + } } ], "x-speakeasy-model-namespace": "interactions", "x-speakeasy-name-override": "URLContextCallStep" }, - "UrlContextCallStepArguments": { - "description": "The arguments to pass to the URL context.", - "type": "object", - "properties": { - "urls": { - "description": "The URLs to fetch.", - "type": "array", - "items": { - "type": "string" - } - } - }, - "x-speakeasy-model-namespace": "interactions" - }, "UrlContextResult": { "description": "The result of the URL context.", "type": "object", @@ -10612,12 +9110,6 @@ ] } }, - "x-speakeasy-exports": [ - { - "name": "URLContextResult", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions", "x-speakeasy-name-override": "URLContextResult" }, @@ -10650,33 +9142,6 @@ "x-speakeasy-model-namespace": "interactions", "x-speakeasy-name-override": "URLContextResultDelta" }, - "UrlContextResultItem": { - "description": "The result of the URL context.", - "type": "object", - "properties": { - "url": { - "description": "The URL that was fetched.", - "type": "string" - }, - "status": { - "description": "The status of the URL retrieval.", - "type": "string", - "enum": [ - "success", - "error", - "paywall", - "unsafe" - ], - "x-google-enum-descriptions": [ - "", - "", - "", - "" - ] - } - }, - "x-speakeasy-model-namespace": "interactions" - }, "UrlContextResultStep": { "description": "URL context result step.", "type": "object", @@ -10711,23 +9176,22 @@ "result", "type" ], - "example": { - "type": "url_context_result", - "call_id": "url_call_10219", - "result": [ - { - "url": "https://www.example.com", - "status": "success" - } - ] - }, - "x-example-summaries": [ - "UrlContextResultStep" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "URLContextResultStep", - "group": "interactions" + "url_context_result": { + "summary": "UrlContextResultStep", + "value": { + "type": "url_context_result", + "call_id": "url_call_10219", + "result": [ + { + "title": "Example Domain", + "url": "https://www.example.com", + "snippet": "This domain is for use in illustrative examples in documents." + } + ] + } + } } ], "x-speakeasy-model-namespace": "interactions", @@ -10803,13 +9267,6 @@ } } }, - "readOnly": true, - "x-speakeasy-exports": [ - { - "name": "Usage", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "UserInputStep": { @@ -10830,22 +9287,20 @@ "required": [ "type" ], - "example": { - "type": "user_input", - "content": [ - { - "type": "text", - "text": "What is the capital of France?" - } - ] - }, - "x-example-summaries": [ - "UserInputStep" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "UserInputStep", - "group": "interactions" + "user_input": { + "summary": "UserInputStep", + "value": { + "type": "user_input", + "content": [ + { + "type": "text", + "text": "What is the capital of France?" + } + ] + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -10874,24 +9329,6 @@ ], "x-speakeasy-model-namespace": "interactions" }, - "VertexAISearchConfig": { - "description": "Used to specify configuration for VertexAISearch.", - "type": "object", - "properties": { - "engine": { - "description": "Optional. Used to specify Vertex AI Search engine.", - "type": "string" - }, - "datastores": { - "description": "Optional. Used to specify Vertex AI Search datastores.", - "type": "array", - "items": { - "type": "string" - } - } - }, - "x-speakeasy-model-namespace": "interactions" - }, "VideoConfig": { "description": "Configuration options for video generation.", "type": "object", @@ -10915,12 +9352,6 @@ ] } }, - "x-speakeasy-exports": [ - { - "name": "VideoConfig", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "VideoContent": { @@ -10940,6 +9371,10 @@ "description": "The URI of the video.", "type": "string" }, + "resolution": { + "description": "The resolution of the media.", + "$ref": "#/components/schemas/MediaResolution" + }, "processing": { "description": "How the model processes this video for understanding.", "oneOf": [ @@ -10959,10 +9394,6 @@ } ] }, - "resolution": { - "description": "The resolution of the media.", - "$ref": "#/components/schemas/MediaResolution" - }, "name": { "description": "A user-defined name for this content block. Can be referenced by the model\nin the final response.", "type": "string" @@ -10997,17 +9428,15 @@ "required": [ "type" ], - "example": { - "type": "video", - "uri": "https://www.youtube.com/watch?v=9hE5-98ZeCg" - }, - "x-example-summaries": [ - "Video" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "VideoContent", - "group": "interactions" + "video": { + "summary": "Video", + "value": { + "type": "video", + "uri": "https://www.youtube.com/watch?v=9hE5-98ZeCg" + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -11018,14 +9447,6 @@ "type": { "const": "video" }, - "data": { - "type": "string", - "format": "byte", - "x-speakeasy-base64-input-mode": "file" - }, - "uri": { - "type": "string" - }, "mime_type": { "type": "string", "enum": [ @@ -11053,6 +9474,14 @@ "JPEG 2000 video format" ] }, + "data": { + "type": "string", + "format": "byte", + "x-speakeasy-base64-input-mode": "file" + }, + "uri": { + "type": "string" + }, "resolution": { "description": "The resolution of the media.", "$ref": "#/components/schemas/MediaResolution" @@ -11082,10 +9511,6 @@ "Video data is returned as a URI." ] }, - "gcs_uri": { - "description": "The Cloud Storage URI to store the video output. Required for Vertex if\ndelivery mode is URI.", - "type": "string" - }, "aspect_ratio": { "description": "The aspect ratio for the video output.", "type": "string", @@ -11123,18 +9548,16 @@ "required": [ "type" ], - "example": { - "type": "video", - "aspect_ratio": "16:9", - "delivery": "inline" - }, - "x-example-summaries": [ - "Video Output" - ], - "x-speakeasy-exports": [ + "examples": [ { - "name": "VideoResponseFormat", - "group": "interactions" + "video_response_format": { + "summary": "Video Output", + "value": { + "type": "video", + "aspect_ratio": "16:9", + "delivery": "inline" + } + } } ], "x-speakeasy-model-namespace": "interactions" @@ -11226,13 +9649,7 @@ "required": [ "type" ], - "x-speakeasy-exports": [ - { - "name": "Voice", - "group": "voices" - } - ], - "x-speakeasy-model-namespace": "voices" + "x-speakeasy-model-namespace": "interactions" }, "VoiceType": { "type": "string", @@ -11246,13 +9663,7 @@ "A custom voice generated from a natural-language text prompt (optionally\nediting or remixing a `base_voice`).", "A built-in system voice from Google's voice catalog (e.g., `Puck`,\n`Charon`). Returned in responses; cannot be specified as the type in\n`CreateVoice`." ], - "x-speakeasy-exports": [ - { - "name": "VoiceType", - "group": "voices" - } - ], - "x-speakeasy-model-namespace": "voices" + "x-speakeasy-model-namespace": "interactions" }, "Webhook": { "description": "A Webhook resource.", @@ -11266,27 +9677,7 @@ "description": "Required. The events that the webhook is subscribed to.\nAvailable events:\n- batch.succeeded\n- batch.expired\n- batch.failed\n- interaction.requires_action\n- interaction.completed\n- interaction.failed\n- video.generated", "type": "array", "items": { - "type": "string", - "enum": [ - "batch.succeeded", - "batch.expired", - "batch.failed", - "interaction.requires_action", - "interaction.completed", - "interaction.failed", - "video.generated" - ], - "x-speakeasy-enum-descriptions": [ - "Batch processing finished successfully.", - "Batch has not been processed within the 48h timeframe.", - "Batch job failed.", - "Interaction requires action (e.g., function calling).", - "Interaction completed successfully.", - "Interaction failed.", - "Video generation completed." - ], - "x-speakeasy-enum-format": "union", - "x-speakeasy-unknown-values": "allow" + "type": "string" } }, "name": { @@ -11331,8 +9722,7 @@ "new_signing_secret": { "description": "Output only. The new signing secret for the webhook. Only populated on create.", "type": "string", - "readOnly": true, - "x-speakeasy-param-sensitive": true + "readOnly": true }, "id": { "description": "Output only. The ID of the webhook.", @@ -11344,18 +9734,7 @@ "subscribed_events", "uri" ], - "x-speakeasy-exports": [ - { - "name": "Webhook", - "group": "webhooks" - }, - { - "name": "WebhookInput", - "group": "webhooks", - "representation": "input" - } - ], - "x-speakeasy-model-namespace": "webhooks" + "x-speakeasy-model-namespace": "interactions" }, "WebhookConfig": { "description": "Message for configuring webhook events for a request.", @@ -11376,12 +9755,6 @@ } } }, - "x-speakeasy-exports": [ - { - "name": "WebhookConfig", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" }, "WebhookUpdate": { @@ -11399,27 +9772,7 @@ "description": "Optional. The events that the webhook is subscribed to.\nAvailable events:\n- batch.succeeded\n- batch.expired\n- batch.failed\n- interaction.requires_action\n- interaction.completed\n- interaction.failed\n- video.generated", "type": "array", "items": { - "type": "string", - "enum": [ - "batch.succeeded", - "batch.expired", - "batch.failed", - "interaction.requires_action", - "interaction.completed", - "interaction.failed", - "video.generated" - ], - "x-speakeasy-enum-descriptions": [ - "Batch processing finished successfully.", - "Batch has not been processed within the 48h timeframe.", - "Batch job failed.", - "Interaction requires action (e.g., function calling).", - "Interaction completed successfully.", - "Interaction failed.", - "Video generation completed." - ], - "x-speakeasy-enum-format": "union", - "x-speakeasy-unknown-values": "allow" + "type": "string" } }, "state": { @@ -11437,18 +9790,7 @@ ] } }, - "x-speakeasy-exports": [ - { - "name": "WebhookUpdate", - "group": "webhooks" - }, - { - "name": "WebhookUpdateParams", - "group": "webhooks", - "representation": "input" - } - ], - "x-speakeasy-model-namespace": "webhooks" + "x-speakeasy-model-namespace": "interactions" }, "WordInfo": { "description": "Word-level ASR annotation for transcription output.\nCarries the word text, optional timing, and optional speaker attribution.", @@ -11489,12 +9831,6 @@ "required": [ "type" ], - "x-speakeasy-exports": [ - { - "name": "WordInfo", - "group": "interactions" - } - ], "x-speakeasy-model-namespace": "interactions" } }, @@ -11550,7 +9886,6 @@ "maxElapsedTime": 30000, "maxInterval": 8000 }, - "maxRetries": 4, "retryConnectionErrors": true, "statusCodes": [ 408, @@ -11558,6 +9893,6 @@ 429, "5XX" ], - "strategy": "attempt-count-backoff" + "strategy": "backoff" } } diff --git a/src/libs/Google.Gemini/openapi.json b/src/libs/Google.Gemini/openapi.json index 7f4b3440e..d54108b55 100644 --- a/src/libs/Google.Gemini/openapi.json +++ b/src/libs/Google.Gemini/openapi.json @@ -11,26 +11,47 @@ } ], "paths": { - "/generatedFiles": { - "get": { - "description": "Lists the generated files owned by the requesting project.", - "operationId": "generatedFiles.list", + "/batches/{batchesId}": { + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "operationId": "batches.delete", "parameters": [ { - "name": "pageSize", - "in": "query", - "description": "Optional. Maximum number of `GeneratedFile`s to return per page. If unspecified, defaults to 10. Maximum `page_size` is 50.", + "name": "batchesId", + "in": "path", + "required": true, + "description": "The name of the operation resource to be deleted.", "schema": { - "type": "integer", - "format": "int32" + "type": "string", + "pattern": "^batches/[^/]+$" } - }, + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Empty" + } + } + } + } + } + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "operationId": "batches.get", + "parameters": [ { - "name": "pageToken", - "in": "query", - "description": "Optional. A page token from a previous `ListGeneratedFiles` call.", + "name": "batchesId", + "in": "path", + "required": true, + "description": "The name of the operation resource.", "schema": { - "type": "string" + "type": "string", + "pattern": "^batches/[^/]+$" } } ], @@ -40,7 +61,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListGeneratedFilesResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -48,37 +69,47 @@ } } }, - "/generatedFiles/{generatedFilesId}/operations/{operationsId}": { - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "operationId": "generatedFiles.operations.get", + "/batches/{batchesId}:updateGenerateContentBatch": { + "patch": { + "description": "Updates a batch of GenerateContent requests for batch processing.", + "operationId": "batches.updateGenerateContentBatch", "parameters": [ { - "name": "operationsId", + "name": "batchesId", "in": "path", "required": true, + "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", "schema": { - "type": "string" + "type": "string", + "pattern": "^batches/[^/]+$" } }, { - "name": "generatedFilesId", - "in": "path", - "required": true, - "description": "The name of the operation resource.", + "name": "updateMask", + "in": "query", + "description": "Optional. The list of fields to update.", "schema": { "type": "string", - "pattern": "^generatedFiles/[^/]+/operations/[^/]+$" + "format": "google-fieldmask" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenerateContentBatch" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/GenerateContentBatch" } } } @@ -86,19 +117,19 @@ } } }, - "/cachedContents/{cachedContentsId}": { - "get": { - "description": "Reads CachedContent resource.", - "operationId": "cachedContents.get", + "/batches/{batchesId}:cancel": { + "post": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", + "operationId": "batches.cancel", "parameters": [ { - "name": "cachedContentsId", + "name": "batchesId", "in": "path", "required": true, - "description": "Required. The resource name referring to the content cache entry. Format: `cachedContents/{id}`", + "description": "The name of the operation resource to be cancelled.", "schema": { "type": "string", - "pattern": "^cachedContents/[^/]+$" + "pattern": "^batches/[^/]+$" } } ], @@ -108,25 +139,50 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CachedContent" + "$ref": "#/components/schemas/Empty" } } } } } - }, - "delete": { - "description": "Deletes CachedContent resource.", - "operationId": "cachedContents.delete", + } + }, + "/batches": { + "get": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "operationId": "batches.list", "parameters": [ { - "name": "cachedContentsId", - "in": "path", - "required": true, - "description": "Required. The resource name referring to the content cache entry Format: `cachedContents/{id}`", + "name": "filter", + "in": "query", + "description": "The standard list filter.", "schema": { - "type": "string", - "pattern": "^cachedContents/[^/]+$" + "type": "string" + } + }, + { + "name": "pageSize", + "in": "query", + "description": "The standard list page size.", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "pageToken", + "in": "query", + "description": "The standard list page token.", + "schema": { + "type": "string" + } + }, + { + "name": "returnPartialSuccess", + "in": "query", + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "schema": { + "type": "boolean" } } ], @@ -136,31 +192,33 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/ListOperationsResponse" } } } } } - }, + } + }, + "/batches/{batchesId}:updateEmbedContentBatch": { "patch": { - "description": "Updates CachedContent resource (only expiration is updatable).", - "operationId": "cachedContents.patch", + "description": "Updates a batch of EmbedContent requests for batch processing.", + "operationId": "batches.updateEmbedContentBatch", "parameters": [ { - "name": "cachedContentsId", + "name": "batchesId", "in": "path", "required": true, - "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`", + "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", "schema": { "type": "string", - "pattern": "^cachedContents/[^/]+$" + "pattern": "^batches/[^/]+$" } }, { "name": "updateMask", "in": "query", - "description": "The list of fields to update.", + "description": "Optional. The list of fields to update.", "schema": { "type": "string", "format": "google-fieldmask" @@ -171,7 +229,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CachedContent" + "$ref": "#/components/schemas/EmbedContentBatch" } } } @@ -182,7 +240,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CachedContent" + "$ref": "#/components/schemas/EmbedContentBatch" } } } @@ -190,50 +248,66 @@ } } }, - "/cachedContents": { - "get": { - "description": "Lists CachedContents.", - "operationId": "cachedContents.list", + "/models/{modelsId}:embedContent": { + "post": { + "description": "Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding).", + "operationId": "models.embedContent", "parameters": [ { - "name": "pageSize", - "in": "query", - "description": "Optional. The maximum number of cached contents to return. The service may return fewer than this value. If unspecified, some default (under maximum) number of items will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "pageToken", - "in": "query", - "description": "Optional. A page token, received from a previous `ListCachedContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCachedContents` must match the call that provided the page token.", + "name": "modelsId", + "in": "path", + "required": true, + "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", "schema": { - "type": "string" + "type": "string", + "pattern": "^models/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EmbedContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListCachedContentsResponse" + "$ref": "#/components/schemas/EmbedContentResponse" } } } } } - }, + } + }, + "/models/{modelsId}:streamGenerateContent": { "post": { - "description": "Creates CachedContent resource.", - "operationId": "cachedContents.create", + "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.", + "operationId": "models.streamGenerateContent", + "parameters": [ + { + "name": "modelsId", + "in": "path", + "required": true, + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "schema": { + "type": "string", + "pattern": "^models/[^/]+$" + } + } + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CachedContent" + "$ref": "#/components/schemas/GenerateContentRequest" } } } @@ -244,7 +318,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CachedContent" + "$ref": "#/components/schemas/GenerateContentResponse" + } + }, + "text/event-stream": { + "schema": { + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -252,15 +331,27 @@ } } }, - "/files": { + "/models/{modelsId}:batchGenerateContent": { "post": { - "description": "Creates a `File`.", - "operationId": "media.upload", + "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", + "operationId": "models.batchGenerateContent", + "parameters": [ + { + "name": "modelsId", + "in": "path", + "required": true, + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "schema": { + "type": "string", + "pattern": "^models/[^/]+$" + } + } + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateFileRequest" + "$ref": "#/components/schemas/BatchGenerateContentRequest" } } } @@ -271,32 +362,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateFileResponse" + "$ref": "#/components/schemas/Operation" } } } } } - }, + } + }, + "/models/{modelsId}": { "get": { - "description": "Lists the metadata for `File`s owned by the requesting project.", - "operationId": "files.list", + "description": "Gets information about a specific `Model` such as its version number, token limits, [parameters](https://ai.google.dev/gemini-api/docs/models/generative-models#model-parameters) and other metadata. Refer to the [Gemini models guide](https://ai.google.dev/gemini-api/docs/models/gemini) for detailed model information.", + "operationId": "models.get", "parameters": [ { - "name": "pageSize", - "in": "query", - "description": "Optional. Maximum number of `File`s to return per page. If unspecified, defaults to 10. Maximum `page_size` is 100.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "pageToken", - "in": "query", - "description": "Optional. A page token from a previous `ListFiles` call.", + "name": "modelsId", + "in": "path", + "required": true, + "description": "Required. The resource name of the model. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", "schema": { - "type": "string" + "type": "string", + "pattern": "^models/[^/]+$" } } ], @@ -306,7 +392,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListFilesResponse" + "$ref": "#/components/schemas/Model" } } } @@ -314,19 +400,19 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}:uploadToFileSearchStore": { + "/models/{modelsId}:asyncBatchEmbedContent": { "post": { - "description": "Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document.", - "operationId": "media.uploadToFileSearchStore", + "description": "Enqueues a batch of `EmbedContent` requests for batch processing. We have a `BatchEmbedContents` handler in `GenerativeService`, but it was synchronized. So we name this one to be `Async` to avoid confusion.", + "operationId": "models.asyncBatchEmbedContent", "parameters": [ { - "name": "fileSearchStoresId", + "name": "modelsId", "in": "path", "required": true, - "description": "Required. Immutable. The name of the `FileSearchStore` to upload the file into. Example: `fileSearchStores/my-file-search-store-123`", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+$" + "pattern": "^models/[^/]+$" } } ], @@ -334,7 +420,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UploadToFileSearchStoreRequest" + "$ref": "#/components/schemas/AsyncBatchEmbedContentRequest" } } } @@ -345,7 +431,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomLongRunningOperation" + "$ref": "#/components/schemas/Operation" } } } @@ -353,15 +439,27 @@ } } }, - "/fileSearchStores": { + "/models/{modelsId}:countTokens": { "post": { - "description": "Creates an empty `FileSearchStore`.", - "operationId": "fileSearchStores.create", + "description": "Runs a model's tokenizer on input `Content` and returns the token count. Refer to the [tokens guide](https://ai.google.dev/gemini-api/docs/tokens) to learn more about tokens.", + "operationId": "models.countTokens", + "parameters": [ + { + "name": "modelsId", + "in": "path", + "required": true, + "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", + "schema": { + "type": "string", + "pattern": "^models/[^/]+$" + } + } + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FileSearchStore" + "$ref": "#/components/schemas/CountTokensRequest" } } } @@ -372,21 +470,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FileSearchStore" + "$ref": "#/components/schemas/CountTokensResponse" } } } } } - }, + } + }, + "/models": { "get": { - "description": "Lists all `FileSearchStores` owned by the user.", - "operationId": "fileSearchStores.list", + "description": "Lists the [`Model`s](https://ai.google.dev/gemini-api/docs/models/gemini) available through the Gemini API.", + "operationId": "models.list", "parameters": [ { "name": "pageSize", "in": "query", - "description": "Optional. The maximum number of `FileSearchStores` to return (per page). The service may return fewer `FileSearchStores`. If unspecified, at most 10 `FileSearchStores` will be returned. The maximum size limit is 20 `FileSearchStores` per page.", + "description": "The maximum number of `Models` to return (per page). If unspecified, 50 models will be returned per page. This method returns at most 1000 models per page, even if you pass a larger page_size.", "schema": { "type": "integer", "format": "int32" @@ -395,7 +495,7 @@ { "name": "pageToken", "in": "query", - "description": "Optional. A page token, received from a previous `ListFileSearchStores` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListFileSearchStores` must match the call that provided the page token.", + "description": "A page token, received from a previous `ListModels` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListModels` must match the call that provided the page token.", "schema": { "type": "string" } @@ -407,7 +507,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListFileSearchStoresResponse" + "$ref": "#/components/schemas/ListModelsResponse" } } } @@ -415,19 +515,19 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}:importFile": { + "/models/{modelsId}:batchEmbedContents": { "post": { - "description": "Imports a `File` from File Service to a `FileSearchStore`.", - "operationId": "fileSearchStores.importFile", + "description": "Generates multiple embedding vectors from the input `Content` which consists of a batch of strings represented as `EmbedContentRequest` objects.", + "operationId": "models.batchEmbedContents", "parameters": [ { - "name": "fileSearchStoresId", + "name": "modelsId", "in": "path", "required": true, - "description": "Required. Immutable. The name of the `FileSearchStore` to import the file into. Example: `fileSearchStores/my-file-search-store-123`", + "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+$" + "pattern": "^models/[^/]+$" } } ], @@ -435,7 +535,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ImportFileRequest" + "$ref": "#/components/schemas/BatchEmbedContentsRequest" } } } @@ -446,7 +546,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/BatchEmbedContentsResponse" } } } @@ -454,55 +554,91 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}": { - "get": { - "description": "Gets information about a specific `FileSearchStore`.", - "operationId": "fileSearchStores.get", + "/models/{modelsId}:generateContent": { + "post": { + "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.", + "operationId": "models.generateContent", "parameters": [ { - "name": "fileSearchStoresId", + "name": "modelsId", "in": "path", "required": true, - "description": "Required. The name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+$" + "pattern": "^models/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenerateContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FileSearchStore" + "$ref": "#/components/schemas/GenerateContentResponse" } } } } } - }, - "delete": { - "description": "Deletes a `FileSearchStore`.", - "operationId": "fileSearchStores.delete", + } + }, + "/models/{modelsId}/operations": { + "get": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "operationId": "models.operations.list", "parameters": [ { - "name": "force", + "name": "filter", "in": "query", - "description": "Optional. If set to true, any `Document`s and objects related to this `FileSearchStore` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `FileSearchStore` contains any `Document`s.", + "description": "The standard list filter.", "schema": { - "type": "boolean" + "type": "string" } }, { - "name": "fileSearchStoresId", + "name": "modelsId", "in": "path", "required": true, - "description": "Required. The resource name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", + "description": "The name of the operation's parent resource.", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+$" + "pattern": "^models/[^/]+$" + } + }, + { + "name": "pageSize", + "in": "query", + "description": "The standard list page size.", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "pageToken", + "in": "query", + "description": "The standard list page token.", + "schema": { + "type": "string" + } + }, + { + "name": "returnPartialSuccess", + "in": "query", + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "schema": { + "type": "boolean" } } ], @@ -512,7 +648,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/ListOperationsResponse" } } } @@ -520,13 +656,13 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}": { + "/models/{modelsId}/operations/{operationsId}": { "get": { - "description": "Gets information about a specific `Document`.", - "operationId": "fileSearchStores.documents.get", + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "operationId": "models.operations.get", "parameters": [ { - "name": "fileSearchStoresId", + "name": "operationsId", "in": "path", "required": true, "schema": { @@ -534,13 +670,13 @@ } }, { - "name": "documentsId", + "name": "modelsId", "in": "path", "required": true, - "description": "Required. The name of the `Document` to retrieve. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`", + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$" + "pattern": "^models/[^/]+/operations/[^/]+$" } } ], @@ -550,67 +686,48 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Document" + "$ref": "#/components/schemas/Operation" } } } } } - }, - "delete": { - "description": "Deletes a `Document`.", - "operationId": "fileSearchStores.documents.delete", - "parameters": [ - { - "name": "fileSearchStoresId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "force", - "in": "query", - "description": "Optional. If set to true, any `Chunk`s and objects related to this `Document` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Document` contains any `Chunk`s.", - "schema": { - "type": "boolean" - } - }, - { - "name": "documentsId", - "in": "path", - "required": true, - "description": "Required. The resource name of the `Document` to delete. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`", - "schema": { - "type": "string", - "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$" + } + }, + "/files": { + "post": { + "description": "Creates a `File`.", + "operationId": "media.upload", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateFileRequest" + } } } - ], + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/CreateFileResponse" } } } } } - } - }, - "/fileSearchStores/{fileSearchStoresId}/documents": { + }, "get": { - "description": "Lists all `Document`s in a `Corpus`.", - "operationId": "fileSearchStores.documents.list", + "description": "Lists the metadata for `File`s owned by the requesting project.", + "operationId": "files.list", "parameters": [ { "name": "pageSize", "in": "query", - "description": "Optional. The maximum number of `Document`s to return (per page). The service may return fewer `Document`s. If unspecified, at most 10 `Document`s will be returned. The maximum size limit is 20 `Document`s per page.", + "description": "Optional. Maximum number of `File`s to return per page. If unspecified, defaults to 10. Maximum `page_size` is 100.", "schema": { "type": "integer", "format": "int32" @@ -619,20 +736,10 @@ { "name": "pageToken", "in": "query", - "description": "Optional. A page token, received from a previous `ListDocuments` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListDocuments` must match the call that provided the page token.", + "description": "Optional. A page token from a previous `ListFiles` call.", "schema": { "type": "string" } - }, - { - "name": "fileSearchStoresId", - "in": "path", - "required": true, - "description": "Required. The name of the `FileSearchStore` containing `Document`s. Example: `fileSearchStores/my-file-search-store-123`", - "schema": { - "type": "string", - "pattern": "^fileSearchStores/[^/]+$" - } } ], "responses": { @@ -641,7 +748,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListDocumentsResponse" + "$ref": "#/components/schemas/ListFilesResponse" } } } @@ -649,37 +756,38 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}/upload/operations/{operationsId}": { - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "operationId": "fileSearchStores.upload.operations.get", + "/fileSearchStores/{fileSearchStoresId}:uploadToFileSearchStore": { + "post": { + "description": "Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document.", + "operationId": "media.uploadToFileSearchStore", "parameters": [ - { - "name": "operationsId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, { "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "description": "Required. Immutable. The name of the `FileSearchStore` to upload the file into. Example: `fileSearchStores/my-file-search-store-123`", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+/upload/operations/[^/]+$" + "pattern": "^fileSearchStores/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UploadToFileSearchStoreRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/CustomLongRunningOperation" } } } @@ -687,37 +795,43 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}/operations/{operationsId}": { - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "operationId": "fileSearchStores.operations.get", + "/tunedModels/{tunedModelsId}:streamGenerateContent": { + "post": { + "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.", + "operationId": "tunedModels.streamGenerateContent", "parameters": [ { - "name": "operationsId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "fileSearchStoresId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+/operations/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenerateContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/GenerateContentResponse" + } + }, + "text/event-stream": { + "schema": { + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -725,28 +839,19 @@ } } }, - "/batches/{batchesId}:updateEmbedContentBatch": { - "patch": { - "description": "Updates a batch of EmbedContent requests for batch processing.", - "operationId": "batches.updateEmbedContentBatch", + "/tunedModels/{tunedModelsId}:generateContent": { + "post": { + "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.", + "operationId": "tunedModels.generateContent", "parameters": [ { - "name": "batchesId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", - "schema": { - "type": "string", - "pattern": "^batches/[^/]+$" - } - }, - { - "name": "updateMask", - "in": "query", - "description": "Optional. The list of fields to update.", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "format": "google-fieldmask" + "pattern": "^tunedModels/[^/]+$" } } ], @@ -754,7 +859,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EmbedContentBatch" + "$ref": "#/components/schemas/GenerateContentRequest" } } } @@ -765,7 +870,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EmbedContentBatch" + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -773,52 +878,38 @@ } } }, - "/batches": { - "get": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - "operationId": "batches.list", + "/tunedModels/{tunedModelsId}:batchGenerateContent": { + "post": { + "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", + "operationId": "tunedModels.batchGenerateContent", "parameters": [ { - "name": "filter", - "in": "query", - "description": "The standard list filter.", - "schema": { - "type": "string" - } - }, - { - "name": "pageSize", - "in": "query", - "description": "The standard list page size.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "pageToken", - "in": "query", - "description": "The standard list page token.", - "schema": { - "type": "string" - } - }, - { - "name": "returnPartialSuccess", - "in": "query", - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "name": "tunedModelsId", + "in": "path", + "required": true, + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { - "type": "boolean" + "type": "string", + "pattern": "^tunedModels/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BatchGenerateContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListOperationsResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -826,19 +917,19 @@ } } }, - "/batches/{batchesId}": { + "/tunedModels/{tunedModelsId}": { "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "operationId": "batches.get", + "description": "Gets information about a specific TunedModel.", + "operationId": "tunedModels.get", "parameters": [ { - "name": "batchesId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`", "schema": { "type": "string", - "pattern": "^batches/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], @@ -848,7 +939,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/TunedModel" } } } @@ -856,17 +947,17 @@ } }, "delete": { - "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - "operationId": "batches.delete", + "description": "Deletes a tuned model.", + "operationId": "tunedModels.delete", "parameters": [ { - "name": "batchesId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "The name of the operation resource to be deleted.", + "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`", "schema": { "type": "string", - "pattern": "^batches/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], @@ -882,21 +973,19 @@ } } } - } - }, - "/batches/{batchesId}:updateGenerateContentBatch": { + }, "patch": { - "description": "Updates a batch of GenerateContent requests for batch processing.", - "operationId": "batches.updateGenerateContentBatch", + "description": "Updates a tuned model.", + "operationId": "tunedModels.patch", "parameters": [ { - "name": "batchesId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", + "description": "Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`", "schema": { "type": "string", - "pattern": "^batches/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } }, { @@ -913,7 +1002,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentBatch" + "$ref": "#/components/schemas/TunedModel" } } } @@ -924,7 +1013,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentBatch" + "$ref": "#/components/schemas/TunedModel" } } } @@ -932,45 +1021,27 @@ } } }, - "/batches/{batchesId}:cancel": { + "/tunedModels/{tunedModelsId}:asyncBatchEmbedContent": { "post": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", - "operationId": "batches.cancel", + "description": "Enqueues a batch of `EmbedContent` requests for batch processing. We have a `BatchEmbedContents` handler in `GenerativeService`, but it was synchronized. So we name this one to be `Async` to avoid confusion.", + "operationId": "tunedModels.asyncBatchEmbedContent", "parameters": [ { - "name": "batchesId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "The name of the operation resource to be cancelled.", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "pattern": "^batches/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Empty" - } - } - } - } - } - } - }, - "/files:register": { - "post": { - "description": "Registers a Google Cloud Storage files with FileService. The user is expected to provide Google Cloud Storage URIs and will receive a File resource for each URI in return. Note that the files are not copied, just registered with File API. If one file fails to register, the whole request fails.", - "operationId": "files.register", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RegisterFilesRequest" + "$ref": "#/components/schemas/AsyncBatchEmbedContentRequest" } } } @@ -981,7 +1052,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RegisterFilesResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -989,47 +1060,34 @@ } } }, - "/files/{filesId}": { - "delete": { - "description": "Deletes the `File`.", - "operationId": "files.delete", + "/tunedModels": { + "get": { + "description": "Lists created tuned models.", + "operationId": "tunedModels.list", "parameters": [ { - "name": "filesId", - "in": "path", - "required": true, - "description": "Required. The name of the `File` to delete. Example: `files/abc-123`", + "name": "filter", + "in": "query", + "description": "Optional. A filter is a full text search over the tuned model's description and display name. By default, results will not include tuned models shared with everyone. Additional operators: - owner:me - writers:me - readers:me - readers:everyone Examples: \"owner:me\" returns all tuned models to which caller has owner role \"readers:me\" returns all tuned models to which caller has reader role \"readers:everyone\" returns all tuned models that are shared with everyone", "schema": { - "type": "string", - "pattern": "^files/[^/]+$" + "type": "string" } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Empty" - } - } + }, + { + "name": "pageSize", + "in": "query", + "description": "Optional. The maximum number of `TunedModels` to return (per page). The service may return fewer tuned models. If unspecified, at most 10 tuned models will be returned. This method returns at most 1000 models per page, even if you pass a larger page_size.", + "schema": { + "type": "integer", + "format": "int32" } - } - } - }, - "get": { - "description": "Gets the metadata for the given `File`.", - "operationId": "files.get", - "parameters": [ + }, { - "name": "filesId", - "in": "path", - "required": true, - "description": "Required. The name of the `File` to get. Example: `files/abc-123`", + "name": "pageToken", + "in": "query", + "description": "Optional. A page token, received from a previous `ListTunedModels` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListTunedModels` must match the call that provided the page token.", "schema": { - "type": "string", - "pattern": "^files/[^/]+$" + "type": "string" } } ], @@ -1039,27 +1097,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/File" + "$ref": "#/components/schemas/ListTunedModelsResponse" } } } } } - } - }, - "/dynamic/{dynamicId}:generateContent": { + }, "post": { - "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.", - "operationId": "dynamic.generateContent", + "description": "Creates a tuned model. Check intermediate tuning progress (if any) through the [google.longrunning.Operations] service. Access status and results through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222", + "operationId": "tunedModels.create", "parameters": [ { - "name": "dynamicId", - "in": "path", - "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "name": "tunedModelId", + "in": "query", + "description": "Optional. The unique id for the tuned model if specified. This value should be up to 40 characters, the first character must be a letter, the last could be a letter or a number. The id must match the regular expression: `[a-z]([a-z0-9-]{0,38}[a-z0-9])?`.", "schema": { - "type": "string", - "pattern": "^dynamic/[^/]+$" + "type": "string" } } ], @@ -1067,7 +1121,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" + "$ref": "#/components/schemas/TunedModel" } } } @@ -1078,7 +1132,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -1086,19 +1140,19 @@ } } }, - "/dynamic/{dynamicId}:streamGenerateContent": { + "/tunedModels/{tunedModelsId}:transferOwnership": { "post": { - "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.", - "operationId": "dynamic.streamGenerateContent", + "description": "Transfers ownership of the tuned model. This is the only way to change ownership of the tuned model. The current owner will be downgraded to writer role.", + "operationId": "tunedModels.transferOwnership", "parameters": [ { - "name": "dynamicId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "description": "Required. The resource name of the tuned model to transfer ownership. Format: `tunedModels/my-model-id`", "schema": { "type": "string", - "pattern": "^dynamic/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], @@ -1106,7 +1160,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" + "$ref": "#/components/schemas/TransferOwnershipRequest" } } } @@ -1117,12 +1171,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" - } - }, - "text/event-stream": { - "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/TransferOwnershipResponse" } } } @@ -1130,40 +1179,71 @@ } } }, - "/corpora": { - "post": { - "description": "Creates an empty `Corpus`.", - "operationId": "corpora.create", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Corpus" - } + "/tunedModels/{tunedModelsId}/operations/{operationsId}": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "operationId": "tunedModels.operations.get", + "parameters": [ + { + "name": "tunedModelsId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "operationsId", + "in": "path", + "required": true, + "description": "The name of the operation resource.", + "schema": { + "type": "string", + "pattern": "^tunedModels/[^/]+/operations/[^/]+$" } } - }, + ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Corpus" + "$ref": "#/components/schemas/Operation" } } } } } - }, + } + }, + "/tunedModels/{tunedModelsId}/operations": { "get": { - "description": "Lists all `Corpora` owned by the user.", - "operationId": "corpora.list", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "operationId": "tunedModels.operations.list", "parameters": [ + { + "name": "filter", + "in": "query", + "description": "The standard list filter.", + "schema": { + "type": "string" + } + }, + { + "name": "tunedModelsId", + "in": "path", + "required": true, + "description": "The name of the operation's parent resource.", + "schema": { + "type": "string", + "pattern": "^tunedModels/[^/]+$" + } + }, { "name": "pageSize", "in": "query", - "description": "Optional. The maximum number of `Corpora` to return (per page). The service may return fewer `Corpora`. If unspecified, at most 10 `Corpora` will be returned. The maximum size limit is 20 `Corpora` per page.", + "description": "The standard list page size.", "schema": { "type": "integer", "format": "int32" @@ -1172,10 +1252,18 @@ { "name": "pageToken", "in": "query", - "description": "Optional. A page token, received from a previous `ListCorpora` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListCorpora` must match the call that provided the page token.", + "description": "The standard list page token.", "schema": { "type": "string" } + }, + { + "name": "returnPartialSuccess", + "in": "query", + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "schema": { + "type": "boolean" + } } ], "responses": { @@ -1184,7 +1272,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListCorporaResponse" + "$ref": "#/components/schemas/ListOperationsResponse" } } } @@ -1192,27 +1280,36 @@ } } }, - "/corpora/{corporaId}": { - "delete": { - "description": "Deletes a `Corpus`.", - "operationId": "corpora.delete", + "/tunedModels/{tunedModelsId}/permissions": { + "get": { + "description": "Lists permissions for the specific resource.", + "operationId": "tunedModels.permissions.list", "parameters": [ { - "name": "force", + "name": "pageSize", "in": "query", - "description": "Optional. If set to true, any `Document`s and objects related to this `Corpus` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Corpus` contains any `Document`s.", + "description": "Optional. The maximum number of `Permission`s to return (per page). The service may return fewer permissions. If unspecified, at most 10 permissions will be returned. This method returns at most 1000 permissions per page, even if you pass larger page_size.", "schema": { - "type": "boolean" + "type": "integer", + "format": "int32" } }, { - "name": "corporaId", + "name": "pageToken", + "in": "query", + "description": "Optional. A page token, received from a previous `ListPermissions` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListPermissions` must match the call that provided the page token.", + "schema": { + "type": "string" + } + }, + { + "name": "tunedModelsId", "in": "path", "required": true, - "description": "Required. The resource name of the `Corpus`. Example: `corpora/my-corpus-123`", + "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", "schema": { "type": "string", - "pattern": "^corpora/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], @@ -1222,35 +1319,44 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/ListPermissionsResponse" } } } } } }, - "get": { - "description": "Gets information about a specific `Corpus`.", - "operationId": "corpora.get", + "post": { + "description": "Create a permission to a specific resource.", + "operationId": "tunedModels.permissions.create", "parameters": [ { - "name": "corporaId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "Required. The name of the `Corpus`. Example: `corpora/my-corpus-123`", + "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", "schema": { "type": "string", - "pattern": "^corpora/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Permission" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Corpus" + "$ref": "#/components/schemas/Permission" } } } @@ -1258,13 +1364,13 @@ } } }, - "/corpora/{corporaId}/operations/{operationsId}": { + "/tunedModels/{tunedModelsId}/permissions/{permissionsId}": { "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "operationId": "corpora.operations.get", + "description": "Gets information about a specific Permission.", + "operationId": "tunedModels.permissions.get", "parameters": [ { - "name": "operationsId", + "name": "tunedModelsId", "in": "path", "required": true, "schema": { @@ -1272,13 +1378,13 @@ } }, { - "name": "corporaId", + "name": "permissionsId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", "schema": { "type": "string", - "pattern": "^corpora/[^/]+/operations/[^/]+$" + "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" } } ], @@ -1288,21 +1394,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/Permission" } } } } } - } - }, - "/corpora/{corporaId}/permissions/{permissionsId}": { + }, "patch": { "description": "Updates the permission.", - "operationId": "corpora.permissions.patch", + "operationId": "tunedModels.permissions.patch", "parameters": [ { - "name": "permissionsId", + "name": "tunedModelsId", "in": "path", "required": true, "schema": { @@ -1310,13 +1414,13 @@ } }, { - "name": "corporaId", + "name": "permissionsId", "in": "path", "required": true, "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.", "schema": { "type": "string", - "pattern": "^corpora/[^/]+/permissions/[^/]+$" + "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" } }, { @@ -1351,12 +1455,12 @@ } } }, - "get": { - "description": "Gets information about a specific Permission.", - "operationId": "corpora.permissions.get", + "delete": { + "description": "Deletes the permission.", + "operationId": "tunedModels.permissions.delete", "parameters": [ { - "name": "permissionsId", + "name": "tunedModelsId", "in": "path", "required": true, "schema": { @@ -1364,13 +1468,13 @@ } }, { - "name": "corporaId", + "name": "permissionsId", "in": "path", "required": true, "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", "schema": { "type": "string", - "pattern": "^corpora/[^/]+/permissions/[^/]+$" + "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" } } ], @@ -1380,114 +1484,60 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/Empty" } } } } } - }, - "delete": { - "description": "Deletes the permission.", - "operationId": "corpora.permissions.delete", + } + }, + "/corpora/{corporaId}": { + "get": { + "description": "Gets information about a specific `Corpus`.", + "operationId": "corpora.get", "parameters": [ { - "name": "permissionsId", + "name": "corporaId", "in": "path", "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "corporaId", - "in": "path", - "required": true, - "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", - "schema": { - "type": "string", - "pattern": "^corpora/[^/]+/permissions/[^/]+$" - } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Empty" - } - } - } - } - } - } - }, - "/corpora/{corporaId}/permissions": { - "post": { - "description": "Create a permission to a specific resource.", - "operationId": "corpora.permissions.create", - "parameters": [ - { - "name": "corporaId", - "in": "path", - "required": true, - "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", + "description": "Required. The name of the `Corpus`. Example: `corpora/my-corpus-123`", "schema": { "type": "string", "pattern": "^corpora/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Permission" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/Corpus" } } } } } }, - "get": { - "description": "Lists permissions for the specific resource.", - "operationId": "corpora.permissions.list", + "delete": { + "description": "Deletes a `Corpus`.", + "operationId": "corpora.delete", "parameters": [ { - "name": "pageSize", - "in": "query", - "description": "Optional. The maximum number of `Permission`s to return (per page). The service may return fewer permissions. If unspecified, at most 10 permissions will be returned. This method returns at most 1000 permissions per page, even if you pass larger page_size.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "pageToken", + "name": "force", "in": "query", - "description": "Optional. A page token, received from a previous `ListPermissions` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListPermissions` must match the call that provided the page token.", + "description": "Optional. If set to true, any `Document`s and objects related to this `Corpus` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Corpus` contains any `Document`s.", "schema": { - "type": "string" + "type": "boolean" } }, { "name": "corporaId", "in": "path", "required": true, - "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", + "description": "Required. The resource name of the `Corpus`. Example: `corpora/my-corpus-123`", "schema": { "type": "string", "pattern": "^corpora/[^/]+$" @@ -1500,7 +1550,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListPermissionsResponse" + "$ref": "#/components/schemas/Empty" } } } @@ -1508,23 +1558,15 @@ } } }, - "/tunedModels": { + "/corpora": { "get": { - "description": "Lists created tuned models.", - "operationId": "tunedModels.list", + "description": "Lists all `Corpora` owned by the user.", + "operationId": "corpora.list", "parameters": [ - { - "name": "filter", - "in": "query", - "description": "Optional. A filter is a full text search over the tuned model's description and display name. By default, results will not include tuned models shared with everyone. Additional operators: - owner:me - writers:me - readers:me - readers:everyone Examples: \"owner:me\" returns all tuned models to which caller has owner role \"readers:me\" returns all tuned models to which caller has reader role \"readers:everyone\" returns all tuned models that are shared with everyone", - "schema": { - "type": "string" - } - }, { "name": "pageSize", "in": "query", - "description": "Optional. The maximum number of `TunedModels` to return (per page). The service may return fewer tuned models. If unspecified, at most 10 tuned models will be returned. This method returns at most 1000 models per page, even if you pass a larger page_size.", + "description": "Optional. The maximum number of `Corpora` to return (per page). The service may return fewer `Corpora`. If unspecified, at most 10 `Corpora` will be returned. The maximum size limit is 20 `Corpora` per page.", "schema": { "type": "integer", "format": "int32" @@ -1533,7 +1575,7 @@ { "name": "pageToken", "in": "query", - "description": "Optional. A page token, received from a previous `ListTunedModels` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListTunedModels` must match the call that provided the page token.", + "description": "Optional. A page token, received from a previous `ListCorpora` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListCorpora` must match the call that provided the page token.", "schema": { "type": "string" } @@ -1545,7 +1587,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListTunedModelsResponse" + "$ref": "#/components/schemas/ListCorporaResponse" } } } @@ -1553,23 +1595,13 @@ } }, "post": { - "description": "Creates a tuned model. Check intermediate tuning progress (if any) through the [google.longrunning.Operations] service. Access status and results through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222", - "operationId": "tunedModels.create", - "parameters": [ - { - "name": "tunedModelId", - "in": "query", - "description": "Optional. The unique id for the tuned model if specified. This value should be up to 40 characters, the first character must be a letter, the last could be a letter or a number. The id must match the regular expression: `[a-z]([a-z0-9-]{0,38}[a-z0-9])?`.", - "schema": { - "type": "string" - } - } - ], + "description": "Creates an empty `Corpus`.", + "operationId": "corpora.create", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TunedModel" + "$ref": "#/components/schemas/Corpus" } } } @@ -1580,7 +1612,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/Corpus" } } } @@ -1588,38 +1620,37 @@ } } }, - "/tunedModels/{tunedModelsId}:generateContent": { - "post": { - "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.", - "operationId": "tunedModels.generateContent", + "/corpora/{corporaId}/operations/{operationsId}": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "operationId": "corpora.operations.get", "parameters": [ { - "name": "tunedModelsId", + "name": "operationsId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "schema": { + "type": "string" + } + }, + { + "name": "corporaId", + "in": "path", + "required": true, + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+$" + "pattern": "^corpora/[^/]+/operations/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -1627,53 +1658,33 @@ } } }, - "/tunedModels/{tunedModelsId}": { - "delete": { - "description": "Deletes a tuned model.", - "operationId": "tunedModels.delete", + "/corpora/{corporaId}/permissions/{permissionsId}": { + "patch": { + "description": "Updates the permission.", + "operationId": "corpora.permissions.patch", "parameters": [ { - "name": "tunedModelsId", + "name": "permissionsId", "in": "path", "required": true, - "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`", "schema": { - "type": "string", - "pattern": "^tunedModels/[^/]+$" - } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Empty" - } - } + "type": "string" } - } - } - }, - "patch": { - "description": "Updates a tuned model.", - "operationId": "tunedModels.patch", - "parameters": [ + }, { - "name": "tunedModelsId", + "name": "corporaId", "in": "path", "required": true, - "description": "Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`", + "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+$" + "pattern": "^corpora/[^/]+/permissions/[^/]+$" } }, { "name": "updateMask", "in": "query", - "description": "Optional. The list of fields to update.", + "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)", "schema": { "type": "string", "format": "google-fieldmask" @@ -1684,7 +1695,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TunedModel" + "$ref": "#/components/schemas/Permission" } } } @@ -1695,25 +1706,33 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TunedModel" + "$ref": "#/components/schemas/Permission" } } } } } }, - "get": { - "description": "Gets information about a specific TunedModel.", - "operationId": "tunedModels.get", + "delete": { + "description": "Deletes the permission.", + "operationId": "corpora.permissions.delete", "parameters": [ { - "name": "tunedModelsId", + "name": "permissionsId", "in": "path", "required": true, - "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`", + "schema": { + "type": "string" + } + }, + { + "name": "corporaId", + "in": "path", + "required": true, + "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+$" + "pattern": "^corpora/[^/]+/permissions/[^/]+$" } } ], @@ -1723,46 +1742,43 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TunedModel" + "$ref": "#/components/schemas/Empty" } } } } } - } - }, - "/tunedModels/{tunedModelsId}:batchGenerateContent": { - "post": { - "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", - "operationId": "tunedModels.batchGenerateContent", + }, + "get": { + "description": "Gets information about a specific Permission.", + "operationId": "corpora.permissions.get", "parameters": [ { - "name": "tunedModelsId", + "name": "permissionsId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "schema": { + "type": "string" + } + }, + { + "name": "corporaId", + "in": "path", + "required": true, + "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+$" + "pattern": "^corpora/[^/]+/permissions/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BatchGenerateContentRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/Permission" } } } @@ -1770,97 +1786,64 @@ } } }, - "/tunedModels/{tunedModelsId}:transferOwnership": { - "post": { - "description": "Transfers ownership of the tuned model. This is the only way to change ownership of the tuned model. The current owner will be downgraded to writer role.", - "operationId": "tunedModels.transferOwnership", + "/corpora/{corporaId}/permissions": { + "get": { + "description": "Lists permissions for the specific resource.", + "operationId": "corpora.permissions.list", "parameters": [ { - "name": "tunedModelsId", - "in": "path", - "required": true, - "description": "Required. The resource name of the tuned model to transfer ownership. Format: `tunedModels/my-model-id`", + "name": "pageSize", + "in": "query", + "description": "Optional. The maximum number of `Permission`s to return (per page). The service may return fewer permissions. If unspecified, at most 10 permissions will be returned. This method returns at most 1000 permissions per page, even if you pass larger page_size.", "schema": { - "type": "string", - "pattern": "^tunedModels/[^/]+$" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TransferOwnershipRequest" - } + "type": "integer", + "format": "int32" } - } - }, - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TransferOwnershipResponse" - } - } + }, + { + "name": "pageToken", + "in": "query", + "description": "Optional. A page token, received from a previous `ListPermissions` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListPermissions` must match the call that provided the page token.", + "schema": { + "type": "string" } - } - } - } - }, - "/tunedModels/{tunedModelsId}:asyncBatchEmbedContent": { - "post": { - "description": "Enqueues a batch of `EmbedContent` requests for batch processing. We have a `BatchEmbedContents` handler in `GenerativeService`, but it was synchronized. So we name this one to be `Async` to avoid confusion.", - "operationId": "tunedModels.asyncBatchEmbedContent", - "parameters": [ + }, { - "name": "tunedModelsId", + "name": "corporaId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+$" + "pattern": "^corpora/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AsyncBatchEmbedContentRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/ListPermissionsResponse" } } } } } - } - }, - "/tunedModels/{tunedModelsId}:streamGenerateContent": { + }, "post": { - "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.", - "operationId": "tunedModels.streamGenerateContent", + "description": "Create a permission to a specific resource.", + "operationId": "corpora.permissions.create", "parameters": [ { - "name": "tunedModelsId", + "name": "corporaId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+$" + "pattern": "^corpora/[^/]+$" } } ], @@ -1868,7 +1851,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" + "$ref": "#/components/schemas/Permission" } } } @@ -1879,12 +1862,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" - } - }, - "text/event-stream": { - "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/Permission" } } } @@ -1892,33 +1870,15 @@ } } }, - "/tunedModels/{tunedModelsId}/operations": { + "/generatedFiles": { "get": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - "operationId": "tunedModels.operations.list", + "description": "Lists the generated files owned by the requesting project.", + "operationId": "generatedFiles.list", "parameters": [ - { - "name": "filter", - "in": "query", - "description": "The standard list filter.", - "schema": { - "type": "string" - } - }, - { - "name": "tunedModelsId", - "in": "path", - "required": true, - "description": "The name of the operation's parent resource.", - "schema": { - "type": "string", - "pattern": "^tunedModels/[^/]+$" - } - }, { "name": "pageSize", "in": "query", - "description": "The standard list page size.", + "description": "Optional. Maximum number of `GeneratedFile`s to return per page. If unspecified, defaults to 10. Maximum `page_size` is 50.", "schema": { "type": "integer", "format": "int32" @@ -1927,18 +1887,10 @@ { "name": "pageToken", "in": "query", - "description": "The standard list page token.", + "description": "Optional. A page token from a previous `ListGeneratedFiles` call.", "schema": { "type": "string" } - }, - { - "name": "returnPartialSuccess", - "in": "query", - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "schema": { - "type": "boolean" - } } ], "responses": { @@ -1947,7 +1899,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListOperationsResponse" + "$ref": "#/components/schemas/ListGeneratedFilesResponse" } } } @@ -1955,13 +1907,13 @@ } } }, - "/tunedModels/{tunedModelsId}/operations/{operationsId}": { + "/generatedFiles/{generatedFilesId}/operations/{operationsId}": { "get": { "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "operationId": "tunedModels.operations.get", + "operationId": "generatedFiles.operations.get", "parameters": [ { - "name": "tunedModelsId", + "name": "operationsId", "in": "path", "required": true, "schema": { @@ -1969,13 +1921,13 @@ } }, { - "name": "operationsId", + "name": "generatedFilesId", "in": "path", "required": true, "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+/operations/[^/]+$" + "pattern": "^generatedFiles/[^/]+/operations/[^/]+$" } } ], @@ -1993,15 +1945,42 @@ } } }, - "/tunedModels/{tunedModelsId}/permissions": { + "/auth_tokens": { + "post": { + "description": "Creates a token that can be used to constrain the behavior of a BidiGenerateContent session.", + "operationId": "auth_tokens.create", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthToken" + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthToken" + } + } + } + } + } + } + }, + "/fileSearchStores": { "get": { - "description": "Lists permissions for the specific resource.", - "operationId": "tunedModels.permissions.list", + "description": "Lists all `FileSearchStores` owned by the user.", + "operationId": "fileSearchStores.list", "parameters": [ { "name": "pageSize", "in": "query", - "description": "Optional. The maximum number of `Permission`s to return (per page). The service may return fewer permissions. If unspecified, at most 10 permissions will be returned. This method returns at most 1000 permissions per page, even if you pass larger page_size.", + "description": "Optional. The maximum number of `FileSearchStores` to return (per page). The service may return fewer `FileSearchStores`. If unspecified, at most 10 `FileSearchStores` will be returned. The maximum size limit is 20 `FileSearchStores` per page.", "schema": { "type": "integer", "format": "int32" @@ -2010,20 +1989,10 @@ { "name": "pageToken", "in": "query", - "description": "Optional. A page token, received from a previous `ListPermissions` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListPermissions` must match the call that provided the page token.", + "description": "Optional. A page token, received from a previous `ListFileSearchStores` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListFileSearchStores` must match the call that provided the page token.", "schema": { "type": "string" } - }, - { - "name": "tunedModelsId", - "in": "path", - "required": true, - "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", - "schema": { - "type": "string", - "pattern": "^tunedModels/[^/]+$" - } } ], "responses": { @@ -2032,7 +2001,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListPermissionsResponse" + "$ref": "#/components/schemas/ListFileSearchStoresResponse" } } } @@ -2040,25 +2009,13 @@ } }, "post": { - "description": "Create a permission to a specific resource.", - "operationId": "tunedModels.permissions.create", - "parameters": [ - { - "name": "tunedModelsId", - "in": "path", - "required": true, - "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", - "schema": { - "type": "string", - "pattern": "^tunedModels/[^/]+$" - } - } - ], + "description": "Creates an empty `FileSearchStore`.", + "operationId": "fileSearchStores.create", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/FileSearchStore" } } } @@ -2069,7 +2026,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/FileSearchStore" } } } @@ -2077,117 +2034,55 @@ } } }, - "/tunedModels/{tunedModelsId}/permissions/{permissionsId}": { - "patch": { - "description": "Updates the permission.", - "operationId": "tunedModels.permissions.patch", + "/fileSearchStores/{fileSearchStoresId}": { + "get": { + "description": "Gets information about a specific `FileSearchStore`.", + "operationId": "fileSearchStores.get", "parameters": [ { - "name": "tunedModelsId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "permissionsId", + "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.", - "schema": { - "type": "string", - "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" - } - }, - { - "name": "updateMask", - "in": "query", - "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)", + "description": "Required. The name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", "schema": { "type": "string", - "format": "google-fieldmask" + "pattern": "^fileSearchStores/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Permission" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/FileSearchStore" } } } } } }, - "get": { - "description": "Gets information about a specific Permission.", - "operationId": "tunedModels.permissions.get", + "delete": { + "description": "Deletes a `FileSearchStore`.", + "operationId": "fileSearchStores.delete", "parameters": [ { - "name": "tunedModelsId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "permissionsId", - "in": "path", - "required": true, - "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", - "schema": { - "type": "string", - "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" - } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Permission" - } - } - } - } - } - }, - "delete": { - "description": "Deletes the permission.", - "operationId": "tunedModels.permissions.delete", - "parameters": [ - { - "name": "tunedModelsId", - "in": "path", - "required": true, + "name": "force", + "in": "query", + "description": "Optional. If set to true, any `Document`s and objects related to this `FileSearchStore` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `FileSearchStore` contains any `Document`s.", "schema": { - "type": "string" + "type": "boolean" } }, { - "name": "permissionsId", + "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", + "description": "Required. The resource name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" + "pattern": "^fileSearchStores/[^/]+$" } } ], @@ -2205,19 +2100,19 @@ } } }, - "/models/{modelsId}:countTokens": { + "/fileSearchStores/{fileSearchStoresId}:importFile": { "post": { - "description": "Runs a model's tokenizer on input `Content` and returns the token count. Refer to the [tokens guide](https://ai.google.dev/gemini-api/docs/tokens) to learn more about tokens.", - "operationId": "models.countTokens", + "description": "Imports a `File` from File Service to a `FileSearchStore`.", + "operationId": "fileSearchStores.importFile", "parameters": [ { - "name": "modelsId", + "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", + "description": "Required. Immutable. The name of the `FileSearchStore` to import the file into. Example: `fileSearchStores/my-file-search-store-123`", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^fileSearchStores/[^/]+$" } } ], @@ -2225,7 +2120,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CountTokensRequest" + "$ref": "#/components/schemas/ImportFileRequest" } } } @@ -2236,7 +2131,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CountTokensResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -2244,43 +2139,37 @@ } } }, - "/models/{modelsId}:streamGenerateContent": { - "post": { - "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.", - "operationId": "models.streamGenerateContent", + "/fileSearchStores/{fileSearchStoresId}/upload/operations/{operationsId}": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "operationId": "fileSearchStores.upload.operations.get", "parameters": [ { - "name": "modelsId", + "name": "operationsId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "schema": { + "type": "string" + } + }, + { + "name": "fileSearchStoresId", + "in": "path", + "required": true, + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^fileSearchStores/[^/]+/upload/operations/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" - } - }, - "text/event-stream": { - "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -2288,31 +2177,30 @@ } } }, - "/models/{modelsId}:batchGenerateContent": { - "post": { - "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", - "operationId": "models.batchGenerateContent", + "/fileSearchStores/{fileSearchStoresId}/operations/{operationsId}": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "operationId": "fileSearchStores.operations.get", "parameters": [ { - "name": "modelsId", + "name": "operationsId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "schema": { + "type": "string" + } + }, + { + "name": "fileSearchStoresId", + "in": "path", + "required": true, + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^fileSearchStores/[^/]+/operations/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BatchGenerateContentRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -2327,19 +2215,36 @@ } } }, - "/models/{modelsId}": { + "/fileSearchStores/{fileSearchStoresId}/documents": { "get": { - "description": "Gets information about a specific `Model` such as its version number, token limits, [parameters](https://ai.google.dev/gemini-api/docs/models/generative-models#model-parameters) and other metadata. Refer to the [Gemini models guide](https://ai.google.dev/gemini-api/docs/models/gemini) for detailed model information.", - "operationId": "models.get", + "description": "Lists all `Document`s in a `Corpus`.", + "operationId": "fileSearchStores.documents.list", "parameters": [ { - "name": "modelsId", + "name": "pageSize", + "in": "query", + "description": "Optional. The maximum number of `Document`s to return (per page). The service may return fewer `Document`s. If unspecified, at most 10 `Document`s will be returned. The maximum size limit is 20 `Document`s per page.", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "pageToken", + "in": "query", + "description": "Optional. A page token, received from a previous `ListDocuments` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListDocuments` must match the call that provided the page token.", + "schema": { + "type": "string" + } + }, + { + "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "Required. The resource name of the model. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", + "description": "Required. The name of the `FileSearchStore` containing `Document`s. Example: `fileSearchStores/my-file-search-store-123`", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^fileSearchStores/[^/]+$" } } ], @@ -2349,7 +2254,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Model" + "$ref": "#/components/schemas/ListDocumentsResponse" } } } @@ -2357,26 +2262,35 @@ } } }, - "/models": { - "get": { - "description": "Lists the [`Model`s](https://ai.google.dev/gemini-api/docs/models/gemini) available through the Gemini API.", - "operationId": "models.list", + "/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}": { + "delete": { + "description": "Deletes a `Document`.", + "operationId": "fileSearchStores.documents.delete", "parameters": [ { - "name": "pageSize", - "in": "query", - "description": "The maximum number of `Models` to return (per page). If unspecified, 50 models will be returned per page. This method returns at most 1000 models per page, even if you pass a larger page_size.", + "name": "fileSearchStoresId", + "in": "path", + "required": true, "schema": { - "type": "integer", - "format": "int32" + "type": "string" } }, { - "name": "pageToken", + "name": "force", "in": "query", - "description": "A page token, received from a previous `ListModels` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListModels` must match the call that provided the page token.", + "description": "Optional. If set to true, any `Chunk`s and objects related to this `Document` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Document` contains any `Chunk`s.", "schema": { - "type": "string" + "type": "boolean" + } + }, + { + "name": "documentsId", + "in": "path", + "required": true, + "description": "Required. The resource name of the `Document` to delete. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`", + "schema": { + "type": "string", + "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$" } } ], @@ -2386,46 +2300,43 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListModelsResponse" + "$ref": "#/components/schemas/Empty" } } } } } - } - }, - "/models/{modelsId}:generateContent": { - "post": { - "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.", - "operationId": "models.generateContent", + }, + "get": { + "description": "Gets information about a specific `Document`.", + "operationId": "fileSearchStores.documents.get", "parameters": [ { - "name": "modelsId", + "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "schema": { + "type": "string" + } + }, + { + "name": "documentsId", + "in": "path", + "required": true, + "description": "Required. The name of the `Document` to retrieve. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/Document" } } } @@ -2433,77 +2344,57 @@ } } }, - "/models/{modelsId}:batchEmbedContents": { - "post": { - "description": "Generates multiple embedding vectors from the input `Content` which consists of a batch of strings represented as `EmbedContentRequest` objects.", - "operationId": "models.batchEmbedContents", + "/files/{filesId}": { + "get": { + "description": "Gets the metadata for the given `File`.", + "operationId": "files.get", "parameters": [ { - "name": "modelsId", + "name": "filesId", "in": "path", "required": true, - "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", + "description": "Required. The name of the `File` to get. Example: `files/abc-123`", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^files/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BatchEmbedContentsRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BatchEmbedContentsResponse" + "$ref": "#/components/schemas/File" } } } } } - } - }, - "/models/{modelsId}:asyncBatchEmbedContent": { - "post": { - "description": "Enqueues a batch of `EmbedContent` requests for batch processing. We have a `BatchEmbedContents` handler in `GenerativeService`, but it was synchronized. So we name this one to be `Async` to avoid confusion.", - "operationId": "models.asyncBatchEmbedContent", + }, + "delete": { + "description": "Deletes the `File`.", + "operationId": "files.delete", "parameters": [ { - "name": "modelsId", + "name": "filesId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "description": "Required. The name of the `File` to delete. Example: `files/abc-123`", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^files/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AsyncBatchEmbedContentRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/Empty" } } } @@ -2511,27 +2402,15 @@ } } }, - "/models/{modelsId}:embedContent": { + "/files:register": { "post": { - "description": "Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding).", - "operationId": "models.embedContent", - "parameters": [ - { - "name": "modelsId", - "in": "path", - "required": true, - "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", - "schema": { - "type": "string", - "pattern": "^models/[^/]+$" - } - } - ], + "description": "Registers a Google Cloud Storage files with FileService. The user is expected to provide Google Cloud Storage URIs and will receive a File resource for each URI in return. Note that the files are not copied, just registered with File API. If one file fails to register, the whole request fails.", + "operationId": "files.register", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EmbedContentRequest" + "$ref": "#/components/schemas/RegisterFilesRequest" } } } @@ -2542,7 +2421,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EmbedContentResponse" + "$ref": "#/components/schemas/RegisterFilesResponse" } } } @@ -2550,62 +2429,43 @@ } } }, - "/models/{modelsId}/operations": { - "get": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - "operationId": "models.operations.list", + "/dynamic/{dynamicId}:streamGenerateContent": { + "post": { + "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.", + "operationId": "dynamic.streamGenerateContent", "parameters": [ { - "name": "filter", - "in": "query", - "description": "The standard list filter.", - "schema": { - "type": "string" - } - }, - { - "name": "modelsId", + "name": "dynamicId", "in": "path", "required": true, - "description": "The name of the operation's parent resource.", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "pattern": "^models/[^/]+$" - } - }, - { - "name": "pageSize", - "in": "query", - "description": "The standard list page size.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "pageToken", - "in": "query", - "description": "The standard list page token.", - "schema": { - "type": "string" - } - }, - { - "name": "returnPartialSuccess", - "in": "query", - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "schema": { - "type": "boolean" + "pattern": "^dynamic/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenerateContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListOperationsResponse" + "$ref": "#/components/schemas/GenerateContentResponse" + } + }, + "text/event-stream": { + "schema": { + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -2613,37 +2473,38 @@ } } }, - "/models/{modelsId}/operations/{operationsId}": { - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "operationId": "models.operations.get", + "/dynamic/{dynamicId}:generateContent": { + "post": { + "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.", + "operationId": "dynamic.generateContent", "parameters": [ { - "name": "operationsId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "modelsId", + "name": "dynamicId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "pattern": "^models/[^/]+/operations/[^/]+$" + "pattern": "^dynamic/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenerateContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -2651,15 +2512,15 @@ } } }, - "/auth_tokens": { + "/cachedContents": { "post": { - "description": "Creates a token that can be used to constrain the behavior of a BidiGenerateContent session.", - "operationId": "auth_tokens.create", + "description": "Creates CachedContent resource.", + "operationId": "cachedContents.create", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthToken" + "$ref": "#/components/schemas/CachedContent" } } } @@ -2670,23 +2531,21 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthToken" + "$ref": "#/components/schemas/CachedContent" } } } } } - } - }, - "/environments:list": { + }, "get": { - "description": "Lists environments.", - "operationId": "environments.list", + "description": "Lists CachedContents.", + "operationId": "cachedContents.list", "parameters": [ { "name": "pageSize", "in": "query", - "description": "Optional. Maximum number of environments to return. If unspecified, defaults to 50. Maximum is 1000.", + "description": "Optional. The maximum number of cached contents to return. The service may return fewer than this value. If unspecified, some default (under maximum) number of items will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", "schema": { "type": "integer", "format": "int32" @@ -2695,7 +2554,7 @@ { "name": "pageToken", "in": "query", - "description": "Optional. Pagination token.", + "description": "Optional. A page token, received from a previous `ListCachedContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCachedContents` must match the call that provided the page token.", "schema": { "type": "string" } @@ -2707,7 +2566,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListEnvironmentsResponse" + "$ref": "#/components/schemas/ListCachedContentsResponse" } } } @@ -2715,15 +2574,64 @@ } } }, - "/environments:create": { - "post": { - "description": "Creates an environment.", - "operationId": "environments.create", + "/cachedContents/{cachedContentsId}": { + "delete": { + "description": "Deletes CachedContent resource.", + "operationId": "cachedContents.delete", + "parameters": [ + { + "name": "cachedContentsId", + "in": "path", + "required": true, + "description": "Required. The resource name referring to the content cache entry Format: `cachedContents/{id}`", + "schema": { + "type": "string", + "pattern": "^cachedContents/[^/]+$" + } + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Empty" + } + } + } + } + } + }, + "patch": { + "description": "Updates CachedContent resource (only expiration is updatable).", + "operationId": "cachedContents.patch", + "parameters": [ + { + "name": "cachedContentsId", + "in": "path", + "required": true, + "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`", + "schema": { + "type": "string", + "pattern": "^cachedContents/[^/]+$" + } + }, + { + "name": "updateMask", + "in": "query", + "description": "The list of fields to update.", + "schema": { + "type": "string", + "format": "google-fieldmask" + } + } + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateEnvironmentRequest" + "$ref": "#/components/schemas/CachedContent" } } } @@ -2734,26 +2642,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Environment" + "$ref": "#/components/schemas/CachedContent" } } } } } - } - }, - "/environments/{id}:delete": { - "delete": { - "description": "Deletes an environment.", - "operationId": "environments.delete", + }, + "get": { + "description": "Reads CachedContent resource.", + "operationId": "cachedContents.get", "parameters": [ { - "name": "id", + "name": "cachedContentsId", "in": "path", "required": true, - "description": "Required. Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.", + "description": "Required. The resource name referring to the content cache entry. Format: `cachedContents/{id}`", "schema": { - "type": "string" + "type": "string", + "pattern": "^cachedContents/[^/]+$" } } ], @@ -2763,7 +2670,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/CachedContent" } } } @@ -2800,48 +2707,92 @@ } } }, - "/environments/{environmentsId}/files/{filesId}": { - "put": { - "description": "Uploads (creates or updates) a file in an environment's workspace.", - "operationId": "environments.files.media.upload", - "parameters": [ - { - "name": "environmentsId", - "in": "path", - "required": true, - "description": "Required. The resource name of the target environment. Format: `environments/{environment_id}`", - "schema": { - "type": "string", - "pattern": "^environments/[^/]+$" + "/environments:create": { + "post": { + "description": "Creates an environment.", + "operationId": "environments.create", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateEnvironmentRequest" + } } - }, + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Environment" + } + } + } + } + } + } + }, + "/environments/{id}:delete": { + "delete": { + "description": "Deletes an environment.", + "operationId": "environments.delete", + "parameters": [ { - "name": "filesId", + "name": "id", "in": "path", "required": true, - "description": "Required. The destination relative path of the file within the environment. Example: \"workspace/src/main.py\"", + "description": "Required. Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.", "schema": { - "type": "string", - "pattern": "^.*$" + "type": "string" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UploadEnvironmentFileRequest" + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Empty" + } } } } - }, + } + } + }, + "/environments:list": { + "get": { + "description": "Lists environments.", + "operationId": "environments.list", + "parameters": [ + { + "name": "pageSize", + "in": "query", + "description": "Optional. Maximum number of environments to return. If unspecified, defaults to 50. Maximum is 1000.", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "pageToken", + "in": "query", + "description": "Optional. Pagination token.", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UploadEnvironmentFileResponse" + "$ref": "#/components/schemas/ListEnvironmentsResponse" } } } @@ -2911,1803 +2862,1417 @@ } } } + }, + "/environments/{environmentsId}/files/{filesId}": { + "put": { + "description": "Uploads (creates or updates) a file in an environment's workspace.", + "operationId": "environments.files.media.upload", + "parameters": [ + { + "name": "environmentsId", + "in": "path", + "required": true, + "description": "Required. The resource name of the target environment. Format: `environments/{environment_id}`", + "schema": { + "type": "string", + "pattern": "^environments/[^/]+$" + } + }, + { + "name": "filesId", + "in": "path", + "required": true, + "description": "Required. The destination relative path of the file within the environment. Example: \"workspace/src/main.py\"", + "schema": { + "type": "string", + "pattern": "^.*$" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UploadEnvironmentFileRequest" + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UploadEnvironmentFileResponse" + } + } + } + } + } + } } }, "components": { "schemas": { - "Operation": { - "description": "This resource represents a long-running operation that is the result of a network API call.", + "V1mainMediaResolution": { + "description": "Media resolution for tokenization.", + "properties": { + "level": { + "enum": [ + "MEDIA_RESOLUTION_UNSPECIFIED", + "MEDIA_RESOLUTION_LOW", + "MEDIA_RESOLUTION_MEDIUM", + "MEDIA_RESOLUTION_HIGH", + "MEDIA_RESOLUTION_ULTRA_HIGH" + ], + "description": "The tokenization quality used for given media. for Gemini API support .", + "type": "string", + "x-enum-descriptions": [ + "Media resolution has not been set.", + "Media resolution set to low.", + "Media resolution set to medium.", + "Media resolution set to high.", + "Media resolution set to ultra high." + ] + } + }, + "type": "object" + }, + "ContextWindowCompressionConfig": { "type": "object", + "description": "Enables context window compression \u2014 a mechanism for managing the model's context window so that it does not exceed a given length.", "properties": { - "error": { - "$ref": "#/components/schemas/Status", - "description": "The error result of the operation in case of failure or cancellation." - }, - "response": { - "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." - }, - "type": "object" + "slidingWindow": { + "$ref": "#/components/schemas/SlidingWindow", + "description": "A sliding-window mechanism." }, - "name": { + "triggerTokens": { "type": "string", - "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`." + "description": "The number of tokens (before running a turn) required to trigger a context window compression. This can be used to balance quality against latency as shorter context windows may result in faster model responses. However, any compression operation will cause a temporary latency increase, so they should not be triggered frequently. If not set, the default is 80% of the model's context window limit. This leaves 20% for the next user request/model response.", + "format": "int64" + } + } + }, + "GoogleAiGenerativelanguageV1betaGroundingSupport": { + "description": "Grounding support.", + "type": "object", + "properties": { + "segment": { + "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaSegment", + "description": "Segment of the content this support belongs to." }, - "done": { - "type": "boolean", - "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available." + "confidenceScores": { + "type": "array", + "items": { + "type": "number", + "format": "float" + }, + "description": "Optional. Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices." }, - "metadata": { - "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", - "type": "object", - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." - } + "renderedParts": { + "items": { + "type": "integer", + "format": "int32" + }, + "type": "array", + "readOnly": true, + "description": "Output only. Indices into the `parts` field of the candidate's content. These indices specify which rendered parts are associated with this support source." + }, + "groundingChunkIndices": { + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array", + "description": "Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. If the response is streaming, the grounding_chunk_indices refer to the indices across all responses. It is the client's responsibility to accumulate the grounding chunks from all responses (while maintaining the same order)." } } }, - "Empty": { - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", - "properties": {}, - "type": "object" - }, - "HistoryConfig": { + "Blob": { + "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.", "type": "object", - "description": "History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages.", "properties": { - "initialHistoryInClientContent": { - "description": "Optional. If true, after sending `setup_complete`, the server will wait and at first process `client_content` messages until `turn_complete` is `true`. This initial history will not trigger a model call and may end with role `MODEL`. After `turn_complete` is `true`, the client can start the realtime conversation via `realtime_input`.", - "type": "boolean" + "data": { + "description": "Raw bytes for media formats.", + "format": "byte", + "type": "string" + }, + "mimeType": { + "description": "The IANA standard MIME type of the source data. Examples of supported types: - Images: image/png, image/jpeg, image/jpg, image/webp, image/heic, image/heif, image/gif, image/avif - Audio: audio/*, video/audio/s16le, video/audio/wav - Video: video/* - Text: text/plain, text/html, text/css, text/javascript, text/x-typescript, text/csv, text/markdown, text/x-python, text/xml, text/rtf, video/text/timestamp - Applications: application/x-javascript, application/x-typescript, application/x-python-code, application/json, application/x-ipynb+json, application/rtf, application/pdf For additional context, see [Supported file formats](https://ai.google.dev/gemini-api/docs/file-input-methods#supported-content-types). //", + "type": "string" + }, + "displayName": { + "type": "string", + "description": "Optional. Specifies the name used to refer to this blob to the model (e.g. \"my_blob.png\"). Used as the blob reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`." } } }, - "UrlContext": { - "properties": {}, - "description": "Tool to support URL context retrieval.", - "type": "object" - }, - "SafetySetting": { + "WordInfo": { + "description": "Information about a single recognized word.", "properties": { - "category": { - "x-enum-descriptions": [ - "Category is unspecified.", - "**PaLM** - Negative or harmful comments targeting identity and/or protected attribute.", - "**PaLM** - Content that is rude, disrespectful, or profane.", - "**PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore.", - "**PaLM** - Contains references to sexual acts or other lewd content.", - "**PaLM** - Promotes unchecked medical advice.", - "**PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts.", - "**Gemini** - Harassment content.", - "**Gemini** - Hate speech and content.", - "**Gemini** - Sexually explicit content.", - "**Gemini** - Dangerous content.", - "**Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.", - "**Gemini** - Prompts attempting to bypass or subvert the model's safety guidelines (jailbreak attempts)." - ], - "description": "Required. The category for this setting.", + "endOffset": { + "description": "Optional. End offset in time of the word relative to the start of the audio.", "type": "string", - "enum": [ - "HARM_CATEGORY_UNSPECIFIED", - "HARM_CATEGORY_DEROGATORY", - "HARM_CATEGORY_TOXICITY", - "HARM_CATEGORY_VIOLENCE", - "HARM_CATEGORY_SEXUAL", - "HARM_CATEGORY_MEDICAL", - "HARM_CATEGORY_DANGEROUS", - "HARM_CATEGORY_HARASSMENT", - "HARM_CATEGORY_HATE_SPEECH", - "HARM_CATEGORY_SEXUALLY_EXPLICIT", - "HARM_CATEGORY_DANGEROUS_CONTENT", - "HARM_CATEGORY_CIVIC_INTEGRITY", - "HARM_CATEGORY_JAILBREAK" - ], - "enumDeprecated": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false - ] + "format": "google-duration" }, - "threshold": { + "word": { "type": "string", - "enum": [ - "HARM_BLOCK_THRESHOLD_UNSPECIFIED", - "BLOCK_LOW_AND_ABOVE", - "BLOCK_MEDIUM_AND_ABOVE", - "BLOCK_ONLY_HIGH", - "BLOCK_NONE", - "OFF" - ], - "x-enum-descriptions": [ - "Threshold is unspecified.", - "Content with NEGLIGIBLE will be allowed.", - "Content with NEGLIGIBLE and LOW will be allowed.", - "Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed.", - "All content will be allowed.", - "Turn off the safety filter." - ], - "description": "Required. Controls the probability threshold at which harm is blocked." + "description": "Required. Transcript of the word." + }, + "startOffset": { + "format": "google-duration", + "description": "Optional. Start offset in time of the word relative to the start of the audio.", + "type": "string" } }, - "type": "object", - "description": "Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked." + "type": "object" }, - "ListFilesResponse": { - "description": "Response for `ListFiles`.", + "CustomMetadata": { + "type": "object", + "description": "User provided metadata stored as key-value pairs.", "properties": { - "files": { - "items": { - "$ref": "#/components/schemas/File" - }, - "description": "The list of `File`s.", - "type": "array" + "numericValue": { + "format": "float", + "type": "number", + "description": "The numeric value of the metadata to store." }, - "nextPageToken": { + "stringValue": { + "type": "string", + "description": "The string value of the metadata to store." + }, + "key": { "type": "string", - "description": "A token that can be sent as a `page_token` into a subsequent `ListFiles` call." + "description": "Required. The key of the metadata to store." + }, + "stringListValue": { + "description": "The StringList value of the metadata to store.", + "$ref": "#/components/schemas/StringList" } - }, - "type": "object" + } }, - "Schema": { + "GetEnvironmentFilesResponse": { + "description": "Response for `GetEnvironmentFiles`.", "type": "object", - "description": "The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema).", "properties": { - "required": { + "files": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/EnvironmentFile" }, - "description": "Optional. Required properties of Type.OBJECT." + "description": "If the requested path is a directory, this contains its contents. If the requested path is a file, this contains a single entry with the file's metadata. If alt=media was specified, this is empty (content is served via `blob`)." }, - "example": { - "description": "Optional. Example of the object. Will only populated when the object is the root." + "next_page_token": { + "description": "Pagination token for directory listing. NOLINT", + "type": "string" + } + } + }, + "InlinedEmbedContentResponse": { + "properties": { + "response": { + "readOnly": true, + "$ref": "#/components/schemas/EmbedContentResponse", + "description": "Output only. The response to the request." }, - "maxProperties": { - "type": "string", - "description": "Optional. Maximum number of the properties for Type.OBJECT.", - "format": "int64" + "error": { + "$ref": "#/components/schemas/Status", + "description": "Output only. The error encountered while processing the request.", + "readOnly": true }, - "anyOf": { - "items": { - "$ref": "#/components/schemas/Schema" + "metadata": { + "additionalProperties": { + "description": "Properties of the object." }, - "type": "array", - "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list." - }, - "nullable": { - "description": "Optional. Indicates if the value may be null.", - "type": "boolean" + "readOnly": true, + "type": "object", + "description": "Output only. The metadata associated with the request." + } + }, + "type": "object", + "description": "The response to a single request in the batch." + }, + "TransferOwnershipRequest": { + "properties": { + "emailAddress": { + "type": "string", + "description": "Required. The email address of the user to whom the tuned model is being transferred to." + } + }, + "type": "object", + "description": "Request to transfer the ownership of the tuned model." + }, + "CachedContentUsageMetadata": { + "type": "object", + "properties": { + "totalTokenCount": { + "format": "int32", + "description": "Total number of tokens that the cached content consumes.", + "type": "integer" + } + }, + "description": "Metadata on the usage of the cached content." + }, + "InlinedResponse": { + "description": "The response to a single request in the batch.", + "type": "object", + "properties": { + "metadata": { + "type": "object", + "description": "Output only. The metadata associated with the request.", + "readOnly": true, + "additionalProperties": { + "description": "Properties of the object." + } }, - "default": { - "description": "Optional. Default value of the field. Per JSON Schema, this field is intended for documentation generators and doesn't affect validation. Thus it's included here and ignored so that developers who send schemas with a `default` field don't get unknown-field errors." + "error": { + "$ref": "#/components/schemas/Status", + "description": "Output only. The error encountered while processing the request.", + "readOnly": true }, - "minProperties": { - "description": "Optional. Minimum number of the properties for Type.OBJECT.", - "format": "int64", + "response": { + "$ref": "#/components/schemas/GenerateContentResponse", + "readOnly": true, + "description": "Output only. The response to the request." + } + } + }, + "DynamicRetrievalConfig": { + "description": "Describes the options to customize dynamic retrieval.", + "type": "object", + "properties": { + "mode": { + "description": "The mode of the predictor to be used in dynamic retrieval.", + "enum": [ + "MODE_UNSPECIFIED", + "MODE_DYNAMIC" + ], + "x-enum-descriptions": [ + "Always trigger retrieval.", + "Run retrieval only when system decides it is necessary." + ], "type": "string" }, - "description": { - "description": "Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown.", + "dynamicThreshold": { + "type": "number", + "format": "float", + "description": "The threshold to be used in dynamic retrieval. If not set, a system default value is used." + } + } + }, + "Web": { + "type": "object", + "properties": { + "uri": { + "description": "Output only. URI reference of the chunk.", + "readOnly": true, "type": "string" }, - "enum": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]}" - }, - "propertyOrdering": { + "title": { + "type": "string", + "readOnly": true, + "description": "Output only. Title of the chunk." + } + }, + "description": "Chunk from the web." + }, + "ListDocumentsResponse": { + "properties": { + "documents": { "items": { - "type": "string" + "$ref": "#/components/schemas/Document" }, - "description": "Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response.", - "type": "array" + "type": "array", + "description": "The returned `Document`s." }, - "properties": { - "description": "Optional. Properties of Type.OBJECT.", + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", + "type": "string" + } + }, + "description": "Response from `ListDocuments` containing a paginated list of `Document`s. The `Document`s are sorted by ascending `document.create_time`.", + "type": "object" + }, + "StreamableHttpTransport": { + "type": "object", + "description": "A transport that can stream HTTP requests and responses. Next ID: 6", + "properties": { + "headers": { + "description": "Optional: Fields for authentication headers, timeouts, etc., if needed.", "additionalProperties": { - "$ref": "#/components/schemas/Schema" + "type": "string" }, "type": "object" }, - "maxLength": { - "description": "Optional. Maximum length of the Type.STRING", + "timeout": { "type": "string", - "format": "int64" + "format": "google-duration", + "description": "HTTP timeout for regular operations." }, - "minimum": { - "type": "number", - "description": "Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER", - "format": "double" + "url": { + "type": "string", + "description": "The full URL for the MCPServer endpoint. Example: \"https://api.example.com/mcp\"" }, - "items": { - "$ref": "#/components/schemas/Schema", - "description": "Optional. Schema of the elements of Type.ARRAY." - }, - "minLength": { - "type": "string", - "description": "Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING", - "format": "int64" - }, - "format": { - "description": "Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality.", - "type": "string" - }, - "minItems": { - "format": "int64", - "description": "Optional. Minimum number of the elements for Type.ARRAY.", - "type": "string" - }, - "maximum": { - "description": "Optional. Maximum value of the Type.INTEGER and Type.NUMBER", - "type": "number", - "format": "double" - }, - "title": { - "description": "Optional. The title of the schema.", - "type": "string" - }, - "pattern": { - "description": "Optional. Pattern of the Type.STRING to restrict a string to a regular expression.", - "type": "string" - }, - "maxItems": { - "format": "int64", - "description": "Optional. Maximum number of the elements for Type.ARRAY.", + "sseReadTimeout": { + "format": "google-duration", + "description": "Timeout for SSE read operations.", "type": "string" }, - "type": { - "description": "Required. Data type.", - "x-enum-descriptions": [ - "Not specified, should not be used.", - "String type.", - "Number type.", - "Integer type.", - "Boolean type.", - "Array type.", - "Object type.", - "Null type." - ], - "type": "string", - "enum": [ - "TYPE_UNSPECIFIED", - "STRING", - "NUMBER", - "INTEGER", - "BOOLEAN", - "ARRAY", - "OBJECT", - "NULL" - ] + "terminateOnClose": { + "description": "Whether to close the client session when the transport closes.", + "type": "boolean" } } }, - "FunctionResponse": { + "UploadToFileSearchStoreRequest": { + "description": "Request for `UploadToFileSearchStore`.", "properties": { - "name": { - "type": "string", - "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128." + "chunkingConfig": { + "description": "Optional. Config for telling the service how to chunk the data. If not provided, the service will use default parameters.", + "$ref": "#/components/schemas/ChunkingConfig" }, - "scheduling": { - "description": "Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.", + "mimeType": { "type": "string", - "enum": [ - "SCHEDULING_UNSPECIFIED", - "SILENT", - "WHEN_IDLE", - "INTERRUPT" - ], - "x-enum-descriptions": [ - "This value is unused.", - "Only add the result to the conversation context, do not interrupt or trigger generation.", - "Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.", - "Add the result to the conversation context, interrupt ongoing generation and prompt to generate output." - ] + "description": "Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content." }, - "id": { - "description": "Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`.", - "type": "string" - }, - "response": { - "type": "object", - "additionalProperties": { - "description": "Properties of the object." - }, - "description": "Required. The function response in JSON object format. Callers can use any keys of their choice that fit the function's syntax to return the function output, e.g. \"output\", \"result\", etc. In particular, if the function call failed to execute, the response can have an \"error\" key to return error details to the model. Multimedia can be included by using a subobject containing a single \"$ref\" key whose value is the `inline_data.display_name` of a `FunctionResponsePart` holding the multimedia. See https://ai.google.dev/gemini-api/docs/function-calling#multimodal." + "displayName": { + "type": "string", + "description": "Optional. Display name of the created document." }, - "parts": { - "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.", + "customMetadata": { + "description": "Custom metadata to be associated with the data.", + "type": "array", "items": { - "$ref": "#/components/schemas/FunctionResponsePart" - }, - "type": "array" - }, - "willContinue": { - "type": "boolean", - "description": "Optional. Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished. This may still trigger the model generation. To avoid triggering the generation and finish the function call, additionally set `scheduling` to `SILENT`." + "$ref": "#/components/schemas/CustomMetadata" + } } }, - "type": "object", - "description": "The result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` made based on model prediction." + "type": "object" }, - "GeneratedFile": { - "description": "A file generated on behalf of a user.", + "FunctionCall": { "type": "object", + "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.", "properties": { "name": { - "description": "Identifier. The name of the generated file. Example: `generatedFiles/abc-123`", - "type": "string" - }, - "error": { - "description": "Error details if the GeneratedFile ends up in the STATE_FAILED state.", - "$ref": "#/components/schemas/Status" + "type": "string", + "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128." }, - "mimeType": { - "description": "MIME type of the generatedFile.", + "id": { + "description": "Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.", "type": "string" }, - "state": { - "type": "string", - "enum": [ - "STATE_UNSPECIFIED", - "GENERATING", - "GENERATED", - "FAILED" - ], - "readOnly": true, - "description": "Output only. The state of the GeneratedFile.", - "x-enum-descriptions": [ - "The default value. This value is used if the state is omitted.", - "Being generated.", - "Generated and is ready for download.", - "Failed to generate the GeneratedFile." - ] + "args": { + "description": "Optional. The function parameters and values in JSON object format.", + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + } } } }, - "MultiSpeakerVoiceConfig": { + "VoiceConfig": { "type": "object", - "description": "The configuration for the multi-speaker setup.", + "description": "The configuration for the voice to use.", "properties": { - "speakerVoiceConfigs": { - "items": { - "$ref": "#/components/schemas/SpeakerVoiceConfig" - }, - "description": "Required. All the enabled speaker voices.", - "type": "array" + "voice": { + "type": "string", + "description": "Optional. The speaker identifier for synthesis. Supported formats: * Speaker name for prebuilt voices (for example, `Orus` or `Kore`). * Voice ID for stored voices (for example, `voice_xxx`). * Voice replication key (for example, `voicekey_xxx`)." + }, + "prebuiltVoiceConfig": { + "description": "The configuration for the prebuilt voice to use.", + "$ref": "#/components/schemas/PrebuiltVoiceConfig" } } }, - "FunctionCallingConfig": { - "description": "Configuration for specifying function calling behavior.", + "CreateFileResponse": { + "description": "Response for `CreateFile`.", "type": "object", "properties": { - "mode": { - "type": "string", - "enum": [ - "MODE_UNSPECIFIED", - "AUTO", - "ANY", - "NONE", - "VALIDATED" - ], - "description": "Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO.", - "x-enum-descriptions": [ - "Unspecified function calling mode. This value should not be used.", - "Default model behavior, model decides to predict either a function call or a natural language response.", - "Model is constrained to always predicting a function call only. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\".", - "Model will not predict any function call. Model behavior is same as when not passing any function declarations.", - "Model decides to predict either a function call or a natural language response, but will validate function calls with constrained decoding. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\"." - ] - }, - "allowedFunctionNames": { - "items": { - "type": "string" - }, - "type": "array", - "description": "Optional. A set of function names that, when provided, limits the functions the model will call. This should only be set when the Mode is ANY or VALIDATED. Function names should match [FunctionDeclaration.name]. When set, model will predict a function call from only allowed function names." + "file": { + "description": "Metadata for the created file.", + "$ref": "#/components/schemas/File" } } }, - "GoogleAiGenerativelanguageV1betaSegment": { + "EgressRule": { "properties": { - "text": { - "description": "The text corresponding to the segment from the response.", - "type": "string" + "domain": { + "type": "string", + "description": "Domain to allow outbound requests to. Supports wildcards (e.g. '*.googleapis.com'). Use '*' to allow all domains." }, - "endIndex": { - "description": "End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.", - "type": "integer", - "format": "int32" + "credential": { + "type": "string", + "description": "Optional. Reference to a server-managed Credential resource by ID." }, - "startIndex": { - "format": "int32", - "description": "Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.", - "type": "integer" + "transform": { + "description": "Headers to inject into requests matching this rule. Key: header name (e.g., \"Authorization\"). Value: header value (e.g., \"Bearer your-token\").", + "additionalProperties": { + "type": "string" + }, + "type": "object" }, - "partIndex": { - "description": "The index of a Part object within its parent Content object.", - "format": "int32", - "type": "integer" + "mode": { + "type": "string", + "x-enum-descriptions": [ + "Default value. Unused.", + "All network egress is blocked." + ], + "description": "Network egress mode. Set via the `\"allowlist\": \"disabled\"` short form; must be the only rule in the allowlist and cannot be combined with `domain`, `transform` or `credential`.", + "enum": [ + "NETWORK_MODE_UNSPECIFIED", + "DISABLED" + ] } }, - "description": "Segment of the content.", + "description": "A single domain allowlist rule with optional header injection.", "type": "object" }, - "ListCorporaResponse": { - "description": "Response from `ListCorpora` containing a paginated list of `Corpora`. The results are sorted by ascending `corpus.create_time`.", + "UploadEnvironmentFileRequest": { + "description": "Request for `UploadEnvironmentFile`.", "properties": { - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", - "type": "string" + "extract": { + "type": "boolean", + "description": "Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`." }, - "corpora": { - "items": { - "$ref": "#/components/schemas/Corpus" - }, - "type": "array", - "description": "The returned corpora." + "overwrite": { + "description": "Optional. Whether to overwrite the destination file if it already exists.", + "type": "boolean" } }, "type": "object" }, - "RegisterFilesRequest": { - "properties": { - "uris": { - "description": "Required. The Google Cloud Storage URIs to register. Example: `gs://bucket/object`.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "description": "Request for `RegisterFiles`." - }, - "BatchEmbedContentsRequest": { - "description": "Batch request to get embeddings from the model for a list of prompts.", - "properties": { - "requests": { - "description": "Required. Embed requests for the batch. The model in each of these requests must match the model specified `BatchEmbedContentsRequest.model`.", - "type": "array", - "items": { - "$ref": "#/components/schemas/EmbedContentRequest" - } - } - }, - "type": "object" - }, - "EmbedContentBatchOutput": { - "description": "The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.", + "AuthToken": { "type": "object", "properties": { - "responsesFile": { - "description": "Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `EmbedContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests.", + "uses": { + "format": "int32", + "description": "Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1.", + "type": "integer" + }, + "name": { "type": "string", + "description": "Output only. Identifier. The token itself.", "readOnly": true }, - "inlinedResponses": { - "$ref": "#/components/schemas/InlinedEmbedContentResponses", - "readOnly": true, - "description": "Output only. The responses to the requests in the batch. Returned when the batch was built using inlined requests. The responses will be in the same order as the input requests." - } - } - }, - "WebSearch": { - "description": "Standard web search for grounding and related configurations.", - "type": "object", - "properties": {} - }, - "ToolCall": { - "description": "A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`.", - "properties": { - "args": { - "description": "Optional. The tool call arguments. Example: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}", - "additionalProperties": { - "description": "Properties of the object." - }, - "type": "object" + "bidiGenerateContentSetup": { + "$ref": "#/components/schemas/BidiGenerateContentSetup", + "description": "Optional. Input only. Immutable. Configuration specific to `BidiGenerateContent`." }, - "id": { - "description": "Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`.", + "fieldMask": { + "description": "Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection.", + "format": "google-fieldmask", "type": "string" }, - "toolName": { + "expireTime": { + "description": "Optional. Input only. Immutable. An optional time after which, when using the resulting token, messages in BidiGenerateContent sessions will be rejected. (Gemini may preemptively close the session after this time.) If not set then this defaults to 30 minutes in the future. If set, this value must be less than 20 hours in the future.", "type": "string", - "description": "Optional. The name of the tool that was called." + "format": "google-datetime" }, - "toolType": { + "newSessionExpireTime": { + "description": "Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future.", + "format": "google-datetime", + "type": "string" + } + }, + "description": "A request to create an ephemeral authentication token." + }, + "CodeExecutionResult": { + "description": "Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.", + "properties": { + "outcome": { + "type": "string", "x-enum-descriptions": [ - "Unspecified tool type.", - "Google search tool, maps to Tool.google_search.search_types.web_search.", - "Image search tool, maps to Tool.google_search.search_types.image_search.", - "URL context tool, maps to Tool.url_context.", - "Google maps tool, maps to Tool.google_maps.", - "File search tool, maps to Tool.file_search." + "Unspecified status. This value should not be used.", + "Code execution completed successfully. `output` contains the stdout, if any.", + "Code execution failed. `output` contains the stderr and stdout, if any.", + "Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present." ], - "type": "string", "enum": [ - "TOOL_TYPE_UNSPECIFIED", - "GOOGLE_SEARCH_WEB", - "GOOGLE_SEARCH_IMAGE", - "URL_CONTEXT", - "GOOGLE_MAPS", - "FILE_SEARCH" + "OUTCOME_UNSPECIFIED", + "OUTCOME_OK", + "OUTCOME_FAILED", + "OUTCOME_DEADLINE_EXCEEDED" ], - "description": "Required. The type of tool that was called." + "description": "Required. Outcome of the code execution." + }, + "id": { + "type": "string", + "description": "Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id." + }, + "output": { + "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise.", + "type": "string" } }, "type": "object" }, - "GroundingChunkStringList": { + "LogprobsResult": { "properties": { - "values": { - "description": "The string values of the list.", + "chosenCandidates": { "items": { - "type": "string" + "$ref": "#/components/schemas/LogprobsResultCandidate" }, + "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.", "type": "array" + }, + "topCandidates": { + "items": { + "$ref": "#/components/schemas/TopCandidates" + }, + "type": "array", + "description": "Length = total number of decoding steps." + }, + "logProbabilitySum": { + "format": "float", + "type": "number", + "description": "Sum of log probabilities for all tokens." } }, - "description": "A list of string values.", + "description": "Logprobs Result", "type": "object" }, - "CachedContentUsageMetadata": { - "type": "object", + "ReviewSnippet": { + "description": "Encapsulates a snippet of a user review that answers a question about the features of a specific place in Google Maps.", "properties": { - "totalTokenCount": { - "type": "integer", - "format": "int32", - "description": "Total number of tokens that the cached content consumes." + "title": { + "type": "string", + "description": "Title of the review." + }, + "reviewId": { + "description": "The ID of the review snippet.", + "type": "string" + }, + "googleMapsUri": { + "description": "A link that corresponds to the user review on Google Maps.", + "type": "string" } }, - "description": "Metadata on the usage of the cached content." + "type": "object" }, - "UploadToFileSearchStoreRequest": { - "type": "object", - "description": "Request for `UploadToFileSearchStore`.", + "TuningExample": { "properties": { - "displayName": { - "type": "string", - "description": "Optional. Display name of the created document." + "output": { + "description": "Required. The expected model output.", + "type": "string" }, - "customMetadata": { + "textInput": { + "description": "Optional. Text model input.", + "type": "string" + } + }, + "description": "A single example for tuning.", + "type": "object" + }, + "ListTunedModelsResponse": { + "properties": { + "tunedModels": { + "description": "The returned Models.", "type": "array", - "description": "Custom metadata to be associated with the data.", "items": { - "$ref": "#/components/schemas/CustomMetadata" + "$ref": "#/components/schemas/TunedModel" } }, - "mimeType": { - "description": "Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.", + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", "type": "string" - }, - "chunkingConfig": { - "$ref": "#/components/schemas/ChunkingConfig", - "description": "Optional. Config for telling the service how to chunk the data. If not provided, the service will use default parameters." + } + }, + "type": "object", + "description": "Response from `ListTunedModels` containing a paginated list of Models." + }, + "CitationMetadata": { + "type": "object", + "description": "A collection of source attributions for a piece of content.", + "properties": { + "citationSources": { + "description": "Citations to sources for a specific response.", + "type": "array", + "items": { + "$ref": "#/components/schemas/CitationSource" + } } } }, - "EgressRule": { + "GroundingChunkCustomMetadata": { + "type": "object", + "description": "User provided metadata about the GroundingFact.", "properties": { - "credential": { - "type": "string", - "description": "Optional. Reference to a server-managed Credential resource by ID." - }, - "mode": { - "description": "Network egress mode. Set via the `\"allowlist\": \"disabled\"` short form; must be the only rule in the allowlist and cannot be combined with `domain`, `transform` or `credential`.", - "type": "string", - "enum": [ - "NETWORK_MODE_UNSPECIFIED", - "DISABLED" - ], - "x-enum-descriptions": [ - "Default value. Unused.", - "All network egress is blocked." - ] + "numericValue": { + "format": "float", + "description": "Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used.", + "type": "number" }, - "transform": { - "additionalProperties": { - "type": "string" - }, - "type": "object", - "description": "Headers to inject into requests matching this rule. Key: header name (e.g., \"Authorization\"). Value: header value (e.g., \"Bearer your-token\")." + "stringValue": { + "description": "Optional. The string value of the metadata.", + "type": "string" }, - "domain": { - "description": "Domain to allow outbound requests to. Supports wildcards (e.g. '*.googleapis.com'). Use '*' to allow all domains.", + "key": { + "description": "The key of the metadata.", "type": "string" + }, + "stringListValue": { + "description": "Optional. A list of string values for the metadata.", + "$ref": "#/components/schemas/GroundingChunkStringList" } - }, - "description": "A single domain allowlist rule with optional header injection.", - "type": "object" + } }, - "PromptFeedback": { - "description": "A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`.", - "type": "object", + "Content": { "properties": { - "blockReason": { - "description": "Optional. If set, the prompt was blocked and no candidates are returned. Rephrase the prompt.", - "type": "string", - "enum": [ - "BLOCK_REASON_UNSPECIFIED", - "SAFETY", - "OTHER", - "BLOCKLIST", - "PROHIBITED_CONTENT", - "IMAGE_SAFETY" - ], - "x-enum-descriptions": [ - "Default value. This value is unused.", - "Prompt was blocked due to safety reasons. Inspect `safety_ratings` to understand which safety category blocked it.", - "Prompt was blocked due to unknown reasons.", - "Prompt was blocked due to the terms which are included from the terminology blocklist.", - "Prompt was blocked due to prohibited content.", - "Candidates blocked due to unsafe image generation content." - ] + "role": { + "description": "Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset.", + "type": "string" }, - "safetyRatings": { + "parts": { + "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types.", + "type": "array", "items": { - "$ref": "#/components/schemas/SafetyRating" - }, - "description": "Ratings for safety of the prompt. There is at most one rating per category.", - "type": "array" + "$ref": "#/components/schemas/Part" + } } - } + }, + "description": "The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.", + "type": "object" }, - "FunctionDeclaration": { + "ListGeneratedFilesResponse": { + "type": "object", "properties": { - "name": { - "type": "string", - "description": "Required. The name of the function. Must be a-z, A-Z, 0-9, or contain underscores, colons, dots, and dashes, with a maximum length of 128." - }, - "parameters": { - "$ref": "#/components/schemas/Schema", - "description": "Optional. Describes the parameters to this function. Reflects the Open API 3.03 Parameter Object string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter." - }, - "parametersJsonSchema": { - "description": "Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { \"type\": \"object\", \"properties\": { \"name\": { \"type\": \"string\" }, \"age\": { \"type\": \"integer\" } }, \"additionalProperties\": false, \"required\": [\"name\", \"age\"], \"propertyOrdering\": [\"name\", \"age\"] } ``` This field is mutually exclusive with `parameters`." - }, - "responseJsonSchema": { - "description": "Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`." - }, - "behavior": { - "description": "Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method.", - "x-enum-descriptions": [ - "This value is unused.", - "If set, the system will wait to receive the function response before continuing the conversation.", - "If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model." - ], - "type": "string", - "enum": [ - "UNSPECIFIED", - "BLOCKING", - "NON_BLOCKING" - ] + "generatedFiles": { + "description": "The list of `GeneratedFile`s.", + "type": "array", + "items": { + "$ref": "#/components/schemas/GeneratedFile" + } }, - "description": { + "nextPageToken": { "type": "string", - "description": "Required. A brief description of the function." - }, - "response": { - "description": "Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.", - "$ref": "#/components/schemas/Schema" + "description": "A token that can be sent as a `page_token` into a subsequent `ListGeneratedFiles` call." } }, - "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.03 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.", - "type": "object" + "description": "Response for `ListGeneratedFiles`." }, - "CountTokensRequest": { + "ComputerUse": { + "description": "Computer Use tool type.", + "type": "object", "properties": { - "generateContentRequest": { - "$ref": "#/components/schemas/GenerateContentRequest", - "description": "Optional. The overall input given to the `Model`. This includes the prompt as well as other model steering information like [system instructions](https://ai.google.dev/gemini-api/docs/system-instructions), and/or function declarations for [function calling](https://ai.google.dev/gemini-api/docs/function-calling). `Model`s/`Content`s and `generate_content_request`s are mutually exclusive. You can either send `Model` + `Content`s or a `generate_content_request`, but never both." - }, - "contents": { - "description": "Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set.", + "disabledSafetyPolicies": { "items": { - "$ref": "#/components/schemas/Content" + "enum": [ + "SAFETY_POLICY_UNSPECIFIED", + "FINANCIAL_TRANSACTIONS", + "SENSITIVE_DATA_MODIFICATION", + "COMMUNICATION_TOOL", + "ACCOUNT_CREATION", + "DATA_MODIFICATION", + "USER_CONSENT_MANAGEMENT", + "LEGAL_TERMS_AND_AGREEMENTS" + ], + "type": "string", + "x-enum-descriptions": [ + "Unspecified safety policy.", + "Safety policy for financial transactions.", + "Safety policy for sensitive data modification.", + "Safety policy for communication tools (e.g. Gmail, Chat, Meet).", + "Safety policy for account creation.", + "Safety policy for data modification.", + "Safety policy for user consent management.", + "Safety policy for legal terms and agreements." + ] }, + "description": "Optional. Disabled safety policies for computer use.", "type": "array" + }, + "environment": { + "enum": [ + "ENVIRONMENT_UNSPECIFIED", + "ENVIRONMENT_BROWSER", + "ENVIRONMENT_MOBILE", + "ENVIRONMENT_DESKTOP" + ], + "description": "Required. The environment being operated.", + "x-enum-descriptions": [ + "Defaults to browser.", + "Operates in a web browser.", + "Operates in a mobile environment.", + "Operates in a desktop environment." + ], + "type": "string" + }, + "enablePromptInjectionDetection": { + "description": "Optional. Whether enable the prompt injection detection check on computer-use request.", + "type": "boolean" + }, + "excludedPredefinedFunctions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Optional. By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions." } - }, + } + }, + "UrlContext": { + "properties": {}, "type": "object", - "description": "Counts the number of tokens in the `prompt` sent to a model. Models may tokenize text differently, so each model may return a different `token_count`." + "description": "Tool to support URL context retrieval." }, - "ToolConfig": { + "ListFileSearchStoresResponse": { + "description": "Response from `ListFileSearchStores` containing a paginated list of `FileSearchStores`. The results are sorted by ascending `file_search_store.create_time`.", + "type": "object", "properties": { - "includeServerSideToolInvocations": { - "type": "boolean", - "description": "Optional. If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool interactions." - }, - "retrievalConfig": { - "description": "Optional. Retrieval config.", - "$ref": "#/components/schemas/RetrievalConfig" + "fileSearchStores": { + "description": "The returned rag_stores.", + "type": "array", + "items": { + "$ref": "#/components/schemas/FileSearchStore" + } }, - "functionCallingConfig": { - "$ref": "#/components/schemas/FunctionCallingConfig", - "description": "Optional. Function calling config." + "nextPageToken": { + "type": "string", + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages." } - }, - "description": "The Tool configuration containing parameters for specifying `Tool` use in the request.", - "type": "object" + } }, - "ListDocumentsResponse": { - "type": "object", + "InlinedEmbedContentRequests": { "properties": { - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", - "type": "string" - }, - "documents": { + "requests": { + "description": "Required. The requests to be processed in the batch.", "items": { - "$ref": "#/components/schemas/Document" + "$ref": "#/components/schemas/InlinedEmbedContentRequest" }, - "description": "The returned `Document`s.", "type": "array" } }, - "description": "Response from `ListDocuments` containing a paginated list of `Document`s. The `Document`s are sorted by ascending `document.create_time`." - }, - "RetrievedContext": { - "description": "Chunk from context retrieved by the file search tool.", "type": "object", + "description": "The requests to be processed in the batch if provided as part of the batch creation request." + }, + "Candidate": { "properties": { - "customMetadata": { + "citationMetadata": { + "$ref": "#/components/schemas/CitationMetadata", + "readOnly": true, + "description": "Output only. Citation information for model-generated candidate. This field may be populated with recitation information for any text included in the `content`. These are passages that are \"recited\" from copyrighted material in the foundational LLM's training data." + }, + "tokenCount": { + "description": "Output only. Token count for this candidate.", + "readOnly": true, + "format": "int32", + "type": "integer" + }, + "finishMessage": { + "type": "string", + "description": "Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set.", + "readOnly": true + }, + "continuationToken": { + "format": "byte", + "type": "string", + "description": "An optional opaque continuation token returned when `finish_reason` is `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to continue generation." + }, + "index": { + "format": "int32", + "description": "Output only. Index of the candidate in the list of response candidates.", + "type": "integer", + "readOnly": true + }, + "groundingAttributions": { "items": { - "$ref": "#/components/schemas/GroundingChunkCustomMetadata" + "$ref": "#/components/schemas/GroundingAttribution" }, "type": "array", - "description": "Optional. User-provided metadata about the retrieved context." + "description": "Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.", + "readOnly": true }, - "pageNumber": { - "format": "int32", - "description": "Optional. Page number of the retrieved context, if applicable.", - "type": "integer" + "groundingMetadata": { + "readOnly": true, + "$ref": "#/components/schemas/GroundingMetadata", + "description": "Output only. Grounding metadata for the candidate. This field is populated for `GenerateContent` calls." }, - "title": { - "description": "Optional. Title of the document.", - "type": "string" + "content": { + "readOnly": true, + "$ref": "#/components/schemas/Content", + "description": "Output only. Generated content returned from the model." }, - "text": { - "description": "Optional. Text of the chunk.", - "type": "string" + "logprobsResult": { + "readOnly": true, + "description": "Output only. Log-likelihood scores for the response tokens and top tokens", + "$ref": "#/components/schemas/LogprobsResult" }, - "uri": { - "description": "Optional. URI reference of the semantic retrieval document.", - "type": "string" + "avgLogprobs": { + "readOnly": true, + "type": "number", + "description": "Output only. Average log probability score of the candidate.", + "format": "double" }, - "fileSearchStore": { - "type": "string", - "description": "Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`" + "urlContextMetadata": { + "readOnly": true, + "$ref": "#/components/schemas/UrlContextMetadata", + "description": "Output only. Metadata related to url context retrieval tool." }, - "mediaId": { - "description": "Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id}", - "type": "string" - } - } - }, - "AudioResponseFormat": { - "type": "object", - "description": "Configuration for audio output format.", - "properties": { - "bitRate": { - "description": "Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).", - "type": "integer", - "format": "int32" + "safetyRatings": { + "type": "array", + "description": "List of ratings for the safety of a response candidate. There is at most one rating per category.", + "items": { + "$ref": "#/components/schemas/SafetyRating" + } }, - "mimeType": { - "description": "Optional. The MIME type of the audio output.", + "finishReason": { "x-enum-descriptions": [ "Default value. This value is unused.", - "MP3 audio format.", - "OGG Opus audio format.", - "Raw PCM (L16) audio format.", - "WAV audio format.", - "A-law audio format.", - "Mu-law audio format." + "Natural stop point of the model or provided stop sequence.", + "The maximum number of tokens as specified in the request was reached.", + "The response candidate content was flagged for safety reasons.", + "The response candidate content was flagged for recitation reasons.", + "The response candidate content was flagged for using an unsupported language.", + "Unknown reason.", + "Token generation stopped because the content contains forbidden terms.", + "Token generation stopped for potentially containing prohibited content.", + "Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).", + "The function call generated by the model is invalid.", + "Token generation stopped because generated images contain safety violations.", + "Image generation stopped because generated images has other prohibited content.", + "Image generation stopped because of other miscellaneous issue.", + "The model was expected to generate an image, but none was generated.", + "Image generation stopped due to recitation.", + "Model generated a tool call but no tools were enabled in the request.", + "Model called too many tools consecutively, thus the system exited execution.", + "Request has at least one thought signature missing.", + "Finished due to malformed response.", + "Request was filtered by an escalation rule.", + "Indicates that token generation stopped because the user account is limited or disabled due to Prohibited Use Policy (PUP) violations.", + "Token generation was stopped because the response reached the per-request token limit, but generation is not yet complete. The model response can be continued via a subsequent request using the returned `continuation_token`. Note, the `max_output_tokens` is cumulative across continuation hops and must be monotonically increased or omitted." ], "type": "string", + "description": "Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.", "enum": [ - "MIME_TYPE_UNSPECIFIED", - "AUDIO_MP3", - "AUDIO_OGG_OPUS", - "AUDIO_L16", - "AUDIO_WAV", - "AUDIO_ALAW", - "AUDIO_MULAW" - ] - }, - "delivery": { - "type": "string", - "enum": [ - "DELIVERY_UNSPECIFIED", - "INLINE", - "URI" + "FINISH_REASON_UNSPECIFIED", + "STOP", + "MAX_TOKENS", + "SAFETY", + "RECITATION", + "LANGUAGE", + "OTHER", + "BLOCKLIST", + "PROHIBITED_CONTENT", + "SPII", + "MALFORMED_FUNCTION_CALL", + "IMAGE_SAFETY", + "IMAGE_PROHIBITED_CONTENT", + "IMAGE_OTHER", + "NO_IMAGE", + "IMAGE_RECITATION", + "UNEXPECTED_TOOL_CALL", + "TOO_MANY_TOOL_CALLS", + "MISSING_THOUGHT_SIGNATURE", + "MALFORMED_RESPONSE", + "ESCALATION", + "PUP_LIMITED_DISABLED", + "CONTINUATION" ], - "description": "Optional. The delivery mode for the audio output.", - "x-enum-descriptions": [ - "Default value. This value is unused.", - "Audio data is returned inline in the response.", - "Audio data is returned as a URI." - ] - }, - "sampleRate": { - "description": "Optional. Sample rate in Hz.", - "type": "integer", - "format": "int32" + "readOnly": true } - } + }, + "description": "A response candidate generated from the model.", + "type": "object" }, - "WordInfo": { - "description": "Information about a single recognized word.", + "ListCorporaResponse": { "type": "object", + "description": "Response from `ListCorpora` containing a paginated list of `Corpora`. The results are sorted by ascending `corpus.create_time`.", "properties": { - "word": { - "description": "Required. Transcript of the word.", - "type": "string" + "corpora": { + "description": "The returned corpora.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Corpus" + } }, - "startOffset": { - "description": "Optional. Start offset in time of the word relative to the start of the audio.", - "format": "google-duration", + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", "type": "string" - }, - "endOffset": { - "type": "string", - "format": "google-duration", - "description": "Optional. End offset in time of the word relative to the start of the audio." } } }, - "AudioTranscriptionConfig": { - "description": "The audio transcription configuration.", - "type": "object", + "CreateEnvironmentRequest": { "properties": { - "languageHints": { - "$ref": "#/components/schemas/LanguageHints", - "deprecated": true, - "description": "Optional. Specifies one or more languages in the audio." - }, - "adaptationPhrases": { + "sources": { + "description": "Sources to be mounted into the environment.", "type": "array", - "deprecated": true, - "description": "Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms.", "items": { - "type": "string" + "$ref": "#/components/schemas/Source" } }, - "mode": { - "description": "Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`.", + "fromEnvironment": { + "description": "Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty.", + "type": "string" + }, + "networkMode": { + "description": "Network egress mode.", + "type": "string", "x-enum-descriptions": [ - "Unspecified transcription mode.", - "Verbatim transcription mode.", - "Smart transcription mode." + "Default value. Unused.", + "All network egress is blocked." ], - "type": "string", "enum": [ - "MODE_UNSPECIFIED", - "VERBATIM", - "SMART" + "NETWORK_MODE_UNSPECIFIED", + "DISABLED" ] }, - "languageCodes": { - "description": "Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection.", - "type": "array", - "items": { - "type": "string" - } + "networkAllowlist": { + "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist", + "description": "Allow only specific domains." + } + }, + "description": "Request for `CreateEnvironment`.", + "type": "object" + }, + "ListPermissionsResponse": { + "type": "object", + "description": "Response from `ListPermissions` containing a paginated list of permissions.", + "properties": { + "nextPageToken": { + "type": "string", + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages." }, - "customVocabulary": { + "permissions": { "items": { - "type": "string" + "$ref": "#/components/schemas/Permission" }, - "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon).", + "description": "Returned permissions.", "type": "array" - }, - "languageAuto": { - "description": "Optional. The model will detect the language automatically.", - "deprecated": true, - "$ref": "#/components/schemas/LanguageAuto" - }, - "diarization": { - "description": "Optional. Configures speaker diarization.", - "type": "boolean" - }, - "wordTimestamp": { - "description": "Optional. Configures word-level timestamp generation.", - "type": "boolean" } } }, - "InlinedResponse": { + "TranslationConfig": { + "description": "Config for translation features.", "type": "object", - "description": "The response to a single request in the batch.", "properties": { - "response": { - "readOnly": true, - "description": "Output only. The response to the request.", - "$ref": "#/components/schemas/GenerateContentResponse" + "echoTargetLanguage": { + "type": "boolean", + "description": "Optional. If true, the model will generate audio when the target language is spoken, essentially it will parrot the input. If false, we will not produce audio for the target language." }, - "metadata": { - "type": "object", - "readOnly": true, - "additionalProperties": { - "description": "Properties of the object." + "targetLanguageCode": { + "type": "string", + "description": "Required. The target language for translation. Supported values are BCP-47 language codes (e.g. \"en\", \"es\", \"fr\")." + } + } + }, + "RegisterFilesRequest": { + "type": "object", + "description": "Request for `RegisterFiles`.", + "properties": { + "uris": { + "type": "array", + "items": { + "type": "string" }, - "description": "Output only. The metadata associated with the request." - }, - "error": { - "description": "Output only. The error encountered while processing the request.", - "readOnly": true, - "$ref": "#/components/schemas/Status" + "description": "Required. The Google Cloud Storage URIs to register. Example: `gs://bucket/object`." } } }, - "BatchGenerateContentRequest": { - "description": "Request for a `BatchGenerateContent` operation.", + "LogprobsResultCandidate": { "properties": { - "batch": { - "description": "Required. The batch to create.", - "$ref": "#/components/schemas/GenerateContentBatch" + "tokenId": { + "description": "The candidate\u2019s token id value.", + "format": "int32", + "type": "integer" + }, + "token": { + "description": "The candidate\u2019s token string value.", + "type": "string" + }, + "logProbability": { + "description": "The candidate's log probability.", + "format": "float", + "type": "number" } }, - "type": "object" - }, - "TuningExamples": { "type": "object", + "description": "Candidate for the logprobs token and score." + }, + "ContentEmbedding": { "properties": { - "examples": { + "values": { "items": { - "$ref": "#/components/schemas/TuningExample" + "format": "float", + "type": "number" }, "type": "array", - "description": "The examples. Example input can be for text or discuss, but all examples in a set must be of the same type." - } - }, - "description": "A set of tuning examples. Can be training or validation data." - }, - "ToolResponse": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Optional. The identifier of the tool call this response is for." + "description": "The embedding values. This is for 3P users only and will not be populated for 1P calls." }, - "response": { - "type": "object", - "description": "Optional. The tool response.", - "additionalProperties": { - "description": "Properties of the object." + "shape": { + "description": "This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048]).", + "type": "array", + "items": { + "format": "int32", + "type": "integer" } - }, - "toolType": { - "description": "Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`.", - "type": "string", - "enum": [ - "TOOL_TYPE_UNSPECIFIED", - "GOOGLE_SEARCH_WEB", - "GOOGLE_SEARCH_IMAGE", - "URL_CONTEXT", - "GOOGLE_MAPS", - "FILE_SEARCH" - ], - "x-enum-descriptions": [ - "Unspecified tool type.", - "Google search tool, maps to Tool.google_search.search_types.web_search.", - "Image search tool, maps to Tool.google_search.search_types.image_search.", - "URL context tool, maps to Tool.url_context.", - "Google maps tool, maps to Tool.google_maps.", - "File search tool, maps to Tool.file_search." - ] } }, - "description": "The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolCall`." + "description": "A list of floats representing an embedding.", + "type": "object" }, - "FileData": { + "RetrievalMetadata": { "properties": { - "fileUri": { - "type": "string", - "description": "Required. URI." - }, - "displayName": { - "type": "string", - "description": "Optional. Specifies the name used to refer to this file to the model (e.g. \"my_file.pdf\"). Used as the file reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`." - }, - "mimeType": { - "type": "string", - "description": "Optional. The IANA standard MIME type of the source data." + "googleSearchDynamicRetrievalScore": { + "format": "float", + "type": "number", + "description": "Optional. Score indicating how likely information from google search could help answer the prompt. The score is in the range [0, 1], where 0 is the least likely and 1 is the most likely. This score is only populated when google search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger google search." } }, "type": "object", - "description": "URI based data." + "description": "Metadata related to retrieval in the grounding flow." }, - "ModalityTokenCount": { - "description": "Represents token counting info for a single modality.", - "type": "object", + "SafetySetting": { "properties": { - "modality": { - "description": "The modality associated with this token count.", - "x-enum-descriptions": [ - "Unspecified modality.", - "Plain text.", - "Image.", - "Video.", - "Audio.", - "Document, e.g. PDF." + "category": { + "enumDeprecated": [ + false, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + true, + false ], - "type": "string", + "description": "Required. The category for this setting.", "enum": [ - "MODALITY_UNSPECIFIED", - "TEXT", - "IMAGE", - "VIDEO", - "AUDIO", - "DOCUMENT" - ] + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_DEROGATORY", + "HARM_CATEGORY_TOXICITY", + "HARM_CATEGORY_VIOLENCE", + "HARM_CATEGORY_SEXUAL", + "HARM_CATEGORY_MEDICAL", + "HARM_CATEGORY_DANGEROUS", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_CIVIC_INTEGRITY", + "HARM_CATEGORY_JAILBREAK" + ], + "x-enum-descriptions": [ + "Category is unspecified.", + "**PaLM** - Negative or harmful comments targeting identity and/or protected attribute. DEPRECATED: PaLM-only category, not supported by Gemini models.", + "**PaLM** - Content that is rude, disrespectful, or profane. DEPRECATED: PaLM-only category, not supported by Gemini models.", + "**PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore. DEPRECATED: PaLM-only category, not supported by Gemini models.", + "**PaLM** - Contains references to sexual acts or other lewd content. DEPRECATED: PaLM-only category, not supported by Gemini models.", + "**PaLM** - Promotes unchecked medical advice. DEPRECATED: PaLM-only category, not supported by Gemini models.", + "**PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts. DEPRECATED: PaLM-only category, not supported by Gemini models.", + "**Gemini** - Harassment content.", + "**Gemini** - Hate speech and content.", + "**Gemini** - Sexually explicit content.", + "**Gemini** - Dangerous content.", + "**Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.", + "**Gemini** - Prompts attempting to bypass or subvert the model's safety guidelines (jailbreak attempts)." + ], + "type": "string" }, - "tokenCount": { - "type": "integer", - "description": "Number of tokens.", - "format": "int32" + "threshold": { + "description": "Required. Controls the probability threshold at which harm is blocked.", + "enum": [ + "HARM_BLOCK_THRESHOLD_UNSPECIFIED", + "BLOCK_LOW_AND_ABOVE", + "BLOCK_MEDIUM_AND_ABOVE", + "BLOCK_ONLY_HIGH", + "BLOCK_NONE", + "OFF" + ], + "x-enum-descriptions": [ + "Threshold is unspecified.", + "Content with NEGLIGIBLE will be allowed.", + "Content with NEGLIGIBLE and LOW will be allowed.", + "Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed.", + "All content will be allowed.", + "Turn off the safety filter." + ], + "type": "string" } - } - }, - "TuningExample": { - "description": "A single example for tuning.", + }, "type": "object", - "properties": { - "textInput": { - "type": "string", - "description": "Optional. Text model input." - }, - "output": { - "type": "string", - "description": "Required. The expected model output." - } - } + "description": "Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked." }, - "GoogleAiGenerativelanguageV1betaGroundingSupport": { + "Dataset": { "properties": { - "groundingChunkIndices": { - "items": { - "format": "int32", - "type": "integer" - }, - "type": "array", - "description": "Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. If the response is streaming, the grounding_chunk_indices refer to the indices across all responses. It is the client's responsibility to accumulate the grounding chunks from all responses (while maintaining the same order)." - }, - "confidenceScores": { - "description": "Optional. Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.", - "items": { - "format": "float", - "type": "number" - }, - "type": "array" - }, - "renderedParts": { - "items": { - "type": "integer", - "format": "int32" - }, - "type": "array", - "readOnly": true, - "description": "Output only. Indices into the `parts` field of the candidate's content. These indices specify which rendered parts are associated with this support source." - }, - "segment": { - "description": "Segment of the content this support belongs to.", - "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaSegment" + "examples": { + "description": "Optional. Inline examples with simple input/output text.", + "$ref": "#/components/schemas/TuningExamples" } }, - "description": "Grounding support.", + "description": "Dataset for training or validation.", "type": "object" }, - "SessionResumptionConfig": { - "type": "object", - "description": "Session resumption configuration. This message is included in the session configuration as `BidiGenerateContentSetup.session_resumption`. If configured, the server will send `SessionResumptionUpdate` messages.", - "properties": { - "handle": { - "type": "string", - "description": "The handle of a previous session. If not present then a new session is created. Session handles come from `SessionResumptionUpdate.token` values in previous connections." - } - } - }, - "Hyperparameters": { - "type": "object", - "description": "Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance", - "properties": { - "batchSize": { - "format": "int32", - "type": "integer", - "description": "Immutable. The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples." - }, - "epochCount": { - "type": "integer", - "description": "Immutable. The number of training epochs. An epoch is one pass through the training data. If not set, a default of 5 will be used.", - "format": "int32" - }, - "learningRateMultiplier": { - "type": "number", - "format": "float", - "description": "Optional. Immutable. The learning rate multiplier is used to calculate a final learning_rate based on the default (recommended) value. Actual learning rate := learning_rate_multiplier * default learning rate Default learning rate is dependent on base model and dataset size. If not set, a default of 1.0 will be used." - }, - "learningRate": { - "type": "number", - "description": "Optional. Immutable. The learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples.", - "format": "float" - } - } - }, - "ListPermissionsResponse": { + "InlinedEmbedContentRequest": { "properties": { - "permissions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Permission" - }, - "description": "Returned permissions." + "metadata": { + "type": "object", + "description": "Optional. The metadata to be associated with the request.", + "additionalProperties": { + "description": "Properties of the object." + } }, - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", - "type": "string" + "request": { + "$ref": "#/components/schemas/EmbedContentRequest", + "description": "Required. The request to be processed in the batch." } }, "type": "object", - "description": "Response from `ListPermissions` containing a paginated list of permissions." + "description": "The request to be processed in the batch." }, - "V1mainMediaResolution": { + "ToolCall": { "properties": { - "level": { - "description": "The tokenization quality used for given media. for Gemini API support .", - "type": "string", + "args": { + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + }, + "description": "Optional. The tool call arguments. Example: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}" + }, + "toolType": { "enum": [ - "MEDIA_RESOLUTION_UNSPECIFIED", - "MEDIA_RESOLUTION_LOW", - "MEDIA_RESOLUTION_MEDIUM", - "MEDIA_RESOLUTION_HIGH", - "MEDIA_RESOLUTION_ULTRA_HIGH" + "TOOL_TYPE_UNSPECIFIED", + "GOOGLE_SEARCH_WEB", + "GOOGLE_SEARCH_IMAGE", + "URL_CONTEXT", + "GOOGLE_MAPS", + "FILE_SEARCH" ], "x-enum-descriptions": [ - "Media resolution has not been set.", - "Media resolution set to low.", - "Media resolution set to medium.", - "Media resolution set to high.", - "Media resolution set to ultra high." - ] + "Unspecified tool type.", + "Google search tool, maps to Tool.google_search.search_types.web_search.", + "Image search tool, maps to Tool.google_search.search_types.image_search.", + "URL context tool, maps to Tool.url_context.", + "Google maps tool, maps to Tool.google_maps.", + "File search tool, maps to Tool.file_search." + ], + "description": "Required. The type of tool that was called.", + "type": "string" + }, + "toolName": { + "description": "Optional. The name of the tool that was called.", + "type": "string" + }, + "id": { + "type": "string", + "description": "Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`." } }, - "type": "object", - "description": "Media resolution for tokenization." + "description": "A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`.", + "type": "object" }, - "ReviewSnippet": { + "ExecutableCode": { "type": "object", "properties": { - "reviewId": { + "language": { "type": "string", - "description": "The ID of the review snippet." + "description": "Required. Programming language of the `code`.", + "x-enum-descriptions": [ + "Unspecified language. This value should not be used.", + "Python >= 3.10, with numpy and simpy available. Python is the default language." + ], + "enum": [ + "LANGUAGE_UNSPECIFIED", + "PYTHON" + ] }, - "title": { - "description": "Title of the review.", + "code": { + "description": "Required. The code to be executed.", "type": "string" }, - "googleMapsUri": { - "description": "A link that corresponds to the user review on Google Maps.", + "id": { + "description": "Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`.", "type": "string" } }, - "description": "Encapsulates a snippet of a user review that answers a question about the features of a specific place in Google Maps." + "description": "Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated." }, - "FunctionResponseBlob": { + "BatchStats": { "type": "object", + "description": "Stats about the batch.", "properties": { - "mimeType": { - "description": "The IANA standard MIME type of the source data. Examples: - image/png - image/jpeg If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Supported file formats](https://ai.google.dev/gemini-api/docs/prompting_with_media#supported_file_formats).", + "requestCount": { + "description": "Output only. The number of requests in the batch.", + "type": "string", + "format": "int64", + "readOnly": true + }, + "pendingRequestCount": { + "format": "int64", + "description": "Output only. The number of requests that are still pending processing.", + "readOnly": true, "type": "string" }, - "data": { + "failedRequestCount": { + "readOnly": true, + "description": "Output only. The number of requests that failed to be processed.", "type": "string", - "description": "Raw bytes for media formats.", - "format": "byte" - } - }, - "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field." - }, - "GroundingMetadata": { - "description": "Metadata returned to client when grounding is enabled.", - "type": "object", - "properties": { - "searchEntryPoint": { - "$ref": "#/components/schemas/SearchEntryPoint", - "description": "Optional. Google search entry for the following-up web searches." - }, - "webSearchQueries": { - "type": "array", - "description": "Web search queries for the following-up web search.", - "items": { - "type": "string" - } - }, - "googleMapsWidgetContextToken": { - "description": "Optional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled.", - "type": "string" - }, - "retrievalMetadata": { - "description": "Metadata related to retrieval in the grounding flow.", - "$ref": "#/components/schemas/RetrievalMetadata" - }, - "groundingChunks": { - "items": { - "$ref": "#/components/schemas/GroundingChunk" - }, - "description": "List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses.", - "type": "array" - }, - "imageSearchQueries": { - "items": { - "type": "string" - }, - "description": "Image search queries used for grounding.", - "type": "array" - }, - "groundingSupports": { - "description": "List of grounding support.", - "type": "array", - "items": { - "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaGroundingSupport" - } - } - } - }, - "McpServer": { - "description": "A MCPServer is a server that can be called by the model to perform actions. It is a server that implements the MCP protocol. Next ID: 7", - "type": "object", - "properties": { - "streamableHttpTransport": { - "description": "A transport that can stream HTTP requests and responses.", - "$ref": "#/components/schemas/StreamableHttpTransport" - }, - "name": { - "description": "The name of the MCPServer.", - "type": "string" - } - } - }, - "Tool": { - "type": "object", - "properties": { - "codeExecution": { - "description": "Optional. Enables the model to execute code as part of generation.", - "$ref": "#/components/schemas/CodeExecution" - }, - "googleMaps": { - "$ref": "#/components/schemas/GoogleMaps", - "description": "Optional. Tool that allows grounding the model's response with geospatial context related to the user's query." - }, - "urlContext": { - "$ref": "#/components/schemas/UrlContext", - "description": "Optional. Tool to support URL context retrieval." - }, - "googleSearchRetrieval": { - "description": "Optional. Retrieval tool that is powered by Google search.", - "$ref": "#/components/schemas/GoogleSearchRetrieval" - }, - "mcpServers": { - "description": "Optional. MCP Servers to connect to.", - "items": { - "$ref": "#/components/schemas/McpServer" - }, - "type": "array" - }, - "computerUse": { - "$ref": "#/components/schemas/ComputerUse", - "description": "Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations." - }, - "fileSearch": { - "$ref": "#/components/schemas/FileSearch", - "description": "Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora." - }, - "googleSearch": { - "description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.", - "$ref": "#/components/schemas/GoogleSearch" - }, - "functionDeclarations": { - "description": "Optional. A list of `FunctionDeclarations` available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a FunctionCall with arguments to the client side for execution. The model may decide to call a subset of these functions by populating FunctionCall in the response. The next conversation turn may contain a FunctionResponse with the Content.role \"function\" generation context for the next model turn.", - "type": "array", - "items": { - "$ref": "#/components/schemas/FunctionDeclaration" - } - } - }, - "description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. Next ID: 17" - }, - "GoogleSearch": { - "type": "object", - "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.", - "properties": { - "timeRangeFilter": { - "description": "Optional. Filter search results to a specific time range. If customers set a start time, they must set an end time (and vice versa).", - "$ref": "#/components/schemas/Interval" - }, - "searchTypes": { - "description": "Optional. The set of search types to enable. If not set, web search is enabled by default.", - "$ref": "#/components/schemas/SearchTypes" - } - } - }, - "GenerateContentResponse": { - "description": "Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API: - Returns either all requested candidates or none of them - Returns no candidates at all only if there was something wrong with the prompt (check `prompt_feedback`) - Reports feedback on each candidate in `finish_reason` and `safety_ratings`.", - "properties": { - "usageMetadata": { - "description": "Output only. Metadata on the generation requests' token usage.", - "readOnly": true, - "$ref": "#/components/schemas/UsageMetadata" - }, - "modelVersion": { - "readOnly": true, - "description": "Output only. The model version used to generate the response.", - "type": "string" - }, - "promptFeedback": { - "$ref": "#/components/schemas/PromptFeedback", - "description": "Returns the prompt's feedback related to the content filters." - }, - "modelStatus": { - "description": "Output only. The current model status of this model.", - "readOnly": true, - "$ref": "#/components/schemas/ModelStatus" - }, - "candidates": { - "description": "Candidate responses from the model.", - "items": { - "$ref": "#/components/schemas/Candidate" - }, - "type": "array" - }, - "responseId": { - "readOnly": true, - "description": "Output only. response_id is used to identify each response.", - "type": "string" - } - }, - "type": "object" - }, - "RetrievalMetadata": { - "description": "Metadata related to retrieval in the grounding flow.", - "type": "object", - "properties": { - "googleSearchDynamicRetrievalScore": { - "type": "number", - "description": "Optional. Score indicating how likely information from google search could help answer the prompt. The score is in the range [0, 1], where 0 is the least likely and 1 is the most likely. This score is only populated when google search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger google search.", - "format": "float" - } - } - }, - "RetrievalConfig": { - "type": "object", - "description": "Retrieval config.", - "properties": { - "latLng": { - "$ref": "#/components/schemas/LatLng", - "description": "Optional. The location of the user." - }, - "languageCode": { - "description": "Optional. The language code of the user. Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).", - "type": "string" - } - } - }, - "CitationMetadata": { - "type": "object", - "description": "A collection of source attributions for a piece of content.", - "properties": { - "citationSources": { - "items": { - "$ref": "#/components/schemas/CitationSource" - }, - "type": "array", - "description": "Citations to sources for a specific response." - } - } - }, - "FileSearch": { - "properties": { - "metadataFilter": { - "type": "string", - "description": "Optional. Metadata filter to apply to the semantic retrieval documents and chunks." - }, - "topK": { - "type": "integer", - "description": "Optional. The number of semantic retrieval chunks to retrieve.", - "format": "int32" - }, - "fileSearchStoreNames": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`" - } - }, - "type": "object", - "description": "The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API." - }, - "CreateFileRequest": { - "type": "object", - "properties": { - "file": { - "description": "Optional. Metadata for the file to create.", - "$ref": "#/components/schemas/File" - } - }, - "description": "Request for `CreateFile`." - }, - "Dataset": { - "description": "Dataset for training or validation.", - "type": "object", - "properties": { - "examples": { - "description": "Optional. Inline examples with simple input/output text.", - "$ref": "#/components/schemas/TuningExamples" - } - } - }, - "ResponseFormatConfig": { - "description": "Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality.", - "type": "object", - "properties": { - "text": { - "description": "Optional. Text output format configuration.", - "$ref": "#/components/schemas/TextResponseFormat" - }, - "audio": { - "$ref": "#/components/schemas/AudioResponseFormat", - "description": "Optional. Audio output format configuration." - }, - "image": { - "$ref": "#/components/schemas/ImageResponseFormat", - "description": "Optional. Image output format configuration." - } - } - }, - "InputConfig": { - "description": "Configures the input to the batch request.", - "properties": { - "requests": { - "$ref": "#/components/schemas/InlinedRequests", - "description": "The requests to be processed in the batch." - }, - "fileName": { - "description": "The name of the `File` containing the input requests.", - "type": "string" - } - }, - "type": "object" - }, - "GenerationConfig": { - "properties": { - "stopSequences": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Optional. The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a `stop_sequence`. The stop sequence will not be included as part of the response." - }, - "maxOutputTokens": { - "format": "int32", - "description": "Optional. The maximum number of tokens to include in a response candidate. Note: The default value varies by model, see the `Model.output_token_limit` attribute of the `Model` returned from the `getModel` function.", - "type": "integer" - }, - "mediaResolution": { - "type": "string", - "enum": [ - "MEDIA_RESOLUTION_UNSPECIFIED", - "MEDIA_RESOLUTION_LOW", - "MEDIA_RESOLUTION_MEDIUM", - "MEDIA_RESOLUTION_HIGH" - ], - "x-enum-descriptions": [ - "Media resolution has not been set.", - "Media resolution set to low (64 tokens).", - "Media resolution set to medium (256 tokens).", - "Media resolution set to high (zoomed reframing with 256 tokens)." - ], - "description": "Optional. If specified, the media resolution specified will be used." - }, - "seed": { - "type": "integer", - "format": "int32", - "description": "Optional. Seed used in decoding. If not set, the request uses a randomly generated seed." - }, - "logprobs": { - "type": "integer", - "format": "int32", - "description": "Optional. Only valid if response_logprobs=True. This sets the number of top logprobs, including the chosen candidate, to return at each decoding step in the Candidate.logprobs_result. The number must be in the range of [0, 20]." - }, - "imageConfig": { - "$ref": "#/components/schemas/ImageConfig", - "description": "Optional. Config for image generation. An error will be returned if this field is set for models that don't support these config options." - }, - "thinkingConfig": { - "$ref": "#/components/schemas/ThinkingConfig", - "description": "Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking." - }, - "enableEnhancedCivicAnswers": { - "description": "Optional. Enables enhanced civic answers. It may not be available for all models.", - "type": "boolean" - }, - "topK": { - "description": "Optional. The maximum number of tokens to consider when sampling. Gemini models use Top-p (nucleus) sampling or a combination of Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Models running with nucleus sampling don't allow top_k setting. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models.", - "type": "integer", - "format": "int32" - }, - "translationConfig": { - "$ref": "#/components/schemas/TranslationConfig", - "description": "Optional. Config for translation." - }, - "enableAffectiveDialog": { - "description": "Optional. If enabled, the model will detect emotions and adapt its responses accordingly.", - "type": "boolean" - }, - "temperature": { - "format": "float", - "type": "number", - "description": "Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0]. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models." - }, - "responseJsonSchema": { - "description": "Optional. An internal detail. Use `responseJsonSchema` rather than this field." - }, - "responseFormat": { - "description": "Optional. Configuration for the response output format. Allows specifying output configuration per modality (text, audio, image) in a flat structure.", - "$ref": "#/components/schemas/ResponseFormatConfig" - }, - "responseMimeType": { - "description": "Optional. MIME type of the generated candidate text. Supported MIME types are: `text/plain`: (default) Text output. `application/json`: JSON response in the response candidates. `text/x.enum`: ENUM as a string response in the response candidates. Refer to the [docs](https://ai.google.dev/gemini-api/docs/prompting_with_media#plain_text_formats) for a list of all supported text MIME types.", - "type": "string" - }, - "frequencyPenalty": { - "type": "number", - "description": "Optional. Frequency penalty applied to the next token's logprobs, multiplied by the number of times each token has been seen in the respponse so far. A positive penalty will discourage the use of tokens that have already been used, proportional to the number of times the token has been used: The more a token is used, the more difficult it is for the model to use that token again increasing the vocabulary of responses. Caution: A _negative_ penalty will encourage the model to reuse tokens proportional to the number of times the token has been used. Small negative values will reduce the vocabulary of a response. Larger negative values will cause the model to start repeating a common token until it hits the max_output_tokens limit.", - "format": "float" - }, - "responseLogprobs": { - "type": "boolean", - "description": "Optional. If true, export the logprobs results in response." - }, - "topP": { - "description": "Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and Top-p (nucleus) sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits the number of tokens based on the cumulative probability. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models.", - "format": "float", - "type": "number" - }, - "candidateCount": { - "description": "Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family)", - "type": "integer", - "format": "int32" - }, - "presencePenalty": { - "format": "float", - "description": "Optional. Presence penalty applied to the next token's logprobs if the token has already been seen in the response. This penalty is binary on/off and not dependant on the number of times the token is used (after the first). Use frequency_penalty for a penalty that increases with each use. A positive penalty will discourage the use of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will encourage the use of tokens that have already been used in the response, decreasing the vocabulary.", - "type": "number" - }, - "audioTranscriptionConfig": { - "$ref": "#/components/schemas/AudioTranscriptionConfig", - "description": "Optional. Config for audio transcription (speech recognition)." - }, - "speechConfig": { - "$ref": "#/components/schemas/SpeechConfig", - "description": "Optional. The speech generation config." - }, - "responseModalities": { - "description": "Optional. The requested modalities of the response. Represents the set of modalities that the model can return, and should be expected in the response. This is an exact match to the modalities of the response. A model may have multiple combinations of supported modalities. If the requested modalities do not match any of the supported combinations, an error will be returned. An empty list is equivalent to requesting only text.", - "items": { - "x-enum-descriptions": [ - "Default value.", - "Indicates the model should return text.", - "Indicates the model should return images.", - "Indicates the model should return audio.", - "Indicates the model should return video." - ], - "type": "string", - "enum": [ - "MODALITY_UNSPECIFIED", - "TEXT", - "IMAGE", - "AUDIO", - "VIDEO" - ] - }, - "type": "array" - }, - "responseSchema": { - "deprecated": true, - "description": "Optional. Output schema of the generated candidate text. Schemas must be a subset of the [OpenAPI schema](https://spec.openapis.org/oas/v3.0.3#schema) and can be objects, primitives or arrays. If set, a compatible `response_mime_type` must also be set. Compatible MIME types: `application/json`: Schema for JSON response. Refer to the [JSON text generation guide](https://ai.google.dev/gemini-api/docs/json-mode) for more details. Deprecated. Use `response_format` instead.", - "$ref": "#/components/schemas/Schema" - } - }, - "type": "object", - "description": "Configuration options for model generation and outputs. Not all parameters are configurable for every model." - }, - "Interval": { - "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.", - "type": "object", - "properties": { - "endTime": { - "format": "google-datetime", - "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.", - "type": "string" + "format": "int64" }, - "startTime": { - "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.", - "format": "google-datetime", - "type": "string" + "successfulRequestCount": { + "format": "int64", + "type": "string", + "description": "Output only. The number of requests that were successfully processed.", + "readOnly": true } } }, - "CodeExecutionResult": { - "description": "Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.", + "LanguageAuto": { + "deprecated": true, + "description": "Indicates the language of the audio should be automatically detected.", + "properties": {}, + "type": "object" + }, + "WebSearch": { "type": "object", + "properties": {}, + "description": "Standard web search for grounding and related configurations." + }, + "ImageResponseFormat": { "properties": { - "output": { + "imageSize": { "type": "string", - "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise." + "description": "Optional. The size of the image output.", + "x-enum-descriptions": [ + "Default value. This value is unused.", + "512px image size.", + "1K image size.", + "2K image size.", + "4K image size." + ], + "enum": [ + "IMAGE_SIZE_UNSPECIFIED", + "IMAGE_SIZE_FIVE_TWELVE", + "IMAGE_SIZE_ONE_K", + "IMAGE_SIZE_TWO_K", + "IMAGE_SIZE_FOUR_K" + ] }, - "id": { + "mimeType": { + "x-enum-descriptions": [ + "Default value. This value is unused.", + "JPEG image format." + ], "type": "string", - "description": "Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id." + "enum": [ + "MIME_TYPE_UNSPECIFIED", + "IMAGE_JPEG" + ], + "description": "Optional. The MIME type of the image output." }, - "outcome": { - "description": "Required. Outcome of the code execution.", + "delivery": { + "enum": [ + "DELIVERY_UNSPECIFIED", + "INLINE", + "URI" + ], + "description": "Optional. The delivery mode for the image output.", "x-enum-descriptions": [ - "Unspecified status. This value should not be used.", - "Code execution completed successfully. `output` contains the stdout, if any.", - "Code execution failed. `output` contains the stderr and stdout, if any.", - "Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present." + "Default value. This value is unused.", + "Image data is returned inline in the response.", + "Image data is returned as a URI." ], + "type": "string" + }, + "aspectRatio": { "type": "string", + "description": "Optional. The aspect ratio for the image output.", + "x-enum-descriptions": [ + "Default value. This value is unused.", + "1:1 aspect ratio.", + "2:3 aspect ratio.", + "3:2 aspect ratio.", + "3:4 aspect ratio.", + "4:3 aspect ratio.", + "4:5 aspect ratio.", + "5:4 aspect ratio.", + "9:16 aspect ratio.", + "16:9 aspect ratio.", + "21:9 aspect ratio.", + "1:8 aspect ratio.", + "8:1 aspect ratio.", + "1:4 aspect ratio.", + "4:1 aspect ratio." + ], "enum": [ - "OUTCOME_UNSPECIFIED", - "OUTCOME_OK", - "OUTCOME_FAILED", - "OUTCOME_DEADLINE_EXCEEDED" + "ASPECT_RATIO_UNSPECIFIED", + "ASPECT_RATIO_ONE_BY_ONE", + "ASPECT_RATIO_TWO_BY_THREE", + "ASPECT_RATIO_THREE_BY_TWO", + "ASPECT_RATIO_THREE_BY_FOUR", + "ASPECT_RATIO_FOUR_BY_THREE", + "ASPECT_RATIO_FOUR_BY_FIVE", + "ASPECT_RATIO_FIVE_BY_FOUR", + "ASPECT_RATIO_NINE_BY_SIXTEEN", + "ASPECT_RATIO_SIXTEEN_BY_NINE", + "ASPECT_RATIO_TWENTY_ONE_BY_NINE", + "ASPECT_RATIO_ONE_BY_EIGHT", + "ASPECT_RATIO_EIGHT_BY_ONE", + "ASPECT_RATIO_ONE_BY_FOUR", + "ASPECT_RATIO_FOUR_BY_ONE" ] } - } - }, - "FileSearchStore": { - "description": "A `FileSearchStore` is a collection of `Document`s.", + }, "type": "object", + "description": "Configuration for image output format." + }, + "GoogleAiGenerativelanguageV1betaSegment": { "properties": { - "createTime": { - "format": "google-datetime", - "description": "Output only. The Timestamp of when the `FileSearchStore` was created.", - "readOnly": true, - "type": "string" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Output only. Immutable. Identifier. The `FileSearchStore` resource name. It is an ID (name excluding the \"fileSearchStores/\" prefix) that can contain up to 40 characters that are lowercase alphanumeric or dashes (-). It is output only. The unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/my-awesome-file-search-store-123a456b789c` If `display_name` is not provided, the name will be randomly generated." - }, - "displayName": { - "description": "Optional. The human-readable display name for the `FileSearchStore`. The display name must be no more than 512 characters in length, including spaces. Example: \"Docs on Semantic Retriever\"", - "type": "string" - }, - "embeddingModel": { - "description": "Optional. The embedding model to use for the `FileSearchStore`. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`. If not specified, the default embedding model will be used.", - "type": "string" - }, - "activeDocumentsCount": { - "type": "string", - "readOnly": true, - "format": "int64", - "description": "Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval." - }, - "pendingDocumentsCount": { - "type": "string", - "description": "Output only. The number of documents in the `FileSearchStore` that are being processed.", - "readOnly": true, - "format": "int64" + "partIndex": { + "format": "int32", + "type": "integer", + "description": "The index of a Part object within its parent Content object." }, - "failedDocumentsCount": { - "description": "Output only. The number of documents in the `FileSearchStore` that have failed processing.", - "readOnly": true, - "format": "int64", + "text": { + "description": "The text corresponding to the segment from the response.", "type": "string" }, - "sizeBytes": { - "type": "string", - "readOnly": true, - "format": "int64", - "description": "Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`." + "endIndex": { + "format": "int32", + "type": "integer", + "description": "End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero." }, - "updateTime": { - "type": "string", - "readOnly": true, - "description": "Output only. The Timestamp of when the `FileSearchStore` was last updated.", - "format": "google-datetime" + "startIndex": { + "format": "int32", + "description": "Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.", + "type": "integer" } - } + }, + "description": "Segment of the content.", + "type": "object" }, - "GetEnvironmentFilesResponse": { + "EmbedContentBatch": { + "description": "A resource representing a batch of `EmbedContent` requests.", "type": "object", - "description": "Response for `GetEnvironmentFiles`.", - "properties": { - "next_page_token": { - "description": "Pagination token for directory listing. NOLINT", - "type": "string" - }, - "files": { - "type": "array", - "description": "If the requested path is a directory, this contains its contents. If the requested path is a file, this contains a single entry with the file's metadata. If alt=media was specified, this is empty (content is served via `blob`).", - "items": { - "$ref": "#/components/schemas/EnvironmentFile" - } - } - } - }, - "EmbedContentBatchStats": { - "description": "Stats about the batch.", "properties": { - "failedRequestCount": { - "description": "Output only. The number of requests that failed to be processed.", - "format": "int64", + "name": { "readOnly": true, + "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", "type": "string" }, - "requestCount": { + "updateTime": { "type": "string", - "description": "Output only. The number of requests in the batch.", - "readOnly": true, - "format": "int64" + "description": "Output only. The time at which the batch was last updated.", + "format": "google-datetime", + "readOnly": true }, - "pendingRequestCount": { - "format": "int64", - "description": "Output only. The number of requests that are still pending processing.", + "displayName": { "type": "string", - "readOnly": true + "description": "Required. The user-defined name of this batch." }, - "successfulRequestCount": { + "createTime": { + "format": "google-datetime", + "type": "string", "readOnly": true, - "format": "int64", - "description": "Output only. The number of requests that were successfully processed.", - "type": "string" - } - }, - "type": "object" - }, - "LogprobsResultCandidate": { - "properties": { - "tokenId": { - "type": "integer", - "format": "int32", - "description": "The candidate\u2019s token id value." + "description": "Output only. The time at which the batch was created." }, - "logProbability": { - "format": "float", - "type": "number", - "description": "The candidate's log probability." + "model": { + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "type": "string" }, - "token": { - "type": "string", - "description": "The candidate\u2019s token string value." - } - }, - "type": "object", - "description": "Candidate for the logprobs token and score." - }, - "EmbedContentBatch": { - "type": "object", - "description": "A resource representing a batch of `EmbedContent` requests.", - "properties": { "batchStats": { "readOnly": true, "$ref": "#/components/schemas/EmbedContentBatchStats", @@ -4717,25 +4282,25 @@ "$ref": "#/components/schemas/InputEmbedContentConfig", "description": "Required. Input configuration of the instances on which batch processing are performed." }, - "updateTime": { - "description": "Output only. The time at which the batch was last updated.", - "format": "google-datetime", + "priority": { + "format": "int64", "type": "string", - "readOnly": true + "description": "Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0." }, - "output": { + "endTime": { "readOnly": true, - "$ref": "#/components/schemas/EmbedContentBatchOutput", - "description": "Output only. The output of the batch request." + "description": "Output only. The time at which the batch processing completed.", + "format": "google-datetime", + "type": "string" }, - "name": { + "output": { + "$ref": "#/components/schemas/EmbedContentBatchOutput", "readOnly": true, - "type": "string", - "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`." + "description": "Output only. The output of the batch request." }, "state": { "readOnly": true, - "description": "Output only. The state of the batch.", + "type": "string", "x-enum-descriptions": [ "The batch state is unspecified.", "The service is preparing to run the batch.", @@ -4745,7 +4310,6 @@ "The batch has been cancelled.", "The batch has expired." ], - "type": "string", "enum": [ "BATCH_STATE_UNSPECIFIED", "BATCH_STATE_PENDING", @@ -4754,1068 +4318,1229 @@ "BATCH_STATE_FAILED", "BATCH_STATE_CANCELLED", "BATCH_STATE_EXPIRED" - ] + ], + "description": "Output only. The state of the batch." + } + } + }, + "Hyperparameters": { + "type": "object", + "description": "Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance", + "properties": { + "epochCount": { + "description": "Immutable. The number of training epochs. An epoch is one pass through the training data. If not set, a default of 5 will be used.", + "format": "int32", + "type": "integer" }, - "displayName": { - "description": "Required. The user-defined name of this batch.", - "type": "string" + "batchSize": { + "format": "int32", + "type": "integer", + "description": "Immutable. The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples." }, - "model": { - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", - "type": "string" + "learningRateMultiplier": { + "format": "float", + "type": "number", + "description": "Optional. Immutable. The learning rate multiplier is used to calculate a final learning_rate based on the default (recommended) value. Actual learning rate := learning_rate_multiplier * default learning rate Default learning rate is dependent on base model and dataset size. If not set, a default of 1.0 will be used." }, - "endTime": { + "learningRate": { + "description": "Optional. Immutable. The learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples.", + "type": "number", + "format": "float" + } + } + }, + "EmbedContentBatchOutput": { + "type": "object", + "description": "The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.", + "properties": { + "responsesFile": { "type": "string", - "format": "google-datetime", - "description": "Output only. The time at which the batch processing completed.", + "description": "Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `EmbedContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests.", "readOnly": true }, - "createTime": { - "description": "Output only. The time at which the batch was created.", + "inlinedResponses": { + "$ref": "#/components/schemas/InlinedEmbedContentResponses", "readOnly": true, - "type": "string", - "format": "google-datetime" - }, - "priority": { - "type": "string", - "format": "int64", - "description": "Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0." + "description": "Output only. The responses to the requests in the batch. Returned when the batch was built using inlined requests. The responses will be in the same order as the input requests." } } }, - "Model": { + "FunctionResponse": { "properties": { - "baseModelId": { - "description": "Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash`", - "type": "string" - }, - "outputTokenLimit": { - "description": "Maximum number of output tokens available for this model.", - "type": "integer", - "format": "int32" - }, - "version": { - "description": "Required. The version number of the model. This represents the major version (`1.0` or `1.5`)", - "type": "string" - }, - "topP": { - "type": "number", - "description": "For [Nucleus sampling](https://ai.google.dev/gemini-api/docs/prompting-strategies#top-p). Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be used by the backend while making the call to the model.", - "format": "float" + "scheduling": { + "type": "string", + "description": "Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.", + "x-enum-descriptions": [ + "This value is unused.", + "Only add the result to the conversation context, do not interrupt or trigger generation.", + "Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.", + "Add the result to the conversation context, interrupt ongoing generation and prompt to generate output." + ], + "enum": [ + "SCHEDULING_UNSPECIFIED", + "SILENT", + "WHEN_IDLE", + "INTERRUPT" + ] }, - "supportedGenerationMethods": { + "parts": { "type": "array", - "description": "The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`.", + "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.", "items": { - "type": "string" + "$ref": "#/components/schemas/FunctionResponsePart" } }, - "temperature": { - "format": "float", - "description": "Controls the randomness of the output. Values can range over `[0.0,max_temperature]`, inclusive. A higher value will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model.", - "type": "number" + "response": { + "description": "Required. The function response in JSON object format. Callers can use any keys of their choice that fit the function's syntax to return the function output, e.g. \"output\", \"result\", etc. In particular, if the function call failed to execute, the response can have an \"error\" key to return error details to the model. Multimedia can be included by using a subobject containing a single \"$ref\" key whose value is the `inline_data.display_name` of a `FunctionResponsePart` holding the multimedia. See https://ai.google.dev/gemini-api/docs/function-calling#multimodal.", + "additionalProperties": { + "description": "Properties of the object." + }, + "type": "object" }, - "description": { + "id": { "type": "string", - "description": "A short description of the model." - }, - "inputTokenLimit": { - "description": "Maximum number of input tokens allowed for this model.", - "format": "int32", - "type": "integer" - }, - "topK": { - "type": "integer", - "description": "For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. If empty, indicates the model doesn't use top-k sampling, and `top_k` isn't allowed as a generation parameter.", - "format": "int32" + "description": "Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`." }, - "maxTemperature": { - "type": "number", - "format": "float", - "description": "The maximum temperature this model can use." + "name": { + "type": "string", + "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128." }, - "thinking": { - "description": "Whether the model supports thinking.", + "willContinue": { + "description": "Optional. Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished. This may still trigger the model generation. To avoid triggering the generation and finish the function call, additionally set `scheduling` to `SILENT`.", "type": "boolean" + } + }, + "type": "object", + "description": "The result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` made based on model prediction." + }, + "LatLng": { + "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.", + "properties": { + "latitude": { + "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].", + "format": "double", + "type": "number" }, + "longitude": { + "type": "number", + "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].", + "format": "double" + } + }, + "type": "object" + }, + "FileData": { + "properties": { "displayName": { - "description": "The human-readable name of the model. E.g. \"Gemini 1.5 Flash\". The name can be up to 128 characters long and can consist of any UTF-8 characters.", + "type": "string", + "description": "Optional. Specifies the name used to refer to this file to the model (e.g. \"my_file.pdf\"). Used as the file reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`." + }, + "fileUri": { + "description": "Required. URI.", "type": "string" }, - "name": { + "mimeType": { "type": "string", - "description": "Required. The resource name of the `Model`. Refer to [Model variants](https://ai.google.dev/gemini-api/docs/models/gemini#model-variations) for all allowed values. Format: `models/{model}` with a `{model}` naming convention of: * \"{base_model_id}-{version}\" Examples: * `models/gemini-1.5-flash-001`" + "description": "Optional. The IANA standard MIME type of the source data." } }, - "description": "Information about a Generative Language Model.", - "type": "object" + "type": "object", + "description": "URI based data." }, - "GroundingPassageId": { + "VideoFileMetadata": { + "description": "Metadata for a video `File`.", + "type": "object", "properties": { - "partIndex": { - "readOnly": true, - "type": "integer", - "description": "Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.", - "format": "int32" - }, - "passageId": { + "videoDuration": { + "description": "Duration of the video.", "type": "string", - "readOnly": true, - "description": "Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`." + "format": "google-duration" } - }, + } + }, + "ImportFileRequest": { + "type": "object", + "description": "Request for `ImportFile` to import a File API file with a `FileSearchStore`.", + "properties": { + "chunkingConfig": { + "description": "Optional. Config for telling the service how to chunk the file. If not provided, the service will use default parameters.", + "$ref": "#/components/schemas/ChunkingConfig" + }, + "customMetadata": { + "description": "Custom metadata to be associated with the file.", + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomMetadata" + } + }, + "fileName": { + "description": "Required. The name of the `File` to import. Example: `files/abc-123`", + "type": "string" + } + } + }, + "StringList": { + "description": "User provided string values assigned to a single metadata key.", "type": "object", - "description": "Identifier for a part within a `GroundingPassage`." + "properties": { + "values": { + "description": "The string values of the metadata to store.", + "type": "array", + "items": { + "type": "string" + } + } + } }, - "ThinkingConfig": { + "TuningExamples": { + "properties": { + "examples": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TuningExample" + }, + "description": "The examples. Example input can be for text or discuss, but all examples in a set must be of the same type." + } + }, "type": "object", + "description": "A set of tuning examples. Can be training or validation data." + }, + "SearchTypes": { "properties": { - "includeThoughts": { - "type": "boolean", - "description": "Indicates whether to include thoughts in the response. If true, thoughts are returned only when available." + "webSearch": { + "description": "Optional. Enables web search. Only text results are returned.", + "$ref": "#/components/schemas/WebSearch" }, - "thinkingBudget": { - "description": "The number of thoughts tokens that the model should generate.", - "format": "int32", - "type": "integer" + "imageSearch": { + "description": "Optional. Enables image search. Image bytes are returned.", + "$ref": "#/components/schemas/ImageSearch" + } + }, + "type": "object", + "description": "Different types of search that can be enabled on the GoogleSearch tool." + }, + "TuningTask": { + "properties": { + "completeTime": { + "format": "google-datetime", + "readOnly": true, + "description": "Output only. The timestamp when tuning this model completed.", + "type": "string" }, - "thinkingLevel": { - "description": "Optional. Controls the maximum depth of the model's internal reasoning process before it produces a response. The default value is model-dependent. Refer to the [Thinking levels guide](https://ai.google.dev/gemini-api/docs/thinking#thinking-levels) for more details. Recommended for Gemini 3 or later models. Use with earlier models results in an error.", - "x-enum-descriptions": [ - "Default value.", - "Little to no thinking.", - "Low thinking level.", - "Medium thinking level.", - "High thinking level." - ], - "type": "string", - "enum": [ - "THINKING_LEVEL_UNSPECIFIED", - "MINIMAL", - "LOW", - "MEDIUM", - "HIGH" - ] + "startTime": { + "format": "google-datetime", + "description": "Output only. The timestamp when tuning this model started.", + "type": "string", + "readOnly": true + }, + "hyperparameters": { + "$ref": "#/components/schemas/Hyperparameters", + "description": "Immutable. Hyperparameters controlling the tuning process. If not provided, default values will be used." + }, + "snapshots": { + "readOnly": true, + "type": "array", + "description": "Output only. Metrics collected during tuning.", + "items": { + "$ref": "#/components/schemas/TuningSnapshot" + } + }, + "trainingData": { + "description": "Required. Input only. Immutable. The model training data.", + "$ref": "#/components/schemas/Dataset" } }, - "description": "Config for thinking features." + "type": "object", + "description": "Tuning tasks that create tuned models." }, - "Blob": { + "Status": { + "type": "object", + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "properties": { - "mimeType": { - "description": "The IANA standard MIME type of the source data. Examples of supported types: - Images: image/png, image/jpeg, image/jpg, image/webp, image/heic, image/heif, image/gif, image/avif - Audio: audio/*, video/audio/s16le, video/audio/wav - Video: video/* - Text: text/plain, text/html, text/css, text/javascript, text/x-typescript, text/csv, text/markdown, text/x-python, text/xml, text/rtf, video/text/timestamp - Applications: application/x-javascript, application/x-typescript, application/x-python-code, application/json, application/x-ipynb+json, application/rtf, application/pdf For additional context, see [Supported file formats](https://ai.google.dev/gemini-api/docs/file-input-methods#supported-content-types). //", - "type": "string" + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "type": "integer", + "format": "int32" }, - "displayName": { - "description": "Optional. Specifies the name used to refer to this blob to the model (e.g. \"my_blob.png\"). Used as the blob reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`.", - "type": "string" + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "type": "array", + "items": { + "type": "object", + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." + } + } }, - "data": { + "message": { "type": "string", - "format": "byte", - "description": "Raw bytes for media formats." + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client." } - }, - "type": "object", - "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field." + } }, - "Source": { + "Corpus": { "properties": { - "source": { + "name": { + "readOnly": true, "type": "string", - "description": "The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path." + "description": "Output only. Immutable. Identifier. The `Corpus` resource name. The ID (name excluding the \"corpora/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `corpora/my-awesome-corpora-123a456b789c`" }, - "type": { - "x-enum-descriptions": [ - "", - "A Cloud Storage bucket.", - "Inline content.", - "A generic repository. The protocol prefix in the source URL identifies the provider (e.g., github://, gcs://)." - ], + "displayName": { "type": "string", - "enum": [ - "TYPE_UNSPECIFIED", - "GCS", - "INLINE", - "REPOSITORY" - ] + "description": "Optional. The human-readable display name for the `Corpus`. The display name must be no more than 512 characters in length, including spaces. Example: \"Docs on Semantic Retriever\"" }, - "encoding": { + "createTime": { + "description": "Output only. The Timestamp of when the `Corpus` was created.", + "readOnly": true, "type": "string", - "description": "Optional encoding for inline content (e.g. `base64`)." - }, - "content": { - "description": "The inline content if `type` is `INLINE`.", - "type": "string" + "format": "google-datetime" }, - "target": { - "description": "Where the source should appear in the environment.", - "type": "string" + "updateTime": { + "format": "google-datetime", + "description": "Output only. The Timestamp of when the `Corpus` was last updated.", + "type": "string", + "readOnly": true } }, "type": "object", - "description": "A source to be mounted into the environment." + "description": "A `Corpus` is a collection of `Document`s. A project can create up to 10 corpora." }, - "GroundingChunk": { + "File": { + "description": "A file uploaded to the API. Next ID: 15", + "type": "object", "properties": { - "retrievedContext": { - "$ref": "#/components/schemas/RetrievedContext", - "description": "Optional. Grounding chunk from context retrieved by the file search tool." + "error": { + "readOnly": true, + "description": "Output only. Error status if File processing failed.", + "$ref": "#/components/schemas/Status" }, - "maps": { - "$ref": "#/components/schemas/Maps", - "description": "Optional. Grounding chunk from Google Maps." + "uri": { + "description": "Output only. The uri of the `File`.", + "readOnly": true, + "type": "string" }, - "image": { - "description": "Optional. Grounding chunk from image search.", - "$ref": "#/components/schemas/Image" + "displayName": { + "type": "string", + "description": "Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: \"Welcome Image\"" }, - "web": { - "description": "Grounding chunk from the web.", - "$ref": "#/components/schemas/Web" - } - }, - "description": "A `GroundingChunk` represents a segment of supporting evidence that grounds the model's response. It can be a chunk from the web, a retrieved context from a file, or information from Google Maps.", - "type": "object" - }, - "GenerateContentRequest": { - "type": "object", - "properties": { - "generationConfig": { - "$ref": "#/components/schemas/GenerationConfig", - "description": "Optional. Configuration options for model generation and outputs." + "createTime": { + "description": "Output only. The timestamp of when the `File` was created.", + "format": "google-datetime", + "type": "string", + "readOnly": true }, - "contents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Content" - }, - "description": "Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request." + "sha256Hash": { + "description": "Output only. SHA-256 hash of the uploaded bytes.", + "type": "string", + "format": "byte", + "readOnly": true }, - "store": { - "description": "Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.", - "type": "boolean" + "downloadUri": { + "type": "string", + "readOnly": true, + "description": "Output only. The download uri of the `File`." }, - "cachedContent": { - "description": "Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`", + "source": { + "enum": [ + "SOURCE_UNSPECIFIED", + "UPLOADED", + "GENERATED", + "REGISTERED" + ], + "x-enum-descriptions": [ + "Used if source is not specified.", + "Indicates the file is uploaded by the user.", + "Indicates the file is generated by Google.", + "Indicates the file is a registered, i.e. a Google Cloud Storage file." + ], + "description": "Source of the File.", "type": "string" }, - "systemInstruction": { - "$ref": "#/components/schemas/Content", - "description": "Optional. Developer set [system instruction(s)](https://ai.google.dev/gemini-api/docs/system-instructions). Currently, text only." - }, - "model": { - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "updateTime": { + "format": "google-datetime", + "description": "Output only. The timestamp of when the `File` was last updated.", + "readOnly": true, "type": "string" }, - "continuationToken": { + "sizeBytes": { "type": "string", - "format": "byte", - "description": "Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request." + "description": "Output only. Size of the file in bytes.", + "readOnly": true, + "format": "int64" }, - "toolConfig": { - "description": "Optional. Tool configuration for any `Tool` specified in the request. Refer to the [Function calling guide](https://ai.google.dev/gemini-api/docs/function-calling#function_calling_mode) for a usage example.", - "$ref": "#/components/schemas/ToolConfig" + "mimeType": { + "readOnly": true, + "description": "Output only. MIME type of the file.", + "type": "string" }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "type": "object", - "description": "Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{\"safety_identifier\": \"user_session_123\"}`)" + "name": { + "description": "Immutable. Identifier. The `File` resource name. The ID (name excluding the \"files/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456`", + "type": "string" }, - "serviceTier": { - "description": "Optional. The service tier of the request.", + "state": { "type": "string", + "x-enum-descriptions": [ + "The default value. This value is used if the state is omitted.", + "File is being processed and cannot be used for inference yet.", + "File is processed and available for inference.", + "File failed processing." + ], + "description": "Output only. Processing state of the File.", "enum": [ - "unspecified", - "standard", - "flex", - "priority" + "STATE_UNSPECIFIED", + "PROCESSING", + "ACTIVE", + "FAILED" ], - "x-enum-descriptions": [ - "Default service tier, which is standard.", - "Standard service tier.", - "Flex service tier.", - "Priority service tier." - ] + "readOnly": true }, - "safetySettings": { - "description": "Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.", - "items": { - "$ref": "#/components/schemas/SafetySetting" - }, - "type": "array" + "videoMetadata": { + "description": "Output only. Metadata for a video.", + "$ref": "#/components/schemas/VideoFileMetadata", + "readOnly": true }, - "tools": { - "description": "Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.", - "items": { - "$ref": "#/components/schemas/Tool" - }, - "type": "array" - } - }, - "description": "Request to generate a completion from the model." - }, - "FunctionResponsePart": { - "description": "A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.", - "type": "object", - "properties": { - "inlineData": { - "description": "Inline media bytes.", - "$ref": "#/components/schemas/FunctionResponseBlob" + "expirationTime": { + "type": "string", + "format": "google-datetime", + "description": "Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.", + "readOnly": true } } }, - "Permission": { + "Document": { + "type": "object", "properties": { - "emailAddress": { - "type": "string", - "description": "Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE." + "name": { + "description": "Immutable. Identifier. The `Document` resource name. The ID (name excluding the \"fileSearchStores/*/documents/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/{file_search_store_id}/documents/my-awesome-doc-123a456b789c`", + "type": "string" }, - "granteeType": { + "updateTime": { + "description": "Output only. The Timestamp of when the `Document` was last updated.", + "readOnly": true, + "format": "google-datetime", + "type": "string" + }, + "state": { "x-enum-descriptions": [ - "The default value. This value is unused.", - "Represents a user. When set, you must provide email_address for the user.", - "Represents a group. When set, you must provide email_address for the group.", - "Represents access to everyone. No extra information is required." + "The default value. This value is used if the state is omitted.", + "Some `Chunks` of the `Document` are being processed (embedding and vector storage).", + "All `Chunks` of the `Document` is processed and available for querying.", + "Some `Chunks` of the `Document` failed processing." ], + "description": "Output only. Current state of the `Document`.", "type": "string", + "readOnly": true, "enum": [ - "GRANTEE_TYPE_UNSPECIFIED", - "USER", - "GROUP", - "EVERYONE" - ], - "description": "Optional. Immutable. The type of the grantee." + "STATE_UNSPECIFIED", + "STATE_PENDING", + "STATE_ACTIVE", + "STATE_FAILED" + ] }, - "name": { - "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.", + "mimeType": { + "readOnly": true, + "type": "string", + "description": "Output only. The mime type of the Document." + }, + "sizeBytes": { + "format": "int64", "readOnly": true, + "description": "Output only. The size of raw bytes ingested into the Document.", "type": "string" }, - "role": { + "createTime": { "type": "string", - "enum": [ - "ROLE_UNSPECIFIED", - "OWNER", - "WRITER", - "READER" - ], - "x-enum-descriptions": [ - "The default value. This value is unused.", - "Owner can use, update, share and delete the resource.", - "Writer can use, update and share the resource.", - "Reader can use the resource." - ], - "description": "Required. The role granted by this permission." - } - }, - "type": "object", - "description": "Permission resource grants user, group or the rest of the world access to the PaLM API resource (e.g. a tuned model, corpus). A role is a collection of permitted operations that allows users to perform specific actions on PaLM API resources. To make them available to users, groups, or service accounts, you assign roles. When you assign a role, you grant permissions that the role contains. There are three concentric roles. Each role is a superset of the previous role's permitted operations: - reader can use the resource (e.g. tuned model, corpus) for inference - writer has reader's permissions and additionally can edit and share - owner has writer's permissions and additionally can delete" - }, - "ListFileSearchStoresResponse": { - "type": "object", - "description": "Response from `ListFileSearchStores` containing a paginated list of `FileSearchStores`. The results are sorted by ascending `file_search_store.create_time`.", - "properties": { - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", - "type": "string" + "readOnly": true, + "format": "google-datetime", + "description": "Output only. The Timestamp of when the `Document` was created." }, - "fileSearchStores": { + "customMetadata": { + "type": "array", "items": { - "$ref": "#/components/schemas/FileSearchStore" + "$ref": "#/components/schemas/CustomMetadata" }, - "type": "array", - "description": "The returned rag_stores." + "description": "Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`." + }, + "displayName": { + "description": "Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: \"Semantic Retriever Documentation\"", + "type": "string" } - } + }, + "description": "A `Document` is a collection of `Chunk`s." }, - "TuningSnapshot": { + "ChunkingConfig": { + "description": "Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto", "properties": { - "computeTime": { - "readOnly": true, - "format": "google-datetime", - "description": "Output only. The timestamp when this metric was computed.", - "type": "string" - }, - "epoch": { - "type": "integer", - "description": "Output only. The epoch this step was part of.", - "format": "int32", - "readOnly": true - }, - "meanLoss": { - "type": "number", - "description": "Output only. The mean loss of the training examples for this step.", - "format": "float", - "readOnly": true - }, - "step": { - "readOnly": true, - "format": "int32", - "type": "integer", - "description": "Output only. The tuning step." + "whiteSpaceConfig": { + "description": "White space chunking configuration.", + "$ref": "#/components/schemas/WhiteSpaceConfig" } }, - "description": "Record for a single tuning step.", "type": "object" }, "AttributionSourceId": { + "type": "object", + "description": "Identifier for the source contributing to this attribution.", "properties": { - "groundingPassage": { - "description": "Identifier for an inline passage.", - "$ref": "#/components/schemas/GroundingPassageId" - }, "semanticRetrieverChunk": { "description": "Identifier for a `Chunk` fetched via Semantic Retriever.", "$ref": "#/components/schemas/SemanticRetrieverChunk" + }, + "groundingPassage": { + "$ref": "#/components/schemas/GroundingPassageId", + "description": "Identifier for an inline passage." } - }, - "description": "Identifier for the source contributing to this attribution.", - "type": "object" + } }, - "ImportFileRequest": { + "RealtimeInputConfig": { + "description": "Configures the realtime input behavior in `BidiGenerateContent`.", + "type": "object", "properties": { - "fileName": { - "description": "Required. The name of the `File` to import. Example: `files/abc-123`", + "activityHandling": { + "enum": [ + "ACTIVITY_HANDLING_UNSPECIFIED", + "START_OF_ACTIVITY_INTERRUPTS", + "NO_INTERRUPTION" + ], + "x-enum-descriptions": [ + "If unspecified, the default behavior is `START_OF_ACTIVITY_INTERRUPTS`.", + "If true, start of activity will interrupt the model's response (also called \"barge in\"). The model's current response will be cut-off in the moment of the interruption. This is the default behavior.", + "The model's response will not be interrupted." + ], + "description": "Optional. Defines what effect activity has.", "type": "string" }, - "chunkingConfig": { - "description": "Optional. Config for telling the service how to chunk the file. If not provided, the service will use default parameters.", - "$ref": "#/components/schemas/ChunkingConfig" + "turnCoverage": { + "description": "Optional. Defines which input is included in the user's turn.", + "x-enum-descriptions": [ + "If unspecified, a default behavior is selected based on the model. E.g., for Gemini 2.5, the default is `TURN_INCLUDES_ONLY_ACTIVITY`, while for Gemini 3.1 and onwards, it's `TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO`.", + "Includes activity since the last turn, excluding inactivity (e.g. silence on the audio stream).", + "Includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).", + "Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence." + ], + "type": "string", + "enum": [ + "TURN_COVERAGE_UNSPECIFIED", + "TURN_INCLUDES_ONLY_ACTIVITY", + "TURN_INCLUDES_ALL_INPUT", + "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO" + ] }, - "customMetadata": { - "items": { - "$ref": "#/components/schemas/CustomMetadata" - }, - "description": "Custom metadata to be associated with the file.", - "type": "array" + "interimTranscriptTimestampEnabled": { + "description": "Optional. Configures interim transcript timestamps.", + "type": "boolean" + }, + "automaticActivityDetection": { + "$ref": "#/components/schemas/AutomaticActivityDetection", + "description": "Optional. If not set, automatic activity detection is enabled by default. If automatic voice detection is disabled, the client must send activity signals." } - }, - "type": "object", - "description": "Request for `ImportFile` to import a File API file with a `FileSearchStore`." + } }, - "File": { + "TunedModel": { + "description": "A fine-tuned model created using ModelService.CreateTunedModel.", "type": "object", - "description": "A file uploaded to the API. Next ID: 15", "properties": { + "topK": { + "description": "Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.", + "type": "integer", + "format": "int32" + }, + "displayName": { + "description": "Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.", + "type": "string" + }, + "description": { + "type": "string", + "description": "Optional. A short description of this model." + }, "state": { - "readOnly": true, - "description": "Output only. Processing state of the File.", "type": "string", + "readOnly": true, "enum": [ "STATE_UNSPECIFIED", - "PROCESSING", + "CREATING", "ACTIVE", "FAILED" ], + "description": "Output only. The state of the tuned model.", "x-enum-descriptions": [ - "The default value. This value is used if the state is omitted.", - "File is being processed and cannot be used for inference yet.", - "File is processed and available for inference.", - "File failed processing." + "The default value. This value is unused.", + "The model is being created.", + "The model is ready to be used.", + "The model failed to be created." ] }, - "updateTime": { - "readOnly": true, - "type": "string", - "description": "Output only. The timestamp of when the `File` was last updated.", - "format": "google-datetime" - }, - "sha256Hash": { - "type": "string", - "readOnly": true, - "description": "Output only. SHA-256 hash of the uploaded bytes.", - "format": "byte" - }, - "displayName": { - "type": "string", - "description": "Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: \"Welcome Image\"" - }, - "downloadUri": { + "name": { "type": "string", "readOnly": true, - "description": "Output only. The download uri of the `File`." - }, - "error": { - "readOnly": true, - "$ref": "#/components/schemas/Status", - "description": "Output only. Error status if File processing failed." + "description": "Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`" }, - "expirationTime": { - "format": "google-datetime", - "readOnly": true, - "type": "string", - "description": "Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire." + "tuningTask": { + "description": "Required. The tuning task that creates the tuned model.", + "$ref": "#/components/schemas/TuningTask" }, - "mimeType": { - "readOnly": true, - "description": "Output only. MIME type of the file.", + "baseModel": { + "description": "Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`", "type": "string" }, - "uri": { - "readOnly": true, - "type": "string", - "description": "Output only. The uri of the `File`." - }, "createTime": { - "description": "Output only. The timestamp of when the `File` was created.", - "readOnly": true, - "type": "string", - "format": "google-datetime" - }, - "sizeBytes": { "readOnly": true, + "format": "google-datetime", "type": "string", - "description": "Output only. Size of the file in bytes.", - "format": "int64" + "description": "Output only. The timestamp when this model was created." }, - "source": { - "x-enum-descriptions": [ - "Used if source is not specified.", - "Indicates the file is uploaded by the user.", - "Indicates the file is generated by Google.", - "Indicates the file is a registered, i.e. a Google Cloud Storage file." - ], + "updateTime": { "type": "string", - "enum": [ - "SOURCE_UNSPECIFIED", - "UPLOADED", - "GENERATED", - "REGISTERED" - ], - "description": "Source of the File." + "format": "google-datetime", + "readOnly": true, + "description": "Output only. The timestamp when this model was updated." }, - "videoMetadata": { - "$ref": "#/components/schemas/VideoFileMetadata", - "description": "Output only. Metadata for a video.", - "readOnly": true + "temperature": { + "description": "Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model.", + "type": "number", + "format": "float" }, - "name": { - "type": "string", - "description": "Immutable. Identifier. The `File` resource name. The ID (name excluding the \"files/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456`" - } - } - }, - "StringList": { - "type": "object", - "properties": { - "values": { - "items": { - "type": "string" - }, - "type": "array", - "description": "The string values of the metadata to store." - } - }, - "description": "User provided string values assigned to a single metadata key." - }, - "UploadEnvironmentFileResponse": { - "type": "object", - "description": "Response for `UploadEnvironmentFile`.", - "properties": { - "files": { + "tunedModelSource": { + "$ref": "#/components/schemas/TunedModelSource", + "description": "Optional. TunedModel to use as the starting point for training the new model." + }, + "readerProjectNumbers": { + "description": "Optional. List of project numbers that have read access to the tuned model.", "items": { - "$ref": "#/components/schemas/EnvironmentFile" + "type": "string", + "format": "int64" }, - "description": "List of files created or extracted in the environment.", "type": "array" + }, + "topP": { + "format": "float", + "description": "Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.", + "type": "number" } } }, - "UrlMetadata": { + "Source": { + "description": "A source to be mounted into the environment.", "type": "object", - "description": "Context of the a single url retrieval.", "properties": { - "retrievedUrl": { - "description": "Retrieved url by the tool.", - "type": "string" + "source": { + "type": "string", + "description": "The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path." }, - "urlRetrievalStatus": { - "description": "Status of the url retrieval.", + "type": { "type": "string", - "enum": [ - "URL_RETRIEVAL_STATUS_UNSPECIFIED", - "URL_RETRIEVAL_STATUS_SUCCESS", - "URL_RETRIEVAL_STATUS_ERROR", - "URL_RETRIEVAL_STATUS_PAYWALL", - "URL_RETRIEVAL_STATUS_UNSAFE" - ], "x-enum-descriptions": [ - "Default value. This value is unused.", - "Url retrieval is successful.", - "Url retrieval is failed due to error.", - "Url retrieval is failed because the content is behind paywall.", - "Url retrieval is failed because the content is unsafe." + "", + "A Cloud Storage bucket.", + "Inline content.", + "A generic repository. The protocol prefix in the source URL identifies the provider (e.g., github://, gcs://)." + ], + "enum": [ + "TYPE_UNSPECIFIED", + "GCS", + "INLINE", + "REPOSITORY" ] + }, + "target": { + "description": "Where the source should appear in the environment.", + "type": "string" + }, + "content": { + "description": "The inline content if `type` is `INLINE`.", + "type": "string" + }, + "encoding": { + "type": "string", + "description": "Optional encoding for inline content (e.g. `base64`)." } } }, - "EmbeddingUsageMetadata": { - "description": "Metadata on the usage of the embedding request.", + "SafetyRating": { + "description": "Safety rating for a piece of content. The safety rating contains the category of harm and the harm probability level in that category for a piece of content. Content is classified for safety across a number of harm categories and the probability of the harm classification is included here.", "properties": { - "promptTokenCount": { - "readOnly": true, - "type": "integer", - "description": "Output only. Number of tokens in the prompt.", - "format": "int32" + "blocked": { + "description": "Was this content blocked because of this rating?", + "type": "boolean" }, - "promptTokenDetails": { - "description": "Output only. List of modalities that were processed in the request input.", - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - } + "probability": { + "enum": [ + "HARM_PROBABILITY_UNSPECIFIED", + "NEGLIGIBLE", + "LOW", + "MEDIUM", + "HIGH" + ], + "x-enum-descriptions": [ + "Probability is unspecified.", + "Content has a negligible chance of being unsafe.", + "Content has a low chance of being unsafe.", + "Content has a medium chance of being unsafe.", + "Content has a high chance of being unsafe." + ], + "description": "Required. The probability of harm for this content.", + "type": "string" + }, + "category": { + "enum": [ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_DEROGATORY", + "HARM_CATEGORY_TOXICITY", + "HARM_CATEGORY_VIOLENCE", + "HARM_CATEGORY_SEXUAL", + "HARM_CATEGORY_MEDICAL", + "HARM_CATEGORY_DANGEROUS", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_CIVIC_INTEGRITY", + "HARM_CATEGORY_JAILBREAK" + ], + "x-enum-descriptions": [ + "Category is unspecified.", + "**PaLM** - Negative or harmful comments targeting identity and/or protected attribute. DEPRECATED: PaLM-only category, not supported by Gemini models.", + "**PaLM** - Content that is rude, disrespectful, or profane. DEPRECATED: PaLM-only category, not supported by Gemini models.", + "**PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore. DEPRECATED: PaLM-only category, not supported by Gemini models.", + "**PaLM** - Contains references to sexual acts or other lewd content. DEPRECATED: PaLM-only category, not supported by Gemini models.", + "**PaLM** - Promotes unchecked medical advice. DEPRECATED: PaLM-only category, not supported by Gemini models.", + "**PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts. DEPRECATED: PaLM-only category, not supported by Gemini models.", + "**Gemini** - Harassment content.", + "**Gemini** - Hate speech and content.", + "**Gemini** - Sexually explicit content.", + "**Gemini** - Dangerous content.", + "**Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.", + "**Gemini** - Prompts attempting to bypass or subvert the model's safety guidelines (jailbreak attempts)." + ], + "type": "string", + "enumDeprecated": [ + false, + true, + true, + true, + true, + true, + true, + false, + false, + false, + false, + true, + false + ], + "description": "Required. The category for this rating." } }, "type": "object" }, - "Content": { + "SlidingWindow": { + "type": "object", + "description": "The SlidingWindow method operates by discarding content at the beginning of the context window. The resulting context will always begin at the start of a USER role turn. System instructions and any `BidiGenerateContentSetup.prefix_turns` will always remain at the beginning of the result.", "properties": { - "role": { + "targetTokens": { "type": "string", - "description": "Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset." + "format": "int64", + "description": "The target number of tokens to keep. The default value is trigger_tokens/2. Discarding parts of the context window causes a temporary latency increase so this value should be calibrated to avoid frequent compression operations." + } + } + }, + "ListFilesResponse": { + "type": "object", + "properties": { + "nextPageToken": { + "description": "A token that can be sent as a `page_token` into a subsequent `ListFiles` call.", + "type": "string" }, - "parts": { + "files": { "items": { - "$ref": "#/components/schemas/Part" + "$ref": "#/components/schemas/File" }, - "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types.", - "type": "array" + "type": "array", + "description": "The list of `File`s." } }, - "type": "object", - "description": "The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn." + "description": "Response for `ListFiles`." }, "EnvironmentFile": { - "type": "object", "description": "Metadata for a file or directory within an environment.", + "type": "object", "properties": { - "size_bytes": { - "format": "int64", + "mime_type": { "type": "string", + "readOnly": true, + "description": "Output only. The MIME type of the file (e.g., \"text/python\", \"image/png\"). Empty for directories. NOLINT" + }, + "path": { + "readOnly": true, + "description": "Output only. The full relative path within the environment (e.g., \"workspace/src/main.py\").", + "type": "string" + }, + "size_bytes": { "description": "Output only. The size of the file/directory in bytes. NOLINT", + "type": "string", + "format": "int64", "readOnly": true }, - "name": { + "modified": { "type": "string", - "description": "Output only. The name of the file or directory (e.g., \"main.py\" or \"src\").", - "readOnly": true + "description": "Output only. The modification time of the file/directory.", + "readOnly": true, + "format": "google-datetime" }, "type": { - "description": "Output only. The type of the entry.", - "x-enum-descriptions": [ - "Unspecified type.", - "A regular file.", - "A directory." - ], "type": "string", "enum": [ "TYPE_UNSPECIFIED", "FILE", "DIRECTORY" ], - "readOnly": true - }, - "modified": { - "description": "Output only. The modification time of the file/directory.", - "type": "string", "readOnly": true, - "format": "google-datetime" + "description": "Output only. The type of the entry.", + "x-enum-descriptions": [ + "Unspecified type.", + "A regular file.", + "A directory." + ] }, - "path": { - "description": "Output only. The full relative path within the environment (e.g., \"workspace/src/main.py\").", + "created": { + "description": "Output only. The creation time of the file/directory.", "readOnly": true, + "format": "google-datetime", "type": "string" }, - "created": { - "format": "google-datetime", + "name": { "type": "string", "readOnly": true, - "description": "Output only. The creation time of the file/directory." - }, - "mime_type": { - "readOnly": true, - "description": "Output only. The MIME type of the file (e.g., \"text/python\", \"image/png\"). Empty for directories. NOLINT", - "type": "string" + "description": "Output only. The name of the file or directory (e.g., \"main.py\" or \"src\")." } } }, - "GoogleSearchRetrieval": { - "type": "object", - "properties": { - "dynamicRetrievalConfig": { - "description": "Specifies the dynamic retrieval configuration for the given source.", - "$ref": "#/components/schemas/DynamicRetrievalConfig" - } - }, - "description": "Tool to retrieve public web data for grounding, powered by Google." - }, - "TunedModelSource": { - "properties": { - "baseModel": { - "description": "Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/gemini-1.5-flash-001`", - "type": "string", - "readOnly": true - }, - "tunedModel": { - "type": "string", - "description": "Immutable. The name of the `TunedModel` to use as the starting point for training the new model. Example: `tunedModels/my-tuned-model`" - } - }, - "type": "object", - "description": "Tuned model as a source for training a new model." - }, - "EmbedContentResponse": { - "description": "The response to an `EmbedContentRequest`.", - "properties": { - "usageMetadata": { - "readOnly": true, - "$ref": "#/components/schemas/EmbeddingUsageMetadata", - "description": "Output only. The usage metadata for the request." + "SpeechConfig": { + "description": "Config for speech generation and transcription.", + "properties": { + "languageCode": { + "description": "Optional. The IETF [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language code that the user configured the app to use. Used for speech recognition and synthesis. Valid values are: `de-DE`, `en-AU`, `en-GB`, `en-IN`, `en-US`, `es-US`, `fr-FR`, `hi-IN`, `pt-BR`, `ar-XA`, `es-ES`, `fr-CA`, `id-ID`, `it-IT`, `ja-JP`, `tr-TR`, `vi-VN`, `bn-IN`, `gu-IN`, `kn-IN`, `ml-IN`, `mr-IN`, `ta-IN`, `te-IN`, `nl-NL`, `ko-KR`, `cmn-CN`, `pl-PL`, `ru-RU`, and `th-TH`.", + "type": "string" }, - "embedding": { - "description": "Output only. The embedding generated from the input content.", - "readOnly": true, - "$ref": "#/components/schemas/ContentEmbedding" + "voiceConfig": { + "description": "The configuration in case of single-voice output.", + "$ref": "#/components/schemas/VoiceConfig" + }, + "multiSpeakerVoiceConfig": { + "$ref": "#/components/schemas/MultiSpeakerVoiceConfig", + "description": "Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field." } }, "type": "object" }, - "VideoMetadata": { + "FunctionResponsePart": { "properties": { - "startOffset": { - "type": "string", - "format": "google-duration", - "description": "Optional. The start offset of the video." - }, - "fps": { - "description": "Optional. The frame rate of the video sent to the model. If not specified, the default value will be 1.0. The fps range is (0.0, 24.0].", - "format": "double", - "type": "number" - }, - "endOffset": { - "type": "string", - "description": "Optional. The end offset of the video.", - "format": "google-duration" + "inlineData": { + "description": "Inline media bytes.", + "$ref": "#/components/schemas/FunctionResponseBlob" } }, "type": "object", - "description": "Metadata describes the input video content. Set this in `Part.video_metadata` or `FunctionResponsePart.video_metadata` when `inline_data` or `file_data` contains video to configure static video preprocessing (such as time clipping, frame rate, maximum frame count, or extracted content layers)." + "description": "A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes." }, - "AsyncBatchEmbedContentRequest": { + "AutomaticActivityDetection": { "properties": { - "batch": { - "description": "Required. The batch to create.", - "$ref": "#/components/schemas/EmbedContentBatch" + "disabled": { + "description": "Optional. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals.", + "type": "boolean" + }, + "silenceDurationMs": { + "type": "integer", + "format": "int32", + "description": "Optional. The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency." + }, + "endOfSpeechSensitivity": { + "x-enum-descriptions": [ + "The default is END_SENSITIVITY_HIGH.", + "Automatic detection ends speech more often.", + "Automatic detection ends speech less often." + ], + "type": "string", + "description": "Optional. Determines how likely detected speech is ended.", + "enum": [ + "END_SENSITIVITY_UNSPECIFIED", + "END_SENSITIVITY_HIGH", + "END_SENSITIVITY_LOW" + ] + }, + "prefixPaddingMs": { + "format": "int32", + "description": "Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives.", + "type": "integer" + }, + "startOfSpeechSensitivity": { + "x-enum-descriptions": [ + "The default is START_SENSITIVITY_HIGH.", + "Automatic detection will detect the start of speech more often.", + "Automatic detection will detect the start of speech less often." + ], + "description": "Optional. Determines how likely speech is to be detected.", + "enum": [ + "START_SENSITIVITY_UNSPECIFIED", + "START_SENSITIVITY_HIGH", + "START_SENSITIVITY_LOW" + ], + "type": "string" } }, - "description": "Request for an `AsyncBatchEmbedContent` operation.", + "description": "Configures automatic detection of activity.", "type": "object" }, - "BatchStats": { + "SemanticRetrieverChunk": { "type": "object", "properties": { - "successfulRequestCount": { + "source": { "readOnly": true, "type": "string", - "format": "int64", - "description": "Output only. The number of requests that were successfully processed." - }, - "pendingRequestCount": { - "format": "int64", - "type": "string", - "readOnly": true, - "description": "Output only. The number of requests that are still pending processing." + "description": "Output only. Name of the source matching the request's `SemanticRetrieverConfig.source`. Example: `corpora/123` or `corpora/123/documents/abc`" }, - "requestCount": { + "chunk": { "type": "string", "readOnly": true, - "format": "int64", - "description": "Output only. The number of requests in the batch." - }, - "failedRequestCount": { - "description": "Output only. The number of requests that failed to be processed.", - "format": "int64", - "type": "string", - "readOnly": true + "description": "Output only. Name of the `Chunk` containing the attributed text. Example: `corpora/123/documents/abc/chunks/xyz`" } }, - "description": "Stats about the batch." + "description": "Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`." }, - "SlidingWindow": { - "description": "The SlidingWindow method operates by discarding content at the beginning of the context window. The resulting context will always begin at the start of a USER role turn. System instructions and any `BidiGenerateContentSetup.prefix_turns` will always remain at the beginning of the result.", + "SpeakerVoiceConfig": { "properties": { - "targetTokens": { - "type": "string", - "description": "The target number of tokens to keep. The default value is trigger_tokens/2. Discarding parts of the context window causes a temporary latency increase so this value should be calibrated to avoid frequent compression operations.", - "format": "int64" + "voiceConfig": { + "$ref": "#/components/schemas/VoiceConfig", + "description": "Required. The configuration for the voice to use." + }, + "speaker": { + "description": "Required. The name of the speaker to use. Should be the same as in the prompt.", + "type": "string" } }, + "description": "The configuration for a single speaker in a multi speaker setup.", "type": "object" }, - "InlinedEmbedContentRequests": { - "description": "The requests to be processed in the batch if provided as part of the batch creation request.", - "type": "object", - "properties": { - "requests": { - "type": "array", - "items": { - "$ref": "#/components/schemas/InlinedEmbedContentRequest" - }, - "description": "Required. The requests to be processed in the batch." - } - } - }, - "InlinedRequests": { - "description": "The requests to be processed in the batch if provided as part of the batch creation request.", + "AsyncBatchEmbedContentRequest": { "properties": { - "requests": { - "items": { - "$ref": "#/components/schemas/InlinedRequest" - }, - "type": "array", - "description": "Required. The requests to be processed in the batch." + "batch": { + "$ref": "#/components/schemas/EmbedContentBatch", + "description": "Required. The batch to create." } }, + "description": "Request for an `AsyncBatchEmbedContent` operation.", "type": "object" }, - "ModelStatus": { + "Schema": { + "type": "object", + "description": "The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema).", "properties": { - "retirementTime": { - "format": "google-datetime", - "description": "The time at which the model will be retired.", - "type": "string" - }, - "message": { - "description": "A message explaining the model status.", + "title": { + "description": "Optional. The title of the schema.", "type": "string" }, - "modelStage": { - "enumDeprecated": [ - false, - true, - false, - false, - false, - false, - true, - false - ], + "minProperties": { + "description": "Optional. Minimum number of the properties for Type.OBJECT.", "type": "string", - "enum": [ - "MODEL_STAGE_UNSPECIFIED", - "UNSTABLE_EXPERIMENTAL", - "EXPERIMENTAL", - "PREVIEW", - "STABLE", - "LEGACY", - "DEPRECATED", - "RETIRED" - ], - "description": "The stage of the underlying model.", - "x-enum-descriptions": [ - "Unspecified model stage.", - "The underlying model is subject to lots of tunings.", - "Models in this stage are for experimental purposes only.", - "Models in this stage are more mature than experimental models.", - "Models in this stage are considered stable and ready for production use.", - "If the model is on this stage, it means that this model is on the path to deprecation in near future. Only existing customers can use this model.", - "Models in this stage are deprecated. These models cannot be used.", - "Models in this stage are retired. These models cannot be used." - ] - } - }, - "description": "The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable.", - "type": "object" - }, - "TunedModel": { - "description": "A fine-tuned model created using ModelService.CreateTunedModel.", - "type": "object", - "properties": { - "updateTime": { - "format": "google-datetime", - "description": "Output only. The timestamp when this model was updated.", - "readOnly": true, - "type": "string" + "format": "int64" }, - "displayName": { - "description": "Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.", + "minimum": { + "type": "number", + "format": "double", + "description": "Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER" + }, + "format": { + "description": "Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality.", "type": "string" }, - "tuningTask": { - "description": "Required. The tuning task that creates the tuned model.", - "$ref": "#/components/schemas/TuningTask" + "maxLength": { + "description": "Optional. Maximum length of the Type.STRING", + "format": "int64", + "type": "string" }, - "temperature": { - "format": "float", - "description": "Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model.", - "type": "number" + "maxItems": { + "type": "string", + "format": "int64", + "description": "Optional. Maximum number of the elements for Type.ARRAY." }, "description": { - "description": "Optional. A short description of this model.", + "description": "Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown.", "type": "string" }, - "topP": { - "format": "float", - "type": "number", - "description": "Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model." + "items": { + "$ref": "#/components/schemas/Schema", + "description": "Optional. Schema of the elements of Type.ARRAY." }, - "state": { - "readOnly": true, - "x-enum-descriptions": [ - "The default value. This value is unused.", - "The model is being created.", - "The model is ready to be used.", - "The model failed to be created." - ], - "description": "Output only. The state of the tuned model.", + "example": { + "description": "Optional. Example of the object. Will only populated when the object is the root." + }, + "minItems": { "type": "string", - "enum": [ - "STATE_UNSPECIFIED", - "CREATING", - "ACTIVE", - "FAILED" - ] + "format": "int64", + "description": "Optional. Minimum number of the elements for Type.ARRAY." }, - "readerProjectNumbers": { + "anyOf": { + "type": "array", + "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list.", + "items": { + "$ref": "#/components/schemas/Schema" + } + }, + "maximum": { + "format": "double", + "description": "Optional. Maximum value of the Type.INTEGER and Type.NUMBER", + "type": "number" + }, + "nullable": { + "description": "Optional. Indicates if the value may be null.", + "type": "boolean" + }, + "required": { + "items": { + "type": "string" + }, "type": "array", + "description": "Optional. Required properties of Type.OBJECT." + }, + "properties": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/Schema" + }, + "description": "Optional. Properties of Type.OBJECT." + }, + "propertyOrdering": { "items": { - "type": "string", - "format": "int64" + "type": "string" }, - "description": "Optional. List of project numbers that have read access to the tuned model." + "description": "Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response.", + "type": "array" }, - "topK": { - "description": "Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.", - "format": "int32", - "type": "integer" + "minLength": { + "description": "Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING", + "format": "int64", + "type": "string" }, - "baseModel": { - "description": "Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`", + "pattern": { + "description": "Optional. Pattern of the Type.STRING to restrict a string to a regular expression.", "type": "string" }, - "createTime": { - "readOnly": true, - "description": "Output only. The timestamp when this model was created.", - "format": "google-datetime", + "enum": { + "description": "Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]}", + "type": "array", + "items": { + "type": "string" + } + }, + "maxProperties": { + "description": "Optional. Maximum number of the properties for Type.OBJECT.", + "format": "int64", "type": "string" }, - "tunedModelSource": { - "description": "Optional. TunedModel to use as the starting point for training the new model.", - "$ref": "#/components/schemas/TunedModelSource" + "default": { + "description": "Optional. Default value of the field. Per JSON Schema, this field is intended for documentation generators and doesn't affect validation. Thus it's included here and ignored so that developers who send schemas with a `default` field don't get unknown-field errors." }, - "name": { - "description": "Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`", - "type": "string", - "readOnly": true + "type": { + "x-enum-descriptions": [ + "Not specified, should not be used.", + "String type.", + "Number type.", + "Integer type.", + "Boolean type.", + "Array type.", + "Object type.", + "Null type." + ], + "enum": [ + "TYPE_UNSPECIFIED", + "STRING", + "NUMBER", + "INTEGER", + "BOOLEAN", + "ARRAY", + "OBJECT", + "NULL" + ], + "description": "Required. Data type.", + "type": "string" } } }, - "ImageSearch": { + "GoogleSearchRetrieval": { + "description": "Tool to retrieve public web data for grounding, powered by Google.", "type": "object", - "description": "Image search for grounding and related configurations.", - "properties": {} - }, - "TransferOwnershipResponse": { - "description": "Response from `TransferOwnership`.", - "properties": {}, - "type": "object" + "properties": { + "dynamicRetrievalConfig": { + "$ref": "#/components/schemas/DynamicRetrievalConfig", + "description": "Specifies the dynamic retrieval configuration for the given source." + } + } }, - "CodeExecution": { + "TextResponseFormat": { "type": "object", - "description": "Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool.", - "properties": {} + "properties": { + "schema": { + "description": "Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON." + }, + "mimeType": { + "type": "string", + "x-enum-descriptions": [ + "Default value. This value is unused.", + "JSON output format.", + "Plain text output format." + ], + "description": "Optional. The MIME type of the text output.", + "enum": [ + "MIME_TYPE_UNSPECIFIED", + "APPLICATION_JSON", + "TEXT_PLAIN" + ] + } + }, + "description": "Configuration for text output format." }, - "ListTunedModelsResponse": { - "description": "Response from `ListTunedModels` containing a paginated list of Models.", + "UploadEnvironmentFileResponse": { "type": "object", + "description": "Response for `UploadEnvironmentFile`.", "properties": { - "tunedModels": { - "description": "The returned Models.", + "files": { + "description": "List of files created or extracted in the environment.", "type": "array", "items": { - "$ref": "#/components/schemas/TunedModel" + "$ref": "#/components/schemas/EnvironmentFile" } - }, - "nextPageToken": { - "type": "string", - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages." } } }, "ImageConfig": { "description": "Config for image generation features.", + "type": "object", "properties": { + "imageSize": { + "type": "string", + "description": "Optional. Specifies the size of generated images. Supported values are `512`, `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`." + }, "aspectRatio": { "description": "Optional. The aspect ratio of the image to generate. Supported aspect ratios: `1:1`, `1:4`, `4:1`, `1:8`, `8:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, or `21:9`. If not specified, the model will choose a default aspect ratio based on any reference images provided.", "type": "string" + } + } + }, + "FileSearchStore": { + "properties": { + "activeDocumentsCount": { + "description": "Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.", + "readOnly": true, + "type": "string", + "format": "int64" + }, + "updateTime": { + "type": "string", + "description": "Output only. The Timestamp of when the `FileSearchStore` was last updated.", + "format": "google-datetime", + "readOnly": true + }, + "pendingDocumentsCount": { + "type": "string", + "description": "Output only. The number of documents in the `FileSearchStore` that are being processed.", + "format": "int64", + "readOnly": true + }, + "createTime": { + "type": "string", + "readOnly": true, + "format": "google-datetime", + "description": "Output only. The Timestamp of when the `FileSearchStore` was created." + }, + "sizeBytes": { + "description": "Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.", + "readOnly": true, + "format": "int64", + "type": "string" }, - "imageSize": { - "description": "Optional. Specifies the size of generated images. Supported values are `512`, `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.", + "displayName": { + "description": "Optional. The human-readable display name for the `FileSearchStore`. The display name must be no more than 512 characters in length, including spaces. Example: \"Docs on Semantic Retriever\"", + "type": "string" + }, + "embeddingModel": { + "type": "string", + "description": "Optional. The embedding model to use for the `FileSearchStore`. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`. If not specified, the default embedding model will be used." + }, + "name": { + "description": "Output only. Immutable. Identifier. The `FileSearchStore` resource name. It is an ID (name excluding the \"fileSearchStores/\" prefix) that can contain up to 40 characters that are lowercase alphanumeric or dashes (-). It is output only. The unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/my-awesome-file-search-store-123a456b789c` If `display_name` is not provided, the name will be randomly generated.", + "readOnly": true, "type": "string" + }, + "failedDocumentsCount": { + "readOnly": true, + "format": "int64", + "type": "string", + "description": "Output only. The number of documents in the `FileSearchStore` that have failed processing." } }, - "type": "object" + "type": "object", + "description": "A `FileSearchStore` is a collection of `Document`s." }, - "PrebuiltVoiceConfig": { - "description": "The configuration for the prebuilt speaker to use.", + "FunctionDeclaration": { "type": "object", + "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.03 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.", "properties": { - "voiceName": { + "behavior": { + "description": "Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method.", "type": "string", - "description": "Optional. The name of the preset voice to use." - } - } - }, - "CustomMetadata": { - "properties": { - "key": { - "description": "Required. The key of the metadata to store.", - "type": "string" - }, - "stringListValue": { - "description": "The StringList value of the metadata to store.", - "$ref": "#/components/schemas/StringList" + "x-enum-descriptions": [ + "This value is unused.", + "If set, the system will wait to receive the function response before continuing the conversation.", + "If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model." + ], + "enum": [ + "UNSPECIFIED", + "BLOCKING", + "NON_BLOCKING" + ] }, - "stringValue": { + "name": { "type": "string", - "description": "The string value of the metadata to store." + "description": "Required. The name of the function. Must be a-z, A-Z, 0-9, or contain underscores, colons, dots, and dashes, with a maximum length of 128." }, - "numericValue": { - "description": "The numeric value of the metadata to store.", - "type": "number", - "format": "float" + "parameters": { + "$ref": "#/components/schemas/Schema", + "description": "Optional. Describes the parameters to this function. Reflects the Open API 3.03 Parameter Object string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter." + }, + "response": { + "description": "Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.", + "$ref": "#/components/schemas/Schema" + }, + "description": { + "description": "Required. A brief description of the function.", + "type": "string" + }, + "parametersJsonSchema": { + "description": "Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { \"type\": \"object\", \"properties\": { \"name\": { \"type\": \"string\" }, \"age\": { \"type\": \"integer\" } }, \"additionalProperties\": false, \"required\": [\"name\", \"age\"], \"propertyOrdering\": [\"name\", \"age\"] } ``` This field is mutually exclusive with `parameters`." + }, + "responseJsonSchema": { + "description": "Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`." } - }, + } + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "type": "object", - "description": "User provided metadata stored as key-value pairs." + "properties": {} }, "EmbedContentRequest": { - "description": "Request containing the `Content` for the model to embed.", "type": "object", "properties": { - "outputDimensionality": { - "description": "Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024 only. You cannot set this value if using the earlier model (`models/embedding-001`).", - "deprecated": true, - "type": "integer", - "format": "int32" + "content": { + "description": "Required. The content to embed. Only the `parts.text` fields will be counted.", + "$ref": "#/components/schemas/Content" + }, + "model": { + "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", + "type": "string" }, "taskType": { "type": "string", - "enum": [ - "TASK_TYPE_UNSPECIFIED", - "RETRIEVAL_QUERY", - "RETRIEVAL_DOCUMENT", - "SEMANTIC_SIMILARITY", - "CLASSIFICATION", - "CLUSTERING", - "QUESTION_ANSWERING", - "FACT_VERIFICATION", - "CODE_RETRIEVAL_QUERY" - ], "x-enum-descriptions": [ "Unset value, which will default to one of the other enum values.", "Specifies the given text is a query in a search/retrieval setting.", @@ -5827,1992 +5552,2324 @@ "Specifies that the given text will be used for fact verification.", "Specifies that the given text will be used for code retrieval." ], - "deprecated": true, + "deprecated": true, + "enum": [ + "TASK_TYPE_UNSPECIFIED", + "RETRIEVAL_QUERY", + "RETRIEVAL_DOCUMENT", + "SEMANTIC_SIMILARITY", + "CLASSIFICATION", + "CLUSTERING", + "QUESTION_ANSWERING", + "FACT_VERIFICATION", + "CODE_RETRIEVAL_QUERY" + ], "description": "Optional. Deprecated: Please use EmbedContentConfig.task_type instead. Optional task type for which the embeddings will be used. Not supported on earlier models (`models/embedding-001`)." }, - "model": { - "type": "string", - "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`" - }, "title": { - "type": "string", "deprecated": true, + "type": "string", "description": "Optional. Deprecated: Please use EmbedContentConfig.title instead. An optional title for the text. Only applicable when TaskType is `RETRIEVAL_DOCUMENT`. Note: Specifying a `title` for `RETRIEVAL_DOCUMENT` provides better quality embeddings for retrieval." }, - "content": { - "description": "Required. The content to embed. Only the `parts.text` fields will be counted.", - "$ref": "#/components/schemas/Content" + "outputDimensionality": { + "format": "int32", + "description": "Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024 only. You cannot set this value if using the earlier model (`models/embedding-001`).", + "type": "integer", + "deprecated": true }, "embedContentConfig": { "description": "Optional. Configuration for the EmbedContent request.", "$ref": "#/components/schemas/EmbedContentConfig" } - } + }, + "description": "Request containing the `Content` for the model to embed." }, - "Maps": { - "description": "A grounding chunk from Google Maps. A Maps chunk corresponds to a single place.", + "UrlContextMetadata": { "properties": { - "placeAnswerSources": { - "$ref": "#/components/schemas/PlaceAnswerSources", - "description": "Sources that provide answers about the features of a given place in Google Maps." - }, - "text": { - "description": "Text description of the place answer.", - "type": "string" - }, - "title": { - "type": "string", - "description": "Title of the place." - }, - "placeId": { - "description": "The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place.", - "type": "string" - }, - "uri": { - "description": "URI reference of the place.", - "type": "string" + "urlMetadata": { + "items": { + "$ref": "#/components/schemas/UrlMetadata" + }, + "type": "array", + "description": "List of url context." } }, - "type": "object" + "type": "object", + "description": "Metadata related to url context retrieval tool." }, - "Corpus": { + "McpServer": { + "type": "object", + "description": "A MCPServer is a server that can be called by the model to perform actions. It is a server that implements the MCP protocol. Next ID: 7", "properties": { + "streamableHttpTransport": { + "description": "A transport that can stream HTTP requests and responses.", + "$ref": "#/components/schemas/StreamableHttpTransport" + }, "name": { "type": "string", - "readOnly": true, - "description": "Output only. Immutable. Identifier. The `Corpus` resource name. The ID (name excluding the \"corpora/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `corpora/my-awesome-corpora-123a456b789c`" + "description": "The name of the MCPServer." + } + } + }, + "GroundingChunk": { + "properties": { + "web": { + "description": "Grounding chunk from the web.", + "$ref": "#/components/schemas/Web" }, - "createTime": { - "readOnly": true, - "format": "google-datetime", - "description": "Output only. The Timestamp of when the `Corpus` was created.", - "type": "string" + "maps": { + "description": "Optional. Grounding chunk from Google Maps.", + "$ref": "#/components/schemas/Maps" }, - "displayName": { - "description": "Optional. The human-readable display name for the `Corpus`. The display name must be no more than 512 characters in length, including spaces. Example: \"Docs on Semantic Retriever\"", - "type": "string" + "retrievedContext": { + "description": "Optional. Grounding chunk from context retrieved by the file search tool.", + "$ref": "#/components/schemas/RetrievedContext" }, - "updateTime": { - "description": "Output only. The Timestamp of when the `Corpus` was last updated.", - "readOnly": true, - "format": "google-datetime", - "type": "string" + "image": { + "$ref": "#/components/schemas/Image", + "description": "Optional. Grounding chunk from image search." } }, "type": "object", - "description": "A `Corpus` is a collection of `Document`s. A project can create up to 10 corpora." + "description": "A `GroundingChunk` represents a segment of supporting evidence that grounds the model's response. It can be a chunk from the web, a retrieved context from a file, or information from Google Maps." }, - "UsageMetadata": { + "GoogleMaps": { + "description": "The GoogleMaps Tool that provides geospatial context for the user's query.", "properties": { - "candidatesTokenCount": { - "description": "Total number of tokens across all the generated response candidates.", - "format": "int32", - "type": "integer" + "enableWidget": { + "type": "boolean", + "description": "Optional. Whether to return a widget context token in the GroundingMetadata of the response. Developers can use the widget context token to render a Google Maps widget with geospatial context related to the places that the model references in the response." + } + }, + "type": "object" + }, + "AudioTranscriptionConfig": { + "type": "object", + "description": "The audio transcription configuration.", + "properties": { + "customVocabulary": { + "items": { + "type": "string" + }, + "type": "array", + "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon)." }, - "promptTokenCount": { - "type": "integer", - "format": "int32", - "description": "Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content." + "adaptationPhrases": { + "description": "Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms.", + "deprecated": true, + "type": "array", + "items": { + "type": "string" + } }, - "toolUsePromptTokensDetails": { + "diarization": { + "type": "boolean", + "description": "Optional. Configures speaker diarization." + }, + "languageHints": { + "description": "Optional. Specifies one or more languages in the audio.", + "deprecated": true, + "$ref": "#/components/schemas/LanguageHints" + }, + "languageCodes": { "items": { - "$ref": "#/components/schemas/ModalityTokenCount" + "type": "string" }, "type": "array", - "readOnly": true, - "description": "Output only. List of modalities that were processed for tool-use request inputs." - }, - "cachedContentTokenCount": { - "description": "Number of tokens in the cached part of the prompt (the cached content)", - "type": "integer", - "format": "int32" + "description": "Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection." }, - "toolUsePromptTokenCount": { - "description": "Output only. Number of tokens present in tool-use prompt(s).", - "format": "int32", - "readOnly": true, - "type": "integer" + "wordTimestamp": { + "description": "Optional. Configures word-level timestamp generation.", + "type": "boolean" }, - "serviceTier": { - "readOnly": true, + "mode": { + "x-enum-descriptions": [ + "Unspecified transcription mode.", + "Verbatim transcription mode.", + "Smart transcription mode." + ], "type": "string", + "description": "Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`.", "enum": [ - "unspecified", - "standard", - "flex", - "priority" - ], - "description": "Output only. Service tier of the request.", - "x-enum-descriptions": [ - "Default service tier, which is standard.", - "Standard service tier.", - "Flex service tier.", - "Priority service tier." + "MODE_UNSPECIFIED", + "VERBATIM", + "SMART" ] }, - "thoughtsTokenCount": { - "format": "int32", - "type": "integer", - "description": "Output only. Number of tokens of thoughts for thinking models.", - "readOnly": true + "languageAuto": { + "description": "Optional. The model will detect the language automatically.", + "$ref": "#/components/schemas/LanguageAuto", + "deprecated": true + } + } + }, + "GenerateContentRequest": { + "type": "object", + "properties": { + "toolConfig": { + "description": "Optional. Tool configuration for any `Tool` specified in the request. Refer to the [Function calling guide](https://ai.google.dev/gemini-api/docs/function-calling#function_calling_mode) for a usage example.", + "$ref": "#/components/schemas/ToolConfig" }, - "cacheTokensDetails": { - "type": "array", - "description": "Output only. List of modalities of the cached content in the request input.", + "tools": { "items": { - "$ref": "#/components/schemas/ModalityTokenCount" + "$ref": "#/components/schemas/Tool" }, - "readOnly": true + "description": "Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.", + "type": "array" }, - "promptTokensDetails": { - "type": "array", - "description": "Output only. List of modalities that were processed in the request input.", - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - }, - "readOnly": true + "store": { + "description": "Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.", + "type": "boolean" }, - "totalTokenCount": { - "type": "integer", - "description": "Total token count for the generation request (prompt + tool-use prompt + thoughts + response candidates).", - "format": "int32" + "continuationToken": { + "format": "byte", + "type": "string", + "description": "Optional. An opaque continuation token used to resume generation from a previous `GenerateContent` or `StreamGenerateContent` response that stopped with `finish_reason` set to `CONTINUATION`. Note that `contents` is mandatory and must identically replicate the prompt and conversation history from the initial request when continuation token is provided in a request." }, - "candidatesTokensDetails": { - "type": "array", + "generationConfig": { + "$ref": "#/components/schemas/GenerationConfig", + "description": "Optional. Configuration options for model generation and outputs." + }, + "safetySettings": { "items": { - "$ref": "#/components/schemas/ModalityTokenCount" + "$ref": "#/components/schemas/SafetySetting" }, - "readOnly": true, - "description": "Output only. List of modalities that were returned in the response." + "type": "array", + "description": "Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications." }, - "responseTokenCount": { - "description": "Output only. Number of tokens in the response. Used by Gemini 3.1+ Live API models instead of candidatesTokenCount.", - "type": "integer", - "format": "int32", - "readOnly": true + "serviceTier": { + "x-enum-descriptions": [ + "Default service tier, which is standard.", + "Standard service tier.", + "Flex service tier.", + "Priority service tier." + ], + "type": "string", + "enum": [ + "unspecified", + "standard", + "flex", + "priority" + ], + "description": "Optional. The service tier of the request." }, - "responseTokensDetails": { - "description": "Output only. List of modalities returned in the response with per-modality token counts. Used by Gemini 3.1+ Live API models instead of candidatesTokensDetails.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - } - } - }, - "type": "object", - "description": "Metadata on the generation request's token usage." - }, - "ListModelsResponse": { - "properties": { - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", + "systemInstruction": { + "description": "Optional. Developer set [system instruction(s)](https://ai.google.dev/gemini-api/docs/system-instructions). Currently, text only.", + "$ref": "#/components/schemas/Content" + }, + "labels": { + "description": "Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{\"safety_identifier\": \"user_session_123\"}`)", + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "model": { + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "type": "string" }, - "models": { - "description": "The returned Models.", + "cachedContent": { + "type": "string", + "description": "Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`" + }, + "contents": { "items": { - "$ref": "#/components/schemas/Model" + "$ref": "#/components/schemas/Content" }, - "type": "array" - } - }, - "description": "Response from `ListModel` containing a paginated list of Models.", - "type": "object" - }, - "EnvironmentNetworkEgressAllowlist": { - "properties": { - "allowlist": { - "description": "List of allowed domains and their configurations. Set to `\"disabled\"` to block all network egress.", "type": "array", - "items": { - "$ref": "#/components/schemas/EgressRule" - } - } - }, - "type": "object", - "description": "Network egress configuration for the environment." - }, - "DynamicRetrievalConfig": { - "description": "Describes the options to customize dynamic retrieval.", - "properties": { - "mode": { - "description": "The mode of the predictor to be used in dynamic retrieval.", - "type": "string", - "enum": [ - "MODE_UNSPECIFIED", - "MODE_DYNAMIC" - ], - "x-enum-descriptions": [ - "Always trigger retrieval.", - "Run retrieval only when system decides it is necessary." - ] - }, - "dynamicThreshold": { - "description": "The threshold to be used in dynamic retrieval. If not set, a system default value is used.", - "type": "number", - "format": "float" + "description": "Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request." } }, - "type": "object" + "description": "Request to generate a completion from the model." }, - "SearchTypes": { - "description": "Different types of search that can be enabled on the GoogleSearch tool.", + "GroundingAttribution": { + "description": "Attribution for a source that contributed to an answer.", "type": "object", "properties": { - "webSearch": { - "$ref": "#/components/schemas/WebSearch", - "description": "Optional. Enables web search. Only text results are returned." + "sourceId": { + "$ref": "#/components/schemas/AttributionSourceId", + "description": "Output only. Identifier for the source contributing to this attribution.", + "readOnly": true }, - "imageSearch": { - "$ref": "#/components/schemas/ImageSearch", - "description": "Optional. Enables image search. Image bytes are returned." + "content": { + "$ref": "#/components/schemas/Content", + "description": "Grounding source content that makes up this attribution." } } }, - "TextResponseFormat": { + "Part": { "type": "object", - "description": "Configuration for text output format.", + "description": "A datatype containing media that is part of a multi-part `Content` message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. A `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.", "properties": { - "schema": { - "description": "Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON." + "codeExecutionResult": { + "description": "Result of executing the `ExecutableCode`.", + "$ref": "#/components/schemas/CodeExecutionResult" }, - "mimeType": { + "mediaProcessing": { "type": "string", "enum": [ - "MIME_TYPE_UNSPECIFIED", - "APPLICATION_JSON", - "TEXT_PLAIN" + "MEDIA_PROCESSING_UNSPECIFIED", + "STATIC", + "AGENTIC" ], "x-enum-descriptions": [ - "Default value. This value is unused.", - "JSON output format.", - "Plain text output format." + "Defaults to model-specific processing.", + "Fixed-rate frame extraction. All frames placed in context.", + "Model-driven dynamic navigation. Recommended for most use cases." ], - "description": "Optional. The MIME type of the text output." - } - } - }, - "ListGeneratedFilesResponse": { - "type": "object", - "description": "Response for `ListGeneratedFiles`.", - "properties": { - "generatedFiles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GeneratedFile" - }, - "description": "The list of `GeneratedFile`s." + "description": "Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field." }, - "nextPageToken": { - "type": "string", - "description": "A token that can be sent as a `page_token` into a subsequent `ListGeneratedFiles` call." - } - } - }, - "SearchEntryPoint": { - "properties": { - "sdkBlob": { - "format": "byte", - "description": "Optional. Base64 encoded JSON representing array of tuple.", + "thought": { + "type": "boolean", + "description": "Optional. Indicates if the part is thought from the model." + }, + "toolCall": { + "$ref": "#/components/schemas/ToolCall", + "description": "Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API." + }, + "mediaResolution": { + "description": "Optional. Media resolution for the input media.", + "$ref": "#/components/schemas/V1mainMediaResolution" + }, + "videoMetadata": { + "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.", + "$ref": "#/components/schemas/VideoMetadata" + }, + "toolResponse": { + "$ref": "#/components/schemas/ToolResponse", + "description": "The output from a server-side `ToolCall` execution. This field is populated by the client with the results of executing the corresponding `ToolCall`." + }, + "functionResponse": { + "$ref": "#/components/schemas/FunctionResponse", + "description": "The result output of a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model." + }, + "executableCode": { + "description": "Code generated by the model that is meant to be executed.", + "$ref": "#/components/schemas/ExecutableCode" + }, + "speechMetadata": { + "$ref": "#/components/schemas/SpeechMetadata", + "description": "Optional. Metadata applied to text parts to customize how they should be spoken or synthesized, such as specifying speaker identity or speaking style." + }, + "text": { + "description": "Inline text.", "type": "string" }, - "renderedContent": { - "type": "string", - "description": "Optional. Web content snippet that can be embedded in a web page or an app webview." - } - }, - "type": "object", - "description": "Google search entry point." - }, - "SpeakerVoiceConfig": { - "type": "object", - "description": "The configuration for a single speaker in a multi speaker setup.", - "properties": { - "speaker": { + "partMetadata": { + "additionalProperties": { + "description": "Properties of the object." + }, + "type": "object", + "description": "Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams." + }, + "fileData": { + "$ref": "#/components/schemas/FileData", + "description": "URI based data." + }, + "functionCall": { + "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.", + "$ref": "#/components/schemas/FunctionCall" + }, + "inlineData": { + "description": "Inline media bytes.", + "$ref": "#/components/schemas/Blob" + }, + "thoughtSignature": { + "format": "byte", "type": "string", - "description": "Required. The name of the speaker to use. Should be the same as in the prompt." + "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests." }, - "voiceConfig": { - "$ref": "#/components/schemas/VoiceConfig", - "description": "Required. The configuration for the voice to use." + "audioTranscription": { + "description": "Optional. Audio (input or output) transcription. This is only set when this Part contains audio data.", + "$ref": "#/components/schemas/AudioTranscription" } } }, - "VideoFileMetadata": { + "PrebuiltVoiceConfig": { + "description": "The configuration for the prebuilt speaker to use.", + "type": "object", "properties": { - "videoDuration": { - "description": "Duration of the video.", + "voiceName": { "type": "string", - "format": "google-duration" + "description": "Optional. The name of the preset voice to use." } - }, - "description": "Metadata for a video `File`.", - "type": "object" + } }, - "ExecutableCode": { + "GeneratedFile": { + "type": "object", "properties": { - "language": { - "type": "string", + "name": { + "description": "Identifier. The name of the generated file. Example: `generatedFiles/abc-123`", + "type": "string" + }, + "mimeType": { + "description": "MIME type of the generatedFile.", + "type": "string" + }, + "state": { "enum": [ - "LANGUAGE_UNSPECIFIED", - "PYTHON" + "STATE_UNSPECIFIED", + "GENERATING", + "GENERATED", + "FAILED" ], + "description": "Output only. The state of the GeneratedFile.", + "readOnly": true, "x-enum-descriptions": [ - "Unspecified language. This value should not be used.", - "Python >= 3.10, with numpy and simpy available. Python is the default language." + "The default value. This value is used if the state is omitted.", + "Being generated.", + "Generated and is ready for download.", + "Failed to generate the GeneratedFile." ], - "description": "Required. Programming language of the `code`." - }, - "code": { - "type": "string", - "description": "Required. The code to be executed." + "type": "string" }, - "id": { - "type": "string", - "description": "Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`." + "error": { + "description": "Error details if the GeneratedFile ends up in the STATE_FAILED state.", + "$ref": "#/components/schemas/Status" } }, - "type": "object", - "description": "Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated." + "description": "A file generated on behalf of a user." }, - "GoogleMaps": { + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "type": "object", "properties": { - "enableWidget": { - "description": "Optional. Whether to return a widget context token in the GroundingMetadata of the response. Developers can use the widget context token to render a Google Maps widget with geospatial context related to the places that the model references in the response.", + "name": { + "type": "string", + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`." + }, + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", "type": "boolean" - } - }, - "description": "The GoogleMaps Tool that provides geospatial context for the user's query.", - "type": "object" - }, - "LanguageHints": { - "deprecated": true, - "properties": { - "languageCodes": { - "description": "Required. BCP-47 language codes.", - "items": { - "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." }, - "deprecated": true, - "type": "array" - } - }, - "type": "object", - "description": "Provides hints to the model about possible languages present in the audio." - }, - "InputEmbedContentConfig": { - "type": "object", - "description": "Configures the input to the batch request.", - "properties": { - "requests": { - "$ref": "#/components/schemas/InlinedEmbedContentRequests", - "description": "The requests to be processed in the batch." + "type": "object", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`." + }, + "metadata": { + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object", + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." + } }, - "fileName": { - "type": "string", - "description": "The name of the `File` containing the input requests." + "error": { + "description": "The error result of the operation in case of failure or cancellation.", + "$ref": "#/components/schemas/Status" } } }, - "ContextWindowCompressionConfig": { + "SpeechMetadata": { "type": "object", - "description": "Enables context window compression \u2014 a mechanism for managing the model's context window so that it does not exceed a given length.", + "description": "Speech metadata for `text` parts.", "properties": { - "slidingWindow": { - "$ref": "#/components/schemas/SlidingWindow", - "description": "A sliding-window mechanism." + "speaker": { + "type": "string", + "description": "Optional. Optional speaker name for multi-speaker synthesis." }, - "triggerTokens": { - "description": "The number of tokens (before running a turn) required to trigger a context window compression. This can be used to balance quality against latency as shorter context windows may result in faster model responses. However, any compression operation will cause a temporary latency increase, so they should not be triggered frequently. If not set, the default is 80% of the model's context window limit. This leaves 20% for the next user request/model response.", - "format": "int64", + "style": { + "description": "Optional. Optional style instruction for the speech synthesis.", "type": "string" } } }, - "AudioTranscription": { + "FileSearch": { + "type": "object", "properties": { - "words": { - "description": "Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set.", + "fileSearchStoreNames": { "items": { - "$ref": "#/components/schemas/WordInfo" + "type": "string" }, - "type": "array" + "type": "array", + "description": "Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`" }, - "speakerLabel": { - "description": "Optional. A label identifying the speaker of this audio segment (e.g. \"spk_1\", \"spk_2\"). Present when diarization is set.", - "type": "string" + "topK": { + "description": "Optional. The number of semantic retrieval chunks to retrieve.", + "type": "integer", + "format": "int32" }, - "text": { - "description": "Required. The transcription text of this audio segment.", + "metadataFilter": { + "description": "Optional. Metadata filter to apply to the semantic retrieval documents and chunks.", "type": "string" } }, - "type": "object", - "description": "The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate Part with its own AudioTranscription carrying the speaker_label." + "description": "The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API." }, - "PlaceAnswerSources": { - "description": "Collection of sources that provide answers about the features of a given place in Google Maps. Each PlaceAnswerSources message corresponds to a specific place in Google Maps. The Google Maps tool used these sources in order to answer questions about features of the place (e.g: \"does Bar Foo have Wifi\" or \"is Foo Bar wheelchair accessible?\"). Currently we only support review snippets as sources.", - "type": "object", + "ListOperationsResponse": { "properties": { - "reviewSnippets": { + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations.", "items": { - "$ref": "#/components/schemas/ReviewSnippet" + "type": "string" }, - "description": "Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.", "type": "array" - } - } - }, - "Environment": { - "properties": { - "id": { - "description": "Required. Output only. The ID of the environment.", - "readOnly": true, - "type": "string" }, - "fileCount": { - "description": "Output only. The number of files in the environment, output only.", - "readOnly": true, + "nextPageToken": { "type": "string", - "format": "int64" + "description": "The standard List next-page token." }, - "sources": { - "description": "Sources to be mounted into the environment.", + "operations": { "type": "array", "items": { - "$ref": "#/components/schemas/Source" - } - }, - "sizeBytes": { - "format": "int64", - "description": "Output only. The total size of the environment files in bytes, output only.", - "readOnly": true, - "type": "string" - }, - "updated": { - "type": "string", - "description": "Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).", - "readOnly": true - }, - "networkAllowlist": { - "description": "Allow only specific domains.", - "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" - }, - "status": { - "x-enum-descriptions": [ - "", - "", - "" - ], - "description": "Output only. The status of the environment container.", - "readOnly": true, - "type": "string", - "enum": [ - "STATUS_UNSPECIFIED", - "ACTIVE", - "EXPIRED" - ] - }, - "lastAccessed": { - "readOnly": true, - "type": "string", - "description": "Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)." - }, - "networkMode": { - "type": "string", - "enum": [ - "NETWORK_MODE_UNSPECIFIED", - "DISABLED" - ], - "description": "Network egress mode.", - "x-enum-descriptions": [ - "Default value. Unused.", - "All network egress is blocked." - ] - }, - "created": { - "type": "string", - "description": "Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).", - "readOnly": true + "$ref": "#/components/schemas/Operation" + }, + "description": "A list of operations that matches the specified filter in the request." } }, - "description": "An execution environment for an agent.", + "type": "object", + "description": "The response message for Operations.ListOperations." + }, + "HistoryConfig": { + "properties": { + "initialHistoryInClientContent": { + "type": "boolean", + "description": "Optional. If true, after sending `setup_complete`, the server will wait and at first process `client_content` messages until `turn_complete` is `true`. This initial history will not trigger a model call and may end with role `MODEL`. After `turn_complete` is `true`, the client can start the realtime conversation via `realtime_input`." + } + }, + "description": "History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages.", "type": "object" }, - "InlinedEmbedContentResponse": { + "EmbedContentResponse": { + "description": "The response to an `EmbedContentRequest`.", "properties": { - "response": { - "description": "Output only. The response to the request.", + "usageMetadata": { "readOnly": true, - "$ref": "#/components/schemas/EmbedContentResponse" - }, - "metadata": { - "type": "object", - "description": "Output only. The metadata associated with the request.", - "additionalProperties": { - "description": "Properties of the object." - }, - "readOnly": true + "$ref": "#/components/schemas/EmbeddingUsageMetadata", + "description": "Output only. The usage metadata for the request." }, - "error": { - "description": "Output only. The error encountered while processing the request.", + "embedding": { + "$ref": "#/components/schemas/ContentEmbedding", "readOnly": true, - "$ref": "#/components/schemas/Status" + "description": "Output only. The embedding generated from the input content." } }, - "type": "object", - "description": "The response to a single request in the batch." + "type": "object" }, - "CountTokensResponse": { + "WhiteSpaceConfig": { "type": "object", + "description": "Configuration for a white space chunking algorithm [white space delimited].", "properties": { - "promptTokensDetails": { - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - }, - "type": "array", - "readOnly": true, - "description": "Output only. List of modalities that were processed in the request input." - }, - "totalTokens": { + "maxTokensPerChunk": { "format": "int32", - "description": "The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative.", + "description": "Maximum number of tokens per chunk. Tokens are defined as words for this chunking algorithm. Note: we are defining tokens as words split by whitespace as opposed to the output of a tokenizer. The context window of the latest gemini embedding model as of 2025-04-17 is currently 8192 tokens. We assume that the average word is 5 characters. Therefore, we set the upper limit to 2**9, which is 512 words, or 2560 tokens, assuming worst case a character per token. This is a conservative estimate meant to prevent context window overflow.", "type": "integer" }, - "cacheTokensDetails": { - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - }, - "readOnly": true, + "maxOverlapTokens": { + "description": "Maximum number of overlapping tokens between two adjacent chunks.", + "type": "integer", + "format": "int32" + } + } + }, + "ListModelsResponse": { + "description": "Response from `ListModel` containing a paginated list of Models.", + "properties": { + "nextPageToken": { + "type": "string", + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages." + }, + "models": { "type": "array", - "description": "Output only. List of modalities that were processed in the cached content." + "description": "The returned Models.", + "items": { + "$ref": "#/components/schemas/Model" + } + } + }, + "type": "object" + }, + "FunctionResponseBlob": { + "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field.", + "properties": { + "data": { + "format": "byte", + "type": "string", + "description": "Raw bytes for media formats." }, - "cachedContentTokenCount": { - "format": "int32", - "description": "Number of tokens in the cached part of the prompt (the cached content).", - "type": "integer" + "mimeType": { + "type": "string", + "description": "The IANA standard MIME type of the source data. Examples: - image/png - image/jpeg If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Supported file formats](https://ai.google.dev/gemini-api/docs/prompting_with_media#supported_file_formats)." } }, - "description": "A response from `CountTokens`. It returns the model's `token_count` for the `prompt`." + "type": "object" }, - "GroundingAttribution": { - "description": "Attribution for a source that contributed to an answer.", + "UrlMetadata": { + "type": "object", + "description": "Context of the a single url retrieval.", "properties": { - "sourceId": { - "description": "Output only. Identifier for the source contributing to this attribution.", - "readOnly": true, - "$ref": "#/components/schemas/AttributionSourceId" + "retrievedUrl": { + "type": "string", + "description": "Retrieved url by the tool." + }, + "urlRetrievalStatus": { + "x-enum-descriptions": [ + "Default value. This value is unused.", + "Url retrieval is successful.", + "Url retrieval is failed due to error.", + "Url retrieval is failed because the content is behind paywall.", + "Url retrieval is failed because the content is unsafe." + ], + "enum": [ + "URL_RETRIEVAL_STATUS_UNSPECIFIED", + "URL_RETRIEVAL_STATUS_SUCCESS", + "URL_RETRIEVAL_STATUS_ERROR", + "URL_RETRIEVAL_STATUS_PAYWALL", + "URL_RETRIEVAL_STATUS_UNSAFE" + ], + "description": "Status of the url retrieval.", + "type": "string" + } + } + }, + "BatchGenerateContentRequest": { + "description": "Request for a `BatchGenerateContent` operation.", + "properties": { + "batch": { + "$ref": "#/components/schemas/GenerateContentBatch", + "description": "Required. The batch to create." + } + }, + "type": "object" + }, + "InputEmbedContentConfig": { + "type": "object", + "properties": { + "fileName": { + "type": "string", + "description": "The name of the `File` containing the input requests." }, - "content": { - "$ref": "#/components/schemas/Content", - "description": "Grounding source content that makes up this attribution." + "requests": { + "description": "The requests to be processed in the batch.", + "$ref": "#/components/schemas/InlinedEmbedContentRequests" } }, - "type": "object" + "description": "Configures the input to the batch request." }, - "CachedContent": { - "description": "Content that has been preprocessed and can be used in subsequent request to GenerativeService. Cached content can be only used with model it was created for.", + "BidiGenerateContentSetup": { + "description": "Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages.", "properties": { + "outputAudioTranscription": { + "$ref": "#/components/schemas/AudioTranscriptionConfig", + "description": "Optional. If set, enables transcription of the model's audio output. The transcription aligns with the language code specified for the output audio, if configured." + }, + "inputAudioTranscription": { + "$ref": "#/components/schemas/AudioTranscriptionConfig", + "description": "Optional. If set, enables transcription of voice input. The transcription aligns with the input audio language, if configured." + }, "model": { "type": "string", - "description": "Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`" + "description": "Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`" + }, + "generationConfig": { + "$ref": "#/components/schemas/GenerationConfig", + "description": "Optional. Generation config. The following fields are not supported: - `response_logprobs` - `response_mime_type` - `logprobs` - `response_schema` - `response_json_schema` - `stop_sequence` - `skip_response_cache` - `routing_config` - `audio_timestamp`" }, "systemInstruction": { - "description": "Optional. Input only. Immutable. Developer set system instruction. Currently text only.", + "description": "Optional. The user provided system instructions for the model. Note: Only text should be used in parts and content in each part will be in a separate paragraph.", "$ref": "#/components/schemas/Content" }, - "usageMetadata": { - "description": "Output only. Metadata on the usage of the cached content.", - "$ref": "#/components/schemas/CachedContentUsageMetadata", - "readOnly": true - }, - "displayName": { - "type": "string", - "description": "Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters." + "realtimeInputConfig": { + "$ref": "#/components/schemas/RealtimeInputConfig", + "description": "Optional. Configures the handling of realtime input." }, - "updateTime": { - "format": "google-datetime", - "readOnly": true, - "type": "string", - "description": "Output only. When the cache entry was last updated in UTC time." + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{\"safety_identifier\": \"user_session_123\"}`)" }, - "toolConfig": { - "description": "Optional. Input only. Immutable. Tool config. This config is shared for all tools.", - "$ref": "#/components/schemas/ToolConfig" + "historyConfig": { + "$ref": "#/components/schemas/HistoryConfig", + "description": "Optional. Configures the exchange of history between the client and the server." }, "tools": { - "description": "Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response", - "type": "array", "items": { "$ref": "#/components/schemas/Tool" - } - }, - "name": { - "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`", - "readOnly": true, - "type": "string" - }, - "ttl": { - "format": "google-duration", - "description": "Input only. New TTL for this resource, input only.", - "type": "string" - }, - "expireTime": { - "type": "string", - "format": "google-datetime", - "description": "Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input." + }, + "type": "array", + "description": "Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model." }, - "createTime": { - "readOnly": true, - "description": "Output only. Creation time of the cache entry.", - "type": "string", - "format": "google-datetime" + "sessionResumption": { + "description": "Optional. Configures session resumption mechanism. If included, the server will send `SessionResumptionUpdate` messages.", + "$ref": "#/components/schemas/SessionResumptionConfig" }, - "contents": { - "description": "Optional. Input only. Immutable. The content to cache.", - "type": "array", - "items": { - "$ref": "#/components/schemas/Content" - } + "contextWindowCompression": { + "description": "Optional. Configures a context window compression mechanism. If included, the server will automatically reduce the size of the context when it exceeds the configured length.", + "$ref": "#/components/schemas/ContextWindowCompressionConfig" } }, "type": "object" }, - "SafetyRating": { - "description": "Safety rating for a piece of content. The safety rating contains the category of harm and the harm probability level in that category for a piece of content. Content is classified for safety across a number of harm categories and the probability of the harm classification is included here.", + "RetrievedContext": { "type": "object", "properties": { - "category": { - "description": "Required. The category for this rating.", + "customMetadata": { + "description": "Optional. User-provided metadata about the retrieved context.", + "items": { + "$ref": "#/components/schemas/GroundingChunkCustomMetadata" + }, + "type": "array" + }, + "title": { + "description": "Optional. Title of the document.", + "type": "string" + }, + "pageNumber": { + "type": "integer", + "format": "int32", + "description": "Optional. Page number of the retrieved context, if applicable." + }, + "uri": { "type": "string", - "enum": [ - "HARM_CATEGORY_UNSPECIFIED", - "HARM_CATEGORY_DEROGATORY", - "HARM_CATEGORY_TOXICITY", - "HARM_CATEGORY_VIOLENCE", - "HARM_CATEGORY_SEXUAL", - "HARM_CATEGORY_MEDICAL", - "HARM_CATEGORY_DANGEROUS", - "HARM_CATEGORY_HARASSMENT", - "HARM_CATEGORY_HATE_SPEECH", - "HARM_CATEGORY_SEXUALLY_EXPLICIT", - "HARM_CATEGORY_DANGEROUS_CONTENT", - "HARM_CATEGORY_CIVIC_INTEGRITY", - "HARM_CATEGORY_JAILBREAK" - ], - "enumDeprecated": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false - ], - "x-enum-descriptions": [ - "Category is unspecified.", - "**PaLM** - Negative or harmful comments targeting identity and/or protected attribute.", - "**PaLM** - Content that is rude, disrespectful, or profane.", - "**PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore.", - "**PaLM** - Contains references to sexual acts or other lewd content.", - "**PaLM** - Promotes unchecked medical advice.", - "**PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts.", - "**Gemini** - Harassment content.", - "**Gemini** - Hate speech and content.", - "**Gemini** - Sexually explicit content.", - "**Gemini** - Dangerous content.", - "**Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.", - "**Gemini** - Prompts attempting to bypass or subvert the model's safety guidelines (jailbreak attempts)." - ] + "description": "Optional. URI reference of the semantic retrieval document." }, - "probability": { - "description": "Required. The probability of harm for this content.", - "x-enum-descriptions": [ - "Probability is unspecified.", - "Content has a negligible chance of being unsafe.", - "Content has a low chance of being unsafe.", - "Content has a medium chance of being unsafe.", - "Content has a high chance of being unsafe." - ], + "mediaId": { "type": "string", - "enum": [ - "HARM_PROBABILITY_UNSPECIFIED", - "NEGLIGIBLE", - "LOW", - "MEDIUM", - "HIGH" - ] + "description": "Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id}" }, - "blocked": { - "type": "boolean", - "description": "Was this content blocked because of this rating?" - } - } - }, - "InlinedEmbedContentRequest": { - "description": "The request to be processed in the batch.", - "properties": { - "metadata": { - "type": "object", - "description": "Optional. The metadata to be associated with the request.", - "additionalProperties": { - "description": "Properties of the object." - } + "text": { + "type": "string", + "description": "Optional. Text of the chunk." }, - "request": { - "$ref": "#/components/schemas/EmbedContentRequest", - "description": "Required. The request to be processed in the batch." + "fileSearchStore": { + "description": "Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`", + "type": "string" } }, - "type": "object" + "description": "Chunk from context retrieved by the file search tool." }, - "WhiteSpaceConfig": { - "description": "Configuration for a white space chunking algorithm [white space delimited].", - "type": "object", + "EmbedContentBatchStats": { "properties": { - "maxTokensPerChunk": { - "format": "int32", - "description": "Maximum number of tokens per chunk. Tokens are defined as words for this chunking algorithm. Note: we are defining tokens as words split by whitespace as opposed to the output of a tokenizer. The context window of the latest gemini embedding model as of 2025-04-17 is currently 8192 tokens. We assume that the average word is 5 characters. Therefore, we set the upper limit to 2**9, which is 512 words, or 2560 tokens, assuming worst case a character per token. This is a conservative estimate meant to prevent context window overflow.", - "type": "integer" + "failedRequestCount": { + "readOnly": true, + "description": "Output only. The number of requests that failed to be processed.", + "format": "int64", + "type": "string" }, - "maxOverlapTokens": { - "format": "int32", - "type": "integer", - "description": "Maximum number of overlapping tokens between two adjacent chunks." + "successfulRequestCount": { + "description": "Output only. The number of requests that were successfully processed.", + "format": "int64", + "type": "string", + "readOnly": true + }, + "requestCount": { + "readOnly": true, + "format": "int64", + "description": "Output only. The number of requests in the batch.", + "type": "string" + }, + "pendingRequestCount": { + "readOnly": true, + "description": "Output only. The number of requests that are still pending processing.", + "type": "string", + "format": "int64" } - } + }, + "type": "object", + "description": "Stats about the batch." }, - "GroundingChunkCustomMetadata": { + "Permission": { + "type": "object", "properties": { - "stringValue": { - "description": "Optional. The string value of the metadata.", + "granteeType": { + "description": "Optional. Immutable. The type of the grantee.", + "enum": [ + "GRANTEE_TYPE_UNSPECIFIED", + "USER", + "GROUP", + "EVERYONE" + ], + "x-enum-descriptions": [ + "The default value. This value is unused.", + "Represents a user. When set, you must provide email_address for the user.", + "Represents a group. When set, you must provide email_address for the group.", + "Represents access to everyone. No extra information is required." + ], "type": "string" }, - "numericValue": { - "description": "Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used.", - "type": "number", - "format": "float" + "emailAddress": { + "description": "Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.", + "type": "string" }, - "stringListValue": { - "description": "Optional. A list of string values for the metadata.", - "$ref": "#/components/schemas/GroundingChunkStringList" + "name": { + "type": "string", + "readOnly": true, + "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only." }, - "key": { - "description": "The key of the metadata.", + "role": { + "enum": [ + "ROLE_UNSPECIFIED", + "OWNER", + "WRITER", + "READER" + ], + "x-enum-descriptions": [ + "The default value. This value is unused.", + "Owner can use, update, share and delete the resource.", + "Writer can use, update and share the resource.", + "Reader can use the resource." + ], + "description": "Required. The role granted by this permission.", "type": "string" } }, - "description": "User provided metadata about the GroundingFact.", - "type": "object" + "description": "Permission resource grants user, group or the rest of the world access to the PaLM API resource (e.g. a tuned model, corpus). A role is a collection of permitted operations that allows users to perform specific actions on PaLM API resources. To make them available to users, groups, or service accounts, you assign roles. When you assign a role, you grant permissions that the role contains. There are three concentric roles. Each role is a superset of the previous role's permitted operations: - reader can use the resource (e.g. tuned model, corpus) for inference - writer has reader's permissions and additionally can edit and share - owner has writer's permissions and additionally can delete" }, - "StreamableHttpTransport": { - "description": "A transport that can stream HTTP requests and responses. Next ID: 6", + "Model": { + "description": "Information about a Generative Language Model.", "properties": { - "sseReadTimeout": { + "temperature": { + "description": "Controls the randomness of the output. Values can range over `[0.0,max_temperature]`, inclusive. A higher value will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model.", + "type": "number", + "format": "float" + }, + "inputTokenLimit": { + "type": "integer", + "description": "Maximum number of input tokens allowed for this model.", + "format": "int32" + }, + "thinking": { + "description": "Whether the model supports thinking.", + "type": "boolean" + }, + "topP": { + "format": "float", + "description": "For [Nucleus sampling](https://ai.google.dev/gemini-api/docs/prompting-strategies#top-p). Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be used by the backend while making the call to the model.", + "type": "number" + }, + "baseModelId": { "type": "string", - "description": "Timeout for SSE read operations.", - "format": "google-duration" + "description": "Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash`" }, - "headers": { - "additionalProperties": { + "version": { + "description": "Required. The version number of the model. This represents the major version (`1.0` or `1.5`)", + "type": "string" + }, + "supportedGenerationMethods": { + "items": { "type": "string" }, - "description": "Optional: Fields for authentication headers, timeouts, etc., if needed.", - "type": "object" + "type": "array", + "description": "The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`." }, - "timeout": { - "type": "string", - "description": "HTTP timeout for regular operations.", - "format": "google-duration" + "name": { + "description": "Required. The resource name of the `Model`. Refer to [Model variants](https://ai.google.dev/gemini-api/docs/models/gemini#model-variations) for all allowed values. Format: `models/{model}` with a `{model}` naming convention of: * \"{base_model_id}-{version}\" Examples: * `models/gemini-1.5-flash-001`", + "type": "string" }, - "terminateOnClose": { - "description": "Whether to close the client session when the transport closes.", - "type": "boolean" + "outputTokenLimit": { + "type": "integer", + "description": "Maximum number of output tokens available for this model.", + "format": "int32" }, - "url": { - "type": "string", - "description": "The full URL for the MCPServer endpoint. Example: \"https://api.example.com/mcp\"" - } - }, - "type": "object" - }, - "CreateFileResponse": { - "description": "Response for `CreateFile`.", - "type": "object", - "properties": { - "file": { - "description": "Metadata for the created file.", - "$ref": "#/components/schemas/File" - } - } - }, - "VoiceConfig": { - "properties": { - "voice": { - "type": "string", - "description": "Optional. The speaker identifier for synthesis. Supported formats: * Speaker name for prebuilt voices (for example, `Orus` or `Kore`). * Voice ID for stored voices (for example, `voice_xxx`). * Voice replication key (for example, `voicekey_xxx`)." + "displayName": { + "description": "The human-readable name of the model. E.g. \"Gemini 1.5 Flash\". The name can be up to 128 characters long and can consist of any UTF-8 characters.", + "type": "string" }, - "prebuiltVoiceConfig": { - "$ref": "#/components/schemas/PrebuiltVoiceConfig", - "description": "The configuration for the prebuilt voice to use." + "description": { + "description": "A short description of the model.", + "type": "string" + }, + "maxTemperature": { + "description": "The maximum temperature this model can use.", + "type": "number", + "format": "float" + }, + "topK": { + "description": "For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. If empty, indicates the model doesn't use top-k sampling, and `top_k` isn't allowed as a generation parameter.", + "type": "integer", + "format": "int32" } }, - "description": "The configuration for the voice to use.", "type": "object" }, - "ListCachedContentsResponse": { + "MultiSpeakerVoiceConfig": { "properties": { - "cachedContents": { + "speakerVoiceConfigs": { + "type": "array", "items": { - "$ref": "#/components/schemas/CachedContent" + "$ref": "#/components/schemas/SpeakerVoiceConfig" }, - "type": "array", - "description": "List of cached contents." - }, - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", - "type": "string" + "description": "Required. All the enabled speaker voices." } }, - "description": "Response with CachedContents list.", + "description": "The configuration for the multi-speaker setup.", "type": "object" }, - "RegisterFilesResponse": { - "description": "Response for `RegisterFiles`.", + "CodeExecution": { + "description": "Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool.", + "type": "object", + "properties": {} + }, + "EnvironmentNetworkEgressAllowlist": { + "description": "Network egress configuration for the environment.", "type": "object", "properties": { - "files": { + "allowlist": { "items": { - "$ref": "#/components/schemas/File" + "$ref": "#/components/schemas/EgressRule" }, "type": "array", - "description": "The registered files to be used when calling GenerateContent." - } - } - }, - "UploadEnvironmentFileRequest": { - "description": "Request for `UploadEnvironmentFile`.", - "type": "object", - "properties": { - "extract": { - "description": "Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`.", - "type": "boolean" - }, - "overwrite": { - "description": "Optional. Whether to overwrite the destination file if it already exists.", - "type": "boolean" + "description": "List of allowed domains and their configurations. Set to `\"disabled\"` to block all network egress." } } }, - "TuningTask": { - "description": "Tuning tasks that create tuned models.", + "GenerationConfig": { + "description": "Configuration options for model generation and outputs. Not all parameters are configurable for every model.", "type": "object", "properties": { - "completeTime": { - "description": "Output only. The timestamp when tuning this model completed.", - "format": "google-datetime", - "type": "string", - "readOnly": true + "imageConfig": { + "$ref": "#/components/schemas/ImageConfig", + "description": "Optional. Config for image generation. An error will be returned if this field is set for models that don't support these config options." }, - "trainingData": { - "description": "Required. Input only. Immutable. The model training data.", - "$ref": "#/components/schemas/Dataset" + "responseLogprobs": { + "type": "boolean", + "description": "Optional. If true, export the logprobs results in response." }, - "hyperparameters": { - "description": "Immutable. Hyperparameters controlling the tuning process. If not provided, default values will be used.", - "$ref": "#/components/schemas/Hyperparameters" + "audioTranscriptionConfig": { + "description": "Optional. Config for audio transcription (speech recognition).", + "$ref": "#/components/schemas/AudioTranscriptionConfig" }, - "startTime": { - "format": "google-datetime", - "description": "Output only. The timestamp when tuning this model started.", - "type": "string", - "readOnly": true + "maxOutputTokens": { + "description": "Optional. The maximum number of tokens to include in a response candidate. Note: The default value varies by model, see the `Model.output_token_limit` attribute of the `Model` returned from the `getModel` function.", + "format": "int32", + "type": "integer" }, - "snapshots": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TuningSnapshot" - }, - "description": "Output only. Metrics collected during tuning.", - "readOnly": true - } - } - }, - "Image": { - "type": "object", - "description": "Chunk from image search.", - "properties": { - "imageUri": { - "description": "The image asset URL.", - "type": "string" + "enableEnhancedCivicAnswers": { + "type": "boolean", + "description": "Optional. Enables enhanced civic answers. It may not be available for all models." }, - "title": { - "description": "The title of the web page that the image is from.", - "type": "string" + "logprobs": { + "format": "int32", + "description": "Optional. Only valid if response_logprobs=True. This sets the number of top logprobs, including the chosen candidate, to return at each decoding step in the Candidate.logprobs_result. The number must be in the range of [0, 20].", + "type": "integer" }, - "sourceUri": { - "type": "string", - "description": "The web page URI for attribution." + "presencePenalty": { + "description": "Optional. Presence penalty applied to the next token's logprobs if the token has already been seen in the response. This penalty is binary on/off and not dependant on the number of times the token is used (after the first). Use frequency_penalty for a penalty that increases with each use. A positive penalty will discourage the use of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will encourage the use of tokens that have already been used in the response, decreasing the vocabulary.", + "format": "float", + "type": "number" }, - "domain": { - "type": "string", - "description": "The root domain of the web page that the image is from, e.g. \"example.com\"." - } - } - }, - "GenerateContentBatchOutput": { - "properties": { - "responsesFile": { - "type": "string", - "readOnly": true, - "description": "Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `GenerateContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests." + "frequencyPenalty": { + "format": "float", + "description": "Optional. Frequency penalty applied to the next token's logprobs, multiplied by the number of times each token has been seen in the respponse so far. A positive penalty will discourage the use of tokens that have already been used, proportional to the number of times the token has been used: The more a token is used, the more difficult it is for the model to use that token again increasing the vocabulary of responses. Caution: A _negative_ penalty will encourage the model to reuse tokens proportional to the number of times the token has been used. Small negative values will reduce the vocabulary of a response. Larger negative values will cause the model to start repeating a common token until it hits the max_output_tokens limit.", + "type": "number" }, - "inlinedResponses": { - "readOnly": true, - "description": "Output only. The responses to the requests in the batch. Returned when the batch was built using inlined requests. The responses will be in the same order as the input requests.", - "$ref": "#/components/schemas/InlinedResponses" - } - }, - "description": "The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.", - "type": "object" - }, - "ComputerUse": { - "properties": { - "environment": { - "description": "Required. The environment being operated.", - "x-enum-descriptions": [ - "Defaults to browser.", - "Operates in a web browser.", - "Operates in a mobile environment.", - "Operates in a desktop environment." - ], + "mediaResolution": { "type": "string", + "description": "Optional. If specified, the media resolution specified will be used.", "enum": [ - "ENVIRONMENT_UNSPECIFIED", - "ENVIRONMENT_BROWSER", - "ENVIRONMENT_MOBILE", - "ENVIRONMENT_DESKTOP" + "MEDIA_RESOLUTION_UNSPECIFIED", + "MEDIA_RESOLUTION_LOW", + "MEDIA_RESOLUTION_MEDIUM", + "MEDIA_RESOLUTION_HIGH" + ], + "x-enum-descriptions": [ + "Media resolution has not been set.", + "Media resolution set to low (64 tokens).", + "Media resolution set to medium (256 tokens).", + "Media resolution set to high (zoomed reframing with 256 tokens)." ] }, - "enablePromptInjectionDetection": { - "type": "boolean", - "description": "Optional. Whether enable the prompt injection detection check on computer-use request." - }, - "disabledSafetyPolicies": { - "type": "array", - "description": "Optional. Disabled safety policies for computer use.", - "items": { - "type": "string", - "enum": [ - "SAFETY_POLICY_UNSPECIFIED", - "FINANCIAL_TRANSACTIONS", - "SENSITIVE_DATA_MODIFICATION", - "COMMUNICATION_TOOL", - "ACCOUNT_CREATION", - "DATA_MODIFICATION", - "USER_CONSENT_MANAGEMENT", - "LEGAL_TERMS_AND_AGREEMENTS" + "responseModalities": { + "description": "Optional. The requested modalities of the response. Represents the set of modalities that the model can return, and should be expected in the response. This is an exact match to the modalities of the response. A model may have multiple combinations of supported modalities. If the requested modalities do not match any of the supported combinations, an error will be returned. An empty list is equivalent to requesting only text.", + "type": "array", + "items": { + "type": "string", + "enum": [ + "MODALITY_UNSPECIFIED", + "TEXT", + "IMAGE", + "AUDIO", + "VIDEO" ], "x-enum-descriptions": [ - "Unspecified safety policy.", - "Safety policy for financial transactions.", - "Safety policy for sensitive data modification.", - "Safety policy for communication tools (e.g. Gmail, Chat, Meet).", - "Safety policy for account creation.", - "Safety policy for data modification.", - "Safety policy for user consent management.", - "Safety policy for legal terms and agreements." + "Default value.", + "Indicates the model should return text.", + "Indicates the model should return images.", + "Indicates the model should return audio.", + "Indicates the model should return video." ] } }, - "excludedPredefinedFunctions": { + "topP": { + "format": "float", + "description": "Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and Top-p (nucleus) sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits the number of tokens based on the cumulative probability. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models.", + "type": "number" + }, + "responseSchema": { + "deprecated": true, + "$ref": "#/components/schemas/Schema", + "description": "Optional. Output schema of the generated candidate text. Schemas must be a subset of the [OpenAPI schema](https://spec.openapis.org/oas/v3.0.3#schema) and can be objects, primitives or arrays. If set, a compatible `response_mime_type` must also be set. Compatible MIME types: `application/json`: Schema for JSON response. Refer to the [JSON text generation guide](https://ai.google.dev/gemini-api/docs/json-mode) for more details. Deprecated. Use `response_format` instead." + }, + "speechConfig": { + "description": "Optional. The speech generation config.", + "$ref": "#/components/schemas/SpeechConfig" + }, + "seed": { + "format": "int32", + "description": "Optional. Seed used in decoding. If not set, the request uses a randomly generated seed.", + "type": "integer" + }, + "topK": { + "type": "integer", + "format": "int32", + "description": "Optional. The maximum number of tokens to consider when sampling. Gemini models use Top-p (nucleus) sampling or a combination of Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Models running with nucleus sampling don't allow top_k setting. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models." + }, + "candidateCount": { + "format": "int32", + "type": "integer", + "description": "Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family)" + }, + "thinkingConfig": { + "$ref": "#/components/schemas/ThinkingConfig", + "description": "Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking." + }, + "responseJsonSchema": { + "description": "Optional. An internal detail. Use `responseJsonSchema` rather than this field." + }, + "responseMimeType": { + "description": "Optional. MIME type of the generated candidate text. Supported MIME types are: `text/plain`: (default) Text output. `application/json`: JSON response in the response candidates. `text/x.enum`: ENUM as a string response in the response candidates. Refer to the [docs](https://ai.google.dev/gemini-api/docs/prompting_with_media#plain_text_formats) for a list of all supported text MIME types.", + "type": "string" + }, + "translationConfig": { + "description": "Optional. Config for translation.", + "$ref": "#/components/schemas/TranslationConfig" + }, + "responseFormat": { + "$ref": "#/components/schemas/ResponseFormatConfig", + "description": "Optional. Configuration for the response output format. Allows specifying output configuration per modality (text, audio, image) in a flat structure." + }, + "temperature": { + "description": "Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0]. This field is no longer supported and is silently ignored on Gemini 3.6 Flash and newer models.", + "format": "float", + "type": "number" + }, + "stopSequences": { "items": { "type": "string" }, - "description": "Optional. By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.", + "description": "Optional. The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a `stop_sequence`. The stop sequence will not be included as part of the response.", "type": "array" - } - }, - "description": "Computer Use tool type.", - "type": "object" - }, - "InlinedResponses": { - "properties": { - "inlinedResponses": { - "readOnly": true, - "items": { - "$ref": "#/components/schemas/InlinedResponse" - }, - "type": "array", - "description": "Output only. The responses to the requests in the batch." - } - }, - "description": "The responses to the requests in the batch.", - "type": "object" - }, - "InlinedRequest": { - "type": "object", - "description": "The request to be processed in the batch.", - "properties": { - "metadata": { - "additionalProperties": { - "description": "Properties of the object." - }, - "description": "Optional. The metadata to be associated with the request.", - "type": "object" }, - "request": { - "$ref": "#/components/schemas/GenerateContentRequest", - "description": "Required. The request to be processed in the batch." + "enableAffectiveDialog": { + "type": "boolean", + "description": "Optional. If enabled, the model will detect emotions and adapt its responses accordingly." } } }, - "InlinedEmbedContentResponses": { - "properties": { - "inlinedResponses": { - "items": { - "$ref": "#/components/schemas/InlinedEmbedContentResponse" - }, - "readOnly": true, - "type": "array", - "description": "Output only. The responses to the requests in the batch." - } - }, - "description": "The responses to the requests in the batch.", - "type": "object" - }, - "Candidate": { + "UsageMetadata": { "type": "object", - "description": "A response candidate generated from the model.", + "description": "Metadata on the generation request's token usage.", "properties": { - "logprobsResult": { - "$ref": "#/components/schemas/LogprobsResult", - "description": "Output only. Log-likelihood scores for the response tokens and top tokens", - "readOnly": true - }, - "finishReason": { - "type": "string", - "enum": [ - "FINISH_REASON_UNSPECIFIED", - "STOP", - "MAX_TOKENS", - "SAFETY", - "RECITATION", - "LANGUAGE", - "OTHER", - "BLOCKLIST", - "PROHIBITED_CONTENT", - "SPII", - "MALFORMED_FUNCTION_CALL", - "IMAGE_SAFETY", - "IMAGE_PROHIBITED_CONTENT", - "IMAGE_OTHER", - "NO_IMAGE", - "IMAGE_RECITATION", - "UNEXPECTED_TOOL_CALL", - "TOO_MANY_TOOL_CALLS", - "MISSING_THOUGHT_SIGNATURE", - "MALFORMED_RESPONSE", - "ESCALATION", - "PUP_LIMITED_DISABLED", - "CONTINUATION" - ], - "description": "Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.", - "x-enum-descriptions": [ - "Default value. This value is unused.", - "Natural stop point of the model or provided stop sequence.", - "The maximum number of tokens as specified in the request was reached.", - "The response candidate content was flagged for safety reasons.", - "The response candidate content was flagged for recitation reasons.", - "The response candidate content was flagged for using an unsupported language.", - "Unknown reason.", - "Token generation stopped because the content contains forbidden terms.", - "Token generation stopped for potentially containing prohibited content.", - "Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).", - "The function call generated by the model is invalid.", - "Token generation stopped because generated images contain safety violations.", - "Image generation stopped because generated images has other prohibited content.", - "Image generation stopped because of other miscellaneous issue.", - "The model was expected to generate an image, but none was generated.", - "Image generation stopped due to recitation.", - "Model generated a tool call but no tools were enabled in the request.", - "Model called too many tools consecutively, thus the system exited execution.", - "Request has at least one thought signature missing.", - "Finished due to malformed response.", - "Request was filtered by an escalation rule.", - "Indicates that token generation stopped because the user account is limited or disabled due to Prohibited Use Policy (PUP) violations.", - "Token generation was stopped because the response reached the per-request token limit, but generation is not yet complete. The model response can be continued via a subsequent request using the returned `continuation_token`. Note, the `max_output_tokens` is cumulative across continuation hops and must be monotonically increased or omitted." - ], - "readOnly": true + "promptTokenCount": { + "description": "Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.", + "format": "int32", + "type": "integer" }, - "groundingMetadata": { + "thoughtsTokenCount": { + "format": "int32", + "description": "Output only. Number of tokens of thoughts for thinking models.", "readOnly": true, - "$ref": "#/components/schemas/GroundingMetadata", - "description": "Output only. Grounding metadata for the candidate. This field is populated for `GenerateContent` calls." + "type": "integer" }, - "safetyRatings": { + "toolUsePromptTokensDetails": { + "readOnly": true, + "description": "Output only. List of modalities that were processed for tool-use request inputs.", "type": "array", - "description": "List of ratings for the safety of a response candidate. There is at most one rating per category.", "items": { - "$ref": "#/components/schemas/SafetyRating" + "$ref": "#/components/schemas/ModalityTokenCount" } }, - "content": { - "description": "Output only. Generated content returned from the model.", - "$ref": "#/components/schemas/Content", + "candidatesTokensDetails": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + }, + "description": "Output only. List of modalities that were returned in the response.", "readOnly": true }, - "finishMessage": { + "serviceTier": { "readOnly": true, - "type": "string", - "description": "Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set." + "description": "Output only. Service tier of the request.", + "x-enum-descriptions": [ + "Default service tier, which is standard.", + "Standard service tier.", + "Flex service tier.", + "Priority service tier." + ], + "enum": [ + "unspecified", + "standard", + "flex", + "priority" + ], + "type": "string" }, - "index": { + "cachedContentTokenCount": { + "description": "Number of tokens in the cached part of the prompt (the cached content)", + "type": "integer", + "format": "int32" + }, + "toolUsePromptTokenCount": { "readOnly": true, + "format": "int32", + "type": "integer", + "description": "Output only. Number of tokens present in tool-use prompt(s)." + }, + "candidatesTokenCount": { + "type": "integer", + "format": "int32", + "description": "Total number of tokens across all the generated response candidates." + }, + "totalTokenCount": { + "description": "Total token count for the generation request (prompt + tool-use prompt + thoughts + response candidates).", "type": "integer", - "description": "Output only. Index of the candidate in the list of response candidates.", "format": "int32" }, - "groundingAttributions": { - "description": "Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.", + "promptTokensDetails": { + "readOnly": true, "items": { - "$ref": "#/components/schemas/GroundingAttribution" + "$ref": "#/components/schemas/ModalityTokenCount" + }, + "description": "Output only. List of modalities that were processed in the request input.", + "type": "array" + }, + "cacheTokensDetails": { + "description": "Output only. List of modalities of the cached content in the request input.", + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" }, "type": "array", "readOnly": true }, - "tokenCount": { - "format": "int32", + "responseTokenCount": { + "description": "Output only. Number of tokens in the response. Used by Gemini 3.1+ Live API models instead of candidatesTokenCount.", "type": "integer", - "description": "Output only. Token count for this candidate.", - "readOnly": true - }, - "continuationToken": { - "format": "byte", - "description": "An optional opaque continuation token returned when `finish_reason` is `CONTINUATION`. Clients can pass this token in a subsequent `GenerateContentRequest` to continue generation.", - "type": "string" - }, - "urlContextMetadata": { - "description": "Output only. Metadata related to url context retrieval tool.", - "readOnly": true, - "$ref": "#/components/schemas/UrlContextMetadata" + "format": "int32", + "readOnly": true }, - "citationMetadata": { - "description": "Output only. Citation information for model-generated candidate. This field may be populated with recitation information for any text included in the `content`. These are passages that are \"recited\" from copyrighted material in the foundational LLM's training data.", + "responseTokensDetails": { + "description": "Output only. List of modalities returned in the response with per-modality token counts. Used by Gemini 3.1+ Live API models instead of candidatesTokensDetails.", + "type": "array", "readOnly": true, - "$ref": "#/components/schemas/CitationMetadata" - }, - "avgLogprobs": { - "type": "number", - "format": "double", - "description": "Output only. Average log probability score of the candidate.", - "readOnly": true + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + } } } }, - "LogprobsResult": { + "TransferOwnershipResponse": { + "type": "object", + "description": "Response from `TransferOwnership`.", + "properties": {} + }, + "GroundingMetadata": { + "description": "Metadata returned to client when grounding is enabled.", "type": "object", - "description": "Logprobs Result", "properties": { - "logProbabilitySum": { - "description": "Sum of log probabilities for all tokens.", - "format": "float", - "type": "number" + "webSearchQueries": { + "items": { + "type": "string" + }, + "description": "Web search queries for the following-up web search.", + "type": "array" }, - "chosenCandidates": { + "groundingChunks": { + "description": "List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses.", "items": { - "$ref": "#/components/schemas/LogprobsResultCandidate" + "$ref": "#/components/schemas/GroundingChunk" }, - "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.", "type": "array" }, - "topCandidates": { + "retrievalMetadata": { + "$ref": "#/components/schemas/RetrievalMetadata", + "description": "Metadata related to retrieval in the grounding flow." + }, + "groundingSupports": { + "description": "List of grounding support.", + "items": { + "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaGroundingSupport" + }, + "type": "array" + }, + "imageSearchQueries": { + "description": "Image search queries used for grounding.", "type": "array", - "description": "Length = total number of decoding steps.", "items": { - "$ref": "#/components/schemas/TopCandidates" + "type": "string" } + }, + "googleMapsWidgetContextToken": { + "description": "Optional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled.", + "type": "string" + }, + "searchEntryPoint": { + "description": "Optional. Google search entry for the following-up web searches.", + "$ref": "#/components/schemas/SearchEntryPoint" } } }, - "TransferOwnershipRequest": { - "type": "object", + "AudioTranscription": { "properties": { - "emailAddress": { + "speakerLabel": { "type": "string", - "description": "Required. The email address of the user to whom the tuned model is being transferred to." + "description": "Optional. A label identifying the speaker of this audio segment (e.g. \"spk_1\", \"spk_2\"). Present when diarization is set." + }, + "words": { + "type": "array", + "description": "Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set.", + "items": { + "$ref": "#/components/schemas/WordInfo" + } + }, + "text": { + "description": "Required. The transcription text of this audio segment.", + "type": "string" } }, - "description": "Request to transfer the ownership of the tuned model." + "type": "object", + "description": "The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate Part with its own AudioTranscription carrying the speaker_label." }, - "SemanticRetrieverChunk": { + "TuningSnapshot": { + "type": "object", + "description": "Record for a single tuning step.", "properties": { - "source": { - "description": "Output only. Name of the source matching the request's `SemanticRetrieverConfig.source`. Example: `corpora/123` or `corpora/123/documents/abc`", + "epoch": { + "format": "int32", + "description": "Output only. The epoch this step was part of.", "readOnly": true, - "type": "string" + "type": "integer" }, - "chunk": { - "description": "Output only. Name of the `Chunk` containing the attributed text. Example: `corpora/123/documents/abc/chunks/xyz`", + "step": { + "description": "Output only. The tuning step.", + "format": "int32", + "type": "integer", + "readOnly": true + }, + "computeTime": { "readOnly": true, - "type": "string" + "description": "Output only. The timestamp when this metric was computed.", + "type": "string", + "format": "google-datetime" + }, + "meanLoss": { + "description": "Output only. The mean loss of the training examples for this step.", + "readOnly": true, + "type": "number", + "format": "float" } - }, - "description": "Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`.", - "type": "object" + } }, - "TranslationConfig": { - "type": "object", + "ListCachedContentsResponse": { "properties": { - "echoTargetLanguage": { - "type": "boolean", - "description": "Optional. If true, the model will generate audio when the target language is spoken, essentially it will parrot the input. If false, we will not produce audio for the target language." + "cachedContents": { + "items": { + "$ref": "#/components/schemas/CachedContent" + }, + "type": "array", + "description": "List of cached contents." }, - "targetLanguageCode": { - "description": "Required. The target language for translation. Supported values are BCP-47 language codes (e.g. \"en\", \"es\", \"fr\").", - "type": "string" + "nextPageToken": { + "type": "string", + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages." } }, - "description": "Config for translation features." + "type": "object", + "description": "Response with CachedContents list." }, - "LatLng": { + "VideoMetadata": { "type": "object", "properties": { - "latitude": { - "type": "number", - "format": "double", - "description": "The latitude in degrees. It must be in the range [-90.0, +90.0]." + "startOffset": { + "description": "Optional. The start offset of the video.", + "type": "string", + "format": "google-duration" }, - "longitude": { + "fps": { "type": "number", "format": "double", - "description": "The longitude in degrees. It must be in the range [-180.0, +180.0]." + "description": "Optional. The frame rate of the video sent to the model. If not specified, the default value will be 1.0. The fps range is (0.0, 24.0]." + }, + "endOffset": { + "format": "google-duration", + "type": "string", + "description": "Optional. The end offset of the video." } }, - "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges." + "description": "Metadata describes the input video content. Set this in `Part.video_metadata` or `FunctionResponsePart.video_metadata` when `inline_data` or `file_data` contains video to configure static video preprocessing (such as time clipping, frame rate, maximum frame count, or extracted content layers)." }, - "AutomaticActivityDetection": { - "description": "Configures automatic detection of activity.", + "ListEnvironmentsResponse": { + "description": "Response for `ListEnvironments`.", "type": "object", "properties": { - "disabled": { - "type": "boolean", - "description": "Optional. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals." - }, - "prefixPaddingMs": { - "type": "integer", - "format": "int32", - "description": "Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives." + "environments": { + "description": "Environments belonging to the provided project.", + "items": { + "$ref": "#/components/schemas/Environment" + }, + "type": "array" }, - "startOfSpeechSensitivity": { + "nextPageToken": { "type": "string", - "enum": [ - "START_SENSITIVITY_UNSPECIFIED", - "START_SENSITIVITY_HIGH", - "START_SENSITIVITY_LOW" - ], - "description": "Optional. Determines how likely speech is to be detected.", - "x-enum-descriptions": [ - "The default is START_SENSITIVITY_HIGH.", - "Automatic detection will detect the start of speech more often.", - "Automatic detection will detect the start of speech less often." - ] - }, - "silenceDurationMs": { - "format": "int32", - "type": "integer", - "description": "Optional. The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency." + "description": "Pagination token." + } + } + }, + "CountTokensRequest": { + "type": "object", + "description": "Counts the number of tokens in the `prompt` sent to a model. Models may tokenize text differently, so each model may return a different `token_count`.", + "properties": { + "generateContentRequest": { + "description": "Optional. The overall input given to the `Model`. This includes the prompt as well as other model steering information like [system instructions](https://ai.google.dev/gemini-api/docs/system-instructions), and/or function declarations for [function calling](https://ai.google.dev/gemini-api/docs/function-calling). `Model`s/`Content`s and `generate_content_request`s are mutually exclusive. You can either send `Model` + `Content`s or a `generate_content_request`, but never both.", + "$ref": "#/components/schemas/GenerateContentRequest" }, - "endOfSpeechSensitivity": { - "description": "Optional. Determines how likely detected speech is ended.", - "x-enum-descriptions": [ - "The default is END_SENSITIVITY_HIGH.", - "Automatic detection ends speech more often.", - "Automatic detection ends speech less often." - ], - "type": "string", - "enum": [ - "END_SENSITIVITY_UNSPECIFIED", - "END_SENSITIVITY_HIGH", - "END_SENSITIVITY_LOW" - ] + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Content" + }, + "description": "Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set." } } }, - "Document": { + "CountTokensResponse": { "properties": { - "name": { - "type": "string", - "description": "Immutable. Identifier. The `Document` resource name. The ID (name excluding the \"fileSearchStores/*/documents/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/{file_search_store_id}/documents/my-awesome-doc-123a456b789c`" + "cachedContentTokenCount": { + "format": "int32", + "description": "Number of tokens in the cached part of the prompt (the cached content).", + "type": "integer" }, - "state": { + "cacheTokensDetails": { + "description": "Output only. List of modalities that were processed in the cached content.", "readOnly": true, - "x-enum-descriptions": [ - "The default value. This value is used if the state is omitted.", - "Some `Chunks` of the `Document` are being processed (embedding and vector storage).", - "All `Chunks` of the `Document` is processed and available for querying.", - "Some `Chunks` of the `Document` failed processing." - ], - "description": "Output only. Current state of the `Document`.", - "type": "string", - "enum": [ - "STATE_UNSPECIFIED", - "STATE_PENDING", - "STATE_ACTIVE", - "STATE_FAILED" - ] + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + }, + "type": "array" }, - "mimeType": { - "description": "Output only. The mime type of the Document.", + "promptTokensDetails": { "readOnly": true, - "type": "string" + "type": "array", + "description": "Output only. List of modalities that were processed in the request input.", + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + } }, - "updateTime": { - "description": "Output only. The Timestamp of when the `Document` was last updated.", - "format": "google-datetime", - "type": "string", - "readOnly": true + "totalTokens": { + "description": "The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative.", + "format": "int32", + "type": "integer" + } + }, + "type": "object", + "description": "A response from `CountTokens`. It returns the model's `token_count` for the `prompt`." + }, + "LanguageHints": { + "properties": { + "languageCodes": { + "description": "Required. BCP-47 language codes.", + "type": "array", + "deprecated": true, + "items": { + "type": "string" + } + } + }, + "type": "object", + "deprecated": true, + "description": "Provides hints to the model about possible languages present in the audio." + }, + "Tool": { + "type": "object", + "properties": { + "googleSearchRetrieval": { + "$ref": "#/components/schemas/GoogleSearchRetrieval", + "description": "Optional. Retrieval tool that is powered by Google search." }, - "displayName": { - "description": "Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: \"Semantic Retriever Documentation\"", - "type": "string" + "functionDeclarations": { + "items": { + "$ref": "#/components/schemas/FunctionDeclaration" + }, + "type": "array", + "description": "Optional. A list of `FunctionDeclarations` available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a FunctionCall with arguments to the client side for execution. The model may decide to call a subset of these functions by populating FunctionCall in the response. The next conversation turn may contain a FunctionResponse with the Content.role \"function\" generation context for the next model turn." }, - "sizeBytes": { - "description": "Output only. The size of raw bytes ingested into the Document.", - "format": "int64", - "type": "string", - "readOnly": true + "googleSearch": { + "$ref": "#/components/schemas/GoogleSearch", + "description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google." }, - "createTime": { - "type": "string", - "format": "google-datetime", - "description": "Output only. The Timestamp of when the `Document` was created.", - "readOnly": true + "fileSearch": { + "description": "Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora.", + "$ref": "#/components/schemas/FileSearch" }, - "customMetadata": { + "mcpServers": { "items": { - "$ref": "#/components/schemas/CustomMetadata" + "$ref": "#/components/schemas/McpServer" }, - "description": "Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`.", + "description": "Optional. MCP Servers to connect to.", "type": "array" + }, + "googleMaps": { + "description": "Optional. Tool that allows grounding the model's response with geospatial context related to the user's query.", + "$ref": "#/components/schemas/GoogleMaps" + }, + "codeExecution": { + "$ref": "#/components/schemas/CodeExecution", + "description": "Optional. Enables the model to execute code as part of generation." + }, + "urlContext": { + "$ref": "#/components/schemas/UrlContext", + "description": "Optional. Tool to support URL context retrieval." + }, + "computerUse": { + "description": "Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.", + "$ref": "#/components/schemas/ComputerUse" } }, - "type": "object", - "description": "A `Document` is a collection of `Chunk`s." + "description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. Next ID: 17" }, - "CitationSource": { + "FunctionCallingConfig": { + "type": "object", "properties": { - "license": { - "description": "Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations.", + "mode": { + "description": "Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO.", + "enum": [ + "MODE_UNSPECIFIED", + "AUTO", + "ANY", + "NONE", + "VALIDATED" + ], + "x-enum-descriptions": [ + "Unspecified function calling mode. This value should not be used.", + "Default model behavior, model decides to predict either a function call or a natural language response.", + "Model is constrained to always predicting a function call only. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\".", + "Model will not predict any function call. Model behavior is same as when not passing any function declarations.", + "Model decides to predict either a function call or a natural language response, but will validate function calls with constrained decoding. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\"." + ], "type": "string" }, - "endIndex": { - "format": "int32", - "description": "Optional. End of the attributed segment, exclusive.", - "type": "integer" + "allowedFunctionNames": { + "description": "Optional. A set of function names that, when provided, limits the functions the model will call. This should only be set when the Mode is ANY or VALIDATED. Function names should match [FunctionDeclaration.name]. When set, model will predict a function call from only allowed function names.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "description": "Configuration for specifying function calling behavior." + }, + "ToolResponse": { + "properties": { + "response": { + "description": "Optional. The tool response.", + "additionalProperties": { + "description": "Properties of the object." + }, + "type": "object" }, - "startIndex": { - "type": "integer", - "format": "int32", - "description": "Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes." + "toolType": { + "enum": [ + "TOOL_TYPE_UNSPECIFIED", + "GOOGLE_SEARCH_WEB", + "GOOGLE_SEARCH_IMAGE", + "URL_CONTEXT", + "GOOGLE_MAPS", + "FILE_SEARCH" + ], + "description": "Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`.", + "type": "string", + "x-enum-descriptions": [ + "Unspecified tool type.", + "Google search tool, maps to Tool.google_search.search_types.web_search.", + "Image search tool, maps to Tool.google_search.search_types.image_search.", + "URL context tool, maps to Tool.url_context.", + "Google maps tool, maps to Tool.google_maps.", + "File search tool, maps to Tool.file_search." + ] }, - "uri": { - "description": "Optional. URI that is attributed as a source for a portion of the text.", + "id": { + "description": "Optional. The identifier of the tool call this response is for.", "type": "string" } }, - "description": "A citation to a source for a portion of a specific response.", + "description": "The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolCall`.", "type": "object" }, - "TopCandidates": { + "InlinedResponses": { "type": "object", - "description": "Candidates with top log probabilities at each decoding step.", "properties": { - "candidates": { + "inlinedResponses": { + "description": "Output only. The responses to the requests in the batch.", + "readOnly": true, "items": { - "$ref": "#/components/schemas/LogprobsResultCandidate" + "$ref": "#/components/schemas/InlinedResponse" }, - "type": "array", - "description": "Sorted by log probability in descending order." + "type": "array" + } + }, + "description": "The responses to the requests in the batch." + }, + "GroundingPassageId": { + "type": "object", + "description": "Identifier for a part within a `GroundingPassage`.", + "properties": { + "passageId": { + "description": "Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.", + "type": "string", + "readOnly": true + }, + "partIndex": { + "type": "integer", + "format": "int32", + "description": "Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.", + "readOnly": true } } }, - "ContentEmbedding": { - "description": "A list of floats representing an embedding.", + "ImageSearch": { + "properties": {}, + "type": "object", + "description": "Image search for grounding and related configurations." + }, + "ToolConfig": { "properties": { - "values": { - "type": "array", - "items": { - "type": "number", - "format": "float" - }, - "description": "The embedding values. This is for 3P users only and will not be populated for 1P calls." + "functionCallingConfig": { + "description": "Optional. Function calling config.", + "$ref": "#/components/schemas/FunctionCallingConfig" }, - "shape": { + "retrievalConfig": { + "description": "Optional. Retrieval config.", + "$ref": "#/components/schemas/RetrievalConfig" + }, + "includeServerSideToolInvocations": { + "description": "Optional. If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool interactions.", + "type": "boolean" + } + }, + "type": "object", + "description": "The Tool configuration containing parameters for specifying `Tool` use in the request." + }, + "PlaceAnswerSources": { + "properties": { + "reviewSnippets": { "items": { - "format": "int32", - "type": "integer" + "$ref": "#/components/schemas/ReviewSnippet" }, "type": "array", - "description": "This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048])." + "description": "Snippets of reviews that are used to generate answers about the features of a given place in Google Maps." } }, + "description": "Collection of sources that provide answers about the features of a given place in Google Maps. Each PlaceAnswerSources message corresponds to a specific place in Google Maps. The Google Maps tool used these sources in order to answer questions about features of the place (e.g: \"does Bar Foo have Wifi\" or \"is Foo Bar wheelchair accessible?\"). Currently we only support review snippets as sources.", "type": "object" }, - "RealtimeInputConfig": { - "type": "object", - "description": "Configures the realtime input behavior in `BidiGenerateContent`.", + "GenerateContentBatchOutput": { "properties": { - "automaticActivityDetection": { - "$ref": "#/components/schemas/AutomaticActivityDetection", - "description": "Optional. If not set, automatic activity detection is enabled by default. If automatic voice detection is disabled, the client must send activity signals." - }, - "interimTranscriptTimestampEnabled": { - "type": "boolean", - "description": "Optional. Configures interim transcript timestamps." + "inlinedResponses": { + "$ref": "#/components/schemas/InlinedResponses", + "description": "Output only. The responses to the requests in the batch. Returned when the batch was built using inlined requests. The responses will be in the same order as the input requests.", + "readOnly": true }, - "activityHandling": { + "responsesFile": { "type": "string", - "enum": [ - "ACTIVITY_HANDLING_UNSPECIFIED", - "START_OF_ACTIVITY_INTERRUPTS", - "NO_INTERRUPTION" - ], - "x-enum-descriptions": [ - "If unspecified, the default behavior is `START_OF_ACTIVITY_INTERRUPTS`.", - "If true, start of activity will interrupt the model's response (also called \"barge in\"). The model's current response will be cut-off in the moment of the interruption. This is the default behavior.", - "The model's response will not be interrupted." - ], - "description": "Optional. Defines what effect activity has." + "description": "Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `GenerateContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests.", + "readOnly": true + } + }, + "type": "object", + "description": "The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field." + }, + "SearchEntryPoint": { + "properties": { + "renderedContent": { + "description": "Optional. Web content snippet that can be embedded in a web page or an app webview.", + "type": "string" }, - "turnCoverage": { - "description": "Optional. Defines which input is included in the user's turn.", - "x-enum-descriptions": [ - "If unspecified, a default behavior is selected based on the model. E.g., for Gemini 2.5, the default is `TURN_INCLUDES_ONLY_ACTIVITY`, while for Gemini 3.1 and onwards, it's `TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO`.", - "Includes activity since the last turn, excluding inactivity (e.g. silence on the audio stream).", - "Includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).", - "Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence." - ], + "sdkBlob": { "type": "string", - "enum": [ - "TURN_COVERAGE_UNSPECIFIED", - "TURN_INCLUDES_ONLY_ACTIVITY", - "TURN_INCLUDES_ALL_INPUT", - "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO" - ] + "format": "byte", + "description": "Optional. Base64 encoded JSON representing array of tuple." } - } + }, + "description": "Google search entry point.", + "type": "object" }, - "ListOperationsResponse": { - "description": "The response message for Operations.ListOperations.", + "GenerateContentResponse": { "properties": { - "operations": { - "description": "A list of operations that matches the specified filter in the request.", + "candidates": { "type": "array", "items": { - "$ref": "#/components/schemas/Operation" - } - }, - "unreachable": { - "items": { - "type": "string" + "$ref": "#/components/schemas/Candidate" }, - "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations.", - "type": "array" + "description": "Candidate responses from the model." + }, + "responseId": { + "description": "Output only. response_id is used to identify each response.", + "readOnly": true, + "type": "string" + }, + "modelStatus": { + "description": "Output only. The current model status of this model.", + "readOnly": true, + "$ref": "#/components/schemas/ModelStatus" + }, + "modelVersion": { + "description": "Output only. The model version used to generate the response.", + "type": "string", + "readOnly": true + }, + "promptFeedback": { + "description": "Returns the prompt's feedback related to the content filters.", + "$ref": "#/components/schemas/PromptFeedback" }, - "nextPageToken": { - "type": "string", - "description": "The standard List next-page token." + "usageMetadata": { + "$ref": "#/components/schemas/UsageMetadata", + "description": "Output only. Metadata on the generation requests' token usage.", + "readOnly": true } }, - "type": "object" + "type": "object", + "description": "Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API: - Returns either all requested candidates or none of them - Returns no candidates at all only if there was something wrong with the prompt (check `prompt_feedback`) - Reports feedback on each candidate in `finish_reason` and `safety_ratings`." }, - "BidiGenerateContentSetup": { + "Image": { + "description": "Chunk from image search.", "type": "object", "properties": { - "historyConfig": { - "$ref": "#/components/schemas/HistoryConfig", - "description": "Optional. Configures the exchange of history between the client and the server." - }, - "labels": { - "description": "Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{\"safety_identifier\": \"user_session_123\"}`)", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "outputAudioTranscription": { - "description": "Optional. If set, enables transcription of the model's audio output. The transcription aligns with the language code specified for the output audio, if configured.", - "$ref": "#/components/schemas/AudioTranscriptionConfig" - }, - "contextWindowCompression": { - "description": "Optional. Configures a context window compression mechanism. If included, the server will automatically reduce the size of the context when it exceeds the configured length.", - "$ref": "#/components/schemas/ContextWindowCompressionConfig" - }, - "generationConfig": { - "description": "Optional. Generation config. The following fields are not supported: - `response_logprobs` - `response_mime_type` - `logprobs` - `response_schema` - `response_json_schema` - `stop_sequence` - `skip_response_cache` - `routing_config` - `audio_timestamp`", - "$ref": "#/components/schemas/GenerationConfig" + "domain": { + "description": "The root domain of the web page that the image is from, e.g. \"example.com\".", + "type": "string" }, - "systemInstruction": { - "description": "Optional. The user provided system instructions for the model. Note: Only text should be used in parts and content in each part will be in a separate paragraph.", - "$ref": "#/components/schemas/Content" + "imageUri": { + "type": "string", + "description": "The image asset URL." }, - "tools": { - "description": "Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.", - "items": { - "$ref": "#/components/schemas/Tool" - }, - "type": "array" + "title": { + "type": "string", + "description": "The title of the web page that the image is from." }, - "sessionResumption": { - "description": "Optional. Configures session resumption mechanism. If included, the server will send `SessionResumptionUpdate` messages.", - "$ref": "#/components/schemas/SessionResumptionConfig" + "sourceUri": { + "description": "The web page URI for attribution.", + "type": "string" + } + } + }, + "RetrievalConfig": { + "type": "object", + "properties": { + "latLng": { + "$ref": "#/components/schemas/LatLng", + "description": "Optional. The location of the user." }, - "realtimeInputConfig": { - "$ref": "#/components/schemas/RealtimeInputConfig", - "description": "Optional. Configures the handling of realtime input." + "languageCode": { + "description": "Optional. The language code of the user. Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).", + "type": "string" + } + }, + "description": "Retrieval config." + }, + "ModelStatus": { + "description": "The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable.", + "properties": { + "retirementTime": { + "type": "string", + "description": "The time at which the model will be retired.", + "format": "google-datetime" }, - "inputAudioTranscription": { - "$ref": "#/components/schemas/AudioTranscriptionConfig", - "description": "Optional. If set, enables transcription of voice input. The transcription aligns with the input audio language, if configured." + "modelStage": { + "x-enum-descriptions": [ + "Unspecified model stage.", + "The underlying model is subject to lots of tunings.", + "Models in this stage are for experimental purposes only.", + "Models in this stage are more mature than experimental models.", + "Models in this stage are considered stable and ready for production use.", + "If the model is on this stage, it means that this model is on the path to deprecation in near future. Only existing customers can use this model.", + "Models in this stage are deprecated. These models cannot be used.", + "Models in this stage are retired. These models cannot be used." + ], + "description": "The stage of the underlying model.", + "enumDeprecated": [ + false, + true, + false, + false, + false, + false, + true, + false + ], + "type": "string", + "enum": [ + "MODEL_STAGE_UNSPECIFIED", + "UNSTABLE_EXPERIMENTAL", + "EXPERIMENTAL", + "PREVIEW", + "STABLE", + "LEGACY", + "DEPRECATED", + "RETIRED" + ] }, - "model": { - "description": "Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`", + "message": { + "description": "A message explaining the model status.", "type": "string" } }, - "description": "Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages." + "type": "object" }, - "Web": { + "EmbedContentConfig": { "properties": { - "uri": { + "taskType": { + "description": "Optional. The task type of the embedding.", "type": "string", - "description": "Output only. URI reference of the chunk.", - "readOnly": true + "enum": [ + "TASK_TYPE_UNSPECIFIED", + "RETRIEVAL_QUERY", + "RETRIEVAL_DOCUMENT", + "SEMANTIC_SIMILARITY", + "CLASSIFICATION", + "CLUSTERING", + "QUESTION_ANSWERING", + "FACT_VERIFICATION", + "CODE_RETRIEVAL_QUERY" + ], + "x-enum-descriptions": [ + "Unset value, which will default to one of the other enum values.", + "Specifies the given text is a query in a search/retrieval setting.", + "Specifies the given text is a document from the corpus being searched.", + "Specifies the given text will be used for STS.", + "Specifies that the given text will be classified.", + "Specifies that the embeddings will be used for clustering.", + "Specifies that the given text will be used for question answering.", + "Specifies that the given text will be used for fact verification.", + "Specifies that the given text will be used for code retrieval." + ] + }, + "audioTrackExtraction": { + "type": "boolean", + "description": "Optional. Whether to extract audio from video content." + }, + "outputDimensionality": { + "format": "int32", + "description": "Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.", + "type": "integer" }, "title": { - "description": "Output only. Title of the chunk.", - "readOnly": true, - "type": "string" + "type": "string", + "description": "Optional. The title for the text." + }, + "documentOcr": { + "type": "boolean", + "description": "Optional. Whether to enable OCR for document content." + }, + "autoTruncate": { + "description": "Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length.", + "type": "boolean" } }, "type": "object", - "description": "Chunk from the web." + "description": "Configurations for the EmbedContent request." }, - "ChunkingConfig": { - "type": "object", - "description": "Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto", + "InlinedRequests": { "properties": { - "whiteSpaceConfig": { - "description": "White space chunking configuration.", - "$ref": "#/components/schemas/WhiteSpaceConfig" + "requests": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InlinedRequest" + }, + "description": "Required. The requests to be processed in the batch." } - } + }, + "type": "object", + "description": "The requests to be processed in the batch if provided as part of the batch creation request." }, - "CreateEnvironmentRequest": { + "AudioResponseFormat": { + "description": "Configuration for audio output format.", + "type": "object", "properties": { - "networkMode": { - "description": "Network egress mode.", - "x-enum-descriptions": [ - "Default value. Unused.", - "All network egress is blocked." + "bitRate": { + "type": "integer", + "description": "Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).", + "format": "int32" + }, + "mimeType": { + "description": "Optional. The MIME type of the audio output.", + "enum": [ + "MIME_TYPE_UNSPECIFIED", + "AUDIO_MP3", + "AUDIO_OGG_OPUS", + "AUDIO_L16", + "AUDIO_WAV", + "AUDIO_ALAW", + "AUDIO_MULAW" ], "type": "string", - "enum": [ - "NETWORK_MODE_UNSPECIFIED", - "DISABLED" + "x-enum-descriptions": [ + "Default value. This value is unused.", + "MP3 audio format.", + "OGG Opus audio format.", + "Raw PCM (L16) audio format.", + "WAV audio format.", + "A-law audio format.", + "Mu-law audio format." ] }, - "sources": { - "description": "Sources to be mounted into the environment.", - "items": { - "$ref": "#/components/schemas/Source" - }, - "type": "array" - }, - "networkAllowlist": { - "description": "Allow only specific domains.", - "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" + "sampleRate": { + "description": "Optional. Sample rate in Hz.", + "type": "integer", + "format": "int32" }, - "fromEnvironment": { - "description": "Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty.", + "delivery": { + "description": "Optional. The delivery mode for the audio output.", + "enum": [ + "DELIVERY_UNSPECIFIED", + "INLINE", + "URI" + ], + "x-enum-descriptions": [ + "Default value. This value is unused.", + "Audio data is returned inline in the response.", + "Audio data is returned as a URI." + ], "type": "string" } + } + }, + "CreateFileRequest": { + "properties": { + "file": { + "$ref": "#/components/schemas/File", + "description": "Optional. Metadata for the file to create." + } }, "type": "object", - "description": "Request for `CreateEnvironment`." + "description": "Request for `CreateFile`." }, - "AuthToken": { + "Interval": { "type": "object", - "description": "A request to create an ephemeral authentication token.", + "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.", "properties": { - "bidiGenerateContentSetup": { - "$ref": "#/components/schemas/BidiGenerateContentSetup", - "description": "Optional. Input only. Immutable. Configuration specific to `BidiGenerateContent`." + "startTime": { + "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.", + "format": "google-datetime", + "type": "string" }, - "newSessionExpireTime": { + "endTime": { + "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.", "type": "string", - "description": "Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future.", "format": "google-datetime" - }, - "name": { - "type": "string", - "description": "Output only. Identifier. The token itself.", - "readOnly": true - }, - "fieldMask": { - "format": "google-fieldmask", - "description": "Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection.", + } + } + }, + "CitationSource": { + "description": "A citation to a source for a portion of a specific response.", + "type": "object", + "properties": { + "license": { + "description": "Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations.", "type": "string" }, - "expireTime": { - "description": "Optional. Input only. Immutable. An optional time after which, when using the resulting token, messages in BidiGenerateContent sessions will be rejected. (Gemini may preemptively close the session after this time.) If not set then this defaults to 30 minutes in the future. If set, this value must be less than 20 hours in the future.", - "format": "google-datetime", - "type": "string" + "endIndex": { + "format": "int32", + "description": "Optional. End of the attributed segment, exclusive.", + "type": "integer" }, - "uses": { - "type": "integer", + "startIndex": { "format": "int32", - "description": "Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1." + "type": "integer", + "description": "Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes." + }, + "uri": { + "type": "string", + "description": "Optional. URI that is attributed as a source for a portion of the text." } } }, - "BatchEmbedContentsResponse": { + "RegisterFilesResponse": { "properties": { - "embeddings": { + "files": { "items": { - "$ref": "#/components/schemas/ContentEmbedding" + "$ref": "#/components/schemas/File" }, - "readOnly": true, "type": "array", - "description": "Output only. The embeddings for each request, in the same order as provided in the batch request." - }, - "usageMetadata": { - "readOnly": true, - "description": "Output only. The usage metadata for the request.", - "$ref": "#/components/schemas/EmbeddingUsageMetadata" + "description": "The registered files to be used when calling GenerateContent." } }, - "description": "The response to a `BatchEmbedContentsRequest`.", - "type": "object" + "type": "object", + "description": "Response for `RegisterFiles`." }, - "SpeechConfig": { + "ThinkingConfig": { + "type": "object", "properties": { - "languageCode": { - "type": "string", - "description": "Optional. The IETF [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language code that the user configured the app to use. Used for speech recognition and synthesis. Valid values are: `de-DE`, `en-AU`, `en-GB`, `en-IN`, `en-US`, `es-US`, `fr-FR`, `hi-IN`, `pt-BR`, `ar-XA`, `es-ES`, `fr-CA`, `id-ID`, `it-IT`, `ja-JP`, `tr-TR`, `vi-VN`, `bn-IN`, `gu-IN`, `kn-IN`, `ml-IN`, `mr-IN`, `ta-IN`, `te-IN`, `nl-NL`, `ko-KR`, `cmn-CN`, `pl-PL`, `ru-RU`, and `th-TH`." + "thinkingBudget": { + "format": "int32", + "type": "integer", + "description": "The number of thoughts tokens that the model should generate." }, - "voiceConfig": { - "$ref": "#/components/schemas/VoiceConfig", - "description": "The configuration in case of single-voice output." + "includeThoughts": { + "type": "boolean", + "description": "Indicates whether to include thoughts in the response. If true, thoughts are returned only when available." }, - "multiSpeakerVoiceConfig": { - "$ref": "#/components/schemas/MultiSpeakerVoiceConfig", - "description": "Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field." + "thinkingLevel": { + "type": "string", + "enum": [ + "THINKING_LEVEL_UNSPECIFIED", + "MINIMAL", + "LOW", + "MEDIUM", + "HIGH" + ], + "x-enum-descriptions": [ + "Default value.", + "Little to no thinking.", + "Low thinking level.", + "Medium thinking level.", + "High thinking level." + ], + "description": "Optional. Controls the maximum depth of the model's internal reasoning process before it produces a response. The default value is model-dependent. Refer to the [Thinking levels guide](https://ai.google.dev/gemini-api/docs/thinking#thinking-levels) for more details. Recommended for Gemini 3 or later models. Use with earlier models results in an error." } }, - "description": "Config for speech generation and transcription.", - "type": "object" + "description": "Config for thinking features." }, - "Part": { + "InlinedEmbedContentResponses": { + "type": "object", + "description": "The responses to the requests in the batch.", "properties": { - "mediaResolution": { - "description": "Optional. Media resolution for the input media.", - "$ref": "#/components/schemas/V1mainMediaResolution" - }, - "functionCall": { - "$ref": "#/components/schemas/FunctionCall", - "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values." - }, - "codeExecutionResult": { - "$ref": "#/components/schemas/CodeExecutionResult", - "description": "Result of executing the `ExecutableCode`." - }, - "speechMetadata": { - "description": "Optional. Metadata applied to text parts to customize how they should be spoken or synthesized, such as specifying speaker identity or speaking style.", - "$ref": "#/components/schemas/SpeechMetadata" - }, - "functionResponse": { - "description": "The result output of a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model.", - "$ref": "#/components/schemas/FunctionResponse" + "inlinedResponses": { + "readOnly": true, + "type": "array", + "description": "Output only. The responses to the requests in the batch.", + "items": { + "$ref": "#/components/schemas/InlinedEmbedContentResponse" + } + } + } + }, + "CachedContent": { + "properties": { + "usageMetadata": { + "description": "Output only. Metadata on the usage of the cached content.", + "readOnly": true, + "$ref": "#/components/schemas/CachedContentUsageMetadata" }, - "thought": { - "type": "boolean", - "description": "Optional. Indicates if the part is thought from the model." + "createTime": { + "readOnly": true, + "type": "string", + "format": "google-datetime", + "description": "Output only. Creation time of the cache entry." }, - "fileData": { - "description": "URI based data.", - "$ref": "#/components/schemas/FileData" + "model": { + "type": "string", + "description": "Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`" }, - "mediaProcessing": { - "description": "Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.", + "ttl": { + "format": "google-duration", "type": "string", - "enum": [ - "MEDIA_PROCESSING_UNSPECIFIED", - "STATIC", - "AGENTIC" - ], - "x-enum-descriptions": [ - "Defaults to model-specific processing.", - "Fixed-rate frame extraction. All frames placed in context.", - "Model-driven dynamic navigation. Recommended for most use cases." - ] + "description": "Input only. New TTL for this resource, input only." }, - "videoMetadata": { - "$ref": "#/components/schemas/VideoMetadata", - "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data." + "contents": { + "description": "Optional. Input only. Immutable. The content to cache.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Content" + } }, - "thoughtSignature": { - "type": "string", - "format": "byte", - "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests." + "updateTime": { + "readOnly": true, + "format": "google-datetime", + "description": "Output only. When the cache entry was last updated in UTC time.", + "type": "string" }, - "toolResponse": { - "$ref": "#/components/schemas/ToolResponse", - "description": "The output from a server-side `ToolCall` execution. This field is populated by the client with the results of executing the corresponding `ToolCall`." + "toolConfig": { + "description": "Optional. Input only. Immutable. Tool config. This config is shared for all tools.", + "$ref": "#/components/schemas/ToolConfig" }, - "audioTranscription": { - "description": "Optional. Audio (input or output) transcription. This is only set when this Part contains audio data.", - "$ref": "#/components/schemas/AudioTranscription" + "tools": { + "description": "Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response", + "items": { + "$ref": "#/components/schemas/Tool" + }, + "type": "array" }, - "toolCall": { - "$ref": "#/components/schemas/ToolCall", - "description": "Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API." + "systemInstruction": { + "description": "Optional. Input only. Immutable. Developer set system instruction. Currently text only.", + "$ref": "#/components/schemas/Content" }, - "text": { - "description": "Inline text.", + "displayName": { + "description": "Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.", "type": "string" }, - "executableCode": { - "$ref": "#/components/schemas/ExecutableCode", - "description": "Code generated by the model that is meant to be executed." + "name": { + "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`", + "readOnly": true, + "type": "string" }, - "partMetadata": { - "additionalProperties": { - "description": "Properties of the object." - }, - "description": "Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams.", - "type": "object" + "expireTime": { + "type": "string", + "description": "Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.", + "format": "google-datetime" + } + }, + "description": "Content that has been preprocessed and can be used in subsequent request to GenerativeService. Cached content can be only used with model it was created for.", + "type": "object" + }, + "GoogleSearch": { + "properties": { + "searchTypes": { + "description": "Optional. The set of search types to enable. If not set, web search is enabled by default.", + "$ref": "#/components/schemas/SearchTypes" }, - "inlineData": { - "description": "Inline media bytes.", - "$ref": "#/components/schemas/Blob" + "timeRangeFilter": { + "description": "Optional. Filter search results to a specific time range. If customers set a start time, they must set an end time (and vice versa).", + "$ref": "#/components/schemas/Interval" } }, "type": "object", - "description": "A datatype containing media that is part of a multi-part `Content` message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. A `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes." + "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google." }, - "GenerateContentBatch": { + "TunedModelSource": { + "type": "object", + "description": "Tuned model as a source for training a new model.", "properties": { - "state": { + "tunedModel": { + "type": "string", + "description": "Immutable. The name of the `TunedModel` to use as the starting point for training the new model. Example: `tunedModels/my-tuned-model`" + }, + "baseModel": { + "readOnly": true, + "description": "Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/gemini-1.5-flash-001`", + "type": "string" + } + } + }, + "Environment": { + "properties": { + "sources": { + "type": "array", + "description": "Sources to be mounted into the environment.", + "items": { + "$ref": "#/components/schemas/Source" + } + }, + "updated": { "readOnly": true, "type": "string", + "description": "Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)." + }, + "networkMode": { + "description": "Network egress mode.", "enum": [ - "BATCH_STATE_UNSPECIFIED", - "BATCH_STATE_PENDING", - "BATCH_STATE_RUNNING", - "BATCH_STATE_SUCCEEDED", - "BATCH_STATE_FAILED", - "BATCH_STATE_CANCELLED", - "BATCH_STATE_EXPIRED" + "NETWORK_MODE_UNSPECIFIED", + "DISABLED" ], "x-enum-descriptions": [ - "The batch state is unspecified.", - "The service is preparing to run the batch.", - "The batch is in progress.", - "The batch completed successfully.", - "The batch failed.", - "The batch has been cancelled.", - "The batch has expired." + "Default value. Unused.", + "All network egress is blocked." ], - "description": "Output only. The state of the batch." + "type": "string" }, - "createTime": { + "id": { "readOnly": true, - "type": "string", - "description": "Output only. The time at which the batch was created.", - "format": "google-datetime" + "description": "Required. Output only. The ID of the environment.", + "type": "string" }, - "name": { - "readOnly": true, - "type": "string", - "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`." + "networkAllowlist": { + "description": "Allow only specific domains.", + "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" }, - "endTime": { - "readOnly": true, - "format": "google-datetime", + "fileCount": { + "description": "Output only. The number of files in the environment, output only.", "type": "string", - "description": "Output only. The time at which the batch processing completed." + "readOnly": true, + "format": "int64" }, - "displayName": { + "lastAccessed": { "type": "string", - "description": "Required. The user-defined name of this batch." - }, - "batchStats": { - "$ref": "#/components/schemas/BatchStats", "readOnly": true, - "description": "Output only. Stats about the batch." + "description": "Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)." }, - "output": { + "created": { + "description": "Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).", "readOnly": true, - "description": "Output only. The output of the batch request.", - "$ref": "#/components/schemas/GenerateContentBatchOutput" + "type": "string" }, - "priority": { + "status": { + "enum": [ + "STATUS_UNSPECIFIED", + "ACTIVE", + "EXPIRED" + ], "type": "string", - "format": "int64", - "description": "Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0." - }, - "model": { - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", - "type": "string" + "description": "Output only. The status of the environment container.", + "x-enum-descriptions": [ + "", + "", + "" + ], + "readOnly": true }, - "updateTime": { - "description": "Output only. The time at which the batch was last updated.", + "sizeBytes": { + "type": "string", + "format": "int64", "readOnly": true, - "format": "google-datetime", - "type": "string" - }, - "inputConfig": { - "$ref": "#/components/schemas/InputConfig", - "description": "Required. Input configuration of the instances on which batch processing are performed." + "description": "Output only. The total size of the environment files in bytes, output only." } }, - "type": "object", - "description": "A resource representing a batch of `GenerateContent` requests." + "description": "An execution environment for an agent.", + "type": "object" }, - "ImageResponseFormat": { + "ModalityTokenCount": { + "type": "object", + "description": "Represents token counting info for a single modality.", "properties": { - "aspectRatio": { + "modality": { "x-enum-descriptions": [ - "Default value. This value is unused.", - "1:1 aspect ratio.", - "2:3 aspect ratio.", - "3:2 aspect ratio.", - "3:4 aspect ratio.", - "4:3 aspect ratio.", - "4:5 aspect ratio.", - "5:4 aspect ratio.", - "9:16 aspect ratio.", - "16:9 aspect ratio.", - "21:9 aspect ratio.", - "1:8 aspect ratio.", - "8:1 aspect ratio.", - "1:4 aspect ratio.", - "4:1 aspect ratio." + "Unspecified modality.", + "Plain text.", + "Image.", + "Video.", + "Audio.", + "Document, e.g. PDF." ], - "type": "string", "enum": [ - "ASPECT_RATIO_UNSPECIFIED", - "ASPECT_RATIO_ONE_BY_ONE", - "ASPECT_RATIO_TWO_BY_THREE", - "ASPECT_RATIO_THREE_BY_TWO", - "ASPECT_RATIO_THREE_BY_FOUR", - "ASPECT_RATIO_FOUR_BY_THREE", - "ASPECT_RATIO_FOUR_BY_FIVE", - "ASPECT_RATIO_FIVE_BY_FOUR", - "ASPECT_RATIO_NINE_BY_SIXTEEN", - "ASPECT_RATIO_SIXTEEN_BY_NINE", - "ASPECT_RATIO_TWENTY_ONE_BY_NINE", - "ASPECT_RATIO_ONE_BY_EIGHT", - "ASPECT_RATIO_EIGHT_BY_ONE", - "ASPECT_RATIO_ONE_BY_FOUR", - "ASPECT_RATIO_FOUR_BY_ONE" + "MODALITY_UNSPECIFIED", + "TEXT", + "IMAGE", + "VIDEO", + "AUDIO", + "DOCUMENT" ], - "description": "Optional. The aspect ratio for the image output." + "description": "The modality associated with this token count.", + "type": "string" }, - "imageSize": { + "tokenCount": { + "type": "integer", + "format": "int32", + "description": "Number of tokens." + } + } + }, + "InputConfig": { + "description": "Configures the input to the batch request.", + "properties": { + "fileName": { "type": "string", - "enum": [ - "IMAGE_SIZE_UNSPECIFIED", - "IMAGE_SIZE_FIVE_TWELVE", - "IMAGE_SIZE_ONE_K", - "IMAGE_SIZE_TWO_K", - "IMAGE_SIZE_FOUR_K" - ], - "description": "Optional. The size of the image output.", - "x-enum-descriptions": [ - "Default value. This value is unused.", - "512px image size.", - "1K image size.", - "2K image size.", - "4K image size." - ] + "description": "The name of the `File` containing the input requests." }, - "mimeType": { - "description": "Optional. The MIME type of the image output.", - "type": "string", + "requests": { + "$ref": "#/components/schemas/InlinedRequests", + "description": "The requests to be processed in the batch." + } + }, + "type": "object" + }, + "PromptFeedback": { + "properties": { + "safetyRatings": { + "description": "Ratings for safety of the prompt. There is at most one rating per category.", + "items": { + "$ref": "#/components/schemas/SafetyRating" + }, + "type": "array" + }, + "blockReason": { "enum": [ - "MIME_TYPE_UNSPECIFIED", - "IMAGE_JPEG" + "BLOCK_REASON_UNSPECIFIED", + "SAFETY", + "OTHER", + "BLOCKLIST", + "PROHIBITED_CONTENT", + "IMAGE_SAFETY" ], + "description": "Optional. If set, the prompt was blocked and no candidates are returned. Rephrase the prompt.", "x-enum-descriptions": [ "Default value. This value is unused.", - "JPEG image format." - ] - }, - "delivery": { - "x-enum-descriptions": [ - "Default value. This value is unused.", - "Image data is returned inline in the response.", - "Image data is returned as a URI." + "Prompt was blocked due to safety reasons. Inspect `safety_ratings` to understand which safety category blocked it.", + "Prompt was blocked due to unknown reasons.", + "Prompt was blocked due to the terms which are included from the terminology blocklist.", + "Prompt was blocked due to prohibited content.", + "Candidates blocked due to unsafe image generation content." ], - "description": "Optional. The delivery mode for the image output.", + "type": "string" + } + }, + "type": "object", + "description": "A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`." + }, + "InlinedRequest": { + "properties": { + "metadata": { + "description": "Optional. The metadata to be associated with the request.", + "additionalProperties": { + "description": "Properties of the object." + }, + "type": "object" + }, + "request": { + "description": "Required. The request to be processed in the batch.", + "$ref": "#/components/schemas/GenerateContentRequest" + } + }, + "type": "object", + "description": "The request to be processed in the batch." + }, + "GroundingChunkStringList": { + "description": "A list of string values.", + "properties": { + "values": { + "type": "array", + "description": "The string values of the list.", + "items": { + "type": "string" + } + } + }, + "type": "object" + }, + "Maps": { + "description": "A grounding chunk from Google Maps. A Maps chunk corresponds to a single place.", + "type": "object", + "properties": { + "title": { + "description": "Title of the place.", + "type": "string" + }, + "placeId": { "type": "string", - "enum": [ - "DELIVERY_UNSPECIFIED", - "INLINE", - "URI" - ] + "description": "The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place." + }, + "uri": { + "description": "URI reference of the place.", + "type": "string" + }, + "placeAnswerSources": { + "$ref": "#/components/schemas/PlaceAnswerSources", + "description": "Sources that provide answers about the features of a given place in Google Maps." + }, + "text": { + "description": "Text description of the place answer.", + "type": "string" + } + } + }, + "EmbeddingUsageMetadata": { + "properties": { + "promptTokenCount": { + "format": "int32", + "description": "Output only. Number of tokens in the prompt.", + "readOnly": true, + "type": "integer" + }, + "promptTokenDetails": { + "type": "array", + "readOnly": true, + "description": "Output only. List of modalities that were processed in the request input.", + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + } } }, + "description": "Metadata on the usage of the embedding request.", + "type": "object" + }, + "ResponseFormatConfig": { "type": "object", - "description": "Configuration for image output format." + "properties": { + "audio": { + "$ref": "#/components/schemas/AudioResponseFormat", + "description": "Optional. Audio output format configuration." + }, + "image": { + "description": "Optional. Image output format configuration.", + "$ref": "#/components/schemas/ImageResponseFormat" + }, + "text": { + "$ref": "#/components/schemas/TextResponseFormat", + "description": "Optional. Text output format configuration." + } + }, + "description": "Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality." }, - "UrlContextMetadata": { + "BatchEmbedContentsResponse": { + "description": "The response to a `BatchEmbedContentsRequest`.", + "properties": { + "usageMetadata": { + "readOnly": true, + "$ref": "#/components/schemas/EmbeddingUsageMetadata", + "description": "Output only. The usage metadata for the request." + }, + "embeddings": { + "readOnly": true, + "items": { + "$ref": "#/components/schemas/ContentEmbedding" + }, + "type": "array", + "description": "Output only. The embeddings for each request, in the same order as provided in the batch request." + } + }, + "type": "object" + }, + "BatchEmbedContentsRequest": { "type": "object", "properties": { - "urlMetadata": { + "requests": { "type": "array", + "description": "Required. Embed requests for the batch. The model in each of these requests must match the model specified `BatchEmbedContentsRequest.model`.", "items": { - "$ref": "#/components/schemas/UrlMetadata" + "$ref": "#/components/schemas/EmbedContentRequest" + } + } + }, + "description": "Batch request to get embeddings from the model for a list of prompts." + }, + "SessionResumptionConfig": { + "description": "Session resumption configuration. This message is included in the session configuration as `BidiGenerateContentSetup.session_resumption`. If configured, the server will send `SessionResumptionUpdate` messages.", + "properties": { + "handle": { + "description": "The handle of a previous session. If not present then a new session is created. Session handles come from `SessionResumptionUpdate.token` values in previous connections.", + "type": "string" + } + }, + "type": "object" + }, + "TopCandidates": { + "properties": { + "candidates": { + "description": "Sorted by log probability in descending order.", + "items": { + "$ref": "#/components/schemas/LogprobsResultCandidate" }, - "description": "List of url context." + "type": "array" } }, - "description": "Metadata related to url context retrieval tool." + "description": "Candidates with top log probabilities at each decoding step.", + "type": "object" }, "CustomLongRunningOperation": { "properties": { + "error": { + "description": "The error result of the operation in case of failure or cancellation.", + "$ref": "#/components/schemas/Status" + }, "metadata": { - "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", - "type": "object", "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL." - } - }, - "name": { - "type": "string", - "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`." + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" }, "done": { - "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", - "type": "boolean" + "type": "boolean", + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available." }, - "error": { - "$ref": "#/components/schemas/Status", - "description": "The error result of the operation in case of failure or cancellation." + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" }, "response": { - "type": "object", "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object", "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL." } @@ -7820,141 +7877,84 @@ }, "type": "object" }, - "SpeechMetadata": { + "GenerateContentBatch": { "type": "object", - "description": "Speech metadata for `text` parts.", "properties": { - "style": { + "updateTime": { + "format": "google-datetime", "type": "string", - "description": "Optional. Optional style instruction for the speech synthesis." + "readOnly": true, + "description": "Output only. The time at which the batch was last updated." }, - "speaker": { + "priority": { "type": "string", - "description": "Optional. Optional speaker name for multi-speaker synthesis." - } - } - }, - "ListEnvironmentsResponse": { - "properties": { - "environments": { - "description": "Environments belonging to the provided project.", - "type": "array", - "items": { - "$ref": "#/components/schemas/Environment" - } + "format": "int64", + "description": "Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0." }, - "nextPageToken": { - "description": "Pagination token.", - "type": "string" - } - }, - "description": "Response for `ListEnvironments`.", - "type": "object" - }, - "LanguageAuto": { - "type": "object", - "properties": {}, - "deprecated": true, - "description": "Indicates the language of the audio should be automatically detected." - }, - "EmbedContentConfig": { - "properties": { - "documentOcr": { - "description": "Optional. Whether to enable OCR for document content.", - "type": "boolean" + "state": { + "enum": [ + "BATCH_STATE_UNSPECIFIED", + "BATCH_STATE_PENDING", + "BATCH_STATE_RUNNING", + "BATCH_STATE_SUCCEEDED", + "BATCH_STATE_FAILED", + "BATCH_STATE_CANCELLED", + "BATCH_STATE_EXPIRED" + ], + "readOnly": true, + "type": "string", + "description": "Output only. The state of the batch.", + "x-enum-descriptions": [ + "The batch state is unspecified.", + "The service is preparing to run the batch.", + "The batch is in progress.", + "The batch completed successfully.", + "The batch failed.", + "The batch has been cancelled.", + "The batch has expired." + ] }, - "title": { - "description": "Optional. The title for the text.", + "displayName": { + "description": "Required. The user-defined name of this batch.", "type": "string" }, - "autoTruncate": { - "type": "boolean", - "description": "Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length." - }, - "outputDimensionality": { - "type": "integer", - "format": "int32", - "description": "Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end." - }, - "audioTrackExtraction": { - "type": "boolean", - "description": "Optional. Whether to extract audio from video content." + "output": { + "$ref": "#/components/schemas/GenerateContentBatchOutput", + "description": "Output only. The output of the batch request.", + "readOnly": true }, - "taskType": { - "x-enum-descriptions": [ - "Unset value, which will default to one of the other enum values.", - "Specifies the given text is a query in a search/retrieval setting.", - "Specifies the given text is a document from the corpus being searched.", - "Specifies the given text will be used for STS.", - "Specifies that the given text will be classified.", - "Specifies that the embeddings will be used for clustering.", - "Specifies that the given text will be used for question answering.", - "Specifies that the given text will be used for fact verification.", - "Specifies that the given text will be used for code retrieval." - ], - "description": "Optional. The task type of the embedding.", - "type": "string", - "enum": [ - "TASK_TYPE_UNSPECIFIED", - "RETRIEVAL_QUERY", - "RETRIEVAL_DOCUMENT", - "SEMANTIC_SIMILARITY", - "CLASSIFICATION", - "CLUSTERING", - "QUESTION_ANSWERING", - "FACT_VERIFICATION", - "CODE_RETRIEVAL_QUERY" - ] - } - }, - "description": "Configurations for the EmbedContent request.", - "type": "object" - }, - "Status": { - "properties": { - "message": { + "createTime": { + "readOnly": true, "type": "string", - "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client." + "format": "google-datetime", + "description": "Output only. The time at which the batch was created." }, - "code": { - "description": "The status code, which should be an enum value of google.rpc.Code.", - "type": "integer", - "format": "int32" + "batchStats": { + "$ref": "#/components/schemas/BatchStats", + "readOnly": true, + "description": "Output only. Stats about the batch." }, - "details": { - "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", - "type": "array", - "items": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." - }, - "type": "object" - } - } - }, - "type": "object", - "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors)." - }, - "FunctionCall": { - "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.", - "type": "object", - "properties": { - "id": { - "description": "Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.", + "endTime": { + "description": "Output only. The time at which the batch processing completed.", + "format": "google-datetime", + "readOnly": true, "type": "string" }, "name": { - "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128.", - "type": "string" + "type": "string", + "readOnly": true, + "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`." }, - "args": { - "additionalProperties": { - "description": "Properties of the object." - }, - "description": "Optional. The function parameters and values in JSON object format.", - "type": "object" + "inputConfig": { + "description": "Required. Input configuration of the instances on which batch processing are performed.", + "$ref": "#/components/schemas/InputConfig" + }, + "model": { + "type": "string", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`." } - } + }, + "description": "A resource representing a batch of `GenerateContent` requests." } } }