From 84dcd222c62e44c1fed7d2b3aa9d8607051253c4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 2 Oct 2026 09:21:34 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ....Gemini.GeminiClient.AuthTokensCreate.g.cs | 28 +- ...Client.BatchesUpdateEmbedContentBatch.g.cs | 34 +- ...ent.BatchesUpdateGenerateContentBatch.g.cs | 26 +- ...ini.GeminiClient.CachedContentsCreate.g.cs | 48 +- ...mini.GeminiClient.CachedContentsPatch.g.cs | 48 +- ...GeminiClient.CorporaPermissionsCreate.g.cs | 10 +- ....GeminiClient.CorporaPermissionsPatch.g.cs | 10 +- ...i.GeminiClient.DynamicGenerateContent.g.cs | 64 +- ...niClient.DynamicStreamGenerateContent.g.cs | 64 +- ....DynamicStreamGenerateContentAsStream.g.cs | 64 +- ...emini.GeminiClient.EnvironmentsCreate.g.cs | 16 +- ...Client.EnvironmentsFilesMediaDownload.g.cs | 31 +- ...niClient.EnvironmentsFilesMediaUpload.g.cs | 10 +- ...miniClient.FileSearchStoresImportFile.g.cs | 10 +- ...niClient.MediaUploadToFileSearchStore.g.cs | 10 +- ...Gemini.GeminiClient.ModelsCountTokens.g.cs | 10 +- ...emini.GeminiClient.ModelsEmbedContent.g.cs | 10 +- ...ni.GeminiClient.ModelsGenerateContent.g.cs | 64 +- ...iniClient.ModelsStreamGenerateContent.g.cs | 64 +- ...t.ModelsStreamGenerateContentAsStream.g.cs | 64 +- ...Gemini.GeminiClient.TunedModelsCreate.g.cs | 36 +- ...miniClient.TunedModelsGenerateContent.g.cs | 64 +- ....Gemini.GeminiClient.TunedModelsPatch.g.cs | 36 +- ...niClient.TunedModelsPermissionsCreate.g.cs | 10 +- ...iniClient.TunedModelsPermissionsPatch.g.cs | 10 +- ...ient.TunedModelsStreamGenerateContent.g.cs | 64 +- ...edModelsStreamGenerateContentAsStream.g.cs | 64 +- ...Gemini.IGeminiClient.AuthTokensCreate.g.cs | 22 +- ...Client.BatchesUpdateEmbedContentBatch.g.cs | 26 +- ...ent.BatchesUpdateGenerateContentBatch.g.cs | 20 +- ...ni.IGeminiClient.CachedContentsCreate.g.cs | 38 +- ...ini.IGeminiClient.CachedContentsPatch.g.cs | 38 +- ...GeminiClient.CorporaPermissionsCreate.g.cs | 8 +- ...IGeminiClient.CorporaPermissionsPatch.g.cs | 8 +- ....IGeminiClient.DynamicGenerateContent.g.cs | 50 +- ...niClient.DynamicStreamGenerateContent.g.cs | 50 +- ....DynamicStreamGenerateContentAsStream.g.cs | 50 +- ...mini.IGeminiClient.EnvironmentsCreate.g.cs | 12 +- ...Client.EnvironmentsFilesMediaDownload.g.cs | 8 +- ...niClient.EnvironmentsFilesMediaUpload.g.cs | 8 +- ...miniClient.FileSearchStoresImportFile.g.cs | 8 +- ...niClient.MediaUploadToFileSearchStore.g.cs | 8 +- ...emini.IGeminiClient.ModelsCountTokens.g.cs | 8 +- ...mini.IGeminiClient.ModelsEmbedContent.g.cs | 8 +- ...i.IGeminiClient.ModelsGenerateContent.g.cs | 50 +- ...iniClient.ModelsStreamGenerateContent.g.cs | 50 +- ...t.ModelsStreamGenerateContentAsStream.g.cs | 50 +- ...emini.IGeminiClient.TunedModelsCreate.g.cs | 28 +- ...miniClient.TunedModelsGenerateContent.g.cs | 50 +- ...Gemini.IGeminiClient.TunedModelsPatch.g.cs | 28 +- ...niClient.TunedModelsPermissionsCreate.g.cs | 8 +- ...iniClient.TunedModelsPermissionsPatch.g.cs | 8 +- ...ient.TunedModelsStreamGenerateContent.g.cs | 50 +- ...edModelsStreamGenerateContentAsStream.g.cs | 50 +- .../Google.Gemini.JsonSerializerContext.g.cs | 802 +- ...gle.Gemini.JsonSerializerContextTypes.g.cs | 682 +- ...gle.Gemini.Models.AttributionSourceId.g.cs | 24 +- ...gle.Gemini.Models.AudioResponseFormat.g.cs | 24 +- ...ogle.Gemini.Models.AudioTranscription.g.cs | 24 +- ...emini.Models.AudioTranscriptionConfig.g.cs | 84 +- .../Google.Gemini.Models.AuthToken.g.cs | 72 +- ...ini.Models.AutomaticActivityDetection.g.cs | 48 +- ...ini.Models.BatchEmbedContentsResponse.g.cs | 24 +- .../Google.Gemini.Models.BatchStats.g.cs | 28 +- ...emini.Models.BidiGenerateContentSetup.g.cs | 132 +- .../Generated/Google.Gemini.Models.Blob.g.cs | 28 +- .../Google.Gemini.Models.CachedContent.g.cs | 134 +- .../Google.Gemini.Models.Candidate.g.cs | 152 +- .../Google.Gemini.Models.CitationSource.g.cs | 46 +- .../Google.Gemini.Models.ComputerUse.g.cs | 30 +- .../Google.Gemini.Models.Content.g.cs | 24 +- ...Google.Gemini.Models.ContentEmbedding.g.cs | 24 +- .../Google.Gemini.Models.Corpus.g.cs | 40 +- ...ogle.Gemini.Models.CountTokensRequest.g.cs | 24 +- ...gle.Gemini.Models.CountTokensResponse.g.cs | 46 +- ...emini.Models.CreateEnvironmentRequest.g.cs | 30 +- ...ini.Models.CustomLongRunningOperation.g.cs | 46 +- .../Google.Gemini.Models.CustomMetadata.g.cs | 46 +- .../Google.Gemini.Models.Document.g.cs | 100 +- ...oogle.Gemini.Models.EmbedContentBatch.g.cs | 146 +- ...Gemini.Models.EmbedContentBatchOutput.g.cs | 24 +- ....Gemini.Models.EmbedContentBatchStats.g.cs | 52 +- ...ogle.Gemini.Models.EmbedContentConfig.g.cs | 72 +- ...gle.Gemini.Models.EmbedContentRequest.g.cs | 40 +- ....Gemini.Models.EmbeddingUsageMetadata.g.cs | 26 +- .../Google.Gemini.Models.Environment.g.cs | 114 +- .../Google.Gemini.Models.EnvironmentFile.g.cs | 68 +- .../Google.Gemini.Models.ExecutableCode.g.cs | 30 +- .../Generated/Google.Gemini.Models.File.g.cs | 172 +- .../Google.Gemini.Models.FileData.g.cs | 22 +- .../Google.Gemini.Models.FileSearch.g.cs | 22 +- .../Google.Gemini.Models.FileSearchStore.g.cs | 108 +- .../Google.Gemini.Models.FunctionCall.g.cs | 24 +- ...e.Gemini.Models.FunctionCallingConfig.g.cs | 24 +- ...gle.Gemini.Models.FunctionDeclaration.g.cs | 52 +- ...Google.Gemini.Models.FunctionResponse.g.cs | 58 +- ...le.Gemini.Models.FunctionResponseBlob.g.cs | 24 +- ...le.Gemini.Models.GenerateContentBatch.g.cs | 132 +- ...ini.Models.GenerateContentBatchOutput.g.cs | 24 +- ....Gemini.Models.GenerateContentRequest.g.cs | 126 +- ...Gemini.Models.GenerateContentResponse.g.cs | 46 +- .../Google.Gemini.Models.GeneratedFile.g.cs | 46 +- ...Google.Gemini.Models.GenerationConfig.g.cs | 284 +- ...erativelanguageV1betaGroundingSupport.g.cs | 28 +- ...ogleAiGenerativelanguageV1betaSegment.g.cs | 46 +- .../Google.Gemini.Models.GoogleSearch.g.cs | 24 +- .../Google.Gemini.Models.GroundingChunk.g.cs | 36 +- ...i.Models.GroundingChunkCustomMetadata.g.cs | 28 +- ...oogle.Gemini.Models.GroundingMetadata.g.cs | 50 +- ...ogle.Gemini.Models.GroundingPassageId.g.cs | 26 +- .../Google.Gemini.Models.Hyperparameters.g.cs | 28 +- .../Generated/Google.Gemini.Models.Image.g.cs | 36 +- .../Google.Gemini.Models.ImageConfig.g.cs | 24 +- ...gle.Gemini.Models.ImageResponseFormat.g.cs | 42 +- ...oogle.Gemini.Models.ImportFileRequest.g.cs | 24 +- ...ni.Models.InlinedEmbedContentResponse.g.cs | 24 +- .../Google.Gemini.Models.InlinedResponse.g.cs | 24 +- ...emini.Models.ListEnvironmentsResponse.g.cs | 24 +- ...oogle.Gemini.Models.ListFilesResponse.g.cs | 24 +- ...ogle.Gemini.Models.ListModelsResponse.g.cs | 24 +- ....Gemini.Models.ListOperationsResponse.g.cs | 22 +- ...Gemini.Models.ListPermissionsResponse.g.cs | 24 +- .../Google.Gemini.Models.LogprobsResult.g.cs | 28 +- ...Gemini.Models.LogprobsResultCandidate.g.cs | 24 +- .../Generated/Google.Gemini.Models.Maps.g.cs | 50 +- ...ogle.Gemini.Models.ModalityTokenCount.g.cs | 24 +- .../Generated/Google.Gemini.Models.Model.g.cs | 156 +- .../Google.Gemini.Models.ModelStatus.g.cs | 24 +- .../Google.Gemini.Models.Operation.g.cs | 50 +- .../Generated/Google.Gemini.Models.Part.g.cs | 154 +- .../Google.Gemini.Models.Permission.g.cs | 32 +- ...le.Gemini.Models.ResponseFormatConfig.g.cs | 28 +- ...Google.Gemini.Models.RetrievedContext.g.cs | 66 +- .../Google.Gemini.Models.SafetyRating.g.cs | 24 +- .../Google.Gemini.Models.Schema.g.cs | 222 +- ...Google.Gemini.Models.SearchEntryPoint.g.cs | 24 +- .../Google.Gemini.Models.SearchTypes.g.cs | 24 +- .../Google.Gemini.Models.Source.g.cs | 46 +- .../Google.Gemini.Models.SpeechConfig.g.cs | 24 +- .../Google.Gemini.Models.SpeechMetadata.g.cs | 24 +- .../Google.Gemini.Models.Status.g.cs | 24 +- ...Gemini.Models.StreamableHttpTransport.g.cs | 24 +- .../Google.Gemini.Models.ThinkingConfig.g.cs | 24 +- .../Generated/Google.Gemini.Models.Tool.g.cs | 82 +- .../Google.Gemini.Models.ToolCall.g.cs | 22 +- .../Google.Gemini.Models.ToolConfig.g.cs | 24 +- .../Google.Gemini.Models.ToolResponse.g.cs | 26 +- .../Google.Gemini.Models.TunedModel.g.cs | 156 +- ...Google.Gemini.Models.TunedModelSource.g.cs | 24 +- .../Google.Gemini.Models.TuningExample.g.cs | 24 +- .../Google.Gemini.Models.TuningSnapshot.g.cs | 42 +- .../Google.Gemini.Models.TuningTask.g.cs | 48 +- ...i.Models.UploadEnvironmentFileRequest.g.cs | 24 +- ...Models.UploadToFileSearchStoreRequest.g.cs | 22 +- .../Google.Gemini.Models.UsageMetadata.g.cs | 134 +- .../Google.Gemini.Models.VideoMetadata.g.cs | 26 +- ...Google.Gemini.Models.WhiteSpaceConfig.g.cs | 24 +- .../Google.Gemini.Models.WordInfo.g.cs | 28 +- ....NextGen.Agents.JsonSerializerContext.g.cs | 12 +- ...le.Gemini.NextGen.AgentsClient.Create.g.cs | 10 +- ...le.Gemini.NextGen.AgentsClient.Delete.g.cs | 12 +- ...oogle.Gemini.NextGen.AgentsClient.Get.g.cs | 12 +- ...ogle.Gemini.NextGen.AgentsClient.List.g.cs | 10 +- ...le.Gemini.NextGen.AutoSDKHttpResponse.g.cs | 4 +- ...Gen.Credentials.JsonSerializerContext.g.cs | 12 +- ...mini.NextGen.CredentialsClient.Create.g.cs | 10 +- ...mini.NextGen.CredentialsClient.Delete.g.cs | 12 +- ....Gemini.NextGen.CredentialsClient.Get.g.cs | 12 +- ...Gemini.NextGen.CredentialsClient.List.g.cs | 10 +- ...mini.NextGen.CredentialsClient.Update.g.cs | 12 +- ...en.Environments.JsonSerializerContext.g.cs | 12 +- ....EnvironmentsClient.CreateEnvironment.g.cs | 10 +- ....EnvironmentsClient.DeleteEnvironment.g.cs | 12 +- ...Gen.EnvironmentsClient.GetEnvironment.g.cs | 12 +- ...n.EnvironmentsClient.ListEnvironments.g.cs | 10 +- ...vironmentsFiles.JsonSerializerContext.g.cs | 12 +- ....NextGen.EnvironmentsFilesClient.List.g.cs | 14 +- ...nvironmentsInternalClient.StartUpload.g.cs | 22 +- ...Gemini.NextGen.ITriggersClient.Create.g.cs | 34 +- ...e.Gemini.NextGen.IVoicesClient.Create.g.cs | 8 +- ...ini.NextGen.InteractionsClient.Cancel.g.cs | 12 +- ...ini.NextGen.InteractionsClient.Create.g.cs | 10 +- ...Gen.InteractionsClient.CreateAsStream.g.cs | 10 +- ...ini.NextGen.InteractionsClient.Delete.g.cs | 12 +- ...Gemini.NextGen.InteractionsClient.Get.g.cs | 12 +- ...extGen.InteractionsClient.GetAsStream.g.cs | 12 +- ...i.NextGen.JsonConverters.AgentConfig2.g.cs | 255 - ...mini.NextGen.JsonConverters.AgentTool.g.cs | 10 +- ...ini.NextGen.JsonConverters.Annotation.g.cs | 10 +- ...Gemini.NextGen.JsonConverters.Content.g.cs | 10 +- ...nverters.CreateAgentInteractionStatus.g.cs | 53 - ....CreateAgentInteractionStatusNullable.g.cs | 60 - ...JsonConverters.CredentialCreateParams.g.cs | 6 +- ...xtGen.JsonConverters.CredentialUpdate.g.cs | 6 +- ...ers.EnvironmentNetworkEgressAllowlist.g.cs | 4 +- ...onConverters.FunctionResultSubcontent.g.cs | 4 +- ...en.JsonConverters.InteractionSSEEvent.g.cs | 14 +- ...tGen.JsonConverters.InteractionsInput.g.cs | 8 +- ...extGen.JsonConverters.MediaProcessing.g.cs | 2 +- ....Gemini.NextGen.JsonConverters.OneOf2.g.cs | 4 +- ....Gemini.NextGen.JsonConverters.OneOf3.g.cs | 6 +- ....Gemini.NextGen.JsonConverters.OneOf4.g.cs | 8 +- ...extGen.JsonConverters.ResponseFormat4.g.cs | 10 +- ...le.Gemini.NextGen.JsonConverters.Step.g.cs | 42 +- ....NextGen.JsonConverters.StepDeltaData.g.cs | 52 +- ....JsonConverters.ThoughtSummaryContent.g.cs | 4 +- ...le.Gemini.NextGen.JsonConverters.Tool.g.cs | 18 +- ...tGen.JsonConverters.TranscriptionMode.g.cs | 4 +- ....Gemini.NextGen.JsonSerializerContext.g.cs | 32 +- ...ni.NextGen.JsonSerializerContextTypes.g.cs | 588 +- ...mini.NextGen.Models.AgentConfig2.Json.g.cs | 141 - ...le.Gemini.NextGen.Models.AgentConfig2.g.cs | 463 - ...oogle.Gemini.NextGen.Models.AgentTool.g.cs | 80 +- ...ogle.Gemini.NextGen.Models.Annotation.g.cs | 80 +- .../Google.Gemini.NextGen.Models.Content.g.cs | 80 +- ...NextGen.Models.CreateAgentInteraction.g.cs | 108 +- ...n.Models.CreateAgentInteractionStatus.g.cs | 88 - ...ini.NextGen.Models.CreateVoiceRequest.g.cs | 16 +- ...NextGen.Models.CredentialCreateParams.g.cs | 48 +- ...emini.NextGen.Models.CredentialUpdate.g.cs | 48 +- ...els.EnvironmentNetworkEgressAllowlist.g.cs | 32 +- ...xtGen.Models.FunctionResultSubcontent.g.cs | 32 +- ...emini.NextGen.Models.GenerationConfig.g.cs | 14 + ...gle.Gemini.NextGen.Models.Interaction.g.cs | 6 +- ...eractionAgentConfigDiscriminator.Json.g.cs | 141 - ...s.InteractionAgentConfigDiscriminator.g.cs | 44 - ...ni.NextGen.Models.InteractionSSEEvent.g.cs | 112 +- ...mini.NextGen.Models.InteractionsInput.g.cs | 64 +- ...Gemini.NextGen.Models.MediaProcessing.g.cs | 16 +- ...Gemini.NextGen.Models.ResponseFormat4.g.cs | 80 +- .../Google.Gemini.NextGen.Models.Step.g.cs | 336 +- ...e.Gemini.NextGen.Models.StepDeltaData.g.cs | 416 +- ....NextGen.Models.ThoughtSummaryContent.g.cs | 32 +- .../Google.Gemini.NextGen.Models.Tool.g.cs | 144 +- ...mini.NextGen.Models.TranscriptionMode.g.cs | 32 +- .../Google.Gemini.NextGen.Models.Trigger.g.cs | 15 +- ...ni.NextGen.Models.TriggerCreateParams.g.cs | 13 +- .../Google.Gemini.NextGen.Models.Voice.g.cs | 12 +- .../Google.Gemini.NextGen.OneOf.2.g.cs | 32 +- .../Google.Gemini.NextGen.OneOf.3.g.cs | 48 +- .../Google.Gemini.NextGen.OneOf.4.g.cs | 64 +- .../Google.Gemini.NextGen.OptionsSupport.g.cs | 15 +- ....Gemini.NextGen.TriggersClient.Create.g.cs | 46 +- ....Gemini.NextGen.TriggersClient.Delete.g.cs | 12 +- ...gle.Gemini.NextGen.TriggersClient.Get.g.cs | 12 +- ...le.Gemini.NextGen.TriggersClient.List.g.cs | 10 +- ...NextGen.TriggersClient.ListExecutions.g.cs | 12 +- ...gle.Gemini.NextGen.TriggersClient.Run.g.cs | 12 +- ....Gemini.NextGen.TriggersClient.Update.g.cs | 12 +- ....NextGen.Voices.JsonSerializerContext.g.cs | 12 +- ...le.Gemini.NextGen.VoicesClient.Create.g.cs | 18 +- ...le.Gemini.NextGen.VoicesClient.Delete.g.cs | 12 +- ...oogle.Gemini.NextGen.VoicesClient.Get.g.cs | 12 +- ...ogle.Gemini.NextGen.VoicesClient.List.g.cs | 10 +- ...extGen.Webhooks.JsonSerializerContext.g.cs | 12 +- ....Gemini.NextGen.WebhooksClient.Create.g.cs | 10 +- ....Gemini.NextGen.WebhooksClient.Delete.g.cs | 12 +- ...gle.Gemini.NextGen.WebhooksClient.Get.g.cs | 12 +- ...le.Gemini.NextGen.WebhooksClient.List.g.cs | 10 +- ...le.Gemini.NextGen.WebhooksClient.Ping.g.cs | 12 +- ...en.WebhooksClient.RotateSigningSecret.g.cs | 12 +- ....Gemini.NextGen.WebhooksClient.Update.g.cs | 12 +- .../Generated/autosdk.generated-examples.json | 2 +- src/libs/Google.Gemini/nextgen.openapi.json | 313 +- src/libs/Google.Gemini/openapi.json | 9500 ++++++++--------- 265 files changed, 10931 insertions(+), 12081 deletions(-) delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.AgentConfig2.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatus.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatusNullable.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentConfig2.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentConfig2.g.cs delete 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.InteractionAgentConfigDiscriminator.Json.g.cs delete mode 100644 src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionAgentConfigDiscriminator.g.cs 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 8bea9163c..627701b6a 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 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. 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. - /// /// /// 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. 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. 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 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( - string? newSessionExpireTime = default, - string? expireTime = default, global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup = default, - int? uses = default, string? fieldMask = default, + int? uses = default, + string? expireTime = default, + string? newSessionExpireTime = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.AuthToken { - NewSessionExpireTime = newSessionExpireTime, - ExpireTime = expireTime, BidiGenerateContentSetup = bidiGenerateContentSetup, - Uses = uses, FieldMask = fieldMask, + Uses = uses, + ExpireTime = expireTime, + 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 5b20f6765..13d96ebd4 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( /// /// /// - /// - /// Required. The user-defined name of this 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. + /// + /// Stats about the 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. + /// + /// 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. /// + /// + /// Required. The user-defined name of this batch. + /// /// 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, - string? displayName = default, - global::Google.Gemini.EmbedContentBatchOutput? output = default, - string? model = default, - global::Google.Gemini.EmbedContentBatchStats? batchStats = default, global::Google.Gemini.InputEmbedContentConfig? inputConfig = default, + global::Google.Gemini.EmbedContentBatchStats? batchStats = default, + string? model = default, + global::Google.Gemini.EmbedContentBatchOutput? output = default, string? priority = default, + string? displayName = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.EmbedContentBatch { - DisplayName = displayName, - Output = output, - Model = model, - BatchStats = batchStats, InputConfig = inputConfig, + BatchStats = batchStats, + Model = model, + Output = output, Priority = priority, + DisplayName = displayName, }; 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 570fb75c2..3703b2b93 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 @@ -451,20 +451,20 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent( /// /// Configures the input to the batch request. /// - /// - /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. - /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Stats about the batch. /// /// /// 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}`. + /// /// /// 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. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -473,22 +473,22 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent( string batchesId, string? updateMask = default, global::Google.Gemini.InputConfig? inputConfig = default, - global::Google.Gemini.GenerateContentBatchOutput? output = default, - string? model = default, + global::Google.Gemini.BatchStats? batchStats = default, string? priority = default, + string? model = default, string? displayName = default, - global::Google.Gemini.BatchStats? batchStats = default, + global::Google.Gemini.GenerateContentBatchOutput? output = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentBatch { InputConfig = inputConfig, - Output = output, - Model = model, + BatchStats = batchStats, Priority = priority, + Model = model, DisplayName = displayName, - BatchStats = batchStats, + Output = output, }; 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 d6e66ffbe..08c0522b1 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,29 +425,29 @@ partial void ProcessCachedContentsCreateResponseContent( /// /// Creates CachedContent resource. /// + /// + /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` + /// + /// + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// + /// Metadata on the usage of the cached content. + /// + /// + /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response + /// /// /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. /// /// /// 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. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. - /// - /// - /// Metadata on the usage of the cached content. - /// /// /// Input only. New TTL for this resource, input only. /// - /// - /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` - /// - /// - /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response - /// - /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// /// /// Optional. Input only. Immutable. The content to cache. @@ -456,28 +456,28 @@ partial void ProcessCachedContentsCreateResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CachedContentsCreateAsync( + string? model = default, + string? displayName = default, + global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, + global::System.Collections.Generic.IList? tools = default, string? expireTime = default, global::Google.Gemini.Content? systemInstruction = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, string? ttl = default, - string? model = default, - global::System.Collections.Generic.IList? tools = default, - string? displayName = default, + global::Google.Gemini.ToolConfig? toolConfig = 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, + DisplayName = displayName, + UsageMetadata = usageMetadata, + Tools = tools, ExpireTime = expireTime, SystemInstruction = systemInstruction, - ToolConfig = toolConfig, - UsageMetadata = usageMetadata, Ttl = ttl, - Model = model, - Tools = tools, - DisplayName = displayName, + ToolConfig = toolConfig, Contents = contents, }; 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 778b5214c..800f0c9db 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,29 +448,29 @@ partial void ProcessCachedContentsPatchResponseContent( /// /// /// + /// + /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` + /// + /// + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// + /// Metadata on the usage of the cached content. + /// + /// + /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response + /// /// /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. /// /// /// 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. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. - /// - /// - /// Metadata on the usage of the cached content. - /// /// /// Input only. New TTL for this resource, input only. /// - /// - /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` - /// - /// - /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response - /// - /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// /// /// Optional. Input only. Immutable. The content to cache. @@ -481,28 +481,28 @@ partial void ProcessCachedContentsPatchResponseContent( public async global::System.Threading.Tasks.Task CachedContentsPatchAsync( string cachedContentsId, string? updateMask = default, + string? model = default, + string? displayName = default, + global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, + global::System.Collections.Generic.IList? tools = default, string? expireTime = default, global::Google.Gemini.Content? systemInstruction = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, string? ttl = default, - string? model = default, - global::System.Collections.Generic.IList? tools = default, - string? displayName = default, + global::Google.Gemini.ToolConfig? toolConfig = 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, + DisplayName = displayName, + UsageMetadata = usageMetadata, + Tools = tools, ExpireTime = expireTime, SystemInstruction = systemInstruction, - ToolConfig = toolConfig, - UsageMetadata = usageMetadata, Ttl = ttl, - Model = model, - Tools = tools, - DisplayName = displayName, + ToolConfig = toolConfig, Contents = contents, }; 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 62c562fb6..fd285c79a 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,31 +435,31 @@ 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. /// /// /// Required. The role granted by this 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. - /// /// 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 CorporaPermissionsCreateAsync( string corporaId, + string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.Permission { + EmailAddress = emailAddress, GranteeType = granteeType, Role = role, - EmailAddress = emailAddress, }; return await CorporaPermissionsCreateAsync( 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 7ff8e493d..0652752bb 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,15 +458,15 @@ 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. /// /// /// Required. The role granted by this 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. - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -474,17 +474,17 @@ partial void ProcessCorporaPermissionsPatchResponseContent( string permissionsId, string corporaId, string? updateMask = default, + string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.Permission { + EmailAddress = emailAddress, GranteeType = granteeType, Role = role, - EmailAddress = emailAddress, }; return await CorporaPermissionsPatchAsync( 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 56b5809af..eafc91d33 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,71 +435,71 @@ 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. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { - CachedContent = cachedContent, - Contents = contents, ServiceTier = serviceTier, - Store = store, + Tools = tools, Labels = labels, - GenerationConfig = generationConfig, + Store = store, + Contents = contents, + CachedContent = cachedContent, + Model = model, + SafetySettings = safetySettings, ToolConfig = toolConfig, + GenerationConfig = generationConfig, SystemInstruction = systemInstruction, - SafetySettings = safetySettings, - Model = model, - Tools = tools, }; 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 fd171eea4..bd20ad720 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,71 +439,71 @@ 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`. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { - CachedContent = cachedContent, - Contents = contents, ServiceTier = serviceTier, - Store = store, + Tools = tools, Labels = labels, - GenerationConfig = generationConfig, + Store = store, + Contents = contents, + CachedContent = cachedContent, + Model = model, + SafetySettings = safetySettings, ToolConfig = toolConfig, + GenerationConfig = generationConfig, SystemInstruction = systemInstruction, - SafetySettings = safetySettings, - Model = model, - Tools = tools, }; 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 7e3b1cbe0..11d1b75d6 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,71 +380,71 @@ 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`. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = 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 { - CachedContent = cachedContent, - Contents = contents, ServiceTier = serviceTier, - Store = store, + Tools = tools, Labels = labels, - GenerationConfig = generationConfig, + Store = store, + Contents = contents, + CachedContent = cachedContent, + Model = model, + SafetySettings = safetySettings, ToolConfig = toolConfig, + GenerationConfig = generationConfig, SystemInstruction = systemInstruction, - SafetySettings = safetySettings, - Model = model, - Tools = tools, }; 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 a45c87013..21f8115db 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,8 +425,8 @@ partial void ProcessEnvironmentsCreateResponseContent( /// /// Creates an environment. /// - /// - /// Network egress mode. + /// + /// Network egress configuration for the environment. /// /// /// Sources to be mounted into the environment. @@ -434,26 +434,26 @@ partial void ProcessEnvironmentsCreateResponseContent( /// /// 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 configuration for the environment. + /// + /// Network egress mode. /// /// 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::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist = default, global::System.Collections.Generic.IList? sources = default, string? fromEnvironment = default, - global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist = default, + global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.CreateEnvironmentRequest { - NetworkMode = networkMode, + NetworkAllowlist = networkAllowlist, Sources = sources, FromEnvironment = fromEnvironment, - NetworkAllowlist = networkAllowlist, + NetworkMode = networkMode, }; return await EnvironmentsCreateAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaDownload.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaDownload.g.cs index 06c242b39..0ca93ab84 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaDownload.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaDownload.g.cs @@ -30,7 +30,7 @@ partial void PrepareEnvironmentsFilesMediaDownloadArguments( ref int? pageSize, ref string? pageToken, ref string environmentsId, - ref string filesId, + ref string? path, ref bool? recursive); partial void PrepareEnvironmentsFilesMediaDownloadRequest( global::System.Net.Http.HttpClient httpClient, @@ -38,7 +38,7 @@ partial void PrepareEnvironmentsFilesMediaDownloadRequest( int? pageSize, string? pageToken, string environmentsId, - string filesId, + string? path, bool? recursive); partial void ProcessEnvironmentsFilesMediaDownloadResponse( global::System.Net.Http.HttpClient httpClient, @@ -55,25 +55,25 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent( /// /// /// - /// + /// /// /// 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 EnvironmentsFilesMediaDownloadAsync( string environmentsId, - string filesId, int? pageSize = default, string? pageToken = default, + string? path = default, bool? recursive = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await EnvironmentsFilesMediaDownloadAsResponseAsync( environmentsId: environmentsId, - filesId: filesId, pageSize: pageSize, pageToken: pageToken, + path: path, recursive: recursive, requestOptions: requestOptions, cancellationToken: cancellationToken @@ -87,16 +87,16 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent( /// /// /// - /// + /// /// /// 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> EnvironmentsFilesMediaDownloadAsResponseAsync( string environmentsId, - string filesId, int? pageSize = default, string? pageToken = default, + string? path = default, bool? recursive = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -108,7 +108,7 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent( pageSize: ref pageSize, pageToken: ref pageToken, environmentsId: ref environmentsId, - filesId: ref filesId, + path: ref path, recursive: ref recursive); @@ -135,7 +135,7 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent( { var __pathBuilder = new global::Google.Gemini.PathBuilder( - path: $"/environments/{environmentsId}/files/{filesId}", + path: $"/environments/{environmentsId}/files", baseUri: HttpClient.BaseAddress); foreach (var __authorization in __authorizations) { @@ -148,6 +148,7 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent( __pathBuilder .AddOptionalParameter("page_size", pageSize?.ToString()) .AddOptionalParameter("page_token", pageToken) + .AddOptionalParameter("path", path) .AddOptionalParameter("recursive", recursive?.ToString().ToLowerInvariant()) ; var __path = __pathBuilder.ToString(); @@ -176,7 +177,7 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent( pageSize: pageSize, pageToken: pageToken, environmentsId: environmentsId, - filesId: filesId, + path: path, recursive: recursive); return __httpRequest; @@ -196,7 +197,7 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent( context: global::Google.Gemini.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "EnvironmentsFilesMediaDownload", methodName: "EnvironmentsFilesMediaDownloadAsync", - pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"", + pathTemplate: "$\"/environments/{environmentsId}/files\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -230,7 +231,7 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent( context: global::Google.Gemini.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "EnvironmentsFilesMediaDownload", methodName: "EnvironmentsFilesMediaDownloadAsync", - pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"", + pathTemplate: "$\"/environments/{environmentsId}/files\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -271,7 +272,7 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent( context: global::Google.Gemini.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "EnvironmentsFilesMediaDownload", methodName: "EnvironmentsFilesMediaDownloadAsync", - pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"", + pathTemplate: "$\"/environments/{environmentsId}/files\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -319,7 +320,7 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent( context: global::Google.Gemini.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "EnvironmentsFilesMediaDownload", methodName: "EnvironmentsFilesMediaDownloadAsync", - pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"", + pathTemplate: "$\"/environments/{environmentsId}/files\"", httpMethod: "GET", baseUri: BaseUri, request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), @@ -341,7 +342,7 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent( context: global::Google.Gemini.AutoSDKRequestOptionsSupport.CreateHookContext( operationId: "EnvironmentsFilesMediaDownload", methodName: "EnvironmentsFilesMediaDownloadAsync", - pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"", + pathTemplate: "$\"/environments/{environmentsId}/files\"", 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/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaUpload.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaUpload.g.cs index 833a8d401..b4b21aedc 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaUpload.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaUpload.g.cs @@ -445,27 +445,27 @@ partial void ProcessEnvironmentsFilesMediaUploadResponseContent( /// /// /// - /// - /// Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`. - /// /// /// Optional. Whether to overwrite the destination file if it already exists. /// + /// + /// Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`. + /// /// 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 EnvironmentsFilesMediaUploadAsync( string environmentsId, string filesId, - bool? extract = default, bool? overwrite = default, + bool? extract = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.UploadEnvironmentFileRequest { - Extract = extract, Overwrite = overwrite, + Extract = extract, }; return await EnvironmentsFilesMediaUploadAsync( 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 b010e596b..07c525cf1 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` - /// /// /// Custom metadata to be associated with the file. /// /// /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto /// + /// + /// 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::System.Collections.Generic.IList? customMetadata = default, global::Google.Gemini.ChunkingConfig? chunkingConfig = 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, CustomMetadata = customMetadata, ChunkingConfig = chunkingConfig, + 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 16554c227..4c1ffdd88 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,15 +435,15 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent( /// Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document. /// /// - /// - /// Optional. Display name of the created document. - /// /// /// 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 /// + /// + /// Optional. Display name of the created document. + /// /// /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. /// @@ -452,18 +452,18 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent( /// public async global::System.Threading.Tasks.Task MediaUploadToFileSearchStoreAsync( string fileSearchStoresId, - string? displayName = default, global::System.Collections.Generic.IList? customMetadata = default, global::Google.Gemini.ChunkingConfig? chunkingConfig = default, + string? displayName = default, string? mimeType = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.UploadToFileSearchStoreRequest { - DisplayName = displayName, CustomMetadata = customMetadata, ChunkingConfig = chunkingConfig, + DisplayName = displayName, MimeType = mimeType, }; diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs index ca694e1c8..8d07f1e89 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs @@ -435,26 +435,26 @@ partial void ProcessModelsCountTokensResponseContent( /// 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. /// /// - /// - /// Request to generate a completion from the model. - /// /// /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set. /// + /// + /// Request to generate a completion from 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 ModelsCountTokensAsync( string modelsId, - global::Google.Gemini.GenerateContentRequest? generateContentRequest = default, global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.GenerateContentRequest? generateContentRequest = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.CountTokensRequest { - GenerateContentRequest = generateContentRequest, Contents = contents, + GenerateContentRequest = generateContentRequest, }; return await ModelsCountTokensAsync( 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 e2b67f854..1fae5f57e 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 @@ -440,28 +440,28 @@ partial void ProcessModelsEmbedContentResponseContent( /// /// 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. - /// /// /// 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. /// + /// + /// Configurations for the EmbedContent 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 ModelsEmbedContentAsync( string modelsId, string? model = default, - global::Google.Gemini.EmbedContentConfig? embedContentConfig = default, global::Google.Gemini.Content? content = 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, - EmbedContentConfig = embedContentConfig, Content = content, + EmbedContentConfig = embedContentConfig, }; return await ModelsEmbedContentAsync( 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 eac4af839..13cfc506a 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,71 +435,71 @@ 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. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { - CachedContent = cachedContent, - Contents = contents, ServiceTier = serviceTier, - Store = store, + Tools = tools, Labels = labels, - GenerationConfig = generationConfig, + Store = store, + Contents = contents, + CachedContent = cachedContent, + Model = model, + SafetySettings = safetySettings, ToolConfig = toolConfig, + GenerationConfig = generationConfig, SystemInstruction = systemInstruction, - SafetySettings = safetySettings, - Model = model, - Tools = tools, }; 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 1501e2e7b..25fc1bd3f 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,71 +439,71 @@ 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`. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { - CachedContent = cachedContent, - Contents = contents, ServiceTier = serviceTier, - Store = store, + Tools = tools, Labels = labels, - GenerationConfig = generationConfig, + Store = store, + Contents = contents, + CachedContent = cachedContent, + Model = model, + SafetySettings = safetySettings, ToolConfig = toolConfig, + GenerationConfig = generationConfig, SystemInstruction = systemInstruction, - SafetySettings = safetySettings, - Model = model, - Tools = tools, }; 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 d1c93e028..d7256c73c 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,71 +380,71 @@ 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`. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = 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 { - CachedContent = cachedContent, - Contents = contents, ServiceTier = serviceTier, - Store = store, + Tools = tools, Labels = labels, - GenerationConfig = generationConfig, + Store = store, + Contents = contents, + CachedContent = cachedContent, + Model = model, + SafetySettings = safetySettings, ToolConfig = toolConfig, + GenerationConfig = generationConfig, SystemInstruction = systemInstruction, - SafetySettings = safetySettings, - Model = model, - Tools = tools, }; 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 f9165360f..c344520c3 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,14 +438,8 @@ 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 /// /// - /// - /// Tuned model as a source for training a new 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. - /// - /// - /// 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. 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. /// /// /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. @@ -459,40 +453,46 @@ partial void ProcessTunedModelsCreateResponseContent( /// /// Optional. A short description of this model. /// + /// + /// Tuned model as a source for training a new model. + /// + /// + /// 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. + /// /// /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// - /// - /// 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. + /// + /// 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. /// /// 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, - global::Google.Gemini.TunedModelSource? tunedModelSource = default, - int? topK = default, - float? temperature = default, + float? topP = default, string? displayName = default, global::System.Collections.Generic.IList? readerProjectNumbers = default, global::Google.Gemini.TuningTask? tuningTask = default, string? description = default, + global::Google.Gemini.TunedModelSource? tunedModelSource = default, + float? temperature = default, string? baseModel = default, - float? topP = default, + int? topK = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.TunedModel { - TunedModelSource = tunedModelSource, - TopK = topK, - Temperature = temperature, + TopP = topP, DisplayName = displayName, ReaderProjectNumbers = readerProjectNumbers, TuningTask = tuningTask, Description = description, + TunedModelSource = tunedModelSource, + Temperature = temperature, BaseModel = baseModel, - TopP = topP, + TopK = topK, }; 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 7e62f8264..11316f83e 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,71 +435,71 @@ 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. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { - CachedContent = cachedContent, - Contents = contents, ServiceTier = serviceTier, - Store = store, + Tools = tools, Labels = labels, - GenerationConfig = generationConfig, + Store = store, + Contents = contents, + CachedContent = cachedContent, + Model = model, + SafetySettings = safetySettings, ToolConfig = toolConfig, + GenerationConfig = generationConfig, SystemInstruction = systemInstruction, - SafetySettings = safetySettings, - Model = model, - Tools = tools, }; 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 45f267fbb..ac1d9742e 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,14 +448,8 @@ partial void ProcessTunedModelsPatchResponseContent( /// /// /// - /// - /// Tuned model as a source for training a new 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. - /// - /// - /// 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. 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. /// /// /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. @@ -469,11 +463,17 @@ partial void ProcessTunedModelsPatchResponseContent( /// /// Optional. A short description of this model. /// + /// + /// Tuned model as a source for training a new model. + /// + /// + /// 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. + /// /// /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// - /// - /// 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. + /// + /// 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. /// /// 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, - global::Google.Gemini.TunedModelSource? tunedModelSource = default, - int? topK = default, - float? temperature = default, + float? topP = default, string? displayName = default, global::System.Collections.Generic.IList? readerProjectNumbers = default, global::Google.Gemini.TuningTask? tuningTask = default, string? description = default, + global::Google.Gemini.TunedModelSource? tunedModelSource = default, + float? temperature = default, string? baseModel = default, - float? topP = default, + int? topK = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.TunedModel { - TunedModelSource = tunedModelSource, - TopK = topK, - Temperature = temperature, + TopP = topP, DisplayName = displayName, ReaderProjectNumbers = readerProjectNumbers, TuningTask = tuningTask, Description = description, + TunedModelSource = tunedModelSource, + Temperature = temperature, BaseModel = baseModel, - TopP = topP, + TopK = topK, }; 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 16e8bc986..f327145de 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,31 +435,31 @@ 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. /// /// /// Required. The role granted by this 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. - /// /// 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 TunedModelsPermissionsCreateAsync( string tunedModelsId, + string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.Permission { + EmailAddress = emailAddress, GranteeType = granteeType, Role = role, - EmailAddress = emailAddress, }; return await TunedModelsPermissionsCreateAsync( 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 c60e3947c..86e3e1547 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,15 +458,15 @@ 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. /// /// /// Required. The role granted by this 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. - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -474,17 +474,17 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent( string tunedModelsId, string permissionsId, string? updateMask = default, + string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.Permission { + EmailAddress = emailAddress, GranteeType = granteeType, Role = role, - EmailAddress = emailAddress, }; return await TunedModelsPermissionsPatchAsync( 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 442fab4ed..9006c7ce2 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,71 +439,71 @@ 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`. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { - CachedContent = cachedContent, - Contents = contents, ServiceTier = serviceTier, - Store = store, + Tools = tools, Labels = labels, - GenerationConfig = generationConfig, + Store = store, + Contents = contents, + CachedContent = cachedContent, + Model = model, + SafetySettings = safetySettings, ToolConfig = toolConfig, + GenerationConfig = generationConfig, SystemInstruction = systemInstruction, - SafetySettings = safetySettings, - Model = model, - Tools = tools, }; 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 2b37c137f..4dea772d5 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,71 +380,71 @@ 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`. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = 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 { - CachedContent = cachedContent, - Contents = contents, ServiceTier = serviceTier, - Store = store, + Tools = tools, Labels = labels, - GenerationConfig = generationConfig, + Store = store, + Contents = contents, + CachedContent = cachedContent, + Model = model, + SafetySettings = safetySettings, ToolConfig = toolConfig, + GenerationConfig = generationConfig, SystemInstruction = systemInstruction, - SafetySettings = safetySettings, - Model = model, - Tools = tools, }; var __enumerable = TunedModelsStreamGenerateContentAsStreamAsync( 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 aaaee9555..57c14c420 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 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. 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. - /// /// /// 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. 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. 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 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( - string? newSessionExpireTime = default, - string? expireTime = default, global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup = default, - int? uses = default, string? fieldMask = default, + int? uses = default, + string? expireTime = 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 ab18d69ea..cbab1b744 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 /// /// /// - /// - /// Required. The user-defined name of this 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. + /// + /// Stats about the 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. + /// + /// 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. /// + /// + /// Required. The user-defined name of this batch. + /// /// 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, - string? displayName = default, - global::Google.Gemini.EmbedContentBatchOutput? output = default, - string? model = default, - global::Google.Gemini.EmbedContentBatchStats? batchStats = default, global::Google.Gemini.InputEmbedContentConfig? inputConfig = default, + global::Google.Gemini.EmbedContentBatchStats? batchStats = default, + string? model = default, + global::Google.Gemini.EmbedContentBatchOutput? output = default, string? priority = default, + string? displayName = 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 2c9459ad8..f6d7c1a65 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 @@ -44,20 +44,20 @@ public partial interface IGeminiClient /// /// Configures the input to the batch request. /// - /// - /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. - /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Stats about the batch. /// /// /// 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}`. + /// /// /// 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. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -66,11 +66,11 @@ public partial interface IGeminiClient string batchesId, string? updateMask = default, global::Google.Gemini.InputConfig? inputConfig = default, - global::Google.Gemini.GenerateContentBatchOutput? output = default, - string? model = default, + global::Google.Gemini.BatchStats? batchStats = default, string? priority = default, + string? model = default, string? displayName = default, - global::Google.Gemini.BatchStats? batchStats = default, + global::Google.Gemini.GenerateContentBatchOutput? 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.CachedContentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs index 6dda9a474..0fbef9b3f 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,29 +31,29 @@ public partial interface IGeminiClient /// /// Creates CachedContent resource. /// + /// + /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` + /// + /// + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// + /// Metadata on the usage of the cached content. + /// + /// + /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response + /// /// /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. /// /// /// 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. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. - /// - /// - /// Metadata on the usage of the cached content. - /// /// /// Input only. New TTL for this resource, input only. /// - /// - /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` - /// - /// - /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response - /// - /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// /// /// Optional. Input only. Immutable. The content to cache. @@ -62,14 +62,14 @@ public partial interface IGeminiClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CachedContentsCreateAsync( + string? model = default, + string? displayName = default, + global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, + global::System.Collections.Generic.IList? tools = default, string? expireTime = default, global::Google.Gemini.Content? systemInstruction = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, string? ttl = default, - string? model = default, - global::System.Collections.Generic.IList? tools = default, - string? displayName = default, + global::Google.Gemini.ToolConfig? toolConfig = 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 2032cf0c1..8d49bf8bb 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,29 +41,29 @@ public partial interface IGeminiClient /// /// /// + /// + /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` + /// + /// + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// + /// Metadata on the usage of the cached content. + /// + /// + /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response + /// /// /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. /// /// /// 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. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. - /// - /// - /// Metadata on the usage of the cached content. - /// /// /// Input only. New TTL for this resource, input only. /// - /// - /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` - /// - /// - /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response - /// - /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// /// /// Optional. Input only. Immutable. The content to cache. @@ -74,14 +74,14 @@ public partial interface IGeminiClient global::System.Threading.Tasks.Task CachedContentsPatchAsync( string cachedContentsId, string? updateMask = default, + string? model = default, + string? displayName = default, + global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, + global::System.Collections.Generic.IList? tools = default, string? expireTime = default, global::Google.Gemini.Content? systemInstruction = default, - global::Google.Gemini.ToolConfig? toolConfig = default, - global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, string? ttl = default, - string? model = default, - global::System.Collections.Generic.IList? tools = default, - string? displayName = default, + global::Google.Gemini.ToolConfig? toolConfig = 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 8736c8ace..5ec2145a9 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,23 +36,23 @@ 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. /// /// /// Required. The role granted by this 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. - /// /// 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 CorporaPermissionsCreateAsync( string corporaId, + string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = 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 674f1dfea..deb5b41f4 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,15 +46,15 @@ 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. /// /// /// Required. The role granted by this 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. - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -62,9 +62,9 @@ public partial interface IGeminiClient string permissionsId, string corporaId, string? updateMask = default, + string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = 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 759475c9b..130cf46d1 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,55 +36,55 @@ 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. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = 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 c393faab3..bb6abfa15 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,55 +36,55 @@ 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`. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = 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 af22c1db3..5d8c6c2a4 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,55 +22,55 @@ 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`. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = 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 33e2fb29d..fea51f423 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,8 +31,8 @@ public partial interface IGeminiClient /// /// Creates an environment. /// - /// - /// Network egress mode. + /// + /// Network egress configuration for the environment. /// /// /// Sources to be mounted into the environment. @@ -40,17 +40,17 @@ public partial interface IGeminiClient /// /// 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 configuration for the environment. + /// + /// Network egress mode. /// /// 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::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist = default, global::System.Collections.Generic.IList? sources = default, string? fromEnvironment = default, - global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist = default, + global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsFilesMediaDownload.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsFilesMediaDownload.g.cs index 2ef11c7c3..12ae15db3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsFilesMediaDownload.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsFilesMediaDownload.g.cs @@ -10,16 +10,16 @@ public partial interface IGeminiClient /// /// /// - /// + /// /// /// 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 EnvironmentsFilesMediaDownloadAsync( string environmentsId, - string filesId, int? pageSize = default, string? pageToken = default, + string? path = default, bool? recursive = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); @@ -29,16 +29,16 @@ public partial interface IGeminiClient /// /// /// - /// + /// /// /// 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> EnvironmentsFilesMediaDownloadAsResponseAsync( string environmentsId, - string filesId, int? pageSize = default, string? pageToken = default, + string? path = default, bool? recursive = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsFilesMediaUpload.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsFilesMediaUpload.g.cs index 11d0866bd..bd4dfe393 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsFilesMediaUpload.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsFilesMediaUpload.g.cs @@ -41,20 +41,20 @@ public partial interface IGeminiClient /// /// /// - /// - /// Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`. - /// /// /// Optional. Whether to overwrite the destination file if it already exists. /// + /// + /// Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`. + /// /// 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 EnvironmentsFilesMediaUploadAsync( string environmentsId, string filesId, - bool? extract = default, bool? overwrite = default, + bool? extract = 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 f429f2598..e0b568c26 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` - /// /// /// Custom metadata to be associated with the file. /// /// /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto /// + /// + /// 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::System.Collections.Generic.IList? customMetadata = default, global::Google.Gemini.ChunkingConfig? chunkingConfig = 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 490b53614..f3066d852 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,15 +36,15 @@ public partial interface IGeminiClient /// Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document. /// /// - /// - /// Optional. Display name of the created document. - /// /// /// 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 /// + /// + /// Optional. Display name of the created document. + /// /// /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. /// @@ -53,9 +53,9 @@ public partial interface IGeminiClient /// global::System.Threading.Tasks.Task MediaUploadToFileSearchStoreAsync( string fileSearchStoresId, - string? displayName = default, global::System.Collections.Generic.IList? customMetadata = default, global::Google.Gemini.ChunkingConfig? chunkingConfig = default, + string? displayName = default, string? mimeType = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsCountTokens.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsCountTokens.g.cs index e386931b0..a6d6ed6c6 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsCountTokens.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsCountTokens.g.cs @@ -36,19 +36,19 @@ public partial interface IGeminiClient /// 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. /// /// - /// - /// Request to generate a completion from the model. - /// /// /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set. /// + /// + /// Request to generate a completion from 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 ModelsCountTokensAsync( string modelsId, - global::Google.Gemini.GenerateContentRequest? generateContentRequest = default, global::System.Collections.Generic.IList? contents = default, + global::Google.Gemini.GenerateContentRequest? generateContentRequest = 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 93f07c6e4..2f5b194ef 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 @@ -41,20 +41,20 @@ public partial interface IGeminiClient /// /// 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. - /// /// /// 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. /// + /// + /// Configurations for the EmbedContent 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 ModelsEmbedContentAsync( string modelsId, string? model = default, - global::Google.Gemini.EmbedContentConfig? embedContentConfig = default, global::Google.Gemini.Content? content = 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 0289043dd..a649f8531 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,55 +36,55 @@ 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. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = 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 67ac178aa..aaa96b17a 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,55 +36,55 @@ 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`. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = 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 3ce1d09a6..ad98e54c6 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,55 +22,55 @@ 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`. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = 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 3da044b2f..97c8701d2 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,14 +36,8 @@ 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 /// /// - /// - /// Tuned model as a source for training a new 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. - /// - /// - /// 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. 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. /// /// /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. @@ -57,26 +51,32 @@ public partial interface IGeminiClient /// /// Optional. A short description of this model. /// + /// + /// Tuned model as a source for training a new model. + /// + /// + /// 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. + /// /// /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// - /// - /// 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. + /// + /// 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. /// /// 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, - global::Google.Gemini.TunedModelSource? tunedModelSource = default, - int? topK = default, - float? temperature = default, + float? topP = default, string? displayName = default, global::System.Collections.Generic.IList? readerProjectNumbers = default, global::Google.Gemini.TuningTask? tuningTask = default, string? description = default, + global::Google.Gemini.TunedModelSource? tunedModelSource = default, + float? temperature = default, string? baseModel = default, - float? topP = default, + int? topK = 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 299ecb3b7..46e565c8e 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,55 +36,55 @@ 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. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = 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 50aa6a8c5..5b919ae9d 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,14 +41,8 @@ public partial interface IGeminiClient /// /// /// - /// - /// Tuned model as a source for training a new 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. - /// - /// - /// 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. 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. /// /// /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. @@ -62,11 +56,17 @@ public partial interface IGeminiClient /// /// Optional. A short description of this model. /// + /// + /// Tuned model as a source for training a new model. + /// + /// + /// 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. + /// /// /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// - /// - /// 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. + /// + /// 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. /// /// 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, - global::Google.Gemini.TunedModelSource? tunedModelSource = default, - int? topK = default, - float? temperature = default, + float? topP = default, string? displayName = default, global::System.Collections.Generic.IList? readerProjectNumbers = default, global::Google.Gemini.TuningTask? tuningTask = default, string? description = default, + global::Google.Gemini.TunedModelSource? tunedModelSource = default, + float? temperature = default, string? baseModel = default, - float? topP = default, + int? topK = 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 5c5f33eb0..37eaa38e7 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,23 +36,23 @@ 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. /// /// /// Required. The role granted by this 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. - /// /// 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 TunedModelsPermissionsCreateAsync( string tunedModelsId, + string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = 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 9e3910e82..6e5c8adbb 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,15 +46,15 @@ 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. /// /// /// Required. The role granted by this 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. - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -62,9 +62,9 @@ public partial interface IGeminiClient string tunedModelsId, string permissionsId, string? updateMask = default, + string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = 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 dbeda6787..4650ae6c4 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,55 +36,55 @@ 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`. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = 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 06e5a2aad..2352f58c4 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,55 +22,55 @@ 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`. /// /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// /// 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, - string? cachedContent = default, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, - bool? store = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.Dictionary? labels = default, - global::Google.Gemini.GenerationConfig? generationConfig = default, + bool? store = default, + global::System.Collections.Generic.IList? contents = default, + string? cachedContent = default, + string? model = default, + global::System.Collections.Generic.IList? safetySettings = default, global::Google.Gemini.ToolConfig? toolConfig = default, + global::Google.Gemini.GenerationConfig? generationConfig = default, global::Google.Gemini.Content? systemInstruction = default, - global::System.Collections.Generic.IList? safetySettings = default, - string? model = default, - global::System.Collections.Generic.IList? tools = 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 bd3b1f077..498731e56 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs @@ -11,581 +11,581 @@ namespace Google.Gemini DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] { + typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeJsonConverter), + + typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter), typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter), - 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.EmbedContentConfigTaskTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SourceTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SourceTypeNullableJsonConverter), + + typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter), + + typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter), typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter), typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter), - typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter), typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeJsonConverter), typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullableJsonConverter), typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter), typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter), - - typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter), - - typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter), - - typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter), - - typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter), - - typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter), - - typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter), - 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.AutomaticActivityDetectionStartOfSpeechSensitivityJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityNullableJsonConverter), - 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.FileStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusJsonConverter), + typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullableJsonConverter), typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter), typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SourceTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SourceTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter), + + typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter), + + typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter), 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.Model))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - #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.Hyperparameters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContentUsageMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Corpus))] + [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(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InputConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchStats))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchState), TypeInfoPropertyName = "GenerateContentBatchState2")] - [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(global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponsePart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponseBlob))] + [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.ReviewSnippet))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievalConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LatLng))] + [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.CountTokensRequest))] + [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.GenerateContentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingPassageId))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclaration))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Schema))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [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::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UploadEnvironmentFileResponse))] - [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.EnvironmentNetworkEgressAllowlist))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclarationBehavior), TypeInfoPropertyName = "FunctionDeclarationBehavior2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EgressRule))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RegisterFilesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.File))] - [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::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.InputEmbedContentConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentRequests))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponse))] - [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.FunctionResponseScheduling), TypeInfoPropertyName = "FunctionResponseScheduling2")] - [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.ModalityTokenCount))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentResponse))] - [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.ModelStatus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UsageMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PromptFeedback))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListFilesResponse))] - [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.CachedContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbeddingUsageMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ContentEmbedding))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingMetadata))] + [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::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleAiGenerativelanguageV1betaGroundingSupport))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievalMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SearchEntryPoint))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LogprobsResultCandidate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] + [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.StringList))] + [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")] #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VideoMetadata))] #pragma warning restore CS0618 - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Status))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [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.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(double))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Part))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Blob))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PartMediaProcessing), TypeInfoPropertyName = "PartMediaProcessing2")] + [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::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WordInfo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbeddingUsageMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SearchEntryPoint))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ExecutableCode))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TopCandidates))] - [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::Google.Gemini.FileData))] - [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.Image))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfigThinkingLevel), TypeInfoPropertyName = "ThinkingConfigThinkingLevel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleMaps))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecutionResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] + [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.Model))] + [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.EmbedContentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleSearch))] + [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.CitationSource))] + [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.BatchEmbedContentsResponse))] [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.ImageConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AsyncBatchEmbedContentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatch))] + [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.Operation))] + [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.WebSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RegisterFilesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.File))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunkStringList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModelStatus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModelStatusModelStage), TypeInfoPropertyName = "ModelStatusModelStage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedRequest))] + [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.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.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.Content))] - [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::System.Collections.Generic.IList))] - [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.ListCorporaResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySetting))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySettingThreshold), TypeInfoPropertyName = "SafetySettingThreshold2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySettingCategory), TypeInfoPropertyName = "SafetySettingCategory2")] - [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.InlinedEmbedContentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentRequest))] - [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.SessionResumptionConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeechConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VoiceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentConfigTaskType), TypeInfoPropertyName = "EmbedContentConfigTaskType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModelSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CustomLongRunningOperation))] - [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::Google.Gemini.GoogleMaps))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecution))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleSearchRetrieval))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleSearch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlContext))] + [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.McpServer))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclaration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.StringList))] - [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.ContextWindowCompressionConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SlidingWindow))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingPassageId))] - [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.GetEnvironmentFilesResponse))] - [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::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::Google.Gemini.ModalityTokenCountModality), TypeInfoPropertyName = "ModalityTokenCountModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Interval))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TranslationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.StreamableHttpTransport))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponseBlob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileSearchStore))] - [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.Permission))] - [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.ImportFileRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentFileType), TypeInfoPropertyName = "EnvironmentFileType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PrebuiltVoiceConfig))] - [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.GroundingMetadata))] - [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::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.Blob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PartMediaProcessing), TypeInfoPropertyName = "PartMediaProcessing2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeechMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecutionResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ExecutableCode))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingAttribution))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AttributionSourceId))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [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.SemanticRetrieverChunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCallToolType), TypeInfoPropertyName = "ToolCallToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModelState), TypeInfoPropertyName = "TunedModelState2")] - [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::Google.Gemini.SafetyRating))] + [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.CreateEnvironmentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentNetworkEgressAllowlist))] + [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.InputEmbedContentConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Candidate))] + [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.CitationMetadata))] + [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.LogprobsResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlContextMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CandidateFinishReason), TypeInfoPropertyName = "CandidateFinishReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VideoFileMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievalConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LatLng))] - [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.BatchEmbedContentsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetection))] - [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.TranslationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UsageMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PromptFeedback))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateFileResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningTask))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Hyperparameters))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Dataset))] [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::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.SearchTypes))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Maps))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PlaceAnswerSources))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCallingConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormat))] - [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.ImageResponseFormatMimeType), TypeInfoPropertyName = "ImageResponseFormatMimeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatImageSize), TypeInfoPropertyName = "ImageResponseFormatImageSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UsageMetadataServiceTier), TypeInfoPropertyName = "UsageMetadataServiceTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WebSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.HistoryConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCallToolType), TypeInfoPropertyName = "ToolCallToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SourceType), TypeInfoPropertyName = "SourceType2")] + [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.BatchGenerateContentRequest))] + [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.ModalityTokenCount))] + [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.CachedContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PromptFeedbackBlockReason), TypeInfoPropertyName = "PromptFeedbackBlockReason2")] + [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::Google.Gemini.TunedModelSource))] + [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.SafetySetting))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WordInfo))] + [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.SchemaType), TypeInfoPropertyName = "SchemaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [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.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.UploadEnvironmentFileRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentConfigTaskType), TypeInfoPropertyName = "EmbedContentConfigTaskType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentFileType), TypeInfoPropertyName = "EnvironmentFileType2")] + [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.DynamicRetrievalConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedResponses))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ExecutableCodeLanguage), TypeInfoPropertyName = "ExecutableCodeLanguage2")] [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.DocumentState), TypeInfoPropertyName = "DocumentState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentResponses))] - #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.CreateFileRequest))] - [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.ExecutableCodeLanguage), TypeInfoPropertyName = "ExecutableCodeLanguage2")] + [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.GetEnvironmentFilesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecutionResultOutcome), TypeInfoPropertyName = "CodeExecutionResultOutcome2")] + [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::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.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.Web))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedResponses))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolResponseToolType), TypeInfoPropertyName = "ToolResponseToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchStats))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchState), TypeInfoPropertyName = "EmbedContentBatchState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecutionResultOutcome), TypeInfoPropertyName = "CodeExecutionResultOutcome2")] - [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.ModelStatusModelStage), TypeInfoPropertyName = "ModelStatusModelStage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunkStringList))] - [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.BatchGenerateContentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BidiGenerateContentSetup))] - [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.CitationSource))] - [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.ListEnvironmentsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SlidingWindow))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Environment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentResponse))] - [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.UploadEnvironmentFileRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ReviewSnippet))] - [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.CreateFileResponse))] - [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.Operation))] - [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.WhiteSpaceConfig))] - [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.ListPermissionsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclarationBehavior), TypeInfoPropertyName = "FunctionDeclarationBehavior2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TransferOwnershipResponse))] - [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.EnvironmentStatus), TypeInfoPropertyName = "EnvironmentStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BidiGenerateContentSetup))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ContextWindowCompressionConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioTranscriptionConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RealtimeInputConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.HistoryConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SessionResumptionConfig))] + #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.AudioTranscriptionConfigMode), TypeInfoPropertyName = "AudioTranscriptionConfigMode2")] + #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.PrebuiltVoiceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment))] + #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.Status))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfigThinkingLevel), TypeInfoPropertyName = "ThinkingConfigThinkingLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListFilesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlMetadataUrlRetrievalStatus), TypeInfoPropertyName = "UrlMetadataUrlRetrievalStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RegisterFilesRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.StreamableHttpTransport))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySettingThreshold), TypeInfoPropertyName = "SafetySettingThreshold2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySettingCategory), TypeInfoPropertyName = "SafetySettingCategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VoiceConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ResponseFormatConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormat))] + [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.TopCandidates))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContentUsageMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetection))] + [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.VideoFileMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TransferOwnershipResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Image))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Maps))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Web))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TransferOwnershipRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DocumentState), TypeInfoPropertyName = "DocumentState2")] + [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.ImageConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeechConfig))] + [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.GenerationConfigMediaResolution), TypeInfoPropertyName = "GenerationConfigMediaResolution2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AsyncBatchEmbedContentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GeneratedFileState), TypeInfoPropertyName = "GeneratedFileState2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImportFileRequest))] + [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.AuthToken))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TransferOwnershipRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Empty))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WhiteSpaceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModalityTokenCountModality), TypeInfoPropertyName = "ModalityTokenCountModality2")] + [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.InlinedRequests))] + [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.TunedModel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModelState), TypeInfoPropertyName = "TunedModelState2")] + [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.CustomLongRunningOperation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DynamicRetrievalConfigMode), TypeInfoPropertyName = "DynamicRetrievalConfigMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateFileRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UsageMetadataServiceTier), TypeInfoPropertyName = "UsageMetadataServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatMimeType), TypeInfoPropertyName = "ImageResponseFormatMimeType2")] + [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.ImageResponseFormatDelivery), TypeInfoPropertyName = "ImageResponseFormatDelivery2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UploadEnvironmentFileResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCallingConfigMode), TypeInfoPropertyName = "FunctionCallingConfigMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SourceType), TypeInfoPropertyName = "SourceType2")] + [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::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Empty))] + [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::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))] - [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 eb2949301..427eb59e3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContextTypes.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContextTypes.g.cs @@ -33,1159 +33,1159 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.Model? Type0 { get; set; } + public global::Google.Gemini.TextResponseFormat? Type0 { get; set; } /// /// /// - public string? Type1 { get; set; } + public global::Google.Gemini.TextResponseFormatMimeType? Type1 { get; set; } /// /// /// - public int? Type2 { get; set; } + public object? Type2 { get; set; } /// /// /// - public float? Type3 { get; set; } + public global::Google.Gemini.GenerateContentBatch? Type3 { get; set; } /// /// /// - public bool? Type4 { get; set; } + public global::Google.Gemini.InputConfig? Type4 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5 { get; set; } + public string? Type5 { get; set; } /// /// /// - public global::Google.Gemini.LanguageAuto? Type6 { get; set; } + public global::Google.Gemini.BatchStats? Type6 { get; set; } /// /// /// - public global::Google.Gemini.Hyperparameters? Type7 { get; set; } + public global::Google.Gemini.GenerateContentBatchState? Type7 { get; set; } /// /// /// - public global::Google.Gemini.CachedContentUsageMetadata? Type8 { get; set; } + public global::Google.Gemini.GenerateContentBatchOutput? Type8 { get; set; } /// /// /// - public global::Google.Gemini.Corpus? Type9 { get; set; } + public global::Google.Gemini.FunctionResponsePart? Type9 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentBatch? Type10 { get; set; } + public global::Google.Gemini.FunctionResponseBlob? Type10 { get; set; } /// /// /// - public global::Google.Gemini.InputConfig? Type11 { get; set; } + public global::Google.Gemini.PlaceAnswerSources? Type11 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentBatchOutput? Type12 { get; set; } + public global::System.Collections.Generic.IList? Type12 { get; set; } /// /// /// - public global::Google.Gemini.BatchStats? Type13 { get; set; } + public global::Google.Gemini.ReviewSnippet? Type13 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentBatchState? Type14 { get; set; } + public global::Google.Gemini.RetrievalConfig? Type14 { get; set; } /// /// /// - public global::Google.Gemini.GoogleAiGenerativelanguageV1betaGroundingSupport? Type15 { get; set; } + public global::Google.Gemini.LatLng? Type15 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type16 { get; set; } + public global::Google.Gemini.ListPermissionsResponse? Type16 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type17 { get; set; } + public global::System.Collections.Generic.IList? Type17 { get; set; } /// /// /// - public global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? Type18 { get; set; } + public global::Google.Gemini.Permission? Type18 { get; set; } /// /// /// - public global::Google.Gemini.Schema? Type19 { get; set; } + public global::Google.Gemini.CountTokensRequest? Type19 { get; set; } /// /// /// - public double? Type20 { get; set; } + public global::System.Collections.Generic.IList? Type20 { get; set; } /// /// /// - public object? Type21 { get; set; } + public global::Google.Gemini.Content? Type21 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type22 { get; set; } + public global::Google.Gemini.GenerateContentRequest? Type22 { get; set; } /// /// /// - public global::Google.Gemini.SchemaType? Type23 { get; set; } + public global::Google.Gemini.GroundingPassageId? Type23 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type24 { get; set; } + public int? Type24 { get; set; } /// /// /// - public global::Google.Gemini.UploadEnvironmentFileResponse? Type25 { get; set; } + public global::Google.Gemini.FunctionDeclaration? Type25 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type26 { get; set; } + public global::Google.Gemini.Schema? Type26 { get; set; } /// /// /// - public global::Google.Gemini.EnvironmentFile? Type27 { get; set; } + public global::Google.Gemini.FunctionDeclarationBehavior? Type27 { get; set; } /// /// /// - public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? Type28 { get; set; } + public global::Google.Gemini.EgressRule? Type28 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type29 { get; set; } + public global::System.Collections.Generic.Dictionary? Type29 { get; set; } /// /// /// - public global::Google.Gemini.EgressRule? Type30 { get; set; } + public global::Google.Gemini.EmbedContentResponse? Type30 { get; set; } /// /// /// - public global::Google.Gemini.RegisterFilesResponse? Type31 { get; set; } + public global::Google.Gemini.EmbeddingUsageMetadata? Type31 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type32 { get; set; } + public global::Google.Gemini.ContentEmbedding? Type32 { get; set; } /// /// /// - public global::Google.Gemini.File? Type33 { get; set; } + public global::Google.Gemini.GroundingMetadata? Type33 { get; set; } /// /// /// - public global::Google.Gemini.CreateEnvironmentRequest? Type34 { get; set; } + public global::System.Collections.Generic.IList? Type34 { get; set; } /// /// /// - public global::Google.Gemini.CreateEnvironmentRequestNetworkMode? Type35 { get; set; } + public global::Google.Gemini.GroundingChunk? Type35 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type36 { get; set; } + public global::System.Collections.Generic.IList? Type36 { get; set; } /// /// /// - public global::Google.Gemini.Source? Type37 { get; set; } + public global::System.Collections.Generic.IList? Type37 { get; set; } /// /// /// - public global::Google.Gemini.InputEmbedContentConfig? Type38 { get; set; } + public global::Google.Gemini.GoogleAiGenerativelanguageV1betaGroundingSupport? Type38 { get; set; } /// /// /// - public global::Google.Gemini.InlinedEmbedContentRequests? Type39 { get; set; } + public global::Google.Gemini.RetrievalMetadata? Type39 { get; set; } /// /// /// - public global::Google.Gemini.FunctionResponse? Type40 { get; set; } + public global::Google.Gemini.SearchEntryPoint? Type40 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type41 { get; set; } + public global::Google.Gemini.LogprobsResultCandidate? Type41 { get; set; } /// /// /// - public global::Google.Gemini.FunctionResponsePart? Type42 { get; set; } + public float? Type42 { get; set; } /// /// /// - public global::Google.Gemini.FunctionResponseScheduling? Type43 { get; set; } + public global::Google.Gemini.V1mainMediaResolution? Type43 { get; set; } /// /// /// - public global::Google.Gemini.CountTokensResponse? Type44 { get; set; } + public global::Google.Gemini.V1mainMediaResolutionLevel? Type44 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type45 { get; set; } + public global::Google.Gemini.StringList? Type45 { get; set; } /// /// /// - public global::Google.Gemini.ModalityTokenCount? Type46 { get; set; } + public global::Google.Gemini.AudioResponseFormat? Type46 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentResponse? Type47 { get; set; } + public global::Google.Gemini.AudioResponseFormatMimeType? Type47 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type48 { get; set; } + public global::Google.Gemini.AudioResponseFormatDelivery? Type48 { get; set; } /// /// /// - public global::Google.Gemini.Candidate? Type49 { get; set; } + public global::Google.Gemini.VideoMetadata? Type49 { get; set; } /// /// /// - public global::Google.Gemini.ModelStatus? Type50 { get; set; } + public double? Type50 { get; set; } /// /// /// - public global::Google.Gemini.UsageMetadata? Type51 { get; set; } + public global::Google.Gemini.Part? Type51 { get; set; } /// /// /// - public global::Google.Gemini.PromptFeedback? Type52 { get; set; } + public global::Google.Gemini.FileData? Type52 { get; set; } /// /// /// - public global::Google.Gemini.ListFilesResponse? Type53 { get; set; } + public global::Google.Gemini.Blob? Type53 { get; set; } /// /// /// - public global::Google.Gemini.ListCachedContentsResponse? Type54 { get; set; } + public global::Google.Gemini.FunctionCall? Type54 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type55 { get; set; } + public global::Google.Gemini.PartMediaProcessing? Type55 { get; set; } /// /// /// - public global::Google.Gemini.CachedContent? Type56 { get; set; } + public global::Google.Gemini.ToolResponse? Type56 { get; set; } /// /// /// - public global::Google.Gemini.VideoMetadata? Type57 { get; set; } + public global::Google.Gemini.SpeechMetadata? Type57 { get; set; } /// /// /// - public global::Google.Gemini.Status? Type58 { get; set; } + public global::Google.Gemini.AudioTranscription? Type58 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type59 { get; set; } + public global::Google.Gemini.ToolCall? Type59 { get; set; } /// /// /// - public global::Google.Gemini.AudioTranscriptionConfig? Type60 { get; set; } + public global::Google.Gemini.ExecutableCode? Type60 { get; set; } /// /// /// - public global::Google.Gemini.LanguageHints? Type61 { get; set; } + public global::Google.Gemini.FunctionResponse? Type61 { get; set; } /// /// /// - public global::Google.Gemini.AudioTranscriptionConfigMode? Type62 { get; set; } + public byte[]? Type62 { get; set; } /// /// /// - public global::Google.Gemini.MultiSpeakerVoiceConfig? Type63 { get; set; } + public global::Google.Gemini.CodeExecutionResult? Type63 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type64 { get; set; } + public bool? Type64 { get; set; } /// /// /// - public global::Google.Gemini.SpeakerVoiceConfig? Type65 { get; set; } + public global::Google.Gemini.ListModelsResponse? Type65 { get; set; } /// /// /// - public global::Google.Gemini.AudioTranscription? Type66 { get; set; } + public global::System.Collections.Generic.IList? Type66 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type67 { get; set; } + public global::Google.Gemini.Model? Type67 { get; set; } /// /// /// - public global::Google.Gemini.WordInfo? Type68 { get; set; } + public global::Google.Gemini.BatchEmbedContentsRequest? Type68 { get; set; } /// /// /// - public global::Google.Gemini.EmbeddingUsageMetadata? Type69 { get; set; } + public global::System.Collections.Generic.IList? Type69 { get; set; } /// /// /// - public global::Google.Gemini.SearchEntryPoint? Type70 { get; set; } + public global::Google.Gemini.EmbedContentRequest? Type70 { get; set; } /// /// /// - public byte[]? Type71 { get; set; } + public global::Google.Gemini.GoogleSearch? Type71 { get; set; } /// /// /// - public global::Google.Gemini.TopCandidates? Type72 { get; set; } + public global::Google.Gemini.Interval? Type72 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type73 { get; set; } + public global::Google.Gemini.SearchTypes? Type73 { get; set; } /// /// /// - public global::Google.Gemini.LogprobsResultCandidate? Type74 { get; set; } + public global::Google.Gemini.CitationSource? Type74 { get; set; } /// /// /// - public global::Google.Gemini.FileData? Type75 { get; set; } + public global::Google.Gemini.EmbedContentBatchOutput? Type75 { get; set; } /// /// /// - public global::Google.Gemini.GeneratedFile? Type76 { get; set; } + public global::Google.Gemini.InlinedEmbedContentResponses? Type76 { get; set; } /// /// /// - public global::Google.Gemini.GeneratedFileState? Type77 { get; set; } + public global::Google.Gemini.BatchEmbedContentsResponse? Type77 { get; set; } /// /// /// - public global::Google.Gemini.Image? Type78 { get; set; } + public global::System.Collections.Generic.IList? Type78 { get; set; } /// /// /// - public global::Google.Gemini.ThinkingConfig? Type79 { get; set; } + public global::System.Collections.Generic.IList? Type79 { get; set; } /// /// /// - public global::Google.Gemini.ThinkingConfigThinkingLevel? Type80 { get; set; } + public global::Google.Gemini.InlinedEmbedContentResponse? Type80 { get; set; } /// /// /// - public global::Google.Gemini.GoogleMaps? Type81 { get; set; } + public global::Google.Gemini.AsyncBatchEmbedContentRequest? Type81 { get; set; } /// /// /// - public global::Google.Gemini.ImageSearch? Type82 { get; set; } + public global::Google.Gemini.EmbedContentBatch? Type82 { get; set; } /// /// /// - public global::Google.Gemini.BatchEmbedContentsResponse? Type83 { get; set; } + public global::Google.Gemini.ListOperationsResponse? Type83 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type84 { get; set; } + public global::System.Collections.Generic.IList? Type84 { get; set; } /// /// /// - public global::Google.Gemini.ContentEmbedding? Type85 { get; set; } + public global::Google.Gemini.Operation? Type85 { get; set; } /// /// /// - public global::Google.Gemini.ImageConfig? Type86 { get; set; } + public global::Google.Gemini.InlinedEmbedContentRequests? Type86 { get; set; } /// /// /// - public global::Google.Gemini.TuningExample? Type87 { get; set; } + public global::System.Collections.Generic.IList? Type87 { get; set; } /// /// /// - public global::Google.Gemini.Content? Type88 { get; set; } + public global::Google.Gemini.InlinedEmbedContentRequest? Type88 { get; set; } /// /// /// - public global::Google.Gemini.ToolConfig? Type89 { get; set; } + public global::Google.Gemini.WebSearch? Type89 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type90 { get; set; } + public global::Google.Gemini.ImageSearch? Type90 { get; set; } /// /// /// - public global::Google.Gemini.Tool? Type91 { get; set; } + public global::Google.Gemini.RegisterFilesResponse? Type91 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type92 { get; set; } + public global::System.Collections.Generic.IList? Type92 { get; set; } /// /// /// - public global::Google.Gemini.InlinedRequests? Type93 { get; set; } + public global::Google.Gemini.File? Type93 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type94 { get; set; } + public global::Google.Gemini.GroundingChunkStringList? Type94 { get; set; } /// /// /// - public global::Google.Gemini.InlinedRequest? Type95 { get; set; } + public global::Google.Gemini.ModelStatus? Type95 { get; set; } /// /// /// - public global::Google.Gemini.ListCorporaResponse? Type96 { get; set; } + public global::Google.Gemini.ModelStatusModelStage? Type96 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type97 { get; set; } + public global::Google.Gemini.InlinedRequest? Type97 { get; set; } /// /// /// - public global::Google.Gemini.SafetySetting? Type98 { get; set; } + public global::System.Collections.Generic.IList? Type98 { get; set; } /// /// /// - public global::Google.Gemini.SafetySettingThreshold? Type99 { get; set; } + public global::System.Collections.Generic.IList? Type99 { get; set; } /// /// /// - public global::Google.Gemini.SafetySettingCategory? Type100 { get; set; } + public global::Google.Gemini.ListGeneratedFilesResponse? Type100 { get; set; } /// /// /// - public global::Google.Gemini.PromptFeedbackBlockReason? Type101 { get; set; } + public global::System.Collections.Generic.IList? Type101 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type102 { get; set; } + public global::Google.Gemini.GeneratedFile? Type102 { get; set; } /// /// /// - public global::Google.Gemini.SafetyRating? Type103 { get; set; } + public global::Google.Gemini.TuningExamples? Type103 { get; set; } /// /// /// - public global::Google.Gemini.InlinedEmbedContentRequest? Type104 { get; set; } + public global::System.Collections.Generic.IList? Type104 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentRequest? Type105 { get; set; } + public global::Google.Gemini.TuningExample? Type105 { get; set; } /// /// /// - public global::Google.Gemini.LogprobsResult? Type106 { get; set; } + public global::Google.Gemini.Tool? Type106 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type107 { get; set; } + public global::Google.Gemini.GoogleMaps? Type107 { get; set; } /// /// /// - public global::Google.Gemini.SessionResumptionConfig? Type108 { get; set; } + public global::Google.Gemini.ComputerUse? Type108 { get; set; } /// /// /// - public global::Google.Gemini.SpeechConfig? Type109 { get; set; } + public global::Google.Gemini.GoogleSearchRetrieval? Type109 { get; set; } /// /// /// - public global::Google.Gemini.VoiceConfig? Type110 { get; set; } + public global::Google.Gemini.FileSearch? Type110 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentConfig? Type111 { get; set; } + public global::System.Collections.Generic.IList? Type111 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentConfigTaskType? Type112 { get; set; } + public global::Google.Gemini.UrlContext? Type112 { get; set; } /// /// /// - public global::Google.Gemini.TunedModelSource? Type113 { get; set; } + public global::Google.Gemini.CodeExecution? Type113 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type114 { get; set; } + public global::System.Collections.Generic.IList? Type114 { get; set; } /// /// /// - public global::Google.Gemini.CustomLongRunningOperation? Type115 { get; set; } + public global::Google.Gemini.McpServer? Type115 { get; set; } /// /// /// - public global::Google.Gemini.CountTokensRequest? Type116 { get; set; } + public global::Google.Gemini.TuningSnapshot? Type116 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentRequest? Type117 { get; set; } + public global::Google.Gemini.SafetyRating? Type117 { get; set; } /// /// /// - public global::Google.Gemini.ComputerUse? Type118 { get; set; } + public global::Google.Gemini.SafetyRatingCategory? Type118 { get; set; } /// /// /// - public global::Google.Gemini.CodeExecution? Type119 { get; set; } + public global::Google.Gemini.SafetyRatingProbability? Type119 { get; set; } /// /// /// - public global::Google.Gemini.GoogleSearchRetrieval? Type120 { get; set; } + public global::Google.Gemini.CreateEnvironmentRequest? Type120 { get; set; } /// /// /// - public global::Google.Gemini.GoogleSearch? Type121 { get; set; } + public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? Type121 { get; set; } /// /// /// - public global::Google.Gemini.FileSearch? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public global::Google.Gemini.UrlContext? Type123 { get; set; } + public global::Google.Gemini.Source? Type123 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type124 { get; set; } + public global::Google.Gemini.CreateEnvironmentRequestNetworkMode? Type124 { get; set; } /// /// /// - public global::Google.Gemini.McpServer? Type125 { get; set; } + public global::Google.Gemini.InputEmbedContentConfig? Type125 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type126 { get; set; } + public global::Google.Gemini.Candidate? Type126 { get; set; } /// /// /// - public global::Google.Gemini.FunctionDeclaration? Type127 { get; set; } + public global::Google.Gemini.CandidateFinishReason? Type127 { get; set; } /// /// /// - public global::Google.Gemini.StringList? Type128 { get; set; } + public global::System.Collections.Generic.IList? Type128 { get; set; } /// /// /// - public global::Google.Gemini.ListTunedModelsResponse? Type129 { get; set; } + public global::Google.Gemini.CitationMetadata? Type129 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type130 { get; set; } + public global::System.Collections.Generic.IList? Type130 { get; set; } /// /// /// - public global::Google.Gemini.TunedModel? Type131 { get; set; } + public global::Google.Gemini.GroundingAttribution? Type131 { get; set; } /// /// /// - public global::Google.Gemini.ContextWindowCompressionConfig? Type132 { get; set; } + public global::Google.Gemini.LogprobsResult? Type132 { get; set; } /// /// /// - public global::Google.Gemini.SlidingWindow? Type133 { get; set; } + public global::Google.Gemini.UrlContextMetadata? Type133 { get; set; } /// /// /// - public global::Google.Gemini.GroundingPassageId? Type134 { get; set; } + public global::Google.Gemini.TranslationConfig? Type134 { get; set; } /// /// /// - public global::Google.Gemini.UploadToFileSearchStoreRequest? Type135 { get; set; } + public global::Google.Gemini.GenerateContentResponse? Type135 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type136 { get; set; } + public global::System.Collections.Generic.IList? Type136 { get; set; } /// /// /// - public global::Google.Gemini.CustomMetadata? Type137 { get; set; } + public global::Google.Gemini.UsageMetadata? Type137 { get; set; } /// /// /// - public global::Google.Gemini.ChunkingConfig? Type138 { get; set; } + public global::Google.Gemini.PromptFeedback? Type138 { get; set; } /// /// /// - public global::Google.Gemini.GetEnvironmentFilesResponse? Type139 { get; set; } + public global::Google.Gemini.CreateFileResponse? Type139 { get; set; } /// /// /// - public global::Google.Gemini.ToolResponse? Type140 { get; set; } + public global::Google.Gemini.TuningTask? Type140 { get; set; } /// /// /// - public global::Google.Gemini.ToolResponseToolType? Type141 { get; set; } + public global::Google.Gemini.Hyperparameters? Type141 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type142 { get; set; } + public global::Google.Gemini.Dataset? Type142 { get; set; } /// /// /// - public global::Google.Gemini.ComputerUseDisabledSafetyPolicie? Type143 { get; set; } + public global::System.Collections.Generic.IList? Type143 { get; set; } /// /// /// - public global::Google.Gemini.ComputerUseEnvironment? Type144 { get; set; } + public global::Google.Gemini.ToolCallToolType? Type144 { get; set; } /// /// /// - public global::Google.Gemini.ModalityTokenCountModality? Type145 { get; set; } + public global::Google.Gemini.SourceType? Type145 { get; set; } /// /// /// - public global::Google.Gemini.Interval? Type146 { get; set; } + public global::Google.Gemini.RetrievedContext? Type146 { get; set; } /// /// /// - public global::Google.Gemini.TranslationConfig? Type147 { get; set; } + public global::System.Collections.Generic.IList? Type147 { get; set; } /// /// /// - public global::Google.Gemini.StreamableHttpTransport? Type148 { get; set; } + public global::Google.Gemini.GroundingChunkCustomMetadata? Type148 { get; set; } /// /// /// - public global::Google.Gemini.FunctionResponseBlob? Type149 { get; set; } + public global::Google.Gemini.BatchGenerateContentRequest? Type149 { get; set; } /// /// /// - public global::Google.Gemini.FileSearchStore? Type150 { get; set; } + public global::Google.Gemini.CountTokensResponse? Type150 { get; set; } /// /// /// - public global::Google.Gemini.V1mainMediaResolution? Type151 { get; set; } + public global::System.Collections.Generic.IList? Type151 { get; set; } /// /// /// - public global::Google.Gemini.V1mainMediaResolutionLevel? Type152 { get; set; } + public global::Google.Gemini.ModalityTokenCount? Type152 { get; set; } /// /// /// - public global::Google.Gemini.Permission? Type153 { get; set; } + public global::Google.Gemini.ListCachedContentsResponse? Type153 { get; set; } /// /// /// - public global::Google.Gemini.PermissionGranteeType? Type154 { get; set; } + public global::System.Collections.Generic.IList? Type154 { get; set; } /// /// /// - public global::Google.Gemini.PermissionRole? Type155 { get; set; } + public global::Google.Gemini.CachedContent? Type155 { get; set; } /// /// /// - public global::Google.Gemini.ImportFileRequest? Type156 { get; set; } + public global::Google.Gemini.PromptFeedbackBlockReason? Type156 { get; set; } /// /// /// - public global::Google.Gemini.EnvironmentFileType? Type157 { get; set; } + public global::Google.Gemini.ComputerUseEnvironment? Type157 { get; set; } /// /// /// - public global::Google.Gemini.PrebuiltVoiceConfig? Type158 { get; set; } + public global::System.Collections.Generic.IList? Type158 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type159 { get; set; } + public global::Google.Gemini.ComputerUseDisabledSafetyPolicie? Type159 { get; set; } /// /// /// - public global::Google.Gemini.Part? Type160 { get; set; } + public global::Google.Gemini.TunedModelSource? Type160 { get; set; } /// /// /// - public global::Google.Gemini.GroundingMetadata? Type161 { get; set; } + public global::Google.Gemini.GenerateContentRequestServiceTier? Type161 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type162 { get; set; } + public global::System.Collections.Generic.IList? Type162 { get; set; } /// /// /// - public global::Google.Gemini.GroundingChunk? Type163 { get; set; } + public global::System.Collections.Generic.IList? Type163 { get; set; } /// /// /// - public global::Google.Gemini.RetrievalMetadata? Type164 { get; set; } + public global::Google.Gemini.SafetySetting? Type164 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type165 { get; set; } + public global::Google.Gemini.ToolConfig? Type165 { get; set; } /// /// /// - public global::Google.Gemini.Blob? Type166 { get; set; } + public global::Google.Gemini.GenerationConfig? Type166 { get; set; } /// /// /// - public global::Google.Gemini.PartMediaProcessing? Type167 { get; set; } + public global::Google.Gemini.WordInfo? Type167 { get; set; } /// /// /// - public global::Google.Gemini.SpeechMetadata? Type168 { get; set; } + public global::System.Collections.Generic.IList? Type168 { get; set; } /// /// /// - public global::Google.Gemini.ToolCall? Type169 { get; set; } + public global::Google.Gemini.Corpus? Type169 { get; set; } /// /// /// - public global::Google.Gemini.CodeExecutionResult? Type170 { get; set; } + public global::Google.Gemini.SchemaType? Type170 { get; set; } /// /// /// - public global::Google.Gemini.FunctionCall? Type171 { get; set; } + public global::System.Collections.Generic.Dictionary? Type171 { get; set; } /// /// /// - public global::Google.Gemini.ExecutableCode? Type172 { get; set; } + public global::System.Collections.Generic.IList? Type172 { get; set; } /// /// /// - public global::Google.Gemini.GroundingAttribution? Type173 { get; set; } + public global::Google.Gemini.AttributionSourceId? Type173 { get; set; } /// /// /// - public global::Google.Gemini.AttributionSourceId? Type174 { get; set; } + public global::Google.Gemini.SemanticRetrieverChunk? Type174 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type175 { get; set; } + public global::Google.Gemini.UploadToFileSearchStoreRequest? Type175 { get; set; } /// /// /// - public global::Google.Gemini.ListGeneratedFilesResponse? Type176 { get; set; } + public global::System.Collections.Generic.IList? Type176 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type177 { get; set; } + public global::Google.Gemini.CustomMetadata? Type177 { get; set; } /// /// /// - public global::Google.Gemini.SemanticRetrieverChunk? Type178 { get; set; } + public global::Google.Gemini.ChunkingConfig? Type178 { get; set; } /// /// /// - public global::Google.Gemini.ToolCallToolType? Type179 { get; set; } + public global::Google.Gemini.UploadEnvironmentFileRequest? Type179 { get; set; } /// /// /// - public global::Google.Gemini.TunedModelState? Type180 { get; set; } + public global::Google.Gemini.EmbedContentConfig? Type180 { get; set; } /// /// /// - public global::Google.Gemini.TuningTask? Type181 { get; set; } + public global::Google.Gemini.EmbedContentConfigTaskType? Type181 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type182 { get; set; } + public global::Google.Gemini.EnvironmentFile? Type182 { get; set; } /// /// /// - public global::Google.Gemini.CitationMetadata? Type183 { get; set; } + public global::Google.Gemini.EnvironmentFileType? Type183 { get; set; } /// /// /// - public global::Google.Gemini.UrlContextMetadata? Type184 { get; set; } + public global::Google.Gemini.FunctionResponseScheduling? Type184 { get; set; } /// /// /// - public global::Google.Gemini.CandidateFinishReason? Type185 { get; set; } + public global::System.Collections.Generic.IList? Type185 { get; set; } /// /// /// - public global::Google.Gemini.VideoFileMetadata? Type186 { get; set; } + public global::Google.Gemini.DynamicRetrievalConfig? Type186 { get; set; } /// /// /// - public global::Google.Gemini.InlinedResponse? Type187 { get; set; } + public global::Google.Gemini.InlinedResponses? Type187 { get; set; } /// /// /// - public global::Google.Gemini.RetrievalConfig? Type188 { get; set; } + public global::Google.Gemini.ExecutableCodeLanguage? Type188 { get; set; } /// /// /// - public global::Google.Gemini.LatLng? Type189 { get; set; } + public global::Google.Gemini.ListDocumentsResponse? Type189 { get; set; } /// /// /// - public global::Google.Gemini.AudioResponseFormat? Type190 { get; set; } + public global::System.Collections.Generic.IList? Type190 { get; set; } /// /// /// - public global::Google.Gemini.AudioResponseFormatMimeType? Type191 { get; set; } + public global::Google.Gemini.Document? Type191 { get; set; } /// /// /// - public global::Google.Gemini.AudioResponseFormatDelivery? Type192 { get; set; } + public global::Google.Gemini.MultiSpeakerVoiceConfig? Type192 { get; set; } /// /// /// - public global::Google.Gemini.BatchEmbedContentsRequest? Type193 { get; set; } + public global::System.Collections.Generic.IList? Type193 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type194 { get; set; } + public global::Google.Gemini.SpeakerVoiceConfig? Type194 { get; set; } /// /// /// - public global::Google.Gemini.AutomaticActivityDetection? Type195 { get; set; } + public global::Google.Gemini.GetEnvironmentFilesResponse? Type195 { get; set; } /// /// /// - public global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? Type196 { get; set; } + public global::System.Collections.Generic.IList? Type196 { get; set; } /// /// /// - public global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? Type197 { get; set; } + public global::Google.Gemini.CodeExecutionResultOutcome? Type197 { get; set; } /// /// /// - public global::Google.Gemini.Dataset? Type198 { get; set; } + public global::Google.Gemini.ListFileSearchStoresResponse? Type198 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type199 { get; set; } + public global::System.Collections.Generic.IList? Type199 { get; set; } /// /// /// - public global::Google.Gemini.TuningSnapshot? Type200 { get; set; } + public global::Google.Gemini.FileSearchStore? Type200 { get; set; } /// /// /// - public global::Google.Gemini.RealtimeInputConfig? Type201 { get; set; } + public global::System.Collections.Generic.IList? Type201 { get; set; } /// /// /// - public global::Google.Gemini.RealtimeInputConfigActivityHandling? Type202 { get; set; } + public global::Google.Gemini.UrlMetadata? Type202 { get; set; } /// /// /// - public global::Google.Gemini.RealtimeInputConfigTurnCoverage? Type203 { get; set; } + public global::Google.Gemini.ToolResponseToolType? Type203 { get; set; } /// /// /// - public global::Google.Gemini.SearchTypes? Type204 { get; set; } + public global::System.Collections.Generic.IList? Type204 { get; set; } /// /// /// - public global::Google.Gemini.Maps? Type205 { get; set; } + public global::Google.Gemini.InlinedResponse? Type205 { get; set; } /// /// /// - public global::Google.Gemini.PlaceAnswerSources? Type206 { get; set; } + public global::Google.Gemini.EmbedContentBatchStats? Type206 { get; set; } /// /// /// - public global::Google.Gemini.FunctionCallingConfig? Type207 { get; set; } + public global::Google.Gemini.EmbedContentBatchState? Type207 { get; set; } /// /// /// - public global::Google.Gemini.ImageResponseFormat? Type208 { get; set; } + public global::Google.Gemini.SlidingWindow? Type208 { get; set; } /// /// /// - public global::Google.Gemini.ImageResponseFormatDelivery? Type209 { get; set; } + public global::Google.Gemini.Environment? Type209 { get; set; } /// /// /// - public global::Google.Gemini.ImageResponseFormatAspectRatio? Type210 { get; set; } + public global::Google.Gemini.EnvironmentNetworkMode? Type210 { get; set; } /// /// /// - public global::Google.Gemini.ImageResponseFormatMimeType? Type211 { get; set; } + public global::Google.Gemini.EnvironmentStatus? Type211 { get; set; } /// /// /// - public global::Google.Gemini.ImageResponseFormatImageSize? Type212 { get; set; } + public global::Google.Gemini.BidiGenerateContentSetup? Type212 { get; set; } /// /// /// - public global::Google.Gemini.UsageMetadataServiceTier? Type213 { get; set; } + public global::Google.Gemini.ContextWindowCompressionConfig? Type213 { get; set; } /// /// /// - public global::Google.Gemini.WebSearch? Type214 { get; set; } + public global::Google.Gemini.AudioTranscriptionConfig? Type214 { get; set; } /// /// /// - public global::Google.Gemini.HistoryConfig? Type215 { get; set; } + public global::Google.Gemini.RealtimeInputConfig? Type215 { get; set; } /// /// /// - public global::Google.Gemini.ListDocumentsResponse? Type216 { get; set; } + public global::Google.Gemini.HistoryConfig? Type216 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type217 { get; set; } + public global::Google.Gemini.SessionResumptionConfig? Type217 { get; set; } /// /// /// - public global::Google.Gemini.Document? Type218 { get; set; } + public global::Google.Gemini.LanguageAuto? Type218 { get; set; } /// /// /// - public global::Google.Gemini.DocumentState? Type219 { get; set; } + public global::Google.Gemini.AudioTranscriptionConfigMode? Type219 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentBatchOutput? Type220 { get; set; } + public global::Google.Gemini.LanguageHints? Type220 { get; set; } /// /// /// - public global::Google.Gemini.InlinedEmbedContentResponses? Type221 { get; set; } + public global::Google.Gemini.PrebuiltVoiceConfig? Type221 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentRequestTaskType? Type222 { get; set; } + public global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? Type222 { get; set; } /// /// /// - public global::Google.Gemini.CreateFileRequest? Type223 { get; set; } + public global::Google.Gemini.EmbedContentRequestTaskType? Type223 { get; set; } /// /// /// - public global::Google.Gemini.DynamicRetrievalConfig? Type224 { get; set; } + public global::Google.Gemini.Status? Type224 { get; set; } /// /// /// - public global::Google.Gemini.DynamicRetrievalConfigMode? Type225 { get; set; } + public global::System.Collections.Generic.IList? Type225 { get; set; } /// /// /// - public global::Google.Gemini.ExecutableCodeLanguage? Type226 { get; set; } + public global::Google.Gemini.ThinkingConfig? Type226 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type227 { get; set; } + public global::Google.Gemini.ThinkingConfigThinkingLevel? Type227 { get; set; } /// /// /// - public global::Google.Gemini.UrlMetadata? Type228 { get; set; } + public global::Google.Gemini.ListFilesResponse? Type228 { get; set; } /// /// /// - public global::Google.Gemini.RetrievedContext? Type229 { get; set; } + public global::Google.Gemini.UrlMetadataUrlRetrievalStatus? Type229 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type230 { get; set; } + public global::Google.Gemini.RegisterFilesRequest? Type230 { get; set; } /// /// /// - public global::Google.Gemini.GroundingChunkCustomMetadata? Type231 { get; set; } + public global::Google.Gemini.StreamableHttpTransport? Type231 { get; set; } /// /// /// - public global::Google.Gemini.Web? Type232 { get; set; } + public global::Google.Gemini.SafetySettingThreshold? Type232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type233 { get; set; } + public global::Google.Gemini.SafetySettingCategory? Type233 { get; set; } /// /// /// - public global::Google.Gemini.InlinedEmbedContentResponse? Type234 { get; set; } + public global::Google.Gemini.VoiceConfig? Type234 { get; set; } /// /// /// - public global::Google.Gemini.InlinedResponses? Type235 { get; set; } + public global::Google.Gemini.ResponseFormatConfig? Type235 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type236 { get; set; } + public global::Google.Gemini.ImageResponseFormat? Type236 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentBatch? Type237 { get; set; } + public global::Google.Gemini.ListEnvironmentsResponse? Type237 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentBatchStats? Type238 { get; set; } + public global::System.Collections.Generic.IList? Type238 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentBatchState? Type239 { get; set; } + public global::Google.Gemini.TopCandidates? Type239 { get; set; } /// /// /// - public global::Google.Gemini.CodeExecutionResultOutcome? Type240 { get; set; } + public global::System.Collections.Generic.IList? Type240 { get; set; } /// /// /// - public global::Google.Gemini.SafetyRatingCategory? Type241 { get; set; } + public global::Google.Gemini.CachedContentUsageMetadata? Type241 { get; set; } /// /// /// - public global::Google.Gemini.SafetyRatingProbability? Type242 { get; set; } + public global::Google.Gemini.AutomaticActivityDetection? Type242 { get; set; } /// /// /// - public global::Google.Gemini.ModelStatusModelStage? Type243 { get; set; } + public global::Google.Gemini.RealtimeInputConfigActivityHandling? Type243 { get; set; } /// /// /// - public global::Google.Gemini.GroundingChunkStringList? Type244 { get; set; } + public global::Google.Gemini.RealtimeInputConfigTurnCoverage? Type244 { get; set; } /// /// /// - public global::Google.Gemini.ListModelsResponse? Type245 { get; set; } + public global::Google.Gemini.VideoFileMetadata? Type245 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type246 { get; set; } + public global::Google.Gemini.TransferOwnershipResponse? Type246 { get; set; } /// /// /// - public global::Google.Gemini.BatchGenerateContentRequest? Type247 { get; set; } + public global::Google.Gemini.Image? Type247 { get; set; } /// /// /// - public global::Google.Gemini.BidiGenerateContentSetup? Type248 { get; set; } + public global::Google.Gemini.Maps? Type248 { get; set; } /// /// /// - public global::Google.Gemini.GenerationConfig? Type249 { get; set; } + public global::Google.Gemini.Web? Type249 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type250 { get; set; } + public global::Google.Gemini.TransferOwnershipRequest? Type250 { get; set; } /// /// /// - public global::Google.Gemini.CitationSource? Type251 { get; set; } + public global::Google.Gemini.DocumentState? Type251 { get; set; } /// /// /// - public global::Google.Gemini.FileState? Type252 { get; set; } + public global::Google.Gemini.ListCorporaResponse? Type252 { get; set; } /// /// /// - public global::Google.Gemini.FileSource? Type253 { get; set; } + public global::System.Collections.Generic.IList? Type253 { get; set; } /// /// /// - public global::Google.Gemini.ListEnvironmentsResponse? Type254 { get; set; } + public global::Google.Gemini.ImageConfig? Type254 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type255 { get; set; } + public global::Google.Gemini.SpeechConfig? Type255 { get; set; } /// /// /// - public global::Google.Gemini.Environment? Type256 { get; set; } + public global::Google.Gemini.GenerationConfigMediaResolution? Type256 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentResponse? Type257 { get; set; } + public global::System.Collections.Generic.IList? Type257 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentRequestServiceTier? Type258 { get; set; } + public global::Google.Gemini.GenerationConfigResponseModalitie? Type258 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type259 { get; set; } + public global::Google.Gemini.GeneratedFileState? Type259 { get; set; } /// /// /// - public global::Google.Gemini.UploadEnvironmentFileRequest? Type260 { get; set; } + public global::Google.Gemini.ImportFileRequest? Type260 { get; set; } /// /// /// - public global::Google.Gemini.ReviewSnippet? Type261 { get; set; } + public global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? Type261 { get; set; } /// /// /// - public global::Google.Gemini.EnvironmentStatus? Type262 { get; set; } + public global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? Type262 { get; set; } /// /// /// - public global::Google.Gemini.EnvironmentNetworkMode? Type263 { get; set; } + public global::Google.Gemini.AuthToken? Type263 { get; set; } /// /// /// - public global::Google.Gemini.CreateFileResponse? Type264 { get; set; } + public global::Google.Gemini.WhiteSpaceConfig? Type264 { get; set; } /// /// /// - public global::Google.Gemini.ListOperationsResponse? Type265 { get; set; } + public global::Google.Gemini.ModalityTokenCountModality? Type265 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type266 { get; set; } + public global::Google.Gemini.PermissionGranteeType? Type266 { get; set; } /// /// /// - public global::Google.Gemini.Operation? Type267 { get; set; } + public global::Google.Gemini.PermissionRole? Type267 { get; set; } /// /// /// - public global::Google.Gemini.ListFileSearchStoresResponse? Type268 { get; set; } + public global::System.Collections.Generic.IList? Type268 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type269 { get; set; } + public global::Google.Gemini.InlinedRequests? Type269 { get; set; } /// /// /// - public global::Google.Gemini.WhiteSpaceConfig? Type270 { get; set; } + public global::System.Collections.Generic.IList? Type270 { get; set; } /// /// /// - public global::Google.Gemini.TuningExamples? Type271 { get; set; } + public global::System.Collections.Generic.IList? Type271 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type272 { get; set; } + public global::Google.Gemini.TunedModel? Type272 { get; set; } /// /// /// - public global::Google.Gemini.ListPermissionsResponse? Type273 { get; set; } + public global::Google.Gemini.TunedModelState? Type273 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type274 { get; set; } + public global::System.Collections.Generic.IList? Type274 { get; set; } /// /// /// - public global::Google.Gemini.FunctionDeclarationBehavior? Type275 { get; set; } + public global::Google.Gemini.FunctionCallingConfig? Type275 { get; set; } /// /// /// - public global::Google.Gemini.TransferOwnershipResponse? Type276 { get; set; } + public global::Google.Gemini.CustomLongRunningOperation? Type276 { get; set; } /// /// /// - public global::Google.Gemini.TextResponseFormat? Type277 { get; set; } + public global::Google.Gemini.DynamicRetrievalConfigMode? Type277 { get; set; } /// /// /// - public global::Google.Gemini.TextResponseFormatMimeType? Type278 { get; set; } + public global::Google.Gemini.CreateFileRequest? Type278 { get; set; } /// /// /// - public global::Google.Gemini.UrlMetadataUrlRetrievalStatus? Type279 { get; set; } + public global::Google.Gemini.UsageMetadataServiceTier? Type279 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type280 { get; set; } + public global::Google.Gemini.ImageResponseFormatMimeType? Type280 { get; set; } /// /// /// - public global::Google.Gemini.RegisterFilesRequest? Type281 { get; set; } + public global::Google.Gemini.ImageResponseFormatAspectRatio? Type281 { get; set; } /// /// /// - public global::Google.Gemini.ResponseFormatConfig? Type282 { get; set; } + public global::Google.Gemini.ImageResponseFormatImageSize? Type282 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type283 { get; set; } + public global::Google.Gemini.ImageResponseFormatDelivery? Type283 { get; set; } /// /// /// - public global::Google.Gemini.GenerationConfigResponseModalitie? Type284 { get; set; } + public global::Google.Gemini.UploadEnvironmentFileResponse? Type284 { get; set; } /// /// /// - public global::Google.Gemini.GenerationConfigMediaResolution? Type285 { get; set; } + public global::Google.Gemini.FunctionCallingConfigMode? Type285 { get; set; } /// /// /// - public global::Google.Gemini.AsyncBatchEmbedContentRequest? Type286 { get; set; } + public global::Google.Gemini.FileSource? Type286 { get; set; } /// /// /// - public global::Google.Gemini.AuthToken? Type287 { get; set; } + public global::Google.Gemini.FileState? Type287 { get; set; } /// /// /// - public global::Google.Gemini.TransferOwnershipRequest? Type288 { get; set; } + public global::System.Collections.Generic.IList? Type288 { get; set; } /// /// /// @@ -1193,120 +1193,120 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.FunctionCallingConfigMode? Type290 { get; set; } + public global::Google.Gemini.ListTunedModelsResponse? Type290 { get; set; } /// /// /// - public global::Google.Gemini.SourceType? Type291 { get; set; } + public global::System.Collections.Generic.IList? Type291 { 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; } /// /// /// @@ -1314,94 +1314,94 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - 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 4a7c9257d..fac6fb8f6 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.JsonPropertyName("sampleRate")] public int? SampleRate { get; set; } + /// + /// Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bitRate")] + public int? BitRate { 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. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("bitRate")] - public int? BitRate { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -49,25 +49,25 @@ public sealed partial class AudioResponseFormat /// /// Optional. Sample rate in Hz. /// - /// - /// Optional. The delivery mode for the audio output. - /// /// /// Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). /// + /// + /// Optional. The delivery mode for the audio output. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AudioResponseFormat( global::Google.Gemini.AudioResponseFormatMimeType? mimeType, int? sampleRate, - global::Google.Gemini.AudioResponseFormatDelivery? delivery, - int? bitRate) + int? bitRate, + global::Google.Gemini.AudioResponseFormatDelivery? delivery) { this.MimeType = mimeType; this.SampleRate = sampleRate; - this.Delivery = delivery; this.BitRate = bitRate; + 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 4006e9472..a8cbbaf2e 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 @@ -14,18 +14,18 @@ public sealed partial class AudioTranscription [global::System.Text.Json.Serialization.JsonPropertyName("text")] public string? Text { 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; } - /// /// 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; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -38,23 +38,23 @@ public sealed partial class AudioTranscription /// /// Required. The transcription text of this audio segment. /// - /// - /// 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. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AudioTranscription( string? text, - global::System.Collections.Generic.IList? words, - string? speakerLabel) + string? speakerLabel, + global::System.Collections.Generic.IList? words) { this.Text = text; - this.Words = words; this.SpeakerLabel = speakerLabel; + this.Words = words; } /// 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 6c0e224b5..e9278defe 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,22 +11,18 @@ namespace Google.Gemini public sealed partial class AudioTranscriptionConfig { /// - /// Optional. Configures speaker diarization. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("diarization")] - public bool? Diarization { get; set; } - - /// - /// Optional. Configures word-level timestamp generation. + /// Indicates the language of the audio should be automatically detected. /// - [global::System.Text.Json.Serialization.JsonPropertyName("wordTimestamp")] - public bool? WordTimestamp { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("languageAuto")] + [global::System.Obsolete("This property marked as deprecated.")] + public global::Google.Gemini.LanguageAuto? LanguageAuto { 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. + /// Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms. /// - [global::System.Text.Json.Serialization.JsonPropertyName("languageCodes")] - public global::System.Collections.Generic.IList? LanguageCodes { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("adaptationPhrases")] + [global::System.Obsolete("This property marked as deprecated.")] + public global::System.Collections.Generic.IList? AdaptationPhrases { get; set; } /// /// Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon). @@ -35,32 +31,36 @@ public sealed partial class AudioTranscriptionConfig public global::System.Collections.Generic.IList? CustomVocabulary { get; set; } /// - /// Provides hints to the model about possible languages present in the audio. + /// Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection. /// - [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("languageCodes")] + public global::System.Collections.Generic.IList? LanguageCodes { get; set; } /// - /// Indicates the language of the audio should be automatically detected. + /// 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("languageAuto")] - [global::System.Obsolete("This property marked as deprecated.")] - public global::Google.Gemini.LanguageAuto? LanguageAuto { get; set; } + [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; } /// - /// Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms. + /// Optional. Configures word-level timestamp generation. /// - [global::System.Text.Json.Serialization.JsonPropertyName("adaptationPhrases")] + [global::System.Text.Json.Serialization.JsonPropertyName("wordTimestamp")] + public bool? WordTimestamp { 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::System.Collections.Generic.IList? AdaptationPhrases { get; set; } + public global::Google.Gemini.LanguageHints? LanguageHints { 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; } /// /// 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 speaker diarization. - /// - /// - /// Optional. Configures word-level timestamp generation. + /// + /// Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon). /// /// /// 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 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 word-level timestamp generation. + /// + /// + /// Optional. Configures speaker diarization. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AudioTranscriptionConfig( - bool? diarization, - bool? wordTimestamp, - global::System.Collections.Generic.IList? languageCodes, global::System.Collections.Generic.IList? customVocabulary, - global::Google.Gemini.AudioTranscriptionConfigMode? mode) + global::System.Collections.Generic.IList? languageCodes, + global::Google.Gemini.AudioTranscriptionConfigMode? mode, + bool? wordTimestamp, + bool? diarization) { - this.Diarization = diarization; - this.WordTimestamp = wordTimestamp; - this.LanguageCodes = languageCodes; this.CustomVocabulary = customVocabulary; + this.LanguageCodes = languageCodes; this.Mode = mode; + this.WordTimestamp = wordTimestamp; + this.Diarization = diarization; } /// 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 05a5e511a..ceb124da1 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,10 +9,16 @@ namespace Google.Gemini public sealed partial class AuthToken { /// - /// 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. + /// 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("newSessionExpireTime")] - public string? NewSessionExpireTime { get; set; } + [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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fieldMask")] + public string? FieldMask { get; set; } /// /// Output only. Identifier. The token itself.
@@ -21,18 +27,6 @@ public sealed partial class AuthToken [global::System.Text.Json.Serialization.JsonPropertyName("name")] public string? Name { get; set; } - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("expireTime")] - public string? ExpireTime { 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. 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. /// @@ -40,10 +34,16 @@ public sealed partial class AuthToken public int? Uses { 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. + /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("fieldMask")] - public string? FieldMask { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("expireTime")] + public string? ExpireTime { 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. + /// + [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. /// - /// - /// 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. + /// + /// 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. /// /// /// Output only. Identifier. The token itself.
/// Included only in responses /// - /// - /// 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. - /// - /// - /// 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 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. 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 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( - string? newSessionExpireTime, - string? name, - string? expireTime, global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup, + string? fieldMask, + string? name, int? uses, - string? fieldMask) + string? expireTime, + string? newSessionExpireTime) { - this.NewSessionExpireTime = newSessionExpireTime; - this.Name = name; - this.ExpireTime = expireTime; this.BidiGenerateContentSetup = bidiGenerateContentSetup; - this.Uses = uses; this.FieldMask = fieldMask; + this.Name = name; + this.Uses = uses; + this.ExpireTime = expireTime; + 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 664eaeba5..1f8d8d55f 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 @@ -8,13 +8,6 @@ namespace Google.Gemini /// public sealed partial class AutomaticActivityDetection { - /// - /// Optional. Determines how likely detected speech is ended. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("endOfSpeechSensitivity")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter))] - public global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? EndOfSpeechSensitivity { get; set; } - /// /// Optional. Determines how likely speech is to be detected. /// @@ -22,24 +15,31 @@ public sealed partial class AutomaticActivityDetection [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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("silenceDurationMs")] - public int? SilenceDurationMs { 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. 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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("silenceDurationMs")] + public int? SilenceDurationMs { get; set; } + /// /// Optional. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals. /// [global::System.Text.Json.Serialization.JsonPropertyName("disabled")] public bool? Disabled { get; set; } + /// + /// Optional. Determines how likely detected speech is ended. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("endOfSpeechSensitivity")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter))] + public global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? EndOfSpeechSensitivity { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -49,36 +49,36 @@ public sealed partial class AutomaticActivityDetection /// /// Initializes a new instance of the class. /// - /// - /// Optional. Determines how likely detected speech is ended. - /// /// /// 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. 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. 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. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals. /// + /// + /// Optional. Determines how likely detected speech is ended. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AutomaticActivityDetection( - global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? endOfSpeechSensitivity, global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? startOfSpeechSensitivity, - int? silenceDurationMs, int? prefixPaddingMs, - bool? disabled) + int? silenceDurationMs, + bool? disabled, + global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? endOfSpeechSensitivity) { - this.EndOfSpeechSensitivity = endOfSpeechSensitivity; this.StartOfSpeechSensitivity = startOfSpeechSensitivity; - this.SilenceDurationMs = silenceDurationMs; this.PrefixPaddingMs = prefixPaddingMs; + this.SilenceDurationMs = silenceDurationMs; this.Disabled = disabled; + this.EndOfSpeechSensitivity = endOfSpeechSensitivity; } /// 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 7db4b5ba8..1bd6145a2 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,12 +8,6 @@ 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 @@ -21,6 +15,12 @@ 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::Google.Gemini.EmbeddingUsageMetadata? usageMetadata, - global::System.Collections.Generic.IList? embeddings) + global::System.Collections.Generic.IList? embeddings, + global::Google.Gemini.EmbeddingUsageMetadata? usageMetadata) { - this.UsageMetadata = usageMetadata; this.Embeddings = embeddings; + this.UsageMetadata = usageMetadata; } /// 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 670d2d709..9a6030e74 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 @@ -15,13 +15,6 @@ public sealed partial class BatchStats [global::System.Text.Json.Serialization.JsonPropertyName("pendingRequestCount")] public string? PendingRequestCount { get; set; } - /// - /// Output only. The number of requests in the batch.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("requestCount")] - public string? RequestCount { get; set; } - /// /// Output only. The number of requests that failed to be processed.
/// Included only in responses @@ -36,6 +29,13 @@ public sealed partial class BatchStats [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 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("requestCount")] + public string? RequestCount { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -49,10 +49,6 @@ public sealed partial class BatchStats /// 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 @@ -61,19 +57,23 @@ public sealed partial class BatchStats /// 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 + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BatchStats( string? pendingRequestCount, - string? requestCount, string? failedRequestCount, - string? successfulRequestCount) + string? successfulRequestCount, + string? requestCount) { this.PendingRequestCount = pendingRequestCount; - this.RequestCount = requestCount; this.FailedRequestCount = failedRequestCount; this.SuccessfulRequestCount = successfulRequestCount; + this.RequestCount = requestCount; } /// 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 e4c1105bf..54c17bdb9 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,16 +9,10 @@ namespace Google.Gemini public sealed partial class BidiGenerateContentSetup { /// - /// 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("sessionResumption")] - public global::Google.Gemini.SessionResumptionConfig? SessionResumption { get; set; } - - /// - /// The audio transcription configuration. + /// 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("outputAudioTranscription")] - public global::Google.Gemini.AudioTranscriptionConfig? OutputAudioTranscription { 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. @@ -27,52 +21,58 @@ public sealed partial class BidiGenerateContentSetup public global::Google.Gemini.GenerationConfig? GenerationConfig { get; set; } /// - /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("contextWindowCompression")] + public global::Google.Gemini.ContextWindowCompressionConfig? ContextWindowCompression { 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. + /// 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("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("labels")] + public global::System.Collections.Generic.Dictionary? Labels { get; set; } /// - /// History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages. + /// The audio transcription configuration. /// - [global::System.Text.Json.Serialization.JsonPropertyName("historyConfig")] - public global::Google.Gemini.HistoryConfig? HistoryConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("inputAudioTranscription")] + public global::Google.Gemini.AudioTranscriptionConfig? InputAudioTranscription { get; set; } /// - /// Configures the realtime input behavior in `BidiGenerateContent`. + /// The audio transcription configuration. /// - [global::System.Text.Json.Serialization.JsonPropertyName("realtimeInputConfig")] - public global::Google.Gemini.RealtimeInputConfig? RealtimeInputConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("outputAudioTranscription")] + public global::Google.Gemini.AudioTranscriptionConfig? OutputAudioTranscription { get; set; } /// - /// Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length. + /// 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("contextWindowCompression")] - public global::Google.Gemini.ContextWindowCompressionConfig? ContextWindowCompression { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("systemInstruction")] + public global::Google.Gemini.Content? SystemInstruction { get; set; } /// - /// The audio transcription configuration. + /// Configures the realtime input behavior in `BidiGenerateContent`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("inputAudioTranscription")] - public global::Google.Gemini.AudioTranscriptionConfig? InputAudioTranscription { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("realtimeInputConfig")] + public global::Google.Gemini.RealtimeInputConfig? RealtimeInputConfig { 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. 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("systemInstruction")] - public global::Google.Gemini.Content? SystemInstruction { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { 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"}`) + /// 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("labels")] - public global::System.Collections.Generic.Dictionary? Labels { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("historyConfig")] + public global::Google.Gemini.HistoryConfig? HistoryConfig { 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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sessionResumption")] + public global::Google.Gemini.SessionResumptionConfig? SessionResumption { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -83,66 +83,66 @@ public sealed partial class BidiGenerateContentSetup /// /// Initializes a new instance of the class. /// - /// - /// Session resumption configuration. This message is included in the session configuration as `BidiGenerateContentSetup.session_resumption`. If configured, the server will send `SessionResumptionUpdate` messages. - /// - /// - /// The audio transcription configuration. - /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. - /// /// /// Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}` /// - /// - /// 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. - /// - /// - /// History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages. - /// - /// - /// Configures the realtime input behavior in `BidiGenerateContent`. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// /// /// Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length. /// + /// + /// 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. /// + /// + /// The audio transcription configuration. + /// /// /// 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"}`) + /// + /// Configures the realtime input behavior in `BidiGenerateContent`. + /// + /// + /// 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. + /// + /// + /// History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages. + /// + /// + /// Session resumption configuration. This message is included in the session configuration as `BidiGenerateContentSetup.session_resumption`. If configured, the server will send `SessionResumptionUpdate` messages. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BidiGenerateContentSetup( - global::Google.Gemini.SessionResumptionConfig? sessionResumption, - global::Google.Gemini.AudioTranscriptionConfig? outputAudioTranscription, - global::Google.Gemini.GenerationConfig? generationConfig, string? model, - global::System.Collections.Generic.IList? tools, - global::Google.Gemini.HistoryConfig? historyConfig, - global::Google.Gemini.RealtimeInputConfig? realtimeInputConfig, + global::Google.Gemini.GenerationConfig? generationConfig, global::Google.Gemini.ContextWindowCompressionConfig? contextWindowCompression, + global::System.Collections.Generic.Dictionary? labels, global::Google.Gemini.AudioTranscriptionConfig? inputAudioTranscription, + global::Google.Gemini.AudioTranscriptionConfig? outputAudioTranscription, global::Google.Gemini.Content? systemInstruction, - global::System.Collections.Generic.Dictionary? labels) + global::Google.Gemini.RealtimeInputConfig? realtimeInputConfig, + global::System.Collections.Generic.IList? tools, + global::Google.Gemini.HistoryConfig? historyConfig, + global::Google.Gemini.SessionResumptionConfig? sessionResumption) { - this.SessionResumption = sessionResumption; - this.OutputAudioTranscription = outputAudioTranscription; - this.GenerationConfig = generationConfig; this.Model = model; - this.Tools = tools; - this.HistoryConfig = historyConfig; - this.RealtimeInputConfig = realtimeInputConfig; + this.GenerationConfig = generationConfig; this.ContextWindowCompression = contextWindowCompression; + this.Labels = labels; this.InputAudioTranscription = inputAudioTranscription; + this.OutputAudioTranscription = outputAudioTranscription; this.SystemInstruction = systemInstruction; - this.Labels = labels; + this.RealtimeInputConfig = realtimeInputConfig; + this.Tools = tools; + this.HistoryConfig = historyConfig; + this.SessionResumption = sessionResumption; } /// 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 05d81aa8d..f214cfc7c 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 @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class Blob { /// - /// Raw bytes for media formats. + /// 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`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public byte[]? Data { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { 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). // @@ -21,10 +21,10 @@ public sealed partial class Blob public string? MimeType { get; set; } /// - /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [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. + /// + /// 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`. /// /// /// 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? displayName, string? mimeType, - string? displayName) + byte[]? data) { - this.Data = data; - this.MimeType = mimeType; this.DisplayName = displayName; + this.MimeType = mimeType; + 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 51af90459..5c6baa98a 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,22 +9,23 @@ namespace Google.Gemini public sealed partial class CachedContent { /// - /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. + /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` /// - [global::System.Text.Json.Serialization.JsonPropertyName("expireTime")] - public string? ExpireTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { 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. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. /// - [global::System.Text.Json.Serialization.JsonPropertyName("systemInstruction")] - public global::Google.Gemini.Content? SystemInstruction { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("toolConfig")] - public global::Google.Gemini.ToolConfig? ToolConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// Metadata on the usage of the cached content. @@ -32,18 +33,6 @@ public sealed partial class CachedContent [global::System.Text.Json.Serialization.JsonPropertyName("usageMetadata")] public global::Google.Gemini.CachedContentUsageMetadata? UsageMetadata { get; set; } - /// - /// Input only. New TTL for this resource, input only. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("ttl")] - public string? Ttl { get; set; } - - /// - /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - /// /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response /// @@ -51,10 +40,10 @@ public sealed partial class CachedContent public global::System.Collections.Generic.IList? Tools { get; set; } /// - /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("expireTime")] + public string? ExpireTime { get; set; } /// /// Output only. When the cache entry was last updated in UTC time.
@@ -64,17 +53,22 @@ public sealed partial class CachedContent public string? UpdateTime { get; set; } /// - /// Optional. Input only. Immutable. The content to cache. + /// 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("contents")] - public global::System.Collections.Generic.IList? Contents { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("systemInstruction")] + public global::Google.Gemini.Content? SystemInstruction { get; set; } /// - /// 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. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("ttl")] + public string? Ttl { get; set; } + + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("toolConfig")] + public global::Google.Gemini.ToolConfig? ToolConfig { get; set; } /// /// Output only. Creation time of the cache entry.
@@ -83,6 +77,12 @@ public sealed partial class CachedContent [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] public string? CreateTime { 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; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -92,74 +92,74 @@ public sealed partial class CachedContent /// /// Initializes a new instance of the class. /// - /// - /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. + /// + /// 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. + /// + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`
+ /// Included only in responses /// /// /// Metadata on the usage of the cached content. /// - /// - /// Input only. New TTL for this resource, input only. - /// - /// - /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` - /// /// /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response /// - /// - /// 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. /// /// /// Output only. When the cache entry was last updated in UTC time.
/// Included only in responses /// - /// - /// Optional. Input only. Immutable. The content to cache. + /// + /// 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. 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// /// /// 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? expireTime, - global::Google.Gemini.Content? systemInstruction, - global::Google.Gemini.ToolConfig? toolConfig, - global::Google.Gemini.CachedContentUsageMetadata? usageMetadata, - string? ttl, string? model, - global::System.Collections.Generic.IList? tools, string? displayName, - string? updateTime, - global::System.Collections.Generic.IList? contents, string? name, - string? createTime) + global::Google.Gemini.CachedContentUsageMetadata? usageMetadata, + global::System.Collections.Generic.IList? tools, + string? expireTime, + string? updateTime, + global::Google.Gemini.Content? systemInstruction, + string? ttl, + global::Google.Gemini.ToolConfig? toolConfig, + string? createTime, + global::System.Collections.Generic.IList? contents) { - this.ExpireTime = expireTime; - this.SystemInstruction = systemInstruction; - this.ToolConfig = toolConfig; - this.UsageMetadata = usageMetadata; - this.Ttl = ttl; this.Model = model; - this.Tools = tools; this.DisplayName = displayName; - this.UpdateTime = updateTime; - this.Contents = contents; this.Name = name; + this.UsageMetadata = usageMetadata; + this.Tools = tools; + this.ExpireTime = expireTime; + this.UpdateTime = updateTime; + this.SystemInstruction = systemInstruction; + this.Ttl = ttl; + this.ToolConfig = toolConfig; 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 897492903..19593ca17 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,11 +9,32 @@ namespace Google.Gemini public sealed partial class Candidate { /// - /// Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set.
+ /// 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("finishMessage")] - public string? FinishMessage { 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; } + + /// + /// 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; } + + /// + /// Output only. Index of the candidate in the list of response candidates.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("index")] + public int? Index { get; set; } + + /// + /// Output only. Token count for this candidate.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("tokenCount")] + public int? TokenCount { get; set; } /// /// Metadata returned to client when grounding is enabled. @@ -22,11 +43,10 @@ public sealed partial class Candidate public global::Google.Gemini.GroundingMetadata? GroundingMetadata { get; set; } /// - /// Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.
- /// Included only in responses + /// A collection of source attributions for a piece of content. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("groundingAttributions")] - public global::System.Collections.Generic.IList? GroundingAttributions { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("citationMetadata")] + public global::Google.Gemini.CitationMetadata? CitationMetadata { get; set; } /// /// Output only. Average log probability score of the candidate.
@@ -35,12 +55,6 @@ public sealed partial class Candidate [global::System.Text.Json.Serialization.JsonPropertyName("avgLogprobs")] public double? AvgLogprobs { get; set; } - /// - /// Logprobs Result - /// - [global::System.Text.Json.Serialization.JsonPropertyName("logprobsResult")] - public global::Google.Gemini.LogprobsResult? LogprobsResult { 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. /// @@ -48,30 +62,24 @@ public sealed partial class Candidate public global::Google.Gemini.Content? Content { get; set; } /// - /// Output only. Token count for this candidate.
+ /// Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("tokenCount")] - public int? TokenCount { 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; } + [global::System.Text.Json.Serialization.JsonPropertyName("groundingAttributions")] + public global::System.Collections.Generic.IList? GroundingAttributions { get; set; } /// - /// A collection of source attributions for a piece of content. + /// 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 ///
- [global::System.Text.Json.Serialization.JsonPropertyName("citationMetadata")] - public global::Google.Gemini.CitationMetadata? CitationMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("finishMessage")] + public string? FinishMessage { get; set; } /// - /// Output only. Index of the candidate in the list of response candidates.
- /// Included only in responses + /// Logprobs Result ///
- [global::System.Text.Json.Serialization.JsonPropertyName("index")] - public int? Index { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("logprobsResult")] + public global::Google.Gemini.LogprobsResult? LogprobsResult { get; set; } /// /// Metadata related to url context retrieval tool. @@ -79,14 +87,6 @@ public sealed partial class Candidate [global::System.Text.Json.Serialization.JsonPropertyName("urlContextMetadata")] public global::Google.Gemini.UrlContextMetadata? UrlContextMetadata { get; set; } - /// - /// 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("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 /// @@ -96,77 +96,77 @@ public sealed partial class Candidate /// /// Initializes a new instance of the class. /// - /// - /// Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set.
+ /// + /// Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.
+ /// Included only in responses + /// + /// + /// List of ratings for the safety of a response candidate. There is at most one rating per category. + /// + /// + /// Output only. Index of the candidate in the list of response candidates.
+ /// Included only in responses + /// + /// + /// Output only. Token count for this candidate.
/// Included only in responses /// /// /// Metadata returned to client when grounding is enabled. /// - /// - /// Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.
- /// Included only in responses + /// + /// A collection of source attributions for a piece of content. /// /// /// Output only. Average log probability score of the candidate.
/// Included only in responses /// - /// - /// Logprobs Result - /// /// /// 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. Token count for this candidate.
+ /// + /// Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.
/// Included only in responses /// - /// - /// List of ratings for the safety of a response candidate. There is at most one rating per category. - /// - /// - /// A collection of source attributions for a piece of content. - /// - /// - /// Output only. Index of the candidate in the list of response candidates.
+ /// + /// 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 /// + /// + /// Logprobs Result + /// /// /// Metadata related to url context retrieval tool. /// - /// - /// 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( - string? finishMessage, + global::Google.Gemini.CandidateFinishReason? finishReason, + global::System.Collections.Generic.IList? safetyRatings, + int? index, + int? tokenCount, global::Google.Gemini.GroundingMetadata? groundingMetadata, - global::System.Collections.Generic.IList? groundingAttributions, + global::Google.Gemini.CitationMetadata? citationMetadata, double? avgLogprobs, - global::Google.Gemini.LogprobsResult? logprobsResult, global::Google.Gemini.Content? content, - int? tokenCount, - global::System.Collections.Generic.IList? safetyRatings, - global::Google.Gemini.CitationMetadata? citationMetadata, - int? index, - global::Google.Gemini.UrlContextMetadata? urlContextMetadata, - global::Google.Gemini.CandidateFinishReason? finishReason) + global::System.Collections.Generic.IList? groundingAttributions, + string? finishMessage, + global::Google.Gemini.LogprobsResult? logprobsResult, + global::Google.Gemini.UrlContextMetadata? urlContextMetadata) { - this.FinishMessage = finishMessage; + this.FinishReason = finishReason; + this.SafetyRatings = safetyRatings; + this.Index = index; + this.TokenCount = tokenCount; this.GroundingMetadata = groundingMetadata; - this.GroundingAttributions = groundingAttributions; + this.CitationMetadata = citationMetadata; this.AvgLogprobs = avgLogprobs; - this.LogprobsResult = logprobsResult; this.Content = content; - this.TokenCount = tokenCount; - this.SafetyRatings = safetyRatings; - this.CitationMetadata = citationMetadata; - this.Index = index; + this.GroundingAttributions = groundingAttributions; + this.FinishMessage = finishMessage; + this.LogprobsResult = logprobsResult; this.UrlContextMetadata = urlContextMetadata; - this.FinishReason = finishReason; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CitationSource.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CitationSource.g.cs index 4f2ac4663..b81d7d834 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CitationSource.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CitationSource.g.cs @@ -8,30 +8,30 @@ namespace Google.Gemini /// public sealed partial class CitationSource { - /// - /// Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("startIndex")] - public int? StartIndex { get; set; } - - /// - /// Optional. End of the attributed segment, exclusive. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("endIndex")] - public int? EndIndex { get; set; } - /// /// Optional. URI that is attributed as a source for a portion of the text. /// [global::System.Text.Json.Serialization.JsonPropertyName("uri")] public string? Uri { get; set; } + /// + /// Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("startIndex")] + public int? StartIndex { get; set; } + /// /// Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations. /// [global::System.Text.Json.Serialization.JsonPropertyName("license")] public string? License { get; set; } + /// + /// Optional. End of the attributed segment, exclusive. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("endIndex")] + public int? EndIndex { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,31 +41,31 @@ public sealed partial class CitationSource /// /// Initializes a new instance of the class. /// - /// - /// Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes. - /// - /// - /// Optional. End of the attributed segment, exclusive. - /// /// /// Optional. URI that is attributed as a source for a portion of the text. /// + /// + /// Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes. + /// /// /// Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations. /// + /// + /// Optional. End of the attributed segment, exclusive. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CitationSource( - int? startIndex, - int? endIndex, string? uri, - string? license) + int? startIndex, + string? license, + int? endIndex) { - this.StartIndex = startIndex; - this.EndIndex = endIndex; this.Uri = uri; + this.StartIndex = startIndex; this.License = license; + this.EndIndex = endIndex; } /// 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 dec6f340b..e99db76e5 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 @@ -9,10 +9,11 @@ namespace Google.Gemini public sealed partial class ComputerUse { /// - /// 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. + /// Required. The environment being operated. /// - [global::System.Text.Json.Serialization.JsonPropertyName("excludedPredefinedFunctions")] - public global::System.Collections.Generic.IList? ExcludedPredefinedFunctions { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("environment")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter))] + public global::Google.Gemini.ComputerUseEnvironment? Environment { get; set; } /// /// Optional. Whether enable the prompt injection detection check on computer-use request. @@ -27,11 +28,10 @@ public sealed partial class ComputerUse public global::System.Collections.Generic.IList? DisabledSafetyPolicies { get; set; } /// - /// Required. The environment being operated. + /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("environment")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter))] - public global::Google.Gemini.ComputerUseEnvironment? Environment { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("excludedPredefinedFunctions")] + public global::System.Collections.Generic.IList? ExcludedPredefinedFunctions { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,8 +42,8 @@ public sealed partial class ComputerUse /// /// Initializes a new instance of the class. /// - /// - /// 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. + /// + /// Required. The environment being operated. /// /// /// Optional. Whether enable the prompt injection detection check on computer-use request. @@ -51,22 +51,22 @@ public sealed partial class ComputerUse /// /// Optional. Disabled safety policies for computer use. /// - /// - /// Required. The environment being operated. + /// + /// 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. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ComputerUse( - global::System.Collections.Generic.IList? excludedPredefinedFunctions, + global::Google.Gemini.ComputerUseEnvironment? environment, bool? enablePromptInjectionDetection, global::System.Collections.Generic.IList? disabledSafetyPolicies, - global::Google.Gemini.ComputerUseEnvironment? environment) + global::System.Collections.Generic.IList? excludedPredefinedFunctions) { - this.ExcludedPredefinedFunctions = excludedPredefinedFunctions; + this.Environment = environment; this.EnablePromptInjectionDetection = enablePromptInjectionDetection; this.DisabledSafetyPolicies = disabledSafetyPolicies; - this.Environment = environment; + this.ExcludedPredefinedFunctions = excludedPredefinedFunctions; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Content.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Content.g.cs index c53213b98..db1b7f3ee 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Content.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Content.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class Content { - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - public string? Role { get; set; } - /// /// Ordered `Parts` that constitute a single message. Parts may have different MIME types. /// [global::System.Text.Json.Serialization.JsonPropertyName("parts")] public global::System.Collections.Generic.IList? Parts { get; set; } + /// + /// 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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + public string? Role { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class Content /// /// Initializes a new instance of the class. /// - /// - /// 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. - /// /// /// Ordered `Parts` that constitute a single message. Parts may have different MIME types. /// + /// + /// 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. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Content( - string? role, - global::System.Collections.Generic.IList? parts) + global::System.Collections.Generic.IList? parts, + string? role) { - this.Role = role; this.Parts = parts; + this.Role = role; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ContentEmbedding.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ContentEmbedding.g.cs index 941fe8846..2381f72d1 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ContentEmbedding.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ContentEmbedding.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ContentEmbedding { - /// - /// This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048]). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("shape")] - public global::System.Collections.Generic.IList? Shape { get; set; } - /// /// The embedding values. This is for 3P users only and will not be populated for 1P calls. /// [global::System.Text.Json.Serialization.JsonPropertyName("values")] public global::System.Collections.Generic.IList? Values { get; set; } + /// + /// This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048]). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("shape")] + public global::System.Collections.Generic.IList? Shape { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class ContentEmbedding /// /// Initializes a new instance of the class. /// - /// - /// This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048]). - /// /// /// The embedding values. This is for 3P users only and will not be populated for 1P calls. /// + /// + /// This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048]). + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ContentEmbedding( - global::System.Collections.Generic.IList? shape, - global::System.Collections.Generic.IList? values) + global::System.Collections.Generic.IList? values, + global::System.Collections.Generic.IList? shape) { - this.Shape = shape; this.Values = values; + this.Shape = shape; } /// 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 c7be69d8e..f1218b513 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 @@ -9,11 +9,11 @@ namespace Google.Gemini public sealed partial class Corpus { /// - /// Output only. The Timestamp of when the `Corpus` was created.
+ /// Output only. The Timestamp of when the `Corpus` 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; } /// /// 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" @@ -22,18 +22,18 @@ public sealed partial class Corpus public string? DisplayName { get; set; } /// - /// 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`
+ /// Output only. The Timestamp of when the `Corpus` 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 Timestamp of when the `Corpus` was last updated.
+ /// 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 ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -44,34 +44,34 @@ public sealed partial class Corpus /// /// Initializes a new instance of the class. /// - /// - /// Output only. The Timestamp of when the `Corpus` was created.
+ /// + /// Output only. The Timestamp of when the `Corpus` was last updated.
/// 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. 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`
+ /// + /// Output only. The Timestamp of when the `Corpus` was created.
/// Included only in responses /// - /// - /// Output only. The Timestamp of when the `Corpus` was last updated.
+ /// + /// 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 /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Corpus( - string? createTime, + string? updateTime, string? displayName, - string? name, - string? updateTime) + string? createTime, + string? name) { - this.CreateTime = createTime; + this.UpdateTime = updateTime; this.DisplayName = displayName; + this.CreateTime = createTime; this.Name = name; - this.UpdateTime = updateTime; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensRequest.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensRequest.g.cs index b3630d1d9..263ea346e 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensRequest.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensRequest.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class CountTokensRequest { - /// - /// Request to generate a completion from the model. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("generateContentRequest")] - public global::Google.Gemini.GenerateContentRequest? GenerateContentRequest { get; set; } - /// /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set. /// [global::System.Text.Json.Serialization.JsonPropertyName("contents")] public global::System.Collections.Generic.IList? Contents { get; set; } + /// + /// Request to generate a completion from the model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("generateContentRequest")] + public global::Google.Gemini.GenerateContentRequest? GenerateContentRequest { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class CountTokensRequest /// /// Initializes a new instance of the class. /// - /// - /// Request to generate a completion from the model. - /// /// /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set. /// + /// + /// Request to generate a completion from the model. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CountTokensRequest( - global::Google.Gemini.GenerateContentRequest? generateContentRequest, - global::System.Collections.Generic.IList? contents) + global::System.Collections.Generic.IList? contents, + global::Google.Gemini.GenerateContentRequest? generateContentRequest) { - this.GenerateContentRequest = generateContentRequest; this.Contents = contents; + this.GenerateContentRequest = generateContentRequest; } /// 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 f96a59864..e76710963 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 @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class CountTokensResponse { - /// - /// 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; } - /// /// Output only. List of modalities that were processed in the request input.
/// Included only in responses @@ -21,6 +15,18 @@ public sealed partial class CountTokensResponse [global::System.Text.Json.Serialization.JsonPropertyName("promptTokensDetails")] public global::System.Collections.Generic.IList? PromptTokensDetails { get; set; } + /// + /// Number of tokens in the cached part of the prompt (the cached content). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cachedContentTokenCount")] + public int? CachedContentTokenCount { 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; } + /// /// Output only. List of modalities that were processed in the cached content.
/// Included only in responses @@ -28,12 +34,6 @@ public sealed partial class CountTokensResponse [global::System.Text.Json.Serialization.JsonPropertyName("cacheTokensDetails")] public global::System.Collections.Generic.IList? CacheTokensDetails { get; set; } - /// - /// Number of tokens in the cached part of the prompt (the cached content). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("cachedContentTokenCount")] - public int? CachedContentTokenCount { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -43,33 +43,33 @@ public sealed partial class CountTokensResponse /// /// Initializes a new instance of the class. /// - /// - /// The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative. - /// /// /// Output only. List of modalities that were processed in the request input.
/// Included only in responses /// + /// + /// Number of tokens in the cached part of the prompt (the cached content). + /// + /// + /// 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( - int? totalTokens, global::System.Collections.Generic.IList? promptTokensDetails, - global::System.Collections.Generic.IList? cacheTokensDetails, - int? cachedContentTokenCount) + int? cachedContentTokenCount, + int? totalTokens, + global::System.Collections.Generic.IList? cacheTokensDetails) { - this.TotalTokens = totalTokens; this.PromptTokensDetails = promptTokensDetails; - this.CacheTokensDetails = cacheTokensDetails; this.CachedContentTokenCount = cachedContentTokenCount; + this.TotalTokens = totalTokens; + this.CacheTokensDetails = cacheTokensDetails; } /// 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 d09fc2ace..c6514d660 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 @@ -9,11 +9,10 @@ namespace Google.Gemini public sealed partial class CreateEnvironmentRequest { /// - /// Network egress mode. + /// Network egress configuration for the environment. /// - [global::System.Text.Json.Serialization.JsonPropertyName("networkMode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter))] - public global::Google.Gemini.CreateEnvironmentRequestNetworkMode? NetworkMode { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("networkAllowlist")] + public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? NetworkAllowlist { get; set; } /// /// Sources to be mounted into the environment. @@ -28,10 +27,11 @@ public sealed partial class CreateEnvironmentRequest public string? FromEnvironment { get; set; } /// - /// Network egress configuration for the environment. + /// Network egress mode. /// - [global::System.Text.Json.Serialization.JsonPropertyName("networkAllowlist")] - public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? NetworkAllowlist { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("networkMode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter))] + public global::Google.Gemini.CreateEnvironmentRequestNetworkMode? NetworkMode { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -42,8 +42,8 @@ public sealed partial class CreateEnvironmentRequest /// /// Initializes a new instance of the class. /// - /// - /// Network egress mode. + /// + /// Network egress configuration for the environment. /// /// /// Sources to be mounted into the environment. @@ -51,22 +51,22 @@ public sealed partial class CreateEnvironmentRequest /// /// 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 configuration for the environment. + /// + /// Network egress mode. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateEnvironmentRequest( - global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode, + global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist, global::System.Collections.Generic.IList? sources, string? fromEnvironment, - global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist) + global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode) { - this.NetworkMode = networkMode; + this.NetworkAllowlist = networkAllowlist; this.Sources = sources; this.FromEnvironment = fromEnvironment; - this.NetworkAllowlist = networkAllowlist; + this.NetworkMode = networkMode; } /// 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 c7d6e5fb3..5eba4aa3e 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 @@ -14,18 +14,6 @@ public sealed partial class CustomLongRunningOperation [global::System.Text.Json.Serialization.JsonPropertyName("done")] public bool? Done { 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}`. - /// - [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`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - public object? 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). /// @@ -38,6 +26,18 @@ public sealed partial class CustomLongRunningOperation [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] public object? Metadata { 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}`. + /// + [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`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + public object? Response { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -50,33 +50,33 @@ public sealed partial class CustomLongRunningOperation /// /// 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 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`. - /// /// /// 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}`. + /// + /// + /// 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`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CustomLongRunningOperation( bool? done, - string? name, - object? response, global::Google.Gemini.Status? error, - object? metadata) + object? metadata, + string? name, + object? response) { this.Done = done; - this.Name = name; - this.Response = response; this.Error = error; this.Metadata = metadata; + 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 dbcbbfd0a..6ae533dcc 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 @@ -8,18 +8,6 @@ namespace Google.Gemini /// public sealed partial class CustomMetadata { - /// - /// The numeric value of the metadata to store. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("numericValue")] - public float? NumericValue { get; set; } - - /// - /// The string value of the metadata to store. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("stringValue")] - public string? StringValue { get; set; } - /// /// User provided string values assigned to a single metadata key. /// @@ -32,6 +20,18 @@ public sealed partial class CustomMetadata [global::System.Text.Json.Serialization.JsonPropertyName("key")] public string? Key { get; set; } + /// + /// The string value of the metadata to store. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stringValue")] + public string? StringValue { get; set; } + + /// + /// The numeric value of the metadata to store. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("numericValue")] + public float? NumericValue { 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. - /// /// /// User provided string values assigned to a single metadata key. /// /// /// Required. The key of the metadata to store. /// + /// + /// 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( - float? numericValue, - string? stringValue, global::Google.Gemini.StringList? stringListValue, - string? key) + string? key, + string? stringValue, + float? numericValue) { - this.NumericValue = numericValue; - this.StringValue = stringValue; this.StringListValue = stringListValue; this.Key = key; + 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 ef6010a4d..80a664164 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 @@ -9,18 +9,10 @@ namespace Google.Gemini public sealed partial class Document { /// - /// Output only. The Timestamp of when the `Document` was created.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } - - /// - /// Output only. The size of raw bytes ingested into the Document.
- /// 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" ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] - public string? SizeBytes { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } /// /// 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` @@ -29,17 +21,26 @@ public sealed partial class Document public string? Name { get; set; } /// - /// Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`. + /// Output only. Current state of the `Document`.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("customMetadata")] - public global::System.Collections.Generic.IList? CustomMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("state")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter))] + public global::Google.Gemini.DocumentState? State { get; set; } /// - /// Output only. The mime type of the Document.
+ /// Output only. The Timestamp of when the `Document` was created.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] - public string? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } + + /// + /// Output only. The size of raw bytes ingested into the Document.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] + public string? SizeBytes { get; set; } /// /// Output only. The Timestamp of when the `Document` was last updated.
@@ -49,18 +50,17 @@ public sealed partial class Document 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" + /// Output only. The mime type of the Document.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] + public string? MimeType { get; set; } /// - /// Output only. Current state of the `Document`.
- /// Included only in responses + /// Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("state")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter))] - public global::Google.Gemini.DocumentState? State { get; set; } + [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 @@ -71,6 +71,16 @@ public sealed partial class Document /// /// Initializes a new instance of the class. /// + /// + /// 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" + /// + /// + /// 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. Current state of the `Document`.
+ /// Included only in responses + /// /// /// Output only. The Timestamp of when the `Document` was created.
/// Included only in responses @@ -79,48 +89,38 @@ public sealed partial class Document /// Output only. The size of raw bytes ingested into the Document.
/// Included only in responses /// - /// - /// 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` - /// - /// - /// Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`. - /// - /// - /// 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. Current state of the `Document`.
+ /// + /// Output only. The mime type of the Document.
/// Included only in responses /// + /// + /// Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Document( + string? displayName, + string? name, + global::Google.Gemini.DocumentState? state, string? createTime, string? sizeBytes, - string? name, - global::System.Collections.Generic.IList? customMetadata, - string? mimeType, string? updateTime, - string? displayName, - global::Google.Gemini.DocumentState? state) + string? mimeType, + global::System.Collections.Generic.IList? customMetadata) { + this.DisplayName = displayName; + this.Name = name; + this.State = state; this.CreateTime = createTime; this.SizeBytes = sizeBytes; - this.Name = name; - this.CustomMetadata = customMetadata; - this.MimeType = mimeType; this.UpdateTime = updateTime; - this.DisplayName = displayName; - this.State = state; + this.MimeType = mimeType; + this.CustomMetadata = customMetadata; } /// 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 5905e7e39..c786b9778 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,23 +9,16 @@ namespace Google.Gemini public sealed partial class EmbedContentBatch { /// - /// Required. The user-defined name of this batch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } - - /// - /// Output only. The time at which the batch was last updated.
- /// Included only in responses + /// Configures the input to the batch request. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("inputConfig")] + public global::Google.Gemini.InputEmbedContentConfig? InputConfig { get; set; } /// - /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. + /// Stats about the batch. /// - [global::System.Text.Json.Serialization.JsonPropertyName("output")] - public global::Google.Gemini.EmbedContentBatchOutput? Output { 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}`. @@ -34,38 +27,32 @@ public sealed partial class EmbedContentBatch public string? Model { get; set; } /// - /// Stats about the batch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("batchStats")] - public global::Google.Gemini.EmbedContentBatchStats? BatchStats { get; set; } - - /// - /// Output only. The time at which the batch was created.
+ /// Output only. The state of the batch.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { 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; } /// - /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
- /// 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("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + public global::Google.Gemini.EmbedContentBatchOutput? Output { get; set; } /// - /// Output only. The state of the batch.
+ /// Output only. The time at which the batch processing completed.
/// Included only in responses ///
- [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("endTime")] + public string? EndTime { get; set; } /// - /// Configures the input to the batch request. + /// Output only. The time at which the batch was created.
+ /// 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("createTime")] + public string? CreateTime { 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. @@ -74,11 +61,24 @@ public sealed partial class EmbedContentBatch public string? Priority { get; set; } /// - /// Output only. The time at which the batch processing completed.
+ /// Required. The user-defined name of this batch. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } + + /// + /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("endTime")] - public string? EndTime { 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.
+ /// 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 @@ -89,71 +89,71 @@ public sealed partial class EmbedContentBatch /// /// Initializes a new instance of the class. /// - /// - /// Required. The user-defined name of this batch. + /// + /// Configures the input to the batch request. /// - /// - /// Output only. The time at which the batch was last updated.
+ /// + /// Stats about the batch. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// + /// Output only. The state of the batch.
/// Included only in responses /// /// /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. /// - /// - /// 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 processing completed.
+ /// Included only in responses /// /// /// Output only. The time at which the batch was created.
/// 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. + /// + /// + /// Required. The user-defined name of this batch. + /// /// /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
/// Included only in responses /// - /// - /// Output only. The state of the batch.
- /// Included only in responses - /// - /// - /// 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.
+ /// + /// Output only. The time at which the batch was last updated.
/// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentBatch( - string? displayName, - string? updateTime, - global::Google.Gemini.EmbedContentBatchOutput? output, - string? model, + global::Google.Gemini.InputEmbedContentConfig? inputConfig, global::Google.Gemini.EmbedContentBatchStats? batchStats, - string? createTime, - string? name, + string? model, global::Google.Gemini.EmbedContentBatchState? state, - global::Google.Gemini.InputEmbedContentConfig? inputConfig, + global::Google.Gemini.EmbedContentBatchOutput? output, + string? endTime, + string? createTime, string? priority, - string? endTime) + string? displayName, + string? name, + string? updateTime) { - this.DisplayName = displayName; - this.UpdateTime = updateTime; - this.Output = output; - this.Model = model; + this.InputConfig = inputConfig; this.BatchStats = batchStats; - this.CreateTime = createTime; - this.Name = name; + this.Model = model; this.State = state; - this.InputConfig = inputConfig; - this.Priority = priority; + this.Output = output; this.EndTime = endTime; + this.CreateTime = createTime; + this.Priority = priority; + this.DisplayName = displayName; + this.Name = name; + this.UpdateTime = updateTime; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchOutput.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchOutput.g.cs index de6eaccb6..f4312aaaa 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchOutput.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchOutput.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class EmbedContentBatchOutput { - /// - /// The responses to the requests in the batch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("inlinedResponses")] - public global::Google.Gemini.InlinedEmbedContentResponses? 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 `EmbedContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests.
/// Included only in responses @@ -21,6 +15,12 @@ public sealed partial class EmbedContentBatchOutput [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.InlinedEmbedContentResponses? InlinedResponses { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,22 +30,22 @@ public sealed partial class EmbedContentBatchOutput /// /// 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 `EmbedContentResponse` 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 EmbedContentBatchOutput( - global::Google.Gemini.InlinedEmbedContentResponses? inlinedResponses, - string? responsesFile) + string? responsesFile, + global::Google.Gemini.InlinedEmbedContentResponses? inlinedResponses) { - this.InlinedResponses = inlinedResponses; this.ResponsesFile = responsesFile; + this.InlinedResponses = inlinedResponses; } /// 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 49423c451..95978118d 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 @@ -9,32 +9,32 @@ namespace Google.Gemini public sealed partial class EmbedContentBatchStats { /// - /// Output only. The number of requests in the batch.
+ /// Output only. The number of requests that were successfully processed.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("requestCount")] - public string? RequestCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("successfulRequestCount")] + public string? SuccessfulRequestCount { get; set; } /// - /// Output only. The number of requests that are still pending processing.
+ /// Output only. The number of requests that failed to be processed.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("pendingRequestCount")] - public string? PendingRequestCount { 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 are still pending processing.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("failedRequestCount")] - public string? FailedRequestCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("pendingRequestCount")] + public string? PendingRequestCount { get; set; } /// - /// 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; } /// /// Additional properties that are not explicitly defined in the schema @@ -45,35 +45,35 @@ public sealed partial class EmbedContentBatchStats /// /// Initializes a new instance of the class. /// - /// - /// Output only. The number of requests in the batch.
- /// Included only in responses - /// - /// - /// Output only. The number of requests that are still pending processing.
+ /// + /// Output only. The number of requests that were successfully processed.
/// 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.
+ /// + /// 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 /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentBatchStats( - string? requestCount, - string? pendingRequestCount, + string? successfulRequestCount, string? failedRequestCount, - string? successfulRequestCount) + string? pendingRequestCount, + string? requestCount) { - this.RequestCount = requestCount; - this.PendingRequestCount = pendingRequestCount; - this.FailedRequestCount = failedRequestCount; this.SuccessfulRequestCount = successfulRequestCount; + this.FailedRequestCount = failedRequestCount; + this.PendingRequestCount = pendingRequestCount; + this.RequestCount = requestCount; } /// 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 e21590c1e..496033ac1 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 @@ -8,6 +8,18 @@ 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. 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; } + /// /// Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. /// @@ -15,10 +27,10 @@ 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. @@ -28,22 +40,10 @@ public sealed partial class EmbedContentConfig 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("autoTruncate")] - public bool? AutoTruncate { get; set; } - - /// - /// Optional. The title for the text. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// Optional. Whether to enable OCR for document content. + /// Optional. Whether to extract audio from video content. /// - [global::System.Text.Json.Serialization.JsonPropertyName("documentOcr")] - public bool? DocumentOcr { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("audioTrackExtraction")] + public bool? AudioTrackExtraction { 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. 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 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. /// + /// + /// Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. + /// /// /// Optional. The title for the text. /// - /// - /// Optional. Whether to enable OCR for document content. + /// + /// Optional. The task type of the embedding. + /// + /// + /// Optional. Whether to extract audio from video content. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentConfig( - int? outputDimensionality, - bool? audioTrackExtraction, - global::Google.Gemini.EmbedContentConfigTaskType? taskType, + bool? documentOcr, bool? autoTruncate, + int? outputDimensionality, string? title, - bool? documentOcr) + global::Google.Gemini.EmbedContentConfigTaskType? taskType, + bool? audioTrackExtraction) { - this.OutputDimensionality = outputDimensionality; - this.AudioTrackExtraction = audioTrackExtraction; - this.TaskType = taskType; + this.DocumentOcr = documentOcr; this.AutoTruncate = autoTruncate; + this.OutputDimensionality = outputDimensionality; this.Title = title; - this.DocumentOcr = documentOcr; + this.TaskType = taskType; + this.AudioTrackExtraction = audioTrackExtraction; } /// 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 e9a609caf..124a1ca66 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 @@ -10,12 +10,6 @@ namespace Google.Gemini /// public sealed partial class EmbedContentRequest { - /// - /// 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. /// @@ -23,6 +17,12 @@ public sealed partial class EmbedContentRequest [global::System.Obsolete("This property marked as deprecated.")] public string? Title { 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.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`). /// @@ -31,12 +31,10 @@ public sealed partial class EmbedContentRequest public int? OutputDimensionality { 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`). + /// 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("taskType")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter))] - [global::System.Obsolete("This property marked as deprecated.")] - public global::Google.Gemini.EmbedContentRequestTaskType? TaskType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public global::Google.Gemini.Content? Content { get; set; } /// /// Configurations for the EmbedContent request. @@ -45,10 +43,12 @@ public sealed partial class EmbedContentRequest public global::Google.Gemini.EmbedContentConfig? EmbedContentConfig { 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.task_type instead. Optional task type for which the embeddings will be used. Not supported on earlier models (`models/embedding-001`). /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public global::Google.Gemini.Content? Content { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("taskType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter))] + [global::System.Obsolete("This property marked as deprecated.")] + public global::Google.Gemini.EmbedContentRequestTaskType? TaskType { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -62,23 +62,23 @@ public sealed partial class EmbedContentRequest /// /// 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. - /// /// /// 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. /// + /// + /// Configurations for the EmbedContent request. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentRequest( string? model, - global::Google.Gemini.EmbedContentConfig? embedContentConfig, - global::Google.Gemini.Content? content) + global::Google.Gemini.Content? content, + global::Google.Gemini.EmbedContentConfig? embedContentConfig) { this.Model = model; - this.EmbedContentConfig = embedContentConfig; this.Content = content; + this.EmbedContentConfig = embedContentConfig; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbeddingUsageMetadata.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbeddingUsageMetadata.g.cs index 20f3b8094..ecd1c5d44 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbeddingUsageMetadata.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbeddingUsageMetadata.g.cs @@ -9,18 +9,18 @@ namespace Google.Gemini public sealed partial class EmbeddingUsageMetadata { /// - /// Output only. Number of tokens in the prompt.
+ /// Output only. List of modalities that were processed in the request input.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("promptTokenCount")] - public int? PromptTokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("promptTokenDetails")] + public global::System.Collections.Generic.IList? PromptTokenDetails { get; set; } /// - /// Output only. List of modalities that were processed in the request input.
+ /// Output only. Number of tokens in the prompt.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("promptTokenDetails")] - public global::System.Collections.Generic.IList? PromptTokenDetails { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("promptTokenCount")] + public int? PromptTokenCount { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -31,23 +31,23 @@ public sealed partial class EmbeddingUsageMetadata /// /// Initializes a new instance of the class. /// - /// - /// Output only. Number of tokens in the prompt.
- /// Included only in responses - /// /// /// Output only. List of modalities that were processed in the request input.
/// Included only in responses /// + /// + /// Output only. Number of tokens in the prompt.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbeddingUsageMetadata( - int? promptTokenCount, - global::System.Collections.Generic.IList? promptTokenDetails) + global::System.Collections.Generic.IList? promptTokenDetails, + int? promptTokenCount) { - this.PromptTokenCount = promptTokenCount; this.PromptTokenDetails = promptTokenDetails; + this.PromptTokenCount = promptTokenCount; } /// 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 d02f72acb..f95f74c25 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,6 +8,27 @@ namespace Google.Gemini /// public sealed partial class Environment { + /// + /// 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 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; } + + /// + /// Network egress configuration for the environment. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("networkAllowlist")] + public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? NetworkAllowlist { 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 @@ -30,25 +51,17 @@ public sealed partial class Environment public string? LastAccessed { get; set; } /// - /// Required. Output only. The ID of the environment.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } - - /// - /// Network egress configuration for the environment. + /// Sources to be mounted into the environment. /// - [global::System.Text.Json.Serialization.JsonPropertyName("networkAllowlist")] - public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? NetworkAllowlist { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sources")] + public global::System.Collections.Generic.IList? Sources { 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 total size of the environment files in bytes, output only.
@@ -58,24 +71,11 @@ public sealed partial class Environment public string? SizeBytes { 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; } - - /// - /// 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 number of files in the environment, output only.
+ /// Required. Output only. The ID of the environment.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("fileCount")] - public string? FileCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -86,6 +86,16 @@ public sealed partial class Environment /// /// Initializes a new instance of the class. /// + /// + /// Network egress mode. + /// + /// + /// Output only. The status of the environment container.
+ /// Included only in responses + /// + /// + /// Network egress configuration for 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 @@ -98,56 +108,46 @@ public sealed partial class Environment /// Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses /// - /// - /// Required. Output only. The ID of the environment.
- /// Included only in responses - /// - /// - /// Network egress configuration for the environment. + /// + /// Sources to be mounted into 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 total size of the environment files in bytes, output only.
/// Included only in responses /// - /// - /// Network egress mode. - /// - /// - /// Sources to be mounted into the environment. - /// - /// - /// Output only. The number of files in the environment, output only.
+ /// + /// Required. Output only. The ID of the environment.
/// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Environment( + global::Google.Gemini.EnvironmentNetworkMode? networkMode, + global::Google.Gemini.EnvironmentStatus? status, + global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist, string? created, string? updated, string? lastAccessed, - string? id, - global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist, - global::Google.Gemini.EnvironmentStatus? status, - string? sizeBytes, - global::Google.Gemini.EnvironmentNetworkMode? networkMode, global::System.Collections.Generic.IList? sources, - string? fileCount) + string? fileCount, + string? sizeBytes, + string? id) { + this.NetworkMode = networkMode; + this.Status = status; + this.NetworkAllowlist = networkAllowlist; this.Created = created; this.Updated = updated; this.LastAccessed = lastAccessed; - this.Id = id; - this.NetworkAllowlist = networkAllowlist; - this.Status = status; - this.SizeBytes = sizeBytes; - this.NetworkMode = networkMode; this.Sources = sources; this.FileCount = fileCount; + this.SizeBytes = sizeBytes; + this.Id = id; } /// 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 4f71c1542..dd08a882f 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,11 +9,18 @@ namespace Google.Gemini public sealed partial class EnvironmentFile { /// - /// Output only. The creation time of the file/directory.
+ /// Output only. The size of the file/directory in bytes. NOLINT
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("created")] - public string? Created { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("size_bytes")] + public string? SizeBytes { get; set; } + + /// + /// 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("mime_type")] + public string? MimeType { get; set; } /// /// Output only. The name of the file or directory (e.g., "main.py" or "src").
@@ -23,11 +30,11 @@ public sealed partial class EnvironmentFile public string? Name { get; set; } /// - /// Output only. The size of the file/directory in bytes. NOLINT
+ /// Output only. The modification time of the file/directory.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("size_bytes")] - public string? SizeBytes { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("modified")] + public string? Modified { get; set; } /// /// Output only. The full relative path within the environment (e.g., "workspace/src/main.py").
@@ -45,18 +52,11 @@ public sealed partial class EnvironmentFile public global::Google.Gemini.EnvironmentFileType? Type { get; set; } /// - /// Output only. The modification time of the file/directory.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("modified")] - public string? Modified { get; set; } - - /// - /// Output only. The MIME type of the file (e.g., "text/python", "image/png"). Empty for directories. NOLINT
+ /// Output only. The creation time of the file/directory.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] - public string? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("created")] + public string? Created { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -67,16 +67,20 @@ public sealed partial class EnvironmentFile /// /// Initializes a new instance of the class. /// - /// - /// Output only. The creation time of the file/directory.
+ /// + /// Output only. The size of the file/directory in bytes. NOLINT
+ /// Included only in responses + /// + /// + /// 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").
/// Included only in responses /// - /// - /// Output only. The size of the file/directory in bytes. NOLINT
+ /// + /// Output only. The modification time of the file/directory.
/// Included only in responses /// /// @@ -87,33 +91,29 @@ public sealed partial class EnvironmentFile /// Output only. The type of the entry.
/// Included only in responses /// - /// - /// Output only. The modification 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 creation time of the file/directory.
/// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EnvironmentFile( - string? created, - string? name, string? sizeBytes, + string? mimeType, + string? name, + string? modified, string? path, global::Google.Gemini.EnvironmentFileType? type, - string? modified, - string? mimeType) + string? created) { - this.Created = created; - this.Name = name; this.SizeBytes = sizeBytes; + this.MimeType = mimeType; + this.Name = name; + this.Modified = modified; this.Path = path; this.Type = type; - this.Modified = modified; - this.MimeType = mimeType; + this.Created = created; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ExecutableCode.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ExecutableCode.g.cs index 9af6f7775..5cc6b1fc1 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ExecutableCode.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ExecutableCode.g.cs @@ -9,10 +9,11 @@ namespace Google.Gemini public sealed partial class ExecutableCode { /// - /// Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`. + /// Required. Programming language of the `code`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("language")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter))] + public global::Google.Gemini.ExecutableCodeLanguage? Language { get; set; } /// /// Required. The code to be executed. @@ -21,11 +22,10 @@ public sealed partial class ExecutableCode public string? Code { get; set; } /// - /// Required. Programming language of the `code`. + /// Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("language")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter))] - public global::Google.Gemini.ExecutableCodeLanguage? Language { get; set; } + [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 ExecutableCode /// /// Initializes a new instance of the class. /// - /// - /// Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`. + /// + /// Required. Programming language of the `code`. /// /// /// Required. The code to be executed. /// - /// - /// Required. Programming language of the `code`. + /// + /// Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ExecutableCode( - string? id, + global::Google.Gemini.ExecutableCodeLanguage? language, string? code, - global::Google.Gemini.ExecutableCodeLanguage? language) + string? id) { - this.Id = id; - this.Code = code; this.Language = language; + this.Code = code; + this.Id = id; } /// 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 8f702bdaa..cee34ae3b 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,40 +9,30 @@ namespace Google.Gemini public sealed partial class File { /// - /// Output only. Processing state 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; } - - /// - /// Output only. SHA-256 hash of the uploaded bytes.
- /// Included only in responses + /// Metadata for a video `File`. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sha256Hash")] - public byte[]? Sha256Hash { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("videoMetadata")] + public global::Google.Gemini.VideoFileMetadata? VideoMetadata { get; set; } /// - /// Output only. The uri of the `File`.
+ /// Output only. Size of the file in bytes.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] + public string? SizeBytes { get; set; } /// - /// Output only. The timestamp of when the `File` was last updated.
+ /// Output only. SHA-256 hash of the uploaded bytes.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sha256Hash")] + public byte[]? Sha256Hash { get; set; } /// - /// Output only. MIME type of the file.
- /// 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("mimeType")] - public string? MimeType { get; set; } + [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). @@ -51,24 +41,11 @@ public sealed partial class File public global::Google.Gemini.Status? Error { get; set; } /// - /// Output only. Size of the file in bytes.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] - public string? SizeBytes { get; set; } - - /// - /// Output only. The download uri of the `File`.
+ /// Output only. The uri of the `File`.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("downloadUri")] - public string? DownloadUri { get; set; } - - /// - /// Metadata for a video `File`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("videoMetadata")] - public global::Google.Gemini.VideoFileMetadata? VideoMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// /// Source of the File. @@ -77,6 +54,13 @@ public sealed partial class File [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter))] public global::Google.Gemini.FileSource? Source { get; set; } + /// + /// Output only. MIME type of the file.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] + public string? MimeType { get; set; } + /// /// Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.
/// Included only in responses @@ -85,16 +69,17 @@ public sealed partial class File public string? ExpirationTime { 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" + /// Output only. The timestamp of when the `File` was last updated.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { 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` + /// 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("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } /// /// Output only. The timestamp of when the `File` was created.
@@ -103,6 +88,21 @@ public sealed partial class File [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] public string? CreateTime { get; set; } + /// + /// Output only. The download uri of the `File`.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("downloadUri")] + public string? DownloadUri { get; set; } + + /// + /// Output only. Processing state 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; } + /// /// 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.
+ /// + /// Metadata for a video `File`. + /// + /// + /// Output only. Size of the file in bytes.
/// Included only in responses /// /// /// Output only. SHA-256 hash of the uploaded bytes.
/// Included only in responses /// - /// - /// Output only. The uri of the `File`.
- /// Included only in responses - /// - /// - /// Output only. The timestamp of when the `File` was last updated.
- /// Included only in responses - /// - /// - /// Output only. MIME type of the file.
- /// 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` /// /// /// 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. Size of the file in bytes.
- /// Included only in responses - /// - /// - /// Output only. The download uri of the `File`.
+ /// + /// Output only. The uri of the `File`.
/// Included only in responses /// - /// - /// Metadata for a video `File`. - /// /// /// Source of the File. /// + /// + /// Output only. MIME type of the file.
+ /// Included only in responses + /// /// /// Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.
/// Included only in responses /// + /// + /// Output only. The timestamp of when the `File` was last updated.
+ /// 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" /// - /// - /// 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` was created.
/// Included only in responses /// + /// + /// Output only. The download uri of the `File`.
+ /// Included only in responses + /// + /// + /// Output only. Processing state of the File.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public File( - global::Google.Gemini.FileState? state, + global::Google.Gemini.VideoFileMetadata? videoMetadata, + string? sizeBytes, byte[]? sha256Hash, - string? uri, - string? updateTime, - string? mimeType, + string? name, global::Google.Gemini.Status? error, - string? sizeBytes, - string? downloadUri, - global::Google.Gemini.VideoFileMetadata? videoMetadata, + string? uri, global::Google.Gemini.FileSource? source, + string? mimeType, string? expirationTime, + string? updateTime, string? displayName, - string? name, - string? createTime) + string? createTime, + string? downloadUri, + global::Google.Gemini.FileState? state) { - this.State = state; + this.VideoMetadata = videoMetadata; + this.SizeBytes = sizeBytes; this.Sha256Hash = sha256Hash; - this.Uri = uri; - this.UpdateTime = updateTime; - this.MimeType = mimeType; + this.Name = name; this.Error = error; - this.SizeBytes = sizeBytes; - this.DownloadUri = downloadUri; - this.VideoMetadata = videoMetadata; + this.Uri = uri; this.Source = source; + this.MimeType = mimeType; this.ExpirationTime = expirationTime; + this.UpdateTime = updateTime; this.DisplayName = displayName; - this.Name = name; this.CreateTime = createTime; + this.DownloadUri = downloadUri; + this.State = state; } /// 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 6b8d3fdb0..c9d3c5bfb 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. The IANA standard MIME type of the source data. /// [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] public string? MimeType { get; set; } + /// + /// 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`. /// @@ -35,12 +35,12 @@ public sealed partial class FileData /// /// Initializes a new instance of the class. /// - /// - /// Required. URI. - /// /// /// Optional. The IANA standard MIME type of the source data. /// + /// + /// 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`. /// @@ -48,12 +48,12 @@ public sealed partial class FileData [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FileData( - string? fileUri, string? mimeType, + string? fileUri, string? displayName) { - this.FileUri = fileUri; this.MimeType = mimeType; + this.FileUri = fileUri; this.DisplayName = displayName; } 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 60bebf31e..a5f4c4de1 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 @@ -8,18 +8,18 @@ namespace Google.Gemini ///
public sealed partial class FileSearch { - /// - /// Optional. Metadata filter to apply to the semantic retrieval documents and chunks. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metadataFilter")] - public string? MetadataFilter { get; set; } - /// /// Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123` /// [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStoreNames")] public global::System.Collections.Generic.IList? FileSearchStoreNames { get; set; } + /// + /// Optional. Metadata filter to apply to the semantic retrieval documents and chunks. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadataFilter")] + public string? MetadataFilter { get; set; } + /// /// Optional. The number of semantic retrieval chunks to retrieve. /// @@ -35,12 +35,12 @@ 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. Metadata filter to apply to the semantic retrieval documents and chunks. + /// /// /// Optional. The number of semantic retrieval chunks to retrieve. /// @@ -48,12 +48,12 @@ public sealed partial class FileSearch [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FileSearch( - string? metadataFilter, global::System.Collections.Generic.IList? fileSearchStoreNames, + string? metadataFilter, int? topK) { - this.MetadataFilter = metadataFilter; this.FileSearchStoreNames = fileSearchStoreNames; + this.MetadataFilter = metadataFilter; this.TopK = topK; } 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 aa109e5c6..2985bb88d 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 @@ -9,24 +9,18 @@ namespace Google.Gemini public sealed partial class FileSearchStore { /// - /// 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" - /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { 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`.
+ /// 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("sizeBytes")] - public string? SizeBytes { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// - /// Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.
+ /// Output only. The Timestamp of when the `FileSearchStore` was last updated.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("activeDocumentsCount")] - public string? ActiveDocumentsCount { get; set; } + [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.
@@ -36,11 +30,18 @@ public sealed partial class FileSearchStore public string? PendingDocumentsCount { get; set; } /// - /// Output only. The Timestamp of when the `FileSearchStore` was last updated.
+ /// Output only. The Timestamp of when the `FileSearchStore` 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. 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 have failed processing.
@@ -50,24 +51,23 @@ public sealed partial class FileSearchStore public string? FailedDocumentsCount { get; set; } /// - /// 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. + /// 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" /// - [global::System.Text.Json.Serialization.JsonPropertyName("embeddingModel")] - public string? EmbeddingModel { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { 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; } /// - /// Output only. The Timestamp of when the `FileSearchStore` was created.
- /// Included only in responses + /// 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. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("embeddingModel")] + public string? EmbeddingModel { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -78,63 +78,63 @@ public sealed partial class FileSearchStore /// /// Initializes a new instance of the class. /// - /// - /// 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" - /// - /// - /// Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.
+ /// + /// 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 are active and ready for retrieval.
+ /// + /// 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 last updated.
+ /// + /// Output only. The Timestamp of when the `FileSearchStore` was created.
+ /// Included only in responses + /// + /// + /// 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 have failed processing.
/// Included only in responses /// - /// - /// 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. + /// + /// 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" /// - /// - /// 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 /// - /// - /// Output only. The Timestamp of when the `FileSearchStore` was created.
- /// Included only in responses + /// + /// 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. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FileSearchStore( - string? displayName, - string? sizeBytes, - string? activeDocumentsCount, - string? pendingDocumentsCount, + string? name, string? updateTime, + string? pendingDocumentsCount, + string? createTime, + string? activeDocumentsCount, string? failedDocumentsCount, - string? embeddingModel, - string? name, - string? createTime) + string? displayName, + string? sizeBytes, + string? embeddingModel) { - this.DisplayName = displayName; - this.SizeBytes = sizeBytes; - this.ActiveDocumentsCount = activeDocumentsCount; - this.PendingDocumentsCount = pendingDocumentsCount; + this.Name = name; this.UpdateTime = updateTime; + this.PendingDocumentsCount = pendingDocumentsCount; + this.CreateTime = createTime; + this.ActiveDocumentsCount = activeDocumentsCount; this.FailedDocumentsCount = failedDocumentsCount; + this.DisplayName = displayName; + this.SizeBytes = sizeBytes; this.EmbeddingModel = embeddingModel; - this.Name = name; - this.CreateTime = createTime; } /// 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 6e56d9c74..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,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class FunctionCall { - /// - /// Optional. The function parameters and values in JSON object format. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("args")] - public object? Args { 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. /// @@ -26,6 +20,12 @@ public sealed partial class FunctionCall [global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } + /// + /// Optional. The function parameters and values in JSON object format. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("args")] + public object? Args { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -35,26 +35,26 @@ public sealed partial class FunctionCall /// /// Initializes a new instance of the class. /// - /// - /// Optional. The function parameters and values in JSON object format. - /// /// /// 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. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionCall( - object? args, string? name, - string? id) + string? id, + object? args) { - this.Args = args; this.Name = name; this.Id = id; + this.Args = args; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCallingConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCallingConfig.g.cs index a03827d50..7f9335127 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCallingConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCallingConfig.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class FunctionCallingConfig { + /// + /// 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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowedFunctionNames")] + public global::System.Collections.Generic.IList? AllowedFunctionNames { get; set; } + /// /// Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO. /// @@ -15,12 +21,6 @@ public sealed partial class FunctionCallingConfig [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter))] public global::Google.Gemini.FunctionCallingConfigMode? Mode { get; set; } - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("allowedFunctionNames")] - public global::System.Collections.Generic.IList? AllowedFunctionNames { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,21 +30,21 @@ public sealed partial class FunctionCallingConfig /// /// Initializes a new instance of the class. /// - /// - /// Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO. - /// /// /// 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. /// + /// + /// Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionCallingConfig( - global::Google.Gemini.FunctionCallingConfigMode? mode, - global::System.Collections.Generic.IList? allowedFunctionNames) + global::System.Collections.Generic.IList? allowedFunctionNames, + global::Google.Gemini.FunctionCallingConfigMode? mode) { - this.Mode = mode; this.AllowedFunctionNames = allowedFunctionNames; + this.Mode = mode; } /// 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 45bd77d8f..a615fba66 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 @@ -9,10 +9,17 @@ namespace Google.Gemini public sealed partial class FunctionDeclaration { /// - /// 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`. + /// 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("parametersJsonSchema")] - public object? ParametersJsonSchema { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] + public global::Google.Gemini.Schema? Parameters { get; set; } + + /// + /// 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; } /// /// 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`. @@ -33,17 +40,10 @@ public sealed partial class FunctionDeclaration public string? Name { get; set; } /// - /// 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; } - - /// - /// 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("parameters")] - public global::Google.Gemini.Schema? Parameters { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("parametersJsonSchema")] + public object? ParametersJsonSchema { get; set; } /// /// Required. A brief description of the function. @@ -60,8 +60,11 @@ public sealed partial class FunctionDeclaration /// /// Initializes a new instance of the class. /// - /// - /// 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`. + /// + /// 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. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. /// /// /// 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`. @@ -72,11 +75,8 @@ public sealed partial class FunctionDeclaration /// /// 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. /// - /// - /// 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). + /// + /// 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`. /// /// /// Required. A brief description of the function. @@ -85,20 +85,20 @@ public sealed partial class FunctionDeclaration [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionDeclaration( - object? parametersJsonSchema, + global::Google.Gemini.Schema? parameters, + global::Google.Gemini.FunctionDeclarationBehavior? behavior, object? responseJsonSchema, global::Google.Gemini.Schema? response, string? name, - global::Google.Gemini.FunctionDeclarationBehavior? behavior, - global::Google.Gemini.Schema? parameters, + object? parametersJsonSchema, string? description) { - this.ParametersJsonSchema = parametersJsonSchema; + this.Parameters = parameters; + this.Behavior = behavior; this.ResponseJsonSchema = responseJsonSchema; this.Response = response; this.Name = name; - this.Behavior = behavior; - this.Parameters = parameters; + this.ParametersJsonSchema = parametersJsonSchema; this.Description = description; } 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 bface5024..84a61e959 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 @@ -9,16 +9,16 @@ namespace Google.Gemini public sealed partial class FunctionResponse { /// - /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { 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; } /// /// 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. @@ -27,12 +27,6 @@ public sealed partial class FunctionResponse [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter))] public global::Google.Gemini.FunctionResponseScheduling? Scheduling { 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - public object? Response { 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`. /// @@ -40,10 +34,16 @@ public sealed partial class FunctionResponse public bool? WillContinue { 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. + /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + public object? Response { get; set; } + + /// + /// Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parts")] + public global::System.Collections.Generic.IList? Parts { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -54,41 +54,41 @@ 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. 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. - /// /// /// 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. /// - /// - /// 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. 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`. /// - /// - /// 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. + /// + /// 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. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionResponse( + string? name, string? id, - global::System.Collections.Generic.IList? parts, global::Google.Gemini.FunctionResponseScheduling? scheduling, - object? response, bool? willContinue, - string? name) + object? response, + global::System.Collections.Generic.IList? parts) { + this.Name = name; this.Id = id; - this.Parts = parts; this.Scheduling = scheduling; - this.Response = response; this.WillContinue = willContinue; - this.Name = name; + this.Response = response; + this.Parts = parts; } /// 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 de617a0d8..16da0f84b 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 { - /// - /// 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; } + /// + /// 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 /// @@ -29,21 +29,21 @@ public sealed partial class FunctionResponseBlob /// /// Initializes a new instance of the class. /// - /// - /// 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). /// + /// + /// Raw bytes for media formats. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionResponseBlob( - byte[]? data, - string? mimeType) + string? mimeType, + byte[]? data) { - this.Data = data; this.MimeType = mimeType; + this.Data = data; } /// 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 130b112eb..23cf86193 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 @@ -8,13 +8,6 @@ namespace Google.Gemini /// public sealed partial class GenerateContentBatch { - /// - /// Output only. The time at which the batch processing completed.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("endTime")] - public string? EndTime { get; set; } - /// /// Configures the input to the batch request. /// @@ -22,16 +15,17 @@ public sealed partial class GenerateContentBatch public global::Google.Gemini.InputConfig? InputConfig { get; set; } /// - /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. + /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("output")] - public global::Google.Gemini.GenerateContentBatchOutput? Output { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { 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; } /// /// 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. @@ -40,45 +34,51 @@ public sealed partial class GenerateContentBatch public string? Priority { get; set; } /// - /// Required. The user-defined name of this batch. + /// Output only. The time at which the batch was created.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } /// - /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
+ /// 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; } + + /// + /// Output only. The state of the batch.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { 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; } /// - /// 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; } /// - /// Stats about the batch. + /// Required. The user-defined name of this batch. /// - [global::System.Text.Json.Serialization.JsonPropertyName("batchStats")] - public global::Google.Gemini.BatchStats? BatchStats { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { 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 `BatchGenerateContentResponse` or the `GenerateContentBatch.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.GenerateContentBatchOutput? Output { get; set; } /// - /// Output only. The state of the batch.
+ /// Output only. The time at which the batch was last updated.
/// 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; } + [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { 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 time at which the batch processing completed.
- /// Included only in responses - /// /// /// Configures the input to the batch request. /// - /// - /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. - /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// 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. - /// /// /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
/// Included only in responses /// - /// - /// Output only. The time at which the batch was last updated.
- /// Included only in responses - /// /// /// Stats about the batch. /// + /// + /// 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}`. + /// /// /// Output only. The state of the batch.
/// Included only in responses /// + /// + /// Output only. The time at which the batch processing completed.
+ /// Included only in responses + /// + /// + /// Required. The user-defined name of this batch. + /// + /// + /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. + /// + /// + /// Output only. The time at which the batch was last updated.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerateContentBatch( - string? endTime, global::Google.Gemini.InputConfig? inputConfig, - global::Google.Gemini.GenerateContentBatchOutput? output, - string? model, - string? priority, - string? displayName, string? name, - string? updateTime, global::Google.Gemini.BatchStats? batchStats, + string? priority, string? createTime, - global::Google.Gemini.GenerateContentBatchState? state) + string? model, + global::Google.Gemini.GenerateContentBatchState? state, + string? endTime, + string? displayName, + global::Google.Gemini.GenerateContentBatchOutput? output, + string? updateTime) { - this.EndTime = endTime; this.InputConfig = inputConfig; - this.Output = output; - this.Model = model; - this.Priority = priority; - this.DisplayName = displayName; this.Name = name; - this.UpdateTime = updateTime; this.BatchStats = batchStats; + this.Priority = priority; this.CreateTime = createTime; + this.Model = model; this.State = state; + this.EndTime = endTime; + this.DisplayName = displayName; + this.Output = output; + this.UpdateTime = updateTime; } /// 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 c34eb311c..bb0201655 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,12 +8,6 @@ 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 @@ -21,6 +15,12 @@ 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( - global::Google.Gemini.InlinedResponses? inlinedResponses, - string? responsesFile) + string? responsesFile, + global::Google.Gemini.InlinedResponses? inlinedResponses) { - this.InlinedResponses = inlinedResponses; this.ResponsesFile = responsesFile; + this.InlinedResponses = inlinedResponses; } /// 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 f4a570478..61fdb532a 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 @@ -8,18 +8,6 @@ namespace Google.Gemini /// public sealed partial class GenerateContentRequest { - /// - /// 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("cachedContent")] - public string? CachedContent { 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contents")] - public global::System.Collections.Generic.IList? Contents { get; set; } - /// /// Optional. The service tier of the request. /// @@ -28,10 +16,10 @@ public sealed partial class GenerateContentRequest public global::Google.Gemini.GenerateContentRequestServiceTier? ServiceTier { get; set; } /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// 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("store")] - public bool? Store { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { 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"}`) @@ -40,22 +28,28 @@ public sealed partial class GenerateContentRequest public global::System.Collections.Generic.Dictionary? Labels { get; set; } /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - [global::System.Text.Json.Serialization.JsonPropertyName("generationConfig")] - public global::Google.Gemini.GenerationConfig? GenerationConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("store")] + public bool? Store { get; set; } /// - /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolConfig")] - public global::Google.Gemini.ToolConfig? ToolConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("contents")] + public global::System.Collections.Generic.IList? Contents { 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. 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("systemInstruction")] - public global::Google.Gemini.Content? SystemInstruction { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("cachedContent")] + public string? CachedContent { 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; } /// /// 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. @@ -64,16 +58,22 @@ public sealed partial class GenerateContentRequest public global::System.Collections.Generic.IList? SafetySettings { get; set; } /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("toolConfig")] + public global::Google.Gemini.ToolConfig? ToolConfig { 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. + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("generationConfig")] + public global::Google.Gemini.GenerationConfig? GenerationConfig { 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("systemInstruction")] + public global::Google.Gemini.Content? SystemInstruction { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -84,66 +84,66 @@ public sealed partial class GenerateContentRequest /// /// Initializes a new instance of the class. /// - /// - /// 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}` - /// - /// - /// 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. The service tier of the request. /// - /// - /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. + /// + /// 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. 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"}`) /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// 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. /// - /// - /// 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. 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}` + /// + /// + /// 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. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the 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. + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every 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. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerateContentRequest( - string? cachedContent, - global::System.Collections.Generic.IList? contents, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier, - bool? store, + global::System.Collections.Generic.IList? tools, global::System.Collections.Generic.Dictionary? labels, - global::Google.Gemini.GenerationConfig? generationConfig, - global::Google.Gemini.ToolConfig? toolConfig, - global::Google.Gemini.Content? systemInstruction, - global::System.Collections.Generic.IList? safetySettings, + bool? store, + global::System.Collections.Generic.IList? contents, + string? cachedContent, string? model, - global::System.Collections.Generic.IList? tools) + global::System.Collections.Generic.IList? safetySettings, + global::Google.Gemini.ToolConfig? toolConfig, + global::Google.Gemini.GenerationConfig? generationConfig, + global::Google.Gemini.Content? systemInstruction) { - this.CachedContent = cachedContent; - this.Contents = contents; this.ServiceTier = serviceTier; - this.Store = store; + this.Tools = tools; this.Labels = labels; - this.GenerationConfig = generationConfig; + this.Store = store; + this.Contents = contents; + this.CachedContent = cachedContent; + this.Model = model; + this.SafetySettings = safetySettings; this.ToolConfig = toolConfig; + this.GenerationConfig = generationConfig; this.SystemInstruction = systemInstruction; - this.SafetySettings = safetySettings; - this.Model = model; - this.Tools = tools; } /// 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 a2f7a994a..471eae64d 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 @@ -14,12 +14,6 @@ public sealed partial class GenerateContentResponse [global::System.Text.Json.Serialization.JsonPropertyName("candidates")] public global::System.Collections.Generic.IList? Candidates { 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("modelStatus")] - public global::Google.Gemini.ModelStatus? ModelStatus { get; set; } - /// /// Metadata on the generation request's token usage. /// @@ -33,12 +27,6 @@ public sealed partial class GenerateContentResponse [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; } - /// /// Output only. response_id is used to identify each response.
/// Included only in responses @@ -46,6 +34,18 @@ public sealed partial class GenerateContentResponse [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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("modelStatus")] + public global::Google.Gemini.ModelStatus? ModelStatus { 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; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -58,9 +58,6 @@ public sealed partial class GenerateContentResponse /// /// Candidate responses from the model. /// - /// - /// The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable. - /// /// /// Metadata on the generation request's token usage. /// @@ -68,30 +65,33 @@ public sealed partial class GenerateContentResponse /// Output only. The model version used to generate the response.
/// Included only in responses /// - /// - /// A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`. - /// /// /// 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. + /// + /// + /// A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerateContentResponse( global::System.Collections.Generic.IList? candidates, - global::Google.Gemini.ModelStatus? modelStatus, global::Google.Gemini.UsageMetadata? usageMetadata, string? modelVersion, - global::Google.Gemini.PromptFeedback? promptFeedback, - string? responseId) + string? responseId, + global::Google.Gemini.ModelStatus? modelStatus, + global::Google.Gemini.PromptFeedback? promptFeedback) { this.Candidates = candidates; - this.ModelStatus = modelStatus; this.UsageMetadata = usageMetadata; this.ModelVersion = modelVersion; - this.PromptFeedback = promptFeedback; this.ResponseId = responseId; + this.ModelStatus = modelStatus; + this.PromptFeedback = promptFeedback; } /// 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 e0ee3f658..6b77252c6 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 @@ -8,24 +8,12 @@ namespace Google.Gemini /// public sealed partial class GeneratedFile { - /// - /// 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] public string? MimeType { get; set; } - /// - /// Identifier. The name of the generated file. Example: `generatedFiles/abc-123` - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - /// /// Output only. The state of the GeneratedFile.
/// Included only in responses @@ -34,6 +22,18 @@ 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; } + + /// + /// Identifier. The name of the generated file. Example: `generatedFiles/abc-123` + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -43,32 +43,32 @@ public sealed partial class GeneratedFile /// /// 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). - /// /// /// MIME type of the generatedFile. /// - /// - /// Identifier. The name of the generated file. Example: `generatedFiles/abc-123` - /// /// /// 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). + /// + /// + /// Identifier. The name of the generated file. Example: `generatedFiles/abc-123` + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GeneratedFile( - global::Google.Gemini.Status? error, string? mimeType, - string? name, - global::Google.Gemini.GeneratedFileState? state) + global::Google.Gemini.GeneratedFileState? state, + global::Google.Gemini.Status? error, + string? name) { - this.Error = error; this.MimeType = mimeType; - this.Name = name; this.State = state; + this.Error = error; + this.Name = name; } /// 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 3d4571dac..00b957799 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,22 +9,10 @@ namespace Google.Gemini public sealed partial class GenerationConfig { /// - /// Optional. If true, export the logprobs results in response. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseLogprobs")] - public bool? ResponseLogprobs { get; set; } - - /// - /// 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("responseFormat")] - public global::Google.Gemini.ResponseFormatConfig? ResponseFormat { get; set; } - - /// - /// 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). /// - [global::System.Text.Json.Serialization.JsonPropertyName("stopSequences")] - public global::System.Collections.Generic.IList? StopSequences { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseSchema")] + public global::Google.Gemini.Schema? ResponseSchema { get; set; } /// /// Config for image generation features. @@ -33,22 +21,22 @@ public sealed partial class GenerationConfig public global::Google.Gemini.ImageConfig? ImageConfig { 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]. + /// Config for thinking features. /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public float? Temperature { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("thinkingConfig")] + public global::Google.Gemini.ThinkingConfig? ThinkingConfig { 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. Seed used in decoding. If not set, the request uses a randomly generated seed. /// - [global::System.Text.Json.Serialization.JsonPropertyName("frequencyPenalty")] - public float? FrequencyPenalty { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("seed")] + public int? Seed { get; set; } /// - /// Config for translation 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("translationConfig")] - public global::Google.Gemini.TranslationConfig? TranslationConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("logprobs")] + public int? Logprobs { get; set; } /// /// Config for speech generation and transcription. @@ -57,40 +45,53 @@ public sealed partial class GenerationConfig public global::Google.Gemini.SpeechConfig? SpeechConfig { 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. + /// 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. If enabled, the model will detect emotions and adapt its responses accordingly. + /// Optional. If specified, the media resolution specified will be used. /// - [global::System.Text.Json.Serialization.JsonPropertyName("enableAffectiveDialog")] - public bool? EnableAffectiveDialog { 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; } /// - /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("audioTranscriptionConfig")] - public global::Google.Gemini.AudioTranscriptionConfig? AudioTranscriptionConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxOutputTokens")] + public int? MaxOutputTokens { 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. 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("responseMimeType")] - public string? ResponseMimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("frequencyPenalty")] + public float? FrequencyPenalty { get; set; } /// - /// Optional. An internal detail. Use `responseJsonSchema` rather than this field. + /// Optional. If true, export the logprobs results in response. /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseJsonSchema")] - public object? ResponseJsonSchema { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseLogprobs")] + public bool? ResponseLogprobs { get; set; } /// - /// Config for thinking 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("thinkingConfig")] - public global::Google.Gemini.ThinkingConfig? ThinkingConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseModalities")] + public global::System.Collections.Generic.IList? ResponseModalities { 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. + /// + [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]. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public float? Temperature { get; set; } /// /// Optional. Enables enhanced civic answers. It may not be available for all models. @@ -99,34 +100,34 @@ public sealed partial class GenerationConfig public bool? EnableEnhancedCivicAnswers { 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). + /// Config for translation features. /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseSchema")] - public global::Google.Gemini.Schema? ResponseSchema { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("translationConfig")] + public global::Google.Gemini.TranslationConfig? TranslationConfig { 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. 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("logprobs")] - public int? Logprobs { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("candidateCount")] + public int? CandidateCount { 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. + /// 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("responseModalities")] - public global::System.Collections.Generic.IList? ResponseModalities { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseFormat")] + public global::Google.Gemini.ResponseFormatConfig? ResponseFormat { get; set; } /// - /// Optional. Seed used in decoding. If not set, the request uses a randomly generated seed. + /// The audio transcription configuration. /// - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public int? Seed { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("audioTranscriptionConfig")] + public global::Google.Gemini.AudioTranscriptionConfig? AudioTranscriptionConfig { 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. 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. @@ -135,23 +136,22 @@ public sealed partial class GenerationConfig public int? TopK { 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. + /// 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("presencePenalty")] - public float? PresencePenalty { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("stopSequences")] + public global::System.Collections.Generic.IList? StopSequences { get; set; } /// - /// Optional. If specified, the media resolution specified will be used. + /// 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("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("presencePenalty")] + public float? PresencePenalty { 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 enabled, the model will detect emotions and adapt its responses accordingly. /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxOutputTokens")] - public int? MaxOutputTokens { 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. If true, export the logprobs results in response. - /// - /// - /// Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality. - /// - /// - /// 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). /// /// /// Config for image generation features. /// - /// - /// 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]. + /// + /// Config for thinking features. /// - /// - /// 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. Seed used in decoding. If not set, the request uses a randomly generated seed. /// - /// - /// Config for translation 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]. /// /// /// Config for speech generation and transcription. /// - /// - /// 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. - /// - /// - /// Optional. If enabled, the model will detect emotions and adapt its responses accordingly. - /// - /// - /// The audio transcription configuration. - /// - /// - /// 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. An internal detail. Use `responseJsonSchema` rather than this field. /// - /// - /// Config for thinking features. + /// + /// Optional. If specified, the media resolution specified will be used. /// - /// - /// Optional. Enables enhanced civic answers. It may not be available for all models. + /// + /// 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. /// - /// - /// 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. 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. 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. If true, export the logprobs results in response. /// /// /// 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. Seed used in decoding. If not set, the request uses a randomly generated seed. + /// + /// 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. + /// + /// + /// 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]. + /// + /// + /// Optional. Enables enhanced civic answers. It may not be available for all models. + /// + /// + /// Config for translation features. /// /// /// 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) /// + /// + /// Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality. + /// + /// + /// The audio transcription configuration. + /// + /// + /// 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. /// + /// + /// 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. + /// /// /// 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. If specified, the media resolution specified will be used. - /// - /// - /// 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 enabled, the model will detect emotions and adapt its responses accordingly. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerationConfig( - bool? responseLogprobs, - global::Google.Gemini.ResponseFormatConfig? responseFormat, - global::System.Collections.Generic.IList? stopSequences, + global::Google.Gemini.Schema? responseSchema, global::Google.Gemini.ImageConfig? imageConfig, - float? temperature, - float? frequencyPenalty, - global::Google.Gemini.TranslationConfig? translationConfig, - global::Google.Gemini.SpeechConfig? speechConfig, - float? topP, - bool? enableAffectiveDialog, - global::Google.Gemini.AudioTranscriptionConfig? audioTranscriptionConfig, - string? responseMimeType, - object? responseJsonSchema, global::Google.Gemini.ThinkingConfig? thinkingConfig, - bool? enableEnhancedCivicAnswers, - global::Google.Gemini.Schema? responseSchema, + int? seed, int? logprobs, + global::Google.Gemini.SpeechConfig? speechConfig, + object? responseJsonSchema, + global::Google.Gemini.GenerationConfigMediaResolution? mediaResolution, + int? maxOutputTokens, + float? frequencyPenalty, + bool? responseLogprobs, global::System.Collections.Generic.IList? responseModalities, - int? seed, + float? topP, + float? temperature, + bool? enableEnhancedCivicAnswers, + global::Google.Gemini.TranslationConfig? translationConfig, int? candidateCount, + global::Google.Gemini.ResponseFormatConfig? responseFormat, + global::Google.Gemini.AudioTranscriptionConfig? audioTranscriptionConfig, + string? responseMimeType, int? topK, + global::System.Collections.Generic.IList? stopSequences, float? presencePenalty, - global::Google.Gemini.GenerationConfigMediaResolution? mediaResolution, - int? maxOutputTokens) + bool? enableAffectiveDialog) { - this.ResponseLogprobs = responseLogprobs; - this.ResponseFormat = responseFormat; - this.StopSequences = stopSequences; + this.ResponseSchema = responseSchema; this.ImageConfig = imageConfig; - this.Temperature = temperature; - this.FrequencyPenalty = frequencyPenalty; - this.TranslationConfig = translationConfig; - this.SpeechConfig = speechConfig; - this.TopP = topP; - this.EnableAffectiveDialog = enableAffectiveDialog; - this.AudioTranscriptionConfig = audioTranscriptionConfig; - this.ResponseMimeType = responseMimeType; - this.ResponseJsonSchema = responseJsonSchema; this.ThinkingConfig = thinkingConfig; - this.EnableEnhancedCivicAnswers = enableEnhancedCivicAnswers; - this.ResponseSchema = responseSchema; + this.Seed = seed; this.Logprobs = logprobs; + this.SpeechConfig = speechConfig; + this.ResponseJsonSchema = responseJsonSchema; + this.MediaResolution = mediaResolution; + this.MaxOutputTokens = maxOutputTokens; + this.FrequencyPenalty = frequencyPenalty; + this.ResponseLogprobs = responseLogprobs; this.ResponseModalities = responseModalities; - this.Seed = seed; + this.TopP = topP; + this.Temperature = temperature; + this.EnableEnhancedCivicAnswers = enableEnhancedCivicAnswers; + this.TranslationConfig = translationConfig; this.CandidateCount = candidateCount; + this.ResponseFormat = responseFormat; + this.AudioTranscriptionConfig = audioTranscriptionConfig; + this.ResponseMimeType = responseMimeType; this.TopK = topK; + this.StopSequences = stopSequences; this.PresencePenalty = presencePenalty; - this.MediaResolution = mediaResolution; - this.MaxOutputTokens = maxOutputTokens; + this.EnableAffectiveDialog = enableAffectiveDialog; } /// 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 55ba68bd3..b2210a8c8 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 @@ -15,10 +15,10 @@ public sealed partial class GoogleAiGenerativelanguageV1betaGroundingSupport public global::System.Collections.Generic.IList? ConfidenceScores { get; set; } /// - /// 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; } /// /// Output only. Indices into the `parts` field of the candidate's content. These indices specify which rendered parts are associated with this support source.
@@ -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 @@ -45,29 +45,29 @@ public sealed partial class GoogleAiGenerativelanguageV1betaGroundingSupport /// /// 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. /// - /// - /// 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. /// /// /// 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? confidenceScores, - global::System.Collections.Generic.IList? groundingChunkIndices, + global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? segment, global::System.Collections.Generic.IList? renderedParts, - global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? segment) + global::System.Collections.Generic.IList? groundingChunkIndices) { this.ConfidenceScores = confidenceScores; - this.GroundingChunkIndices = groundingChunkIndices; - this.RenderedParts = renderedParts; this.Segment = segment; + this.RenderedParts = renderedParts; + 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 6fd053b17..dec5fe8ce 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,18 +8,6 @@ namespace Google.Gemini /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("startIndex")] - public int? StartIndex { get; set; } - - /// - /// The text corresponding to the segment from the response. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { get; set; } - /// /// The index of a Part object within its parent Content object. /// @@ -32,6 +20,18 @@ public sealed partial class GoogleAiGenerativelanguageV1betaSegment [global::System.Text.Json.Serialization.JsonPropertyName("endIndex")] public int? EndIndex { get; set; } + /// + /// The text corresponding to the segment from the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } + + /// + /// Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("startIndex")] + public int? StartIndex { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,31 +41,31 @@ public sealed partial class GoogleAiGenerativelanguageV1betaSegment /// /// Initializes a new instance of the class. /// - /// - /// Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero. - /// - /// - /// The text corresponding to the segment from the response. - /// /// /// The index of a Part object within its parent Content object. /// /// /// End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero. /// + /// + /// The text corresponding to the segment from the response. + /// + /// + /// Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GoogleAiGenerativelanguageV1betaSegment( - int? startIndex, - string? text, int? partIndex, - int? endIndex) + int? endIndex, + string? text, + int? startIndex) { - this.StartIndex = startIndex; - this.Text = text; this.PartIndex = partIndex; this.EndIndex = endIndex; + this.Text = text; + this.StartIndex = startIndex; } /// 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 74828ec0c..72c070046 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 { - /// - /// 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; } + /// + /// 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; } + /// /// 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. /// - /// - /// 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. /// + /// + /// Different types of search that can be enabled on the GoogleSearch tool. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GoogleSearch( - global::Google.Gemini.SearchTypes? searchTypes, - global::Google.Gemini.Interval? timeRangeFilter) + global::Google.Gemini.Interval? timeRangeFilter, + global::Google.Gemini.SearchTypes? searchTypes) { - this.SearchTypes = searchTypes; this.TimeRangeFilter = timeRangeFilter; + this.SearchTypes = searchTypes; } /// 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 774592710..04271e10b 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,16 +9,16 @@ namespace Google.Gemini public sealed partial class GroundingChunk { /// - /// 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; } /// /// A grounding chunk from Google Maps. A Maps chunk corresponds to a single place. @@ -27,10 +27,10 @@ public sealed partial class GroundingChunk public global::Google.Gemini.Maps? Maps { get; set; } /// - /// 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; } /// /// 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 image search. /// - /// - /// 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 the web. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GroundingChunk( + global::Google.Gemini.RetrievedContext? retrievedContext, global::Google.Gemini.Image? image, - global::Google.Gemini.Web? web, global::Google.Gemini.Maps? maps, - global::Google.Gemini.RetrievedContext? retrievedContext) + global::Google.Gemini.Web? web) { + this.RetrievedContext = retrievedContext; this.Image = image; - this.Web = web; this.Maps = maps; - this.RetrievedContext = retrievedContext; + 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 6de11c0e5..91a650165 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 @@ -15,10 +15,10 @@ public sealed partial class GroundingChunkCustomMetadata public global::Google.Gemini.GroundingChunkStringList? StringListValue { get; set; } /// - /// Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used. + /// Optional. The string value of the metadata. /// - [global::System.Text.Json.Serialization.JsonPropertyName("numericValue")] - public float? NumericValue { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("stringValue")] + public string? StringValue { get; set; } /// /// The key of the metadata. @@ -27,10 +27,10 @@ public sealed partial class GroundingChunkCustomMetadata public string? Key { get; set; } /// - /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("stringValue")] - public string? StringValue { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("numericValue")] + public float? NumericValue { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -44,28 +44,28 @@ public sealed partial class GroundingChunkCustomMetadata /// /// A list of string values. /// - /// - /// Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used. + /// + /// Optional. The string value of the metadata. /// /// /// The key of the metadata. /// - /// - /// 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. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GroundingChunkCustomMetadata( global::Google.Gemini.GroundingChunkStringList? stringListValue, - float? numericValue, + string? stringValue, string? key, - string? stringValue) + float? numericValue) { this.StringListValue = stringListValue; - this.NumericValue = numericValue; - this.Key = key; this.StringValue = stringValue; + this.Key = key; + this.NumericValue = numericValue; } /// 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 2d985da34..43ef6ccf2 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 @@ -15,10 +15,16 @@ public sealed partial class GroundingMetadata public global::System.Collections.Generic.IList? GroundingChunks { get; set; } /// - /// Web search queries for the following-up web search. + /// Image search queries used for grounding. /// - [global::System.Text.Json.Serialization.JsonPropertyName("webSearchQueries")] - public global::System.Collections.Generic.IList? WebSearchQueries { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("imageSearchQueries")] + public global::System.Collections.Generic.IList? ImageSearchQueries { get; set; } + + /// + /// List of grounding support. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("groundingSupports")] + public global::System.Collections.Generic.IList? GroundingSupports { 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. @@ -39,16 +45,10 @@ public sealed partial class GroundingMetadata public global::Google.Gemini.SearchEntryPoint? SearchEntryPoint { get; set; } /// - /// Image search queries used for grounding. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("imageSearchQueries")] - public global::System.Collections.Generic.IList? ImageSearchQueries { get; set; } - - /// - /// List of grounding support. + /// Web search queries for the following-up web search. /// - [global::System.Text.Json.Serialization.JsonPropertyName("groundingSupports")] - public global::System.Collections.Generic.IList? GroundingSupports { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("webSearchQueries")] + public global::System.Collections.Generic.IList? WebSearchQueries { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -62,8 +62,11 @@ public sealed partial class GroundingMetadata /// /// 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. /// - /// - /// Web search queries for the following-up web search. + /// + /// 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. @@ -74,31 +77,28 @@ public sealed partial class GroundingMetadata /// /// Google search entry point. /// - /// - /// Image search queries used for grounding. - /// - /// - /// List of grounding support. + /// + /// Web search queries for the following-up web search. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GroundingMetadata( global::System.Collections.Generic.IList? groundingChunks, - global::System.Collections.Generic.IList? webSearchQueries, + global::System.Collections.Generic.IList? imageSearchQueries, + global::System.Collections.Generic.IList? groundingSupports, string? googleMapsWidgetContextToken, global::Google.Gemini.RetrievalMetadata? retrievalMetadata, global::Google.Gemini.SearchEntryPoint? searchEntryPoint, - global::System.Collections.Generic.IList? imageSearchQueries, - global::System.Collections.Generic.IList? groundingSupports) + global::System.Collections.Generic.IList? webSearchQueries) { this.GroundingChunks = groundingChunks; - this.WebSearchQueries = webSearchQueries; + this.ImageSearchQueries = imageSearchQueries; + this.GroundingSupports = groundingSupports; this.GoogleMapsWidgetContextToken = googleMapsWidgetContextToken; this.RetrievalMetadata = retrievalMetadata; this.SearchEntryPoint = searchEntryPoint; - this.ImageSearchQueries = imageSearchQueries; - this.GroundingSupports = groundingSupports; + this.WebSearchQueries = webSearchQueries; } /// 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 379c7e377..d3e86773e 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 @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class Hyperparameters { /// - /// 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. + /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("learningRate")] - public float? LearningRate { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("learningRateMultiplier")] + public float? LearningRateMultiplier { 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. @@ -27,10 +27,10 @@ public sealed partial class Hyperparameters 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. + /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("learningRateMultiplier")] - public float? LearningRateMultiplier { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("learningRate")] + public float? LearningRate { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -41,8 +41,8 @@ public sealed partial class Hyperparameters /// /// Initializes a new instance of the class. /// - /// - /// 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. + /// + /// 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. /// /// /// 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. @@ -50,22 +50,22 @@ 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. /// - /// - /// 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. + /// + /// 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. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Hyperparameters( - float? learningRate, + float? learningRateMultiplier, int? epochCount, int? batchSize, - float? learningRateMultiplier) + float? learningRate) { - this.LearningRate = learningRate; + this.LearningRateMultiplier = learningRateMultiplier; 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 658fd7887..3bd167929 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,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class Image { - /// - /// The web page URI for attribution. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sourceUri")] - public string? SourceUri { get; set; } - /// /// The image asset URL. /// [global::System.Text.Json.Serialization.JsonPropertyName("imageUri")] public string? ImageUri { 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; } + /// /// The title of the web page that the image is from. /// @@ -27,10 +27,10 @@ public sealed partial class Image public string? Title { get; set; } /// - /// The root domain of the web page that the image is from, e.g. "example.com". + /// The web page URI for attribution. /// - [global::System.Text.Json.Serialization.JsonPropertyName("domain")] - public string? Domain { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sourceUri")] + public string? SourceUri { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -41,31 +41,31 @@ public sealed partial class Image /// /// Initializes a new instance of the class. /// - /// - /// The web page URI for attribution. - /// /// /// The image asset URL. /// + /// + /// The root domain of the web page that the image is from, e.g. "example.com". + /// /// /// The title of the web page that the image is from. /// - /// - /// The root domain of the web page that the image is from, e.g. "example.com". + /// + /// The web page URI for attribution. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Image( - string? sourceUri, string? imageUri, + string? domain, string? title, - string? domain) + string? sourceUri) { - this.SourceUri = sourceUri; this.ImageUri = imageUri; - this.Title = title; this.Domain = domain; + this.Title = title; + this.SourceUri = sourceUri; } /// 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 5ee4d1e39..74d28190e 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 @@ -9,11 +9,11 @@ namespace Google.Gemini public sealed partial class ImageResponseFormat { /// - /// Optional. The delivery mode for the image output. + /// Optional. The MIME type of the image output. /// - [global::System.Text.Json.Serialization.JsonPropertyName("delivery")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter))] - public global::Google.Gemini.ImageResponseFormatDelivery? Delivery { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeJsonConverter))] + public global::Google.Gemini.ImageResponseFormatMimeType? MimeType { get; set; } /// /// Optional. The aspect ratio for the image output. @@ -22,13 +22,6 @@ public sealed partial class ImageResponseFormat [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter))] public global::Google.Gemini.ImageResponseFormatAspectRatio? AspectRatio { get; set; } - /// - /// Optional. The MIME type of the image output. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeJsonConverter))] - public global::Google.Gemini.ImageResponseFormatMimeType? MimeType { 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.ImageResponseFormatImageSizeJsonConverter))] public global::Google.Gemini.ImageResponseFormatImageSize? ImageSize { get; set; } + /// + /// Optional. The delivery mode for the image output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("delivery")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter))] + public global::Google.Gemini.ImageResponseFormatDelivery? Delivery { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,31 +45,31 @@ public sealed partial class ImageResponseFormat /// /// Initializes a new instance of the class. /// - /// - /// Optional. The delivery mode for the image output. + /// + /// Optional. The MIME type of the image output. /// /// /// Optional. The aspect ratio for the image output. /// - /// - /// Optional. The MIME type of the image output. - /// /// /// Optional. The size of the image output. /// + /// + /// Optional. The delivery mode for the image output. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ImageResponseFormat( - global::Google.Gemini.ImageResponseFormatDelivery? delivery, - global::Google.Gemini.ImageResponseFormatAspectRatio? aspectRatio, global::Google.Gemini.ImageResponseFormatMimeType? mimeType, - global::Google.Gemini.ImageResponseFormatImageSize? imageSize) + global::Google.Gemini.ImageResponseFormatAspectRatio? aspectRatio, + global::Google.Gemini.ImageResponseFormatImageSize? imageSize, + global::Google.Gemini.ImageResponseFormatDelivery? delivery) { - this.Delivery = delivery; - this.AspectRatio = aspectRatio; this.MimeType = mimeType; + this.AspectRatio = aspectRatio; this.ImageSize = imageSize; + this.Delivery = delivery; } /// 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 963b5b197..4f2df00f2 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; } - /// /// Custom metadata to be associated with the file. /// @@ -26,6 +20,12 @@ public sealed partial class ImportFileRequest [global::System.Text.Json.Serialization.JsonPropertyName("chunkingConfig")] public global::Google.Gemini.ChunkingConfig? ChunkingConfig { 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` - /// /// /// Custom metadata to be associated with the file. /// /// /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto /// + /// + /// 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::System.Collections.Generic.IList? customMetadata, - global::Google.Gemini.ChunkingConfig? chunkingConfig) + global::Google.Gemini.ChunkingConfig? chunkingConfig, + string? fileName) { - this.FileName = fileName; this.CustomMetadata = customMetadata; this.ChunkingConfig = chunkingConfig; + 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 3217b11a2..1dc7eb0f0 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,12 +14,6 @@ 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 @@ -27,6 +21,12 @@ 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, - global::Google.Gemini.Status? error, - object? metadata) + object? metadata, + global::Google.Gemini.Status? error) { this.Response = response; - this.Error = error; this.Metadata = metadata; + this.Error = error; } /// 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 f3ca3ee44..291135b24 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 { - /// - /// 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; } - /// /// 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`. /// @@ -27,6 +21,12 @@ public sealed partial class InlinedResponse [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 /// @@ -36,9 +36,6 @@ public sealed partial class InlinedResponse /// /// 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). - /// /// /// 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`. /// @@ -46,17 +43,20 @@ public sealed partial class InlinedResponse /// 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 InlinedResponse( - global::Google.Gemini.Status? error, global::Google.Gemini.GenerateContentResponse? response, - object? metadata) + object? metadata, + global::Google.Gemini.Status? error) { - this.Error = error; this.Response = response; this.Metadata = metadata; + this.Error = error; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListEnvironmentsResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListEnvironmentsResponse.g.cs index 616b816d2..f5a2d0d72 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListEnvironmentsResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListEnvironmentsResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ListEnvironmentsResponse { - /// - /// Pagination token. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] - public string? NextPageToken { get; set; } - /// /// Environments belonging to the provided project. /// [global::System.Text.Json.Serialization.JsonPropertyName("environments")] public global::System.Collections.Generic.IList? Environments { get; set; } + /// + /// Pagination token. + /// + [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 ListEnvironmentsResponse /// /// Initializes a new instance of the class. /// - /// - /// Pagination token. - /// /// /// Environments belonging to the provided project. /// + /// + /// Pagination token. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListEnvironmentsResponse( - string? nextPageToken, - global::System.Collections.Generic.IList? environments) + global::System.Collections.Generic.IList? environments, + string? nextPageToken) { - this.NextPageToken = nextPageToken; this.Environments = environments; + 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 56d16d70a..317206958 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 { - /// - /// 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; } + /// + /// 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; } + /// /// 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. /// - /// - /// A token that can be sent as a `page_token` into a subsequent `ListFiles` call. - /// /// /// The list of `File`s. /// + /// + /// A token that can be sent as a `page_token` into a subsequent `ListFiles` call. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListFilesResponse( - 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.ListModelsResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListModelsResponse.g.cs index d4af53509..76ed7050d 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListModelsResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListModelsResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ListModelsResponse { - /// - /// 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 Models. /// [global::System.Text.Json.Serialization.JsonPropertyName("models")] public global::System.Collections.Generic.IList? Models { 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 ListModelsResponse /// /// 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 Models. /// + /// + /// 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 ListModelsResponse( - string? nextPageToken, - global::System.Collections.Generic.IList? models) + global::System.Collections.Generic.IList? models, + string? nextPageToken) { - this.NextPageToken = nextPageToken; this.Models = models; + this.NextPageToken = nextPageToken; } /// 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 63edd676e..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,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ListOperationsResponse { - /// - /// The standard List next-page token. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] - public string? NextPageToken { 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("unreachable")] public global::System.Collections.Generic.IList? Unreachable { get; set; } + /// + /// The standard List next-page token. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] + public string? NextPageToken { get; set; } + /// /// A list of operations that matches the specified filter in the request. /// @@ -35,12 +35,12 @@ public sealed partial class ListOperationsResponse /// /// Initializes a new instance of the class. /// - /// - /// The standard List next-page token. - /// /// /// 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. /// @@ -48,12 +48,12 @@ public sealed partial class ListOperationsResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListOperationsResponse( - string? nextPageToken, global::System.Collections.Generic.IList? unreachable, + string? nextPageToken, global::System.Collections.Generic.IList? operations) { - this.NextPageToken = nextPageToken; 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 fb6d6f43a..800f4e39f 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 { - /// - /// 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; } + /// + /// 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 ListPermissionsResponse /// /// 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. - /// /// /// 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. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListPermissionsResponse( - string? nextPageToken, - global::System.Collections.Generic.IList? permissions) + global::System.Collections.Generic.IList? permissions, + string? nextPageToken) { - this.NextPageToken = nextPageToken; this.Permissions = permissions; + this.NextPageToken = nextPageToken; } /// 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 30d9cd800..1c8dd068b 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 @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class LogprobsResult { /// - /// Length = total number of decoding steps. + /// Sum of log probabilities for all tokens. /// - [global::System.Text.Json.Serialization.JsonPropertyName("topCandidates")] - public global::System.Collections.Generic.IList? TopCandidates { get; set; } + [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. @@ -21,10 +21,10 @@ public sealed partial class LogprobsResult public global::System.Collections.Generic.IList? ChosenCandidates { get; set; } /// - /// Sum of log probabilities for all tokens. + /// Length = total number of decoding steps. /// - [global::System.Text.Json.Serialization.JsonPropertyName("logProbabilitySum")] - public float? LogProbabilitySum { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("topCandidates")] + public global::System.Collections.Generic.IList? TopCandidates { 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. /// - /// - /// Length = total number of decoding steps. + /// + /// Sum of log probabilities for all tokens. /// /// /// Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates. /// - /// - /// Sum of log probabilities for all tokens. + /// + /// Length = total number of decoding steps. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public LogprobsResult( - global::System.Collections.Generic.IList? topCandidates, + float? logProbabilitySum, global::System.Collections.Generic.IList? chosenCandidates, - float? logProbabilitySum) + global::System.Collections.Generic.IList? topCandidates) { - this.TopCandidates = topCandidates; - this.ChosenCandidates = chosenCandidates; this.LogProbabilitySum = logProbabilitySum; + this.ChosenCandidates = chosenCandidates; + this.TopCandidates = topCandidates; } /// 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 c4f9fa4f8..65d4e3914 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("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 token id value. /// [global::System.Text.Json.Serialization.JsonPropertyName("tokenId")] public int? TokenId { get; set; } + /// + /// The candidate’s token string value. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("token")] + public string? Token { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -38,23 +38,23 @@ public sealed partial class LogprobsResultCandidate /// /// The candidate's log probability. /// - /// - /// The candidate’s token string value. - /// /// /// The candidate’s token id value. /// + /// + /// The candidate’s token string value. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public LogprobsResultCandidate( float? logProbability, - string? token, - int? tokenId) + int? tokenId, + string? token) { this.LogProbability = logProbability; - this.Token = token; this.TokenId = tokenId; + this.Token = token; } /// 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 614f6e5ab..c014a1b22 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 @@ -15,16 +15,10 @@ public sealed partial class Maps public string? Uri { get; set; } /// - /// Title of the place. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - - /// - /// The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("placeId")] - public string? PlaceId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("placeAnswerSources")] + public global::Google.Gemini.PlaceAnswerSources? PlaceAnswerSources { get; set; } /// /// Text description of the place answer. @@ -33,10 +27,16 @@ public sealed partial class Maps public string? Text { 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. + /// The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place. /// - [global::System.Text.Json.Serialization.JsonPropertyName("placeAnswerSources")] - public global::Google.Gemini.PlaceAnswerSources? PlaceAnswerSources { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("placeId")] + public string? PlaceId { get; set; } + + /// + /// Title of the place. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -50,33 +50,33 @@ public sealed partial class Maps /// /// URI reference of the place. /// - /// - /// Title of the place. - /// - /// - /// The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that 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. /// - /// - /// 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. + /// + /// The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place. + /// + /// + /// Title of the place. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Maps( string? uri, - string? title, - string? placeId, + global::Google.Gemini.PlaceAnswerSources? placeAnswerSources, string? text, - global::Google.Gemini.PlaceAnswerSources? placeAnswerSources) + string? placeId, + string? title) { this.Uri = uri; - this.Title = title; - this.PlaceId = placeId; - this.Text = text; this.PlaceAnswerSources = placeAnswerSources; + this.Text = text; + this.PlaceId = placeId; + this.Title = title; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModalityTokenCount.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModalityTokenCount.g.cs index 6a90f2cd0..d5bff801f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModalityTokenCount.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModalityTokenCount.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class ModalityTokenCount { - /// - /// Number of tokens. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tokenCount")] - public int? TokenCount { get; set; } - /// /// The modality associated with this token count. /// @@ -21,6 +15,12 @@ public sealed partial class ModalityTokenCount [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter))] public global::Google.Gemini.ModalityTokenCountModality? Modality { get; set; } + /// + /// Number of tokens. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tokenCount")] + public int? TokenCount { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,21 +30,21 @@ public sealed partial class ModalityTokenCount /// /// Initializes a new instance of the class. /// - /// - /// Number of tokens. - /// /// /// The modality associated with this token count. /// + /// + /// Number of tokens. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ModalityTokenCount( - int? tokenCount, - global::Google.Gemini.ModalityTokenCountModality? modality) + global::Google.Gemini.ModalityTokenCountModality? modality, + int? tokenCount) { - this.TokenCount = tokenCount; this.Modality = modality; + this.TokenCount = tokenCount; } /// 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 c9ad869d7..0fba829b6 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,28 +9,22 @@ namespace Google.Gemini public sealed partial class Model { /// - /// A short description of the model. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Maximum number of output tokens available for this model. + /// Required. The version number of the model. This represents the major version (`1.0` or `1.5`) /// - [global::System.Text.Json.Serialization.JsonPropertyName("outputTokenLimit")] - public int? OutputTokenLimit { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("version")] + public string? Version { 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. + /// 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("topP")] - public float? TopP { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public float? Temperature { 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. + /// 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("topK")] - public int? TopK { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// The maximum temperature this model can use. @@ -39,22 +33,16 @@ public sealed partial class Model public float? MaxTemperature { 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public float? Temperature { 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. + /// Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash` /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("baseModelId")] + public string? BaseModelId { get; set; } /// - /// Whether the model supports thinking. + /// Maximum number of output tokens available for this model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("thinking")] - public bool? Thinking { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("outputTokenLimit")] + public int? OutputTokenLimit { get; set; } /// /// The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`. @@ -69,22 +57,34 @@ public sealed partial class Model 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; } /// - /// Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash` + /// 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("baseModelId")] - public string? BaseModelId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("topK")] + public int? TopK { 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 [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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("topP")] + public float? TopP { 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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } + + /// + /// A short description of the model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -95,29 +95,23 @@ public sealed partial class Model /// /// Initializes a new instance of the class. /// - /// - /// A short description of the model. - /// - /// - /// Maximum number of output tokens available for this model. + /// + /// Required. The version number of the model. This represents the major version (`1.0` or `1.5`) /// - /// - /// 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. + /// + /// 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. /// - /// - /// 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. + /// + /// 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` /// /// /// The maximum temperature this model can use. /// - /// - /// 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. - /// - /// - /// 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 name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash` /// - /// - /// Whether the model supports thinking. + /// + /// Maximum number of output tokens available for this model. /// /// /// The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`. @@ -125,46 +119,52 @@ public sealed partial class 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. /// - /// - /// Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash` + /// + /// 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. /// - /// - /// 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 [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. + /// + /// + /// 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. + /// + /// + /// A short description of the model. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Model( - string? description, - int? outputTokenLimit, - float? topP, - int? topK, - float? maxTemperature, + string? version, float? temperature, - string? displayName, - bool? thinking, + string? name, + float? maxTemperature, + string? baseModelId, + int? outputTokenLimit, global::System.Collections.Generic.IList? supportedGenerationMethods, int? inputTokenLimit, - string? version, - string? baseModelId, - string? name) + bool? thinking, + int? topK, + float? topP, + string? displayName, + string? description) { - this.Description = description; - this.OutputTokenLimit = outputTokenLimit; - this.TopP = topP; - this.TopK = topK; - this.MaxTemperature = maxTemperature; + this.Version = version; this.Temperature = temperature; - this.DisplayName = displayName; - this.Thinking = thinking; + this.Name = name; + this.MaxTemperature = maxTemperature; + this.BaseModelId = baseModelId; + this.OutputTokenLimit = outputTokenLimit; this.SupportedGenerationMethods = supportedGenerationMethods; this.InputTokenLimit = inputTokenLimit; - this.Version = version; - this.BaseModelId = baseModelId; - this.Name = name; + this.Thinking = thinking; + this.TopK = topK; + this.TopP = topP; + this.DisplayName = displayName; + this.Description = description; } /// 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 18d255a56..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 @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class ModelStatus { - /// - /// A message explaining the model status. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - /// /// The time at which the model will be retired. /// @@ -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 /// @@ -36,26 +36,26 @@ public sealed partial class ModelStatus /// /// Initializes a new instance of the class. /// - /// - /// A message explaining the model status. - /// /// /// The time at which the model will be retired. /// /// /// 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? message, string? retirementTime, - global::Google.Gemini.ModelStatusModelStage? modelStage) + global::Google.Gemini.ModelStatusModelStage? modelStage, + string? message) { - this.Message = message; this.RetirementTime = retirementTime; 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 005d9eacf..daacb963f 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 @@ -9,22 +9,22 @@ namespace Google.Gemini public sealed partial class Operation { /// - /// 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`. + /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - public object? Response { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("done")] + public bool? Done { 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. + /// 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; } /// - /// 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. + /// 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("done")] - public bool? Done { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public object? Metadata { 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}`. @@ -33,10 +33,10 @@ public sealed partial class Operation 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). + /// 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("error")] - public global::Google.Gemini.Status? Error { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + public object? Response { 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 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`. + /// + /// 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). /// /// /// 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. /// - /// - /// 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 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 `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`. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Operation( - object? response, - object? metadata, bool? done, + global::Google.Gemini.Status? error, + object? metadata, string? name, - global::Google.Gemini.Status? error) + object? response) { - this.Response = response; - this.Metadata = metadata; this.Done = done; - this.Name = name; this.Error = error; + this.Metadata = metadata; + this.Name = name; + this.Response = response; } /// 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 b2dc7a966..fd37f6a5d 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 @@ -11,16 +11,17 @@ namespace Google.Gemini public sealed partial class Part { /// - /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("partMetadata")] - public object? PartMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("fileData")] + public global::Google.Gemini.FileData? FileData { get; set; } /// - /// Optional. An opaque signature for the thought so it can be reused in subsequent requests. + /// Deprecated: Use `GenerateContentRequest.processing_options` instead. Metadata describes the input video content. /// - [global::System.Text.Json.Serialization.JsonPropertyName("thoughtSignature")] - public byte[]? ThoughtSignature { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("videoMetadata")] + [global::System.Obsolete("This property marked as deprecated.")] + public global::Google.Gemini.VideoMetadata? VideoMetadata { get; set; } /// /// Raw media bytes. Text should not be sent as raw bytes, use the 'text' field. @@ -28,6 +29,12 @@ public sealed partial class Part [global::System.Text.Json.Serialization.JsonPropertyName("inlineData")] public global::Google.Gemini.Blob? InlineData { 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; } + /// /// 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. /// @@ -36,10 +43,10 @@ public sealed partial class Part public global::Google.Gemini.PartMediaProcessing? MediaProcessing { get; set; } /// - /// Optional. Indicates if the part is thought from the model. + /// 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`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("thought")] - public bool? Thought { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("toolResponse")] + public global::Google.Gemini.ToolResponse? ToolResponse { get; set; } /// /// Speech metadata for `text` parts. @@ -47,6 +54,12 @@ public sealed partial class Part [global::System.Text.Json.Serialization.JsonPropertyName("speechMetadata")] public global::Google.Gemini.SpeechMetadata? SpeechMetadata { get; set; } + /// + /// Media resolution for tokenization. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mediaResolution")] + public global::Google.Gemini.V1mainMediaResolution? MediaResolution { 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. /// @@ -60,41 +73,40 @@ public sealed partial class Part public global::Google.Gemini.ToolCall? ToolCall { 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. + /// 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("functionResponse")] - public global::Google.Gemini.FunctionResponse? FunctionResponse { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("executableCode")] + public global::Google.Gemini.ExecutableCode? ExecutableCode { 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`. + /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolResponse")] - public global::Google.Gemini.ToolResponse? ToolResponse { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("partMetadata")] + public object? PartMetadata { get; set; } /// - /// Media resolution for tokenization. + /// 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("mediaResolution")] - public global::Google.Gemini.V1mainMediaResolution? MediaResolution { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("functionResponse")] + public global::Google.Gemini.FunctionResponse? FunctionResponse { get; set; } /// - /// Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used. + /// Optional. An opaque signature for the thought so it can be reused in subsequent requests. /// - [global::System.Text.Json.Serialization.JsonPropertyName("codeExecutionResult")] - public global::Google.Gemini.CodeExecutionResult? CodeExecutionResult { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("thoughtSignature")] + public byte[]? ThoughtSignature { get; set; } /// - /// Deprecated: Use `GenerateContentRequest.processing_options` instead. Metadata describes the input video content. + /// Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used. /// - [global::System.Text.Json.Serialization.JsonPropertyName("videoMetadata")] - [global::System.Obsolete("This property marked as deprecated.")] - public global::Google.Gemini.VideoMetadata? VideoMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("codeExecutionResult")] + public global::Google.Gemini.CodeExecutionResult? CodeExecutionResult { get; set; } /// - /// URI based data. + /// Optional. Indicates if the part is thought from the model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileData")] - public global::Google.Gemini.FileData? FileData { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("thought")] + public bool? Thought { get; set; } /// /// Inline text. @@ -102,18 +114,6 @@ public sealed partial class Part [global::System.Text.Json.Serialization.JsonPropertyName("text")] public string? Text { 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; } - - /// - /// 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("executableCode")] - public global::Google.Gemini.ExecutableCode? ExecutableCode { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -123,91 +123,91 @@ public sealed partial class Part /// /// Initializes a new instance of the class. /// - /// - /// 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. - /// - /// - /// Optional. An opaque signature for the thought so it can be reused in subsequent requests. + /// + /// URI based data. /// /// /// Raw media bytes. Text should not be sent as raw bytes, use the 'text' field. /// + /// + /// A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values. + /// /// /// 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. + /// + /// 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`. /// /// /// Speech metadata for `text` parts. /// + /// + /// Media resolution for tokenization. + /// /// /// 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. /// /// /// 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. + /// + /// + /// 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. + /// /// /// 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. /// - /// - /// 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`. - /// - /// - /// Media resolution for tokenization. + /// + /// Optional. An opaque signature for the thought so it can be reused in subsequent requests. /// /// /// Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used. /// - /// - /// URI based data. + /// + /// Optional. Indicates if the part is thought from the model. /// /// /// Inline text. /// - /// - /// A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values. - /// - /// - /// 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. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Part( - object? partMetadata, - byte[]? thoughtSignature, + global::Google.Gemini.FileData? fileData, global::Google.Gemini.Blob? inlineData, + global::Google.Gemini.FunctionCall? functionCall, global::Google.Gemini.PartMediaProcessing? mediaProcessing, - bool? thought, + global::Google.Gemini.ToolResponse? toolResponse, global::Google.Gemini.SpeechMetadata? speechMetadata, + global::Google.Gemini.V1mainMediaResolution? mediaResolution, global::Google.Gemini.AudioTranscription? audioTranscription, global::Google.Gemini.ToolCall? toolCall, + global::Google.Gemini.ExecutableCode? executableCode, + object? partMetadata, global::Google.Gemini.FunctionResponse? functionResponse, - global::Google.Gemini.ToolResponse? toolResponse, - global::Google.Gemini.V1mainMediaResolution? mediaResolution, + byte[]? thoughtSignature, global::Google.Gemini.CodeExecutionResult? codeExecutionResult, - global::Google.Gemini.FileData? fileData, - string? text, - global::Google.Gemini.FunctionCall? functionCall, - global::Google.Gemini.ExecutableCode? executableCode) + bool? thought, + string? text) { - this.PartMetadata = partMetadata; - this.ThoughtSignature = thoughtSignature; + this.FileData = fileData; this.InlineData = inlineData; + this.FunctionCall = functionCall; this.MediaProcessing = mediaProcessing; - this.Thought = thought; + this.ToolResponse = toolResponse; this.SpeechMetadata = speechMetadata; + this.MediaResolution = mediaResolution; this.AudioTranscription = audioTranscription; this.ToolCall = toolCall; + this.ExecutableCode = executableCode; + this.PartMetadata = partMetadata; this.FunctionResponse = functionResponse; - this.ToolResponse = toolResponse; - this.MediaResolution = mediaResolution; + this.ThoughtSignature = thoughtSignature; this.CodeExecutionResult = codeExecutionResult; - this.FileData = fileData; + this.Thought = thought; this.Text = text; - this.FunctionCall = functionCall; - this.ExecutableCode = executableCode; } /// 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 a11649afa..654fa13f1 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 @@ -9,11 +9,10 @@ namespace Google.Gemini public sealed partial class Permission { /// - /// 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 + /// 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("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("emailAddress")] + public string? EmailAddress { get; set; } /// /// Optional. Immutable. The type of the grantee. @@ -30,10 +29,11 @@ public sealed partial class Permission public global::Google.Gemini.PermissionRole? Role { 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. + /// 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 ///
- [global::System.Text.Json.Serialization.JsonPropertyName("emailAddress")] - public string? EmailAddress { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -44,9 +44,8 @@ public sealed partial class Permission /// /// Initializes a new instance of the class. /// - /// - /// 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 + /// + /// 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. @@ -54,22 +53,23 @@ public sealed partial class Permission /// /// Required. The role granted by this 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. + /// + /// 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 /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Permission( - string? name, + string? emailAddress, global::Google.Gemini.PermissionGranteeType? granteeType, global::Google.Gemini.PermissionRole? role, - string? emailAddress) + string? name) { - this.Name = name; + this.EmailAddress = emailAddress; this.GranteeType = granteeType; this.Role = role; - this.EmailAddress = emailAddress; + this.Name = name; } /// 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 7fd834253..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 @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class ResponseFormatConfig { /// - /// Configuration for text output format. + /// Configuration for audio output format. /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public global::Google.Gemini.TextResponseFormat? Text { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public global::Google.Gemini.AudioResponseFormat? Audio { get; set; } /// /// Configuration for image output format. @@ -21,10 +21,10 @@ public sealed partial class ResponseFormatConfig public global::Google.Gemini.ImageResponseFormat? Image { get; set; } /// - /// Configuration for audio output format. + /// Configuration for text output format. /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio")] - public global::Google.Gemini.AudioResponseFormat? Audio { get; set; } + [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 audio 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.AudioResponseFormat? audio) + global::Google.Gemini.TextResponseFormat? text) { - this.Text = text; - this.Image = image; 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 13277c0f0..0fc745ca9 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 @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class RetrievedContext { /// - /// Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id} + /// Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123` /// - [global::System.Text.Json.Serialization.JsonPropertyName("mediaId")] - public string? MediaId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStore")] + public string? FileSearchStore { get; set; } /// /// Optional. User-provided metadata about the retrieved context. @@ -21,22 +21,22 @@ public sealed partial class RetrievedContext public global::System.Collections.Generic.IList? CustomMetadata { 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. 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} /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStore")] - public string? FileSearchStore { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mediaId")] + public string? MediaId { get; set; } /// - /// Optional. Title of the document. + /// Optional. Text of the chunk. /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } /// /// Optional. URI reference of the semantic retrieval document. @@ -45,10 +45,10 @@ public sealed partial class RetrievedContext public string? Uri { get; set; } /// - /// Optional. Page number of the retrieved context, if applicable. + /// Optional. Title of the document. /// - [global::System.Text.Json.Serialization.JsonPropertyName("pageNumber")] - public int? PageNumber { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -59,46 +59,46 @@ public sealed partial class RetrievedContext /// /// Initializes a new instance of the class. /// - /// - /// Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id} + /// + /// Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123` /// /// /// Optional. User-provided metadata about the retrieved context. /// - /// - /// Optional. Text of the chunk. + /// + /// Optional. Page number of the retrieved context, if applicable. /// - /// - /// 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. Title of the document. + /// + /// Optional. Text of the chunk. /// /// /// Optional. URI reference of the semantic retrieval document. /// - /// - /// Optional. Page number of the retrieved context, if applicable. + /// + /// Optional. Title of the document. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RetrievedContext( - string? mediaId, + string? fileSearchStore, global::System.Collections.Generic.IList? customMetadata, + int? pageNumber, + string? mediaId, string? text, - string? fileSearchStore, - string? title, string? uri, - int? pageNumber) + string? title) { - this.MediaId = mediaId; + this.FileSearchStore = fileSearchStore; this.CustomMetadata = customMetadata; + this.PageNumber = pageNumber; + this.MediaId = mediaId; this.Text = text; - this.FileSearchStore = fileSearchStore; - this.Title = title; this.Uri = uri; - this.PageNumber = pageNumber; + this.Title = title; } /// 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 7c955ca30..7eb80d6f0 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 @@ -15,12 +15,6 @@ public sealed partial class SafetyRating [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter))] public global::Google.Gemini.SafetyRatingCategory? Category { get; set; } - /// - /// Was this content blocked because of this rating? - /// - [global::System.Text.Json.Serialization.JsonPropertyName("blocked")] - public bool? Blocked { get; set; } - /// /// Required. The probability of harm for this content. /// @@ -28,6 +22,12 @@ public sealed partial class SafetyRating [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter))] public global::Google.Gemini.SafetyRatingProbability? Probability { get; set; } + /// + /// Was this content blocked because of this rating? + /// + [global::System.Text.Json.Serialization.JsonPropertyName("blocked")] + public bool? Blocked { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -40,23 +40,23 @@ public sealed partial class SafetyRating /// /// 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? + /// #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) + global::Google.Gemini.SafetyRatingProbability? probability, + bool? blocked) { this.Category = category; - this.Blocked = blocked; this.Probability = probability; + this.Blocked = blocked; } /// 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 64b6b275d..f2715288c 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,10 +9,17 @@ namespace Google.Gemini public sealed partial class Schema { /// - /// 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. + /// Required. Data type. /// - [global::System.Text.Json.Serialization.JsonPropertyName("propertyOrdering")] - public global::System.Collections.Generic.IList? PropertyOrdering { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter))] + public global::Google.Gemini.SchemaType? Type { get; set; } + + /// + /// Optional. Minimum number of the elements for Type.ARRAY. + /// + [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 @@ -21,16 +28,16 @@ public sealed partial class Schema public double? Minimum { get; set; } /// - /// Optional. Pattern of the Type.STRING to restrict a string to a regular expression. + /// 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("pattern")] - public string? Pattern { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("default")] + public object? Default { 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. Indicates if the value may be null. /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::Google.Gemini.Schema? Items { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("nullable")] + public bool? Nullable { get; set; } /// /// Optional. Example of the object. Will only populated when the object is the root. @@ -39,28 +46,28 @@ public sealed partial class Schema public object? Example { get; set; } /// - /// Optional. Minimum number of the properties for Type.OBJECT. + /// Optional. Pattern of the Type.STRING to restrict a string to a regular expression. /// - [global::System.Text.Json.Serialization.JsonPropertyName("minProperties")] - public string? MinProperties { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("pattern")] + public string? Pattern { get; set; } /// - /// Optional. Maximum length of the Type.STRING + /// Optional. Minimum number of the properties for Type.OBJECT. /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxLength")] - public string? MaxLength { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("minProperties")] + public string? MinProperties { get; set; } /// - /// Optional. The title of the schema. + /// Optional. Maximum number of the properties for Type.OBJECT. /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxProperties")] + public string? MaxProperties { get; set; } /// - /// Optional. Indicates if the value may be null. + /// Optional. Maximum length of the Type.STRING /// - [global::System.Text.Json.Serialization.JsonPropertyName("nullable")] - public bool? Nullable { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxLength")] + public string? MaxLength { get; set; } /// /// Optional. Properties of Type.OBJECT. @@ -69,17 +76,10 @@ public sealed partial class Schema public global::System.Collections.Generic.Dictionary? Properties { get; set; } /// - /// Optional. Required properties of Type.OBJECT. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("required")] - public global::System.Collections.Generic.IList? Required { get; set; } - - /// - /// Required. Data type. + /// Optional. The title of the schema. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter))] - public global::Google.Gemini.SchemaType? Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } /// /// Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality. @@ -88,28 +88,34 @@ public sealed partial class Schema 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. + /// 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("default")] - public object? Default { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("items")] + public global::Google.Gemini.Schema? Items { get; set; } /// - /// Optional. Maximum number of the elements for Type.ARRAY. + /// 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("maxItems")] - public string? MaxItems { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("propertyOrdering")] + public global::System.Collections.Generic.IList? PropertyOrdering { get; set; } /// - /// Optional. Maximum 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("maximum")] - public double? Maximum { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("anyOf")] + public global::System.Collections.Generic.IList? AnyOf { get; set; } /// - /// Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING + /// Optional. Required properties of Type.OBJECT. /// - [global::System.Text.Json.Serialization.JsonPropertyName("minLength")] - public string? MinLength { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("required")] + public global::System.Collections.Generic.IList? Required { get; set; } + + /// + /// Optional. Maximum number of the elements for Type.ARRAY. + /// + [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. @@ -118,16 +124,16 @@ public sealed partial class Schema public string? Description { get; set; } /// - /// 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 /// - [global::System.Text.Json.Serialization.JsonPropertyName("anyOf")] - public global::System.Collections.Generic.IList? AnyOf { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maximum")] + public double? Maximum { get; set; } /// - /// Optional. Maximum number of the properties for Type.OBJECT. + /// Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxProperties")] - public string? MaxProperties { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("minLength")] + public string? MinLength { 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"]} @@ -135,12 +141,6 @@ public sealed partial class Schema [global::System.Text.Json.Serialization.JsonPropertyName("enum")] public global::System.Collections.Generic.IList? Enum { get; set; } - /// - /// Optional. Minimum number of the elements for Type.ARRAY. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("minItems")] - public string? MinItems { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -150,121 +150,121 @@ public sealed partial class Schema /// /// Initializes a new instance of the class. /// - /// - /// 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. + /// + /// Required. Data type. + /// + /// + /// Optional. Minimum number of the elements for Type.ARRAY. /// /// /// Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER /// - /// - /// Optional. Pattern of the Type.STRING to restrict a string to a regular expression. + /// + /// 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. /// - /// - /// 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. Indicates if the value may be null. /// /// /// Optional. Example of the object. Will only populated when the object is the root. /// + /// + /// Optional. Pattern of the Type.STRING to restrict a string to a regular expression. + /// /// /// Optional. Minimum number of the properties for Type.OBJECT. /// + /// + /// Optional. Maximum number of the properties for Type.OBJECT. + /// /// /// Optional. Maximum length of the Type.STRING /// - /// - /// Optional. The title of the schema. - /// - /// - /// Optional. Indicates if the value may be null. - /// /// /// Optional. Properties of Type.OBJECT. /// - /// - /// Optional. Required properties of Type.OBJECT. - /// - /// - /// Required. Data type. + /// + /// Optional. The title of the schema. /// /// /// Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality. /// - /// - /// 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. + /// + /// 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. 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. The value should be validated against any (one or more) of the subschemas in the list. + /// + /// + /// Optional. Required properties of Type.OBJECT. /// /// /// 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. + /// /// /// Optional. Maximum value of the Type.INTEGER and Type.NUMBER /// /// /// Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING /// - /// - /// Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown. - /// - /// - /// Optional. The value should be validated against any (one or more) of the subschemas in the list. - /// - /// - /// Optional. Maximum number of the properties for Type.OBJECT. - /// /// /// 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. Minimum number of the elements for Type.ARRAY. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Schema( - global::System.Collections.Generic.IList? propertyOrdering, + global::Google.Gemini.SchemaType? type, + string? minItems, double? minimum, - string? pattern, - global::Google.Gemini.Schema? items, + object? @default, + bool? nullable, object? example, + string? pattern, string? minProperties, + string? maxProperties, string? maxLength, - string? title, - bool? nullable, global::System.Collections.Generic.Dictionary? properties, - global::System.Collections.Generic.IList? required, - global::Google.Gemini.SchemaType? type, + string? title, string? format, - object? @default, + global::Google.Gemini.Schema? items, + global::System.Collections.Generic.IList? propertyOrdering, + global::System.Collections.Generic.IList? anyOf, + global::System.Collections.Generic.IList? required, string? maxItems, + string? description, double? maximum, string? minLength, - string? description, - global::System.Collections.Generic.IList? anyOf, - string? maxProperties, - global::System.Collections.Generic.IList? @enum, - string? minItems) + global::System.Collections.Generic.IList? @enum) { - this.PropertyOrdering = propertyOrdering; + this.Type = type; + this.MinItems = minItems; this.Minimum = minimum; - this.Pattern = pattern; - this.Items = items; + this.Default = @default; + this.Nullable = nullable; this.Example = example; + this.Pattern = pattern; this.MinProperties = minProperties; + this.MaxProperties = maxProperties; this.MaxLength = maxLength; - this.Title = title; - this.Nullable = nullable; this.Properties = properties; - this.Required = required; - this.Type = type; + this.Title = title; this.Format = format; - this.Default = @default; + this.Items = items; + this.PropertyOrdering = propertyOrdering; + this.AnyOf = anyOf; + this.Required = required; this.MaxItems = maxItems; + this.Description = description; this.Maximum = maximum; this.MinLength = minLength; - this.Description = description; - this.AnyOf = anyOf; - this.MaxProperties = maxProperties; this.Enum = @enum; - this.MinItems = minItems; } /// 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.SearchTypes.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SearchTypes.g.cs index 517620108..f9bd1b663 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SearchTypes.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SearchTypes.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class SearchTypes { - /// - /// Image search for grounding and related configurations. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("imageSearch")] - public global::Google.Gemini.ImageSearch? ImageSearch { get; set; } - /// /// Standard web search for grounding and related configurations. /// [global::System.Text.Json.Serialization.JsonPropertyName("webSearch")] public global::Google.Gemini.WebSearch? WebSearch { get; set; } + /// + /// Image search for grounding and related configurations. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("imageSearch")] + public global::Google.Gemini.ImageSearch? ImageSearch { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class SearchTypes /// /// Initializes a new instance of the class. /// - /// - /// Image search for grounding and related configurations. - /// /// /// Standard web search for grounding and related configurations. /// + /// + /// Image search for grounding and related configurations. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SearchTypes( - global::Google.Gemini.ImageSearch? imageSearch, - global::Google.Gemini.WebSearch? webSearch) + global::Google.Gemini.WebSearch? webSearch, + global::Google.Gemini.ImageSearch? imageSearch) { - this.ImageSearch = imageSearch; this.WebSearch = webSearch; + this.ImageSearch = imageSearch; } /// 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 1ae15f6e4..dbd3aee48 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 @@ -8,18 +8,6 @@ namespace Google.Gemini /// public sealed partial class Source { - /// - /// The inline content if `type` is `INLINE`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public string? Content { get; set; } - - /// - /// The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("source")] - public string? Source1 { get; set; } - /// /// Where the source should appear in the environment. /// @@ -39,6 +27,18 @@ public sealed partial class Source [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SourceTypeJsonConverter))] public global::Google.Gemini.SourceType? Type { get; set; } + /// + /// The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + public string? Source1 { get; set; } + + /// + /// The inline content if `type` is `INLINE`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public string? Content { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -48,12 +48,6 @@ public sealed partial class Source /// /// Initializes a new instance of the class. /// - /// - /// The inline content if `type` is `INLINE`. - /// - /// - /// The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path. - /// /// /// Where the source should appear in the environment. /// @@ -61,21 +55,27 @@ public sealed partial class Source /// Optional encoding for inline content (e.g. `base64`). /// /// + /// + /// The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path. + /// + /// + /// The inline content if `type` is `INLINE`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Source( - string? content, - string? source1, string? target, string? encoding, - global::Google.Gemini.SourceType? type) + global::Google.Gemini.SourceType? type, + string? source1, + string? content) { - this.Content = content; - this.Source1 = source1; this.Target = target; this.Encoding = encoding; this.Type = type; + this.Source1 = source1; + this.Content = content; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeechConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeechConfig.g.cs index 2cdf8fc7e..3ce1c58d4 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeechConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeechConfig.g.cs @@ -14,18 +14,18 @@ public sealed partial class SpeechConfig [global::System.Text.Json.Serialization.JsonPropertyName("multiSpeakerVoiceConfig")] public global::Google.Gemini.MultiSpeakerVoiceConfig? MultiSpeakerVoiceConfig { get; set; } - /// - /// 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`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("languageCode")] - public string? LanguageCode { get; set; } - /// /// The configuration for the voice to use. /// [global::System.Text.Json.Serialization.JsonPropertyName("voiceConfig")] public global::Google.Gemini.VoiceConfig? VoiceConfig { get; set; } + /// + /// 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`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("languageCode")] + public string? LanguageCode { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -38,23 +38,23 @@ public sealed partial class SpeechConfig /// /// The configuration for the multi-speaker setup. /// - /// - /// 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`. - /// /// /// The configuration for the voice to use. /// + /// + /// 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`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SpeechConfig( global::Google.Gemini.MultiSpeakerVoiceConfig? multiSpeakerVoiceConfig, - string? languageCode, - global::Google.Gemini.VoiceConfig? voiceConfig) + global::Google.Gemini.VoiceConfig? voiceConfig, + string? languageCode) { this.MultiSpeakerVoiceConfig = multiSpeakerVoiceConfig; - this.LanguageCode = languageCode; this.VoiceConfig = voiceConfig; + this.LanguageCode = languageCode; } /// 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 79c438c06..19d4d7f77 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 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; } + /// + /// Optional. Optional speaker name for multi-speaker synthesis. + /// + [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 SpeechMetadata /// /// Initializes a new instance of the class. /// - /// - /// Optional. Optional speaker name for multi-speaker synthesis. - /// /// /// Optional. Optional style instruction for the speech synthesis. /// + /// + /// Optional. Optional speaker name for multi-speaker synthesis. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SpeechMetadata( - string? speaker, - string? style) + string? style, + string? speaker) { - this.Speaker = speaker; this.Style = style; + this.Speaker = speaker; } /// 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..d6775134b 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,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class Status { + /// + /// 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; } + /// /// 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. /// @@ -20,12 +26,6 @@ public sealed partial class Status [global::System.Text.Json.Serialization.JsonPropertyName("code")] public int? Code { 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 /// @@ -35,26 +35,26 @@ public sealed partial class Status /// /// Initializes a new instance of the class. /// + /// + /// 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. /// /// /// 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. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Status( + global::System.Collections.Generic.IList? details, string? message, - int? code, - global::System.Collections.Generic.IList? details) + int? code) { + this.Details = details; this.Message = message; this.Code = code; - this.Details = details; } /// 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 2f69e27ec..476e4d72a 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 @@ -20,12 +20,6 @@ public sealed partial class StreamableHttpTransport [global::System.Text.Json.Serialization.JsonPropertyName("terminateOnClose")] public bool? TerminateOnClose { get; set; } - /// - /// HTTP timeout for regular operations. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("timeout")] - public string? Timeout { get; set; } - /// /// Timeout for SSE read operations. /// @@ -38,6 +32,12 @@ public sealed partial class StreamableHttpTransport [global::System.Text.Json.Serialization.JsonPropertyName("url")] public string? Url { get; set; } + /// + /// HTTP timeout for regular operations. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("timeout")] + public string? Timeout { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -53,30 +53,30 @@ public sealed partial class StreamableHttpTransport /// /// Whether to close the client session when the transport closes. /// - /// - /// HTTP timeout for regular operations. - /// /// /// Timeout for SSE read operations. /// /// /// The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp" /// + /// + /// HTTP timeout for regular operations. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public StreamableHttpTransport( global::System.Collections.Generic.Dictionary? headers, bool? terminateOnClose, - string? timeout, string? sseReadTimeout, - string? url) + string? url, + string? timeout) { this.Headers = headers; this.TerminateOnClose = terminateOnClose; - this.Timeout = timeout; this.SseReadTimeout = sseReadTimeout; this.Url = url; + this.Timeout = timeout; } /// 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 fe471aeb8..16bbd0309 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,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class ThinkingConfig { - /// - /// 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. /// @@ -27,6 +21,12 @@ public sealed partial class ThinkingConfig [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter))] public global::Google.Gemini.ThinkingConfigThinkingLevel? ThinkingLevel { get; set; } + /// + /// The number of thoughts tokens that the model should generate. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("thinkingBudget")] + public int? ThinkingBudget { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -36,26 +36,26 @@ public sealed partial class ThinkingConfig /// /// Initializes a new instance of the class. /// - /// - /// 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. /// + /// + /// The number of thoughts tokens that the model should generate. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ThinkingConfig( - int? thinkingBudget, bool? includeThoughts, - global::Google.Gemini.ThinkingConfigThinkingLevel? thinkingLevel) + global::Google.Gemini.ThinkingConfigThinkingLevel? thinkingLevel, + int? thinkingBudget) { - this.ThinkingBudget = thinkingBudget; this.IncludeThoughts = includeThoughts; this.ThinkingLevel = thinkingLevel; + this.ThinkingBudget = thinkingBudget; } /// 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 50bf3120e..b5129415f 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,16 +9,16 @@ namespace Google.Gemini public sealed partial class Tool { /// - /// 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; } /// - /// 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. + /// Computer Use tool type. /// - [global::System.Text.Json.Serialization.JsonPropertyName("codeExecution")] - public global::Google.Gemini.CodeExecution? CodeExecution { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("computerUse")] + public global::Google.Gemini.ComputerUse? ComputerUse { get; set; } /// /// Tool to retrieve public web data for grounding, powered by Google. @@ -26,12 +26,6 @@ public sealed partial class Tool [global::System.Text.Json.Serialization.JsonPropertyName("googleSearchRetrieval")] public global::Google.Gemini.GoogleSearchRetrieval? GoogleSearchRetrieval { get; set; } - /// - /// GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("googleSearch")] - public global::Google.Gemini.GoogleSearch? GoogleSearch { get; set; } - /// /// The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API. /// @@ -39,10 +33,10 @@ public sealed partial class Tool public global::Google.Gemini.FileSearch? FileSearch { 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. @@ -51,16 +45,22 @@ public sealed partial class Tool public global::Google.Gemini.UrlContext? UrlContext { get; set; } /// - /// Optional. MCP Servers to connect to. + /// GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. /// - [global::System.Text.Json.Serialization.JsonPropertyName("mcpServers")] - public global::System.Collections.Generic.IList? McpServers { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("googleSearch")] + public global::Google.Gemini.GoogleSearch? GoogleSearch { 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. + /// 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("functionDeclarations")] - public global::System.Collections.Generic.IList? FunctionDeclarations { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("codeExecution")] + public global::Google.Gemini.CodeExecution? CodeExecution { get; set; } + + /// + /// Optional. MCP Servers to connect to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mcpServers")] + public global::System.Collections.Generic.IList? McpServers { 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. /// + /// + /// The GoogleMaps Tool that provides geospatial context for the user's query. + /// /// /// Computer Use tool type. /// - /// - /// 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. /// - /// - /// GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. - /// /// /// The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API. /// - /// - /// 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 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. + /// /// /// Optional. MCP Servers to connect to. /// - /// - /// 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. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Tool( + global::Google.Gemini.GoogleMaps? googleMaps, global::Google.Gemini.ComputerUse? computerUse, - global::Google.Gemini.CodeExecution? codeExecution, global::Google.Gemini.GoogleSearchRetrieval? googleSearchRetrieval, - global::Google.Gemini.GoogleSearch? googleSearch, global::Google.Gemini.FileSearch? fileSearch, - global::Google.Gemini.GoogleMaps? googleMaps, + global::System.Collections.Generic.IList? functionDeclarations, global::Google.Gemini.UrlContext? urlContext, - global::System.Collections.Generic.IList? mcpServers, - global::System.Collections.Generic.IList? functionDeclarations) + global::Google.Gemini.GoogleSearch? googleSearch, + global::Google.Gemini.CodeExecution? codeExecution, + global::System.Collections.Generic.IList? mcpServers) { + this.GoogleMaps = googleMaps; this.ComputerUse = computerUse; - this.CodeExecution = codeExecution; this.GoogleSearchRetrieval = googleSearchRetrieval; - this.GoogleSearch = googleSearch; this.FileSearch = fileSearch; - this.GoogleMaps = googleMaps; + this.FunctionDeclarations = functionDeclarations; this.UrlContext = urlContext; + this.GoogleSearch = googleSearch; + this.CodeExecution = codeExecution; this.McpServers = mcpServers; - 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 d6d01ce78..8231075ef 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 @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class ToolCall { + /// + /// Optional. The name of the tool that was called. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("toolName")] + public string? ToolName { get; set; } + /// /// Optional. The tool call arguments. Example: {"arg1" : "value1", "arg2" : "value2" , ...} /// @@ -21,12 +27,6 @@ public sealed partial class ToolCall [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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolName")] - public string? ToolName { get; set; } - /// /// Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`. /// @@ -42,15 +42,15 @@ public sealed partial class ToolCall /// /// Initializes a new instance of the class. /// + /// + /// Optional. The name of the tool that was called. + /// /// /// Optional. The tool call arguments. Example: {"arg1" : "value1", "arg2" : "value2" , ...} /// /// /// Required. The type of tool that was called. /// - /// - /// Optional. The name of the tool that was called. - /// /// /// Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`. /// @@ -58,14 +58,14 @@ public sealed partial class ToolCall [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ToolCall( + string? toolName, object? args, global::Google.Gemini.ToolCallToolType? toolType, - string? toolName, string? id) { + this.ToolName = toolName; this.Args = args; 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..1abb43556 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 @@ -14,18 +14,18 @@ public sealed partial class ToolConfig [global::System.Text.Json.Serialization.JsonPropertyName("includeServerSideToolInvocations")] public bool? IncludeServerSideToolInvocations { get; set; } - /// - /// Retrieval config. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("retrievalConfig")] - public global::Google.Gemini.RetrievalConfig? RetrievalConfig { get; set; } - /// /// Configuration for specifying function calling behavior. /// [global::System.Text.Json.Serialization.JsonPropertyName("functionCallingConfig")] public global::Google.Gemini.FunctionCallingConfig? FunctionCallingConfig { get; set; } + /// + /// Retrieval config. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("retrievalConfig")] + public global::Google.Gemini.RetrievalConfig? RetrievalConfig { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -38,23 +38,23 @@ 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. /// - /// - /// Retrieval config. - /// /// /// Configuration for specifying function calling behavior. /// + /// + /// Retrieval config. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ToolConfig( bool? includeServerSideToolInvocations, - global::Google.Gemini.RetrievalConfig? retrievalConfig, - global::Google.Gemini.FunctionCallingConfig? functionCallingConfig) + global::Google.Gemini.FunctionCallingConfig? functionCallingConfig, + global::Google.Gemini.RetrievalConfig? retrievalConfig) { this.IncludeServerSideToolInvocations = includeServerSideToolInvocations; - this.RetrievalConfig = retrievalConfig; this.FunctionCallingConfig = functionCallingConfig; + this.RetrievalConfig = retrievalConfig; } /// 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 a19a61c7a..2ee7f407b 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,13 +8,6 @@ namespace Google.Gemini /// public sealed partial class ToolResponse { - /// - /// Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolType")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter))] - public global::Google.Gemini.ToolResponseToolType? ToolType { get; set; } - /// /// Optional. The tool response. /// @@ -27,6 +20,13 @@ public sealed partial class ToolResponse [global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } + /// + /// Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("toolType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter))] + public global::Google.Gemini.ToolResponseToolType? ToolType { 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. /// - /// - /// Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`. - /// /// /// Optional. The tool response. /// /// /// Optional. The identifier of the tool call this response is for. /// + /// + /// Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ToolResponse( - global::Google.Gemini.ToolResponseToolType? toolType, object? response, - string? id) + string? id, + global::Google.Gemini.ToolResponseToolType? toolType) { - this.ToolType = toolType; this.Response = response; this.Id = id; + this.ToolType = toolType; } /// 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 0b83f57bd..e92adf968 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,25 +9,29 @@ namespace Google.Gemini public sealed partial class TunedModel { /// - /// 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`
+ /// Output only. The timestamp when this model 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 tuned model.
- /// Included only in responses + /// 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("state")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter))] - public global::Google.Gemini.TunedModelState? State { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("topP")] + public float? TopP { get; set; } /// - /// Tuned model as a source for training a new model. + /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. /// - [global::System.Text.Json.Serialization.JsonPropertyName("tunedModelSource")] - public global::Google.Gemini.TunedModelSource? TunedModelSource { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } + + /// + /// Optional. List of project numbers that have read access to the tuned model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("readerProjectNumbers")] + public global::System.Collections.Generic.IList? ReaderProjectNumbers { get; set; } /// /// Output only. The timestamp when this model was updated.
@@ -37,47 +41,43 @@ public sealed partial class TunedModel public string? UpdateTime { 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("topK")] - public int? TopK { 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. + /// Tuning tasks that create tuned models. /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public float? Temperature { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tuningTask")] + public global::Google.Gemini.TuningTask? TuningTask { get; set; } /// - /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } /// - /// Optional. List of project numbers that have read access to the tuned model. + /// Tuned model as a source for training a new model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("readerProjectNumbers")] - public global::System.Collections.Generic.IList? ReaderProjectNumbers { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tunedModelSource")] + public global::Google.Gemini.TunedModelSource? TunedModelSource { get; set; } /// - /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("tuningTask")] - public global::Google.Gemini.TuningTask? TuningTask { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public float? Temperature { get; set; } /// - /// Output only. The timestamp when this model was created.
+ /// 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("createTime")] - public string? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// - /// Optional. A short description of this model. + /// Output only. The state of the tuned model.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("state")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter))] + public global::Google.Gemini.TunedModelState? State { get; set; } /// /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` @@ -86,10 +86,10 @@ public sealed partial class TunedModel public string? BaseModel { 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. + /// 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("topP")] - public float? TopP { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("topK")] + public int? TopK { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -100,26 +100,12 @@ public sealed partial class TunedModel /// /// Initializes a new instance of the class. /// - /// - /// 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 - /// - /// - /// Output only. The state of the tuned model.
- /// Included only in responses - /// - /// - /// Tuned model as a source for training a new model. - /// - /// - /// Output only. The timestamp when this model was updated.
+ /// + /// Output only. The timestamp when this model was created.
/// 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. 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. 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. /// /// /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. @@ -127,53 +113,67 @@ public sealed partial class TunedModel /// /// Optional. List of project numbers that have read access to the tuned model. /// + /// + /// Output only. The timestamp when this model was updated.
+ /// Included only in responses + /// /// /// Tuning tasks that create tuned models. /// - /// - /// Output only. The timestamp when this model was created.
- /// Included only in responses - /// /// /// Optional. A short description of this model. /// + /// + /// Tuned model as a source for training a new model. + /// + /// + /// 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. + /// + /// + /// 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 + /// + /// + /// Output only. The state of the tuned model.
+ /// Included only in responses + /// /// /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// - /// - /// 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. + /// + /// 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. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TunedModel( - string? name, - global::Google.Gemini.TunedModelState? state, - global::Google.Gemini.TunedModelSource? tunedModelSource, - string? updateTime, - int? topK, - float? temperature, + string? createTime, + float? topP, string? displayName, global::System.Collections.Generic.IList? readerProjectNumbers, + string? updateTime, global::Google.Gemini.TuningTask? tuningTask, - string? createTime, string? description, + global::Google.Gemini.TunedModelSource? tunedModelSource, + float? temperature, + string? name, + global::Google.Gemini.TunedModelState? state, string? baseModel, - float? topP) + int? topK) { - this.Name = name; - this.State = state; - this.TunedModelSource = tunedModelSource; - this.UpdateTime = updateTime; - this.TopK = topK; - this.Temperature = temperature; + this.CreateTime = createTime; + this.TopP = topP; this.DisplayName = displayName; this.ReaderProjectNumbers = readerProjectNumbers; + this.UpdateTime = updateTime; this.TuningTask = tuningTask; - this.CreateTime = createTime; this.Description = description; + this.TunedModelSource = tunedModelSource; + this.Temperature = temperature; + this.Name = name; + this.State = state; this.BaseModel = baseModel; - this.TopP = topP; + this.TopK = topK; } /// 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 6cc02faf7..46291c1c6 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 @@ -8,13 +8,6 @@ namespace Google.Gemini /// public sealed partial class TuningSnapshot { - /// - /// Output only. The mean loss of the training examples for this step.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("meanLoss")] - public float? MeanLoss { get; set; } - /// /// Output only. The epoch this step was part of.
/// Included only in responses @@ -23,11 +16,11 @@ public sealed partial class TuningSnapshot public int? Epoch { 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; } /// /// Output only. The timestamp when this metric was computed.
@@ -36,6 +29,13 @@ public sealed partial class TuningSnapshot [global::System.Text.Json.Serialization.JsonPropertyName("computeTime")] public string? ComputeTime { get; set; } + /// + /// Output only. The tuning step.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("step")] + public int? Step { 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 mean loss of the training examples for this step.
- /// Included only in responses - /// /// /// Output only. The epoch this step was part of.
/// Included only in responses /// - /// - /// Output only. The tuning step.
+ /// + /// Output only. The mean loss of the training examples for this step.
/// Included only in responses /// /// /// Output only. The timestamp when this metric was computed.
/// Included only in responses /// + /// + /// Output only. The tuning step.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TuningSnapshot( - float? meanLoss, int? epoch, - int? step, - string? computeTime) + float? meanLoss, + string? computeTime, + int? step) { - this.MeanLoss = meanLoss; this.Epoch = epoch; - this.Step = step; + this.MeanLoss = meanLoss; this.ComputeTime = computeTime; + this.Step = step; } /// 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 086b05460..153048242 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 @@ -8,19 +8,6 @@ namespace Google.Gemini /// public sealed partial class TuningTask { - /// - /// Dataset for training or validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("trainingData")] - public global::Google.Gemini.Dataset? TrainingData { 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. The timestamp when tuning this model completed.
/// Included only in responses @@ -34,6 +21,19 @@ 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; } + + /// + /// Dataset for training or validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("trainingData")] + public global::Google.Gemini.Dataset? TrainingData { get; set; } + /// /// Output only. Metrics collected during tuning.
/// Included only in responses @@ -50,13 +50,6 @@ public sealed partial class TuningTask /// /// Initializes a new instance of the class. /// - /// - /// Dataset for training or validation. - /// - /// - /// Output only. The timestamp when tuning this model started.
- /// Included only in responses - /// /// /// Output only. The timestamp when tuning this model completed.
/// Included only in responses @@ -64,6 +57,13 @@ public sealed partial class TuningTask /// /// 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 + /// + /// + /// Dataset for training or validation. + /// /// /// Output only. Metrics collected during tuning.
/// Included only in responses @@ -72,16 +72,16 @@ public sealed partial class TuningTask [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TuningTask( - global::Google.Gemini.Dataset? trainingData, - string? startTime, string? completeTime, global::Google.Gemini.Hyperparameters? hyperparameters, + string? startTime, + global::Google.Gemini.Dataset? trainingData, global::System.Collections.Generic.IList? snapshots) { - this.TrainingData = trainingData; - this.StartTime = startTime; this.CompleteTime = completeTime; this.Hyperparameters = hyperparameters; + this.StartTime = startTime; + this.TrainingData = trainingData; this.Snapshots = snapshots; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UploadEnvironmentFileRequest.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UploadEnvironmentFileRequest.g.cs index 46f5c5b1e..676a708d8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UploadEnvironmentFileRequest.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UploadEnvironmentFileRequest.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini ///
public sealed partial class UploadEnvironmentFileRequest { - /// - /// Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("extract")] - public bool? Extract { get; set; } - /// /// Optional. Whether to overwrite the destination file if it already exists. /// [global::System.Text.Json.Serialization.JsonPropertyName("overwrite")] public bool? Overwrite { get; set; } + /// + /// Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("extract")] + public bool? Extract { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class UploadEnvironmentFileRequest /// /// Initializes a new instance of the class. /// - /// - /// Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`. - /// /// /// Optional. Whether to overwrite the destination file if it already exists. /// + /// + /// Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public UploadEnvironmentFileRequest( - bool? extract, - bool? overwrite) + bool? overwrite, + bool? extract) { - this.Extract = extract; this.Overwrite = overwrite; + this.Extract = extract; } /// 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 2e77d4e4d..a53f0596d 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 @@ -8,12 +8,6 @@ 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. /// @@ -26,6 +20,12 @@ public sealed partial class UploadToFileSearchStoreRequest [global::System.Text.Json.Serialization.JsonPropertyName("chunkingConfig")] public global::Google.Gemini.ChunkingConfig? ChunkingConfig { get; set; } + /// + /// Optional. Display name of the created document. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } + /// /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. /// @@ -41,15 +41,15 @@ public sealed partial class UploadToFileSearchStoreRequest /// /// Initializes a new instance of the class. /// - /// - /// Optional. Display name of the created document. - /// /// /// 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 /// + /// + /// Optional. Display name of the created document. + /// /// /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. /// @@ -57,14 +57,14 @@ public sealed partial class UploadToFileSearchStoreRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public UploadToFileSearchStoreRequest( - string? displayName, global::System.Collections.Generic.IList? customMetadata, global::Google.Gemini.ChunkingConfig? chunkingConfig, + string? displayName, string? mimeType) { - this.DisplayName = displayName; this.CustomMetadata = customMetadata; this.ChunkingConfig = chunkingConfig; + this.DisplayName = displayName; this.MimeType = mimeType; } 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 37113352c..d08040ff5 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,13 +8,6 @@ namespace Google.Gemini ///
public sealed partial class UsageMetadata { - /// - /// Output only. List of modalities that were returned in the response.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("candidatesTokensDetails")] - public global::System.Collections.Generic.IList? CandidatesTokensDetails { get; set; } - /// /// Number of tokens in the cached part of the prompt (the cached content) /// @@ -22,18 +15,24 @@ public sealed partial class UsageMetadata public int? CachedContentTokenCount { get; set; } /// - /// Output only. List of modalities that were processed in the request input.
+ /// Output only. Number of tokens of thoughts for thinking models.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("promptTokensDetails")] - public global::System.Collections.Generic.IList? PromptTokensDetails { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("thoughtsTokenCount")] + public int? ThoughtsTokenCount { get; set; } /// - /// Output only. List of modalities that were processed for tool-use request inputs.
+ /// 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. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("promptTokenCount")] + public int? PromptTokenCount { 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("toolUsePromptTokensDetails")] - public global::System.Collections.Generic.IList? ToolUsePromptTokensDetails { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("cacheTokensDetails")] + public global::System.Collections.Generic.IList? CacheTokensDetails { get; set; } /// /// Output only. Number of tokens present in tool-use prompt(s).
@@ -43,44 +42,45 @@ public sealed partial class UsageMetadata public int? ToolUsePromptTokenCount { 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. + /// Output only. List of modalities that were returned in the response.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("promptTokenCount")] - public int? PromptTokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("candidatesTokensDetails")] + public global::System.Collections.Generic.IList? CandidatesTokensDetails { get; set; } /// - /// Output only. Number of tokens of thoughts for thinking models.
+ /// Output only. Service tier of the request.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("thoughtsTokenCount")] - public int? ThoughtsTokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("serviceTier")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter))] + public global::Google.Gemini.UsageMetadataServiceTier? ServiceTier { get; set; } /// - /// Total number of tokens across all the generated response candidates. + /// Output only. List of modalities that were processed for tool-use request inputs.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("candidatesTokenCount")] - public int? CandidatesTokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("toolUsePromptTokensDetails")] + public global::System.Collections.Generic.IList? ToolUsePromptTokensDetails { get; set; } /// - /// Output only. List of modalities of the cached content in the request input.
+ /// Output only. List of modalities that were processed in the request input.
/// 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("promptTokensDetails")] + public global::System.Collections.Generic.IList? PromptTokensDetails { get; set; } /// - /// Total token count for the generation request (prompt + tool-use prompt + thoughts + response candidates). + /// Total number of tokens across all the generated response candidates. /// - [global::System.Text.Json.Serialization.JsonPropertyName("totalTokenCount")] - public int? TotalTokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("candidatesTokenCount")] + public int? CandidatesTokenCount { get; set; } /// - /// Output only. Service tier of the request.
- /// Included only in responses + /// Total token count for the generation request (prompt + tool-use prompt + thoughts + response candidates). ///
- [global::System.Text.Json.Serialization.JsonPropertyName("serviceTier")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter))] - public global::Google.Gemini.UsageMetadataServiceTier? ServiceTier { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("totalTokenCount")] + public int? TotalTokenCount { get; set; } /// /// Output only. Number of tokens in the response. Used by Gemini 3.1+ Live API models instead of candidatesTokenCount.
@@ -105,46 +105,46 @@ public sealed partial class UsageMetadata /// /// Initializes a new instance of the class. /// - /// - /// Output only. List of modalities that were returned in the response.
- /// Included only in responses - /// /// /// 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.
+ /// + /// 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.
+ /// + /// 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. List of modalities of the cached content in the request input.
/// Included only in responses /// /// /// Output only. Number of tokens present in tool-use prompt(s).
/// Included only in responses /// - /// - /// 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. List of modalities that were returned in the response.
+ /// Included only in responses /// - /// - /// Output only. Number of tokens of thoughts for thinking models.
+ /// + /// Output only. Service tier of the request.
/// Included only in responses /// - /// - /// Total number of tokens across all the generated response candidates. + /// + /// Output only. List of modalities that were processed for tool-use request inputs.
+ /// Included only in responses /// - /// - /// Output only. List of modalities of the cached content in the request input.
+ /// + /// 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. Service tier of the request.
- /// Included only in responses - /// /// /// Output only. Number of tokens in the response. Used by Gemini 3.1+ Live API models instead of candidatesTokenCount.
/// Included only in responses @@ -157,31 +157,31 @@ public sealed partial class UsageMetadata [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public UsageMetadata( - global::System.Collections.Generic.IList? candidatesTokensDetails, int? cachedContentTokenCount, - global::System.Collections.Generic.IList? promptTokensDetails, - global::System.Collections.Generic.IList? toolUsePromptTokensDetails, - int? toolUsePromptTokenCount, - int? promptTokenCount, int? thoughtsTokenCount, - int? candidatesTokenCount, + int? promptTokenCount, global::System.Collections.Generic.IList? cacheTokensDetails, - int? totalTokenCount, + int? toolUsePromptTokenCount, + global::System.Collections.Generic.IList? candidatesTokensDetails, global::Google.Gemini.UsageMetadataServiceTier? serviceTier, + global::System.Collections.Generic.IList? toolUsePromptTokensDetails, + global::System.Collections.Generic.IList? promptTokensDetails, + int? candidatesTokenCount, + int? totalTokenCount, int? responseTokenCount, global::System.Collections.Generic.IList? responseTokensDetails) { - this.CandidatesTokensDetails = candidatesTokensDetails; this.CachedContentTokenCount = cachedContentTokenCount; - this.PromptTokensDetails = promptTokensDetails; - this.ToolUsePromptTokensDetails = toolUsePromptTokensDetails; - this.ToolUsePromptTokenCount = toolUsePromptTokenCount; - this.PromptTokenCount = promptTokenCount; this.ThoughtsTokenCount = thoughtsTokenCount; - this.CandidatesTokenCount = candidatesTokenCount; + this.PromptTokenCount = promptTokenCount; this.CacheTokensDetails = cacheTokensDetails; - this.TotalTokenCount = totalTokenCount; + this.ToolUsePromptTokenCount = toolUsePromptTokenCount; + this.CandidatesTokensDetails = candidatesTokensDetails; this.ServiceTier = serviceTier; + this.ToolUsePromptTokensDetails = toolUsePromptTokensDetails; + this.PromptTokensDetails = promptTokensDetails; + this.CandidatesTokenCount = candidatesTokenCount; + this.TotalTokenCount = totalTokenCount; this.ResponseTokenCount = responseTokenCount; this.ResponseTokensDetails = responseTokensDetails; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.VideoMetadata.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.VideoMetadata.g.cs index 7997b378f..6f022e266 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.VideoMetadata.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.VideoMetadata.g.cs @@ -9,13 +9,6 @@ namespace Google.Gemini [global::System.Obsolete("This model marked as deprecated.")] public sealed partial class VideoMetadata { - /// - /// Optional. The end offset of the video. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("endOffset")] - [global::System.Obsolete("This property marked as deprecated.")] - public string? EndOffset { get; set; } - /// /// Optional. The start offset of the video. /// @@ -30,6 +23,13 @@ public sealed partial class VideoMetadata [global::System.Obsolete("This property marked as deprecated.")] public double? Fps { get; set; } + /// + /// Optional. The end offset of the video. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("endOffset")] + [global::System.Obsolete("This property marked as deprecated.")] + public string? EndOffset { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -39,26 +39,26 @@ public sealed partial class VideoMetadata /// /// Initializes a new instance of the class. /// - /// - /// Optional. The end offset of the video. - /// /// /// Optional. The start offset of the video. /// /// /// 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]. /// + /// + /// Optional. The end offset of the video. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public VideoMetadata( - string? endOffset, string? startOffset, - double? fps) + double? fps, + string? endOffset) { - this.EndOffset = endOffset; this.StartOffset = startOffset; this.Fps = fps; + this.EndOffset = endOffset; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.WhiteSpaceConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.WhiteSpaceConfig.g.cs index c7b0c0fb6..24c4a6099 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.WhiteSpaceConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.WhiteSpaceConfig.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class WhiteSpaceConfig { - /// - /// Maximum number of overlapping tokens between two adjacent chunks. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxOverlapTokens")] - public int? MaxOverlapTokens { get; set; } - /// /// 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("maxTokensPerChunk")] public int? MaxTokensPerChunk { get; set; } + /// + /// Maximum number of overlapping tokens between two adjacent chunks. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxOverlapTokens")] + public int? MaxOverlapTokens { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class WhiteSpaceConfig /// /// Initializes a new instance of the class. /// - /// - /// Maximum number of overlapping tokens between two adjacent chunks. - /// /// /// 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. /// + /// + /// Maximum number of overlapping tokens between two adjacent chunks. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public WhiteSpaceConfig( - int? maxOverlapTokens, - int? maxTokensPerChunk) + int? maxTokensPerChunk, + int? maxOverlapTokens) { - this.MaxOverlapTokens = maxOverlapTokens; this.MaxTokensPerChunk = maxTokensPerChunk; + this.MaxOverlapTokens = maxOverlapTokens; } /// 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 f21613249..33b831c96 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 @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class WordInfo { /// - /// Required. Transcript of the word. + /// Optional. Start offset in time of the word relative to the start of the audio. /// - [global::System.Text.Json.Serialization.JsonPropertyName("word")] - public string? Word { get; set; } + [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. @@ -21,10 +21,10 @@ public sealed partial class WordInfo public string? EndOffset { get; set; } /// - /// Optional. Start offset in time of the word relative to the start of the audio. + /// Required. Transcript of the word. /// - [global::System.Text.Json.Serialization.JsonPropertyName("startOffset")] - public string? StartOffset { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("word")] + public string? Word { 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. /// - /// - /// 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. /// - /// - /// Optional. Start offset in time of the word relative to the start of the audio. + /// + /// Required. Transcript of the word. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public WordInfo( - string? word, + string? startOffset, string? endOffset, - string? startOffset) + string? word) { - this.Word = word; - this.EndOffset = endOffset; this.StartOffset = startOffset; + this.EndOffset = endOffset; + this.Word = word; } /// 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 894e1dcff..5167508a0 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 @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Google.Gemini.NextGen { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + 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")] @@ -87,6 +82,9 @@ public sealed partial class AgentsSourceGenerationContext : global::System.Text. { 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(); 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.Create.g.cs index 3f586ddb8..cc56d5e8e 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.Create.g.cs @@ -204,7 +204,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/agents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -238,7 +238,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/agents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -279,7 +279,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/agents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -327,7 +327,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/agents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -349,7 +349,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/agents\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.Delete.g.cs index 279e4b2a0..092729916 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.Delete.g.cs @@ -153,7 +153,7 @@ partial void ProcessDeleteResponseContent( PrepareDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentsId: agentsId!); + agentsId: agentsId); return __httpRequest; } @@ -175,7 +175,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -209,7 +209,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.Get.g.cs index d853f119d..90c54cd44 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.Get.g.cs @@ -153,7 +153,7 @@ partial void ProcessGetResponseContent( PrepareGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - agentsId: agentsId!); + agentsId: agentsId); return __httpRequest; } @@ -175,7 +175,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -209,7 +209,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/agents/{agentsId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.List.g.cs index 6cd6fae39..2d7569867 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.List.g.cs @@ -198,7 +198,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/agents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -232,7 +232,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/agents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -273,7 +273,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/agents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/agents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/agents\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AutoSDKHttpResponse.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AutoSDKHttpResponse.g.cs index 4e26a18fc..02a8fcb9b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AutoSDKHttpResponse.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.AutoSDKHttpResponse.g.cs @@ -164,9 +164,9 @@ public static class AutoSDKConditionalRequests { send = send ?? throw new global::System.ArgumentNullException(nameof(send)); requestOptions = CloneRequestOptions(requestOptions); - if (!string.IsNullOrWhiteSpace(entityTag)) + if (entityTag is { } nonEmptyEntityTag && !string.IsNullOrWhiteSpace(nonEmptyEntityTag)) { - requestOptions.Headers["If-None-Match"] = entityTag!; + requestOptions.Headers["If-None-Match"] = nonEmptyEntityTag; } try 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 ec97e5739..1fadaf83c 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 @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Google.Gemini.NextGen { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + 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")] @@ -62,6 +57,9 @@ public sealed partial class CredentialsSourceGenerationContext : global::System. { 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(); 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.Create.g.cs index 313746e44..08822c0a2 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.Create.g.cs @@ -176,7 +176,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/credentials\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -210,7 +210,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/credentials\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -251,7 +251,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/credentials\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -299,7 +299,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/credentials\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/credentials\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.Delete.g.cs index a04b31eeb..e941de29d 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.Delete.g.cs @@ -145,7 +145,7 @@ partial void ProcessDeleteResponseContent( PrepareDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.Get.g.cs index 910c9c4f4..73503c506 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.Get.g.cs @@ -145,7 +145,7 @@ partial void ProcessGetResponseContent( PrepareGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.List.g.cs index af7a1eaaa..21fdf5a5a 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.List.g.cs @@ -180,7 +180,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/credentials\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/credentials\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/credentials\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/credentials\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/credentials\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.Update.g.cs index 55a5e9499..b215d07c4 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.Update.g.cs @@ -173,7 +173,7 @@ partial void ProcessUpdateResponseContent( PrepareUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, updateMask: updateMask, request: request); @@ -197,7 +197,7 @@ partial void ProcessUpdateResponseContent( pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -231,7 +231,7 @@ partial void ProcessUpdateResponseContent( pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -272,7 +272,7 @@ partial void ProcessUpdateResponseContent( pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessUpdateResponseContent( pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -342,7 +342,7 @@ partial void ProcessUpdateResponseContent( pathTemplate: "$\"/v1beta/credentials/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 c22171264..627035000 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 @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Google.Gemini.NextGen { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + 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")] @@ -65,6 +60,9 @@ public sealed partial class EnvironmentsSourceGenerationContext : global::System { 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(); 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 8ed0d40f4..fc6064297 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 @@ -202,7 +202,7 @@ partial void ProcessCreateEnvironmentResponseContent( pathTemplate: "\"/v1beta/environments\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -236,7 +236,7 @@ partial void ProcessCreateEnvironmentResponseContent( pathTemplate: "\"/v1beta/environments\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -277,7 +277,7 @@ partial void ProcessCreateEnvironmentResponseContent( pathTemplate: "\"/v1beta/environments\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessCreateEnvironmentResponseContent( pathTemplate: "\"/v1beta/environments\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -347,7 +347,7 @@ partial void ProcessCreateEnvironmentResponseContent( pathTemplate: "\"/v1beta/environments\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.DeleteEnvironment.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.DeleteEnvironment.g.cs index 840434ad9..5331efa41 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.DeleteEnvironment.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.DeleteEnvironment.g.cs @@ -153,7 +153,7 @@ partial void ProcessDeleteEnvironmentResponseContent( PrepareDeleteEnvironmentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -175,7 +175,7 @@ partial void ProcessDeleteEnvironmentResponseContent( pathTemplate: "$\"/v1beta/environments/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -209,7 +209,7 @@ partial void ProcessDeleteEnvironmentResponseContent( pathTemplate: "$\"/v1beta/environments/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessDeleteEnvironmentResponseContent( pathTemplate: "$\"/v1beta/environments/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessDeleteEnvironmentResponseContent( pathTemplate: "$\"/v1beta/environments/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessDeleteEnvironmentResponseContent( pathTemplate: "$\"/v1beta/environments/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 96e75c089..78a80d756 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 @@ -153,7 +153,7 @@ partial void ProcessGetEnvironmentResponseContent( PrepareGetEnvironmentRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -175,7 +175,7 @@ partial void ProcessGetEnvironmentResponseContent( pathTemplate: "$\"/v1beta/environments/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -209,7 +209,7 @@ partial void ProcessGetEnvironmentResponseContent( pathTemplate: "$\"/v1beta/environments/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessGetEnvironmentResponseContent( pathTemplate: "$\"/v1beta/environments/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessGetEnvironmentResponseContent( pathTemplate: "$\"/v1beta/environments/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessGetEnvironmentResponseContent( pathTemplate: "$\"/v1beta/environments/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.ListEnvironments.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.ListEnvironments.g.cs index faa02e7e1..b87fe5c08 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.ListEnvironments.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.EnvironmentsClient.ListEnvironments.g.cs @@ -188,7 +188,7 @@ partial void ProcessListEnvironmentsResponseContent( pathTemplate: "\"/v1beta/environments\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -222,7 +222,7 @@ partial void ProcessListEnvironmentsResponseContent( pathTemplate: "\"/v1beta/environments\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -263,7 +263,7 @@ partial void ProcessListEnvironmentsResponseContent( pathTemplate: "\"/v1beta/environments\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -311,7 +311,7 @@ partial void ProcessListEnvironmentsResponseContent( pathTemplate: "\"/v1beta/environments\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -333,7 +333,7 @@ partial void ProcessListEnvironmentsResponseContent( pathTemplate: "\"/v1beta/environments\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 034e39172..15bf16c2e 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 @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Google.Gemini.NextGen { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + 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")] @@ -41,6 +36,9 @@ public sealed partial class EnvironmentsFilesSourceGenerationContext : global::S { 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(); 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.List.g.cs index 8963b5d1c..40e61a3f9 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.List.g.cs @@ -193,8 +193,8 @@ partial void ProcessListResponseContent( pageSize: pageSize, pageToken: pageToken, recursive: recursive, - environment: environment!, - path: path!); + environment: environment, + path: path); return __httpRequest; } @@ -216,7 +216,7 @@ partial void ProcessListResponseContent( pathTemplate: "$\"/v1beta/environments/{environment}/files/{path}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessListResponseContent( pathTemplate: "$\"/v1beta/environments/{environment}/files/{path}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -291,7 +291,7 @@ partial void ProcessListResponseContent( pathTemplate: "$\"/v1beta/environments/{environment}/files/{path}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -339,7 +339,7 @@ partial void ProcessListResponseContent( pathTemplate: "$\"/v1beta/environments/{environment}/files/{path}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -361,7 +361,7 @@ partial void ProcessListResponseContent( pathTemplate: "$\"/v1beta/environments/{environment}/files/{path}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.EnvironmentsInternalClient.StartUpload.g.cs index aef11dd7c..3e1b7357d 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.EnvironmentsInternalClient.StartUpload.g.cs @@ -238,12 +238,12 @@ await StartUploadAsResponseAsync( httpRequestMessage: __httpRequest, extract: extract, overwrite: overwrite, - xGoogUploadCommand: xGoogUploadCommand!, - xGoogUploadHeaderContentLength: xGoogUploadHeaderContentLength!, - xGoogUploadHeaderContentType: xGoogUploadHeaderContentType!, - xGoogUploadProtocol: xGoogUploadProtocol!, - environment: environment!, - path: path!); + xGoogUploadCommand: xGoogUploadCommand, + xGoogUploadHeaderContentLength: xGoogUploadHeaderContentLength, + xGoogUploadHeaderContentType: xGoogUploadHeaderContentType, + xGoogUploadProtocol: xGoogUploadProtocol, + environment: environment, + path: path); return __httpRequest; } @@ -265,7 +265,7 @@ await StartUploadAsResponseAsync( pathTemplate: "$\"/upload/v1beta/environments/{environment}/files/{path}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -299,7 +299,7 @@ await StartUploadAsResponseAsync( pathTemplate: "$\"/upload/v1beta/environments/{environment}/files/{path}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -340,7 +340,7 @@ await StartUploadAsResponseAsync( pathTemplate: "$\"/upload/v1beta/environments/{environment}/files/{path}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -388,7 +388,7 @@ await StartUploadAsResponseAsync( pathTemplate: "$\"/upload/v1beta/environments/{environment}/files/{path}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -410,7 +410,7 @@ await StartUploadAsResponseAsync( pathTemplate: "$\"/upload/v1beta/environments/{environment}/files/{path}\"", httpMethod: "PUT", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.Create.g.cs index 664608f40..0834eee9c 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.Create.g.cs @@ -12,6 +12,20 @@ public partial interface ITriggersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// + /// + /// curl -X POST https://generativelanguage.googleapis.com/v1beta/triggers \
+ /// -H "x-goog-api-key: $GEMINI_API_KEY" \
+ /// -H "Content-Type: application/json" \
+ /// -d '{
+ /// "schedule": "0 9 * * *",
+ /// "time_zone": "America/New_York",
+ /// "interaction": {
+ /// "agent": "antigravity-preview-05-2026",
+ /// "input": "Summarize top news stories.",
+ /// "environment": "remote"
+ /// }
+ /// }' + ///
global::System.Threading.Tasks.Task CreateAsync( global::Google.Gemini.NextGen.TriggerCreateParams request, @@ -25,6 +39,20 @@ public partial interface ITriggersClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// + /// + /// curl -X POST https://generativelanguage.googleapis.com/v1beta/triggers \
+ /// -H "x-goog-api-key: $GEMINI_API_KEY" \
+ /// -H "Content-Type: application/json" \
+ /// -d '{
+ /// "schedule": "0 9 * * *",
+ /// "time_zone": "America/New_York",
+ /// "interaction": {
+ /// "agent": "antigravity-preview-05-2026",
+ /// "input": "Summarize top news stories.",
+ /// "environment": "remote"
+ /// }
+ /// }' + ///
global::System.Threading.Tasks.Task> CreateAsResponseAsync( global::Google.Gemini.NextGen.TriggerCreateParams request, @@ -43,8 +71,8 @@ public partial interface ITriggersClient /// /// Optional. The execution timeout for the triggered interaction. /// - /// - /// Required. The interaction request template to be executed. + /// + /// Interaction for generating the completion using agents. /// /// /// Optional. The maximum number of consecutive failures allowed before
@@ -61,7 +89,7 @@ public partial interface ITriggersClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateAsync( - global::Google.Gemini.NextGen.OneOf interaction, + global::Google.Gemini.NextGen.CreateAgentInteraction createAgentInteraction, string schedule, string timeZone, string? displayName = default, 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.Create.g.cs index 3985a9eda..3b433b4aa 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.Create.g.cs @@ -73,9 +73,11 @@ public partial interface IVoicesClient /// Optional. Whether the created voice is persisted and managed by Google.
/// * When `true`, Google stores the voice and returns `Voice.id` (for example,
/// `voice_abc123def456`), which can be managed via `GetVoice`, `ListVoices`,
- /// and `DeleteVoice` and referenced by ID in synthesis requests. Projects
- /// are subject to a maximum active stored voice quota; exceeding the quota
- /// returns `RESOURCE_EXHAUSTED`.
+ /// and `DeleteVoice` and referenced by ID in synthesis requests. Stored
+ /// voices expire after 1 year of inactivity; using a stored voice in speech
+ /// synthesis or as a `base_voice` in `CreateVoice` extends its
+ /// `expire_time`. Projects are subject to a maximum active stored voice
+ /// quota; exceeding the quota returns `RESOURCE_EXHAUSTED`.
/// * When `false` (default), the voice is not stored by Google and `Voice.key`
/// (for example, `voicekey_...`) is returned for client-side storage and
/// synthesis. Optional discovery metadata fields on `voice` are not
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 a2fbd52b7..289a8522b 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 @@ -155,7 +155,7 @@ partial void ProcessCancelResponseContent( PrepareCancelRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - interactionsId: interactionsId!); + interactionsId: interactionsId); return __httpRequest; } @@ -177,7 +177,7 @@ partial void ProcessCancelResponseContent( pathTemplate: "$\"/v1beta/interactions/{interactionsId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -211,7 +211,7 @@ partial void ProcessCancelResponseContent( pathTemplate: "$\"/v1beta/interactions/{interactionsId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -252,7 +252,7 @@ partial void ProcessCancelResponseContent( pathTemplate: "$\"/v1beta/interactions/{interactionsId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -300,7 +300,7 @@ partial void ProcessCancelResponseContent( pathTemplate: "$\"/v1beta/interactions/{interactionsId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -322,7 +322,7 @@ partial void ProcessCancelResponseContent( pathTemplate: "$\"/v1beta/interactions/{interactionsId}/cancel\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 08109d422..b8819cdc0 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 @@ -198,7 +198,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/interactions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -232,7 +232,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/interactions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -273,7 +273,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/interactions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -321,7 +321,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/interactions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -343,7 +343,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/interactions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 6bcf858b0..02659935f 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 @@ -162,7 +162,7 @@ partial void ProcessCreateAsStreamResponse( pathTemplate: "\"/v1beta/interactions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -196,7 +196,7 @@ partial void ProcessCreateAsStreamResponse( pathTemplate: "\"/v1beta/interactions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -237,7 +237,7 @@ partial void ProcessCreateAsStreamResponse( pathTemplate: "\"/v1beta/interactions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -285,7 +285,7 @@ partial void ProcessCreateAsStreamResponse( pathTemplate: "\"/v1beta/interactions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ partial void ProcessCreateAsStreamResponse( pathTemplate: "\"/v1beta/interactions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 b8d002fff..1cb54e255 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 @@ -146,7 +146,7 @@ await DeleteAsResponseAsync( PrepareDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - interactionsId: interactionsId!); + interactionsId: interactionsId); return __httpRequest; } @@ -168,7 +168,7 @@ await DeleteAsResponseAsync( pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -202,7 +202,7 @@ await DeleteAsResponseAsync( pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -243,7 +243,7 @@ await DeleteAsResponseAsync( pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -291,7 +291,7 @@ await DeleteAsResponseAsync( pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -313,7 +313,7 @@ await DeleteAsResponseAsync( pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 794359ed1..3861b7211 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 @@ -191,7 +191,7 @@ partial void ProcessGetResponseContent( httpClient: HttpClient, httpRequestMessage: __httpRequest, includeInput: includeInput, - interactionsId: interactionsId!, + interactionsId: interactionsId, lastEventId: lastEventId, stream: stream); @@ -215,7 +215,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -249,7 +249,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -338,7 +338,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -360,7 +360,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 f27a96651..d7a544484 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 @@ -151,7 +151,7 @@ partial void ProcessGetAsStreamResponse( httpClient: HttpClient, httpRequestMessage: __httpRequest, includeInput: includeInput, - interactionsId: interactionsId!, + interactionsId: interactionsId, lastEventId: lastEventId, stream: stream); @@ -175,7 +175,7 @@ partial void ProcessGetAsStreamResponse( pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -209,7 +209,7 @@ partial void ProcessGetAsStreamResponse( pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -250,7 +250,7 @@ partial void ProcessGetAsStreamResponse( pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -298,7 +298,7 @@ partial void ProcessGetAsStreamResponse( pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -320,7 +320,7 @@ partial void ProcessGetAsStreamResponse( pathTemplate: "$\"/v1beta/interactions/{interactionsId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.AgentConfig2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.AgentConfig2.g.cs deleted file mode 100644 index 2d5369771..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.AgentConfig2.g.cs +++ /dev/null @@ -1,255 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public class AgentConfig2JsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.AgentConfig2 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); - if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); - } - } - - } - } - - var __score0 = 0; - if (__jsonProps.Contains("max_total_tokens")) __score0++; - if (__jsonProps.Contains("model")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("find_request")) __score1++; - if (__jsonProps.Contains("find_request.description")) __score1++; - if (__jsonProps.Contains("find_request.finding_id")) __score1++; - if (__jsonProps.Contains("find_request.mode")) __score1++; - if (__jsonProps.Contains("find_request.source_files")) __score1++; - if (__jsonProps.Contains("fix_request")) __score1++; - if (__jsonProps.Contains("fix_request.description")) __score1++; - if (__jsonProps.Contains("fix_request.finding_id")) __score1++; - if (__jsonProps.Contains("fix_request.source_files")) __score1++; - if (__jsonProps.Contains("model")) __score1++; - if (__jsonProps.Contains("session_config")) __score1++; - if (__jsonProps.Contains("session_config.max_rounds")) __score1++; - if (__jsonProps.Contains("session_id")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __score2 = 0; - if (__jsonProps.Contains("collaborative_planning")) __score2++; - if (__jsonProps.Contains("enable_bigquery_tool")) __score2++; - if (__jsonProps.Contains("thinking_summaries")) __score2++; - if (__jsonProps.Contains("type")) __score2++; - if (__jsonProps.Contains("visualization")) __score2++; - var __score3 = 0; - if (__jsonProps.Contains("type")) __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; } - - global::Google.Gemini.NextGen.AntigravityAgentConfig? antigravityConfig = default; - global::Google.Gemini.NextGen.CodeMenderAgentConfig? codeMenderConfig = default; - global::Google.Gemini.NextGen.DeepResearchAgentConfig? deepResearchConfig = default; - global::Google.Gemini.NextGen.DynamicAgentConfig? dynamicConfig = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.AntigravityAgentConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.AntigravityAgentConfig).Name}"); - antigravityConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.CodeMenderAgentConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.CodeMenderAgentConfig).Name}"); - codeMenderConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 2) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.DeepResearchAgentConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.DeepResearchAgentConfig).Name}"); - deepResearchConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 3) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.DynamicAgentConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.DynamicAgentConfig).Name}"); - dynamicConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (antigravityConfig == null && codeMenderConfig == null && deepResearchConfig == null && dynamicConfig == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.AntigravityAgentConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.AntigravityAgentConfig).Name}"); - antigravityConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (antigravityConfig == null && codeMenderConfig == null && deepResearchConfig == null && dynamicConfig == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.CodeMenderAgentConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.CodeMenderAgentConfig).Name}"); - codeMenderConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (antigravityConfig == null && codeMenderConfig == null && deepResearchConfig == null && dynamicConfig == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.DeepResearchAgentConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.DeepResearchAgentConfig).Name}"); - deepResearchConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (antigravityConfig == null && codeMenderConfig == null && deepResearchConfig == null && dynamicConfig == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.DynamicAgentConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.DynamicAgentConfig).Name}"); - dynamicConfig = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - var __value = new global::Google.Gemini.NextGen.AgentConfig2( - antigravityConfig, - - codeMenderConfig, - - deepResearchConfig, - - dynamicConfig - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.AgentConfig2 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.IsAntigravityConfig) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.AntigravityAgentConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.AntigravityAgentConfig).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AntigravityConfig!, typeInfo); - } - else if (value.IsCodeMenderConfig) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.CodeMenderAgentConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.CodeMenderAgentConfig).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeMenderConfig!, typeInfo); - } - else if (value.IsDeepResearchConfig) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.DeepResearchAgentConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.DeepResearchAgentConfig).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DeepResearchConfig!, typeInfo); - } - else if (value.IsDynamicConfig) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.DynamicAgentConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.DynamicAgentConfig).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DynamicConfig!, typeInfo); - } - } - } -} \ No newline at end of file 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 c42c1cbdd..b868c272a 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 @@ -250,31 +250,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.CodeExecution), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.CodeExecution).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeExecution!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeExecution(), typeInfo); } else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.Function), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.Function).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsGoogleSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.GoogleSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? 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.GoogleSearch!, typeInfo); + 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.MCPServer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMCPServer(), typeInfo); } else if (value.IsURLContext) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.URLContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.URLContext).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.URLContext!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickURLContext(), typeInfo); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Annotation.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Annotation.g.cs index 93220be1d..d44ac2ad7 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Annotation.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Annotation.g.cs @@ -270,31 +270,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.FileCitation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.FileCitation).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileCitation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileCitation(), typeInfo); } else if (value.IsPlaceCitation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.PlaceCitation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.PlaceCitation).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PlaceCitation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickPlaceCitation(), typeInfo); } else if (value.IsSpeech) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.SpeechAnnotation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.SpeechAnnotation).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Speech!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSpeech(), typeInfo); } else if (value.IsURLCitation) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.URLCitation), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.URLCitation).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.URLCitation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickURLCitation(), typeInfo); } else if (value.IsWordInfo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.WordInfo), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.WordInfo).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.WordInfo!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickWordInfo(), typeInfo); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Content.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Content.g.cs index d85a25673..7e0f37761 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Content.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.Content.g.cs @@ -262,31 +262,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.AudioContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.AudioContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudio(), typeInfo); } else if (value.IsDocument) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.DocumentContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.DocumentContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Document!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDocument(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ImageContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.TextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.VideoContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.VideoContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Video!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideo(), typeInfo); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatus.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatus.g.cs deleted file mode 100644 index 4ef71a364..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatus.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class CreateAgentInteractionStatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - 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) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.CreateAgentInteractionStatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.CreateAgentInteractionStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.CreateAgentInteractionStatus); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - 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.CreateAgentInteractionStatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatusNullable.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatusNullable.g.cs deleted file mode 100644 index 2da6140ba..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatusNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public sealed class CreateAgentInteractionStatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - 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) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Google.Gemini.NextGen.CreateAgentInteractionStatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.CreateAgentInteractionStatus)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::Google.Gemini.NextGen.CreateAgentInteractionStatus?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.CreateAgentInteractionStatus? 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.CreateAgentInteractionStatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CredentialCreateParams.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CredentialCreateParams.g.cs index ac16622ca..67df29cee 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CredentialCreateParams.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.CredentialCreateParams.g.cs @@ -180,19 +180,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.EnvironmentVariableConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.EnvironmentVariableConfig).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EnvironmentVariableConfig!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnvironmentVariableConfig(), typeInfo); } else if (value.IsHttpBearerConfig) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.HttpBearerConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.HttpBearerConfig).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.HttpBearerConfig!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHttpBearerConfig(), typeInfo); } else if (value.IsOAuth2Config) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.OAuth2Config), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.OAuth2Config).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OAuth2Config!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOAuth2Config(), typeInfo); } } } 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.CredentialUpdate.g.cs index 750e32d69..1e8e94da8 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.CredentialUpdate.g.cs @@ -177,19 +177,19 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EnvironmentVariableConfig!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickEnvironmentVariableConfig(), typeInfo); } else if (value.IsHttpBearerConfig) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.HttpBearerUpdateConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.HttpBearerUpdateConfig).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.HttpBearerConfig!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickHttpBearerConfig(), typeInfo); } else if (value.IsOAuth2Config) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.OAuth2UpdateConfig), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.OAuth2UpdateConfig).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.OAuth2Config!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickOAuth2Config(), typeInfo); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlist.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlist.g.cs index f66713abf..e544b04a8 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlist.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlist.g.cs @@ -127,13 +127,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Allowlist!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAllowlist(), typeInfo); } else if (value.IsDisabled) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Disabled!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDisabled(), typeInfo); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.FunctionResultSubcontent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.FunctionResultSubcontent.g.cs index 0b09b1c3f..2b0b3079b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.FunctionResultSubcontent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.FunctionResultSubcontent.g.cs @@ -134,13 +134,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ImageContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageContent!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageContent(), typeInfo); } else if (value.IsTextContent) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.TextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContent!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextContent(), typeInfo); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.InteractionSSEEvent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.InteractionSSEEvent.g.cs index 8c079a0bc..5205a53da 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.InteractionSSEEvent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.InteractionSSEEvent.g.cs @@ -390,43 +390,43 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ErrorEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ErrorEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickError(), typeInfo); } else if (value.IsCompleted) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.InteractionCompletedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.InteractionCompletedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Completed!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCompleted(), typeInfo); } else if (value.IsCreated) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.InteractionCreatedEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.InteractionCreatedEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Created!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCreated(), typeInfo); } else if (value.IsStatusUpdate) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.InteractionStatusUpdate), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.InteractionStatusUpdate).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StatusUpdate!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStatusUpdate(), typeInfo); } else if (value.IsStepDelta) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.StepDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.StepDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StepDelta!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStepDelta(), typeInfo); } else if (value.IsStepStart) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.StepStart), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.StepStart).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StepStart!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStepStart(), typeInfo); } else if (value.IsStepStop) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.StepStop), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.StepStop).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StepStop!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStepStop(), typeInfo); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.InteractionsInput.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.InteractionsInput.g.cs index 1843dfbfb..b099546b8 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.InteractionsInput.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.InteractionsInput.g.cs @@ -247,25 +247,25 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.Content), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.Content).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Content!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickContent(), typeInfo); } else if (value.IsStepList) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StepList!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStepList(), typeInfo); } else if (value.IsContentList) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ContentList!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickContentList(), typeInfo); } else if (value.IsInteractionsInputVariant4) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.InteractionsInputVariant4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickInteractionsInputVariant4(), typeInfo); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.MediaProcessing.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.MediaProcessing.g.cs index 06600adee..f4906a0b4 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.MediaProcessing.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.MediaProcessing.g.cs @@ -93,7 +93,7 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.StaticMediaProcessing), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.StaticMediaProcessing).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Static!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickStatic(), typeInfo); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.OneOf2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.OneOf2.g.cs index 3d7e5387f..663e79d1a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.OneOf2.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.OneOf2.g.cs @@ -148,13 +148,13 @@ public override void Write( { 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.Value1!, typeInfo); + 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.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue2(), typeInfo); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.OneOf3.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.OneOf3.g.cs index 61bdb1710..d40b9dd6b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.OneOf3.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.OneOf3.g.cs @@ -197,19 +197,19 @@ public override void Write( { 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.Value1!, typeInfo); + 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.Value2!, typeInfo); + 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.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue3(), typeInfo); } } } 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 index fada72253..860a4a53a 100644 --- 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 @@ -246,25 +246,25 @@ public override void Write( { 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.Value1!, typeInfo); + 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.Value2!, typeInfo); + 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.Value3!, typeInfo); + 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.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickValue4(), typeInfo); } } } 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 5872ceb20..9ded2d3ec 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 @@ -256,31 +256,31 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.AudioResponseFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.AudioResponseFormat).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioFormat!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudioFormat(), typeInfo); } else if (value.IsImageFormat) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ImageResponseFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ImageResponseFormat).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageFormat!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageFormat(), typeInfo); } else if (value.IsTextFormat) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.TextResponseFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.TextResponseFormat).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextFormat!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextFormat(), typeInfo); } else if (value.IsVideoFormat) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.VideoResponseFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.VideoResponseFormat).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoFormat!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideoFormat(), typeInfo); } else if (value.IsFormatVariant5) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FormatVariant5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFormatVariant5(), typeInfo); } } } 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 e759580c1..f0b7c586b 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 @@ -929,127 +929,127 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.CodeExecutionCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.CodeExecutionCallStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeExecutionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeExecutionCall(), typeInfo); } else if (value.IsCodeExecutionResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.CodeExecutionResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.CodeExecutionResultStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeExecutionResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeExecutionResult(), typeInfo); } else if (value.IsFileSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.FileSearchCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.FileSearchCallStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchCall(), typeInfo); } else if (value.IsFileSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.FileSearchResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.FileSearchResultStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchResult(), typeInfo); } else if (value.IsFunctionCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.FunctionCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.FunctionCallStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionCall(), typeInfo); } else if (value.IsFunctionResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.FunctionResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.FunctionResultStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionResult(), typeInfo); } else if (value.IsGoogleMapsCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.GoogleMapsCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.GoogleMapsCallStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleMapsCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleMapsCall(), typeInfo); } else if (value.IsGoogleMapsResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.GoogleMapsResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.GoogleMapsResultStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleMapsResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleMapsResult(), typeInfo); } else if (value.IsGoogleSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.GoogleSearchCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.GoogleSearchCallStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSearchCall(), typeInfo); } else if (value.IsGoogleSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.GoogleSearchResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? 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.GoogleSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSearchResult(), typeInfo); } 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.MCPServerToolCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMCPServerToolCall(), typeInfo); } 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.MCPServerToolResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMCPServerToolResult(), typeInfo); } else if (value.IsModelOutput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ModelOutputStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ModelOutputStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ModelOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickModelOutput(), typeInfo); } else if (value.IsProcessingCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ProcessingCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ProcessingCallStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProcessingCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProcessingCall(), typeInfo); } else if (value.IsProcessingResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ProcessingResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? 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.ProcessingResult!, typeInfo); + 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.RetrievalCall!, typeInfo); + 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.RetrievalResult!, typeInfo); + 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 ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ThoughtStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Thought!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickThought(), typeInfo); } else if (value.IsURLContextCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.URLContextCallStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.URLContextCallStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.URLContextCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickURLContextCall(), typeInfo); } else if (value.IsURLContextResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.URLContextResultStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.URLContextResultStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.URLContextResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickURLContextResult(), typeInfo); } else if (value.IsUserInput) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.UserInputStep), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.UserInputStep).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.UserInput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickUserInput(), typeInfo); } } } 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 533d8f1e6..073f5d0ab 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 @@ -1113,157 +1113,157 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ArgumentsDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ArgumentsDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Arguments!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickArguments(), typeInfo); } else if (value.IsAudio) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.AudioDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.AudioDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Audio!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAudio(), typeInfo); } else if (value.IsCodeExecutionCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.CodeExecutionCallDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.CodeExecutionCallDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeExecutionCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeExecutionCall(), typeInfo); } else if (value.IsCodeExecutionResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.CodeExecutionResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.CodeExecutionResultDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeExecutionResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeExecutionResult(), typeInfo); } else if (value.IsDocument) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.DocumentDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.DocumentDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Document!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDocument(), typeInfo); } else if (value.IsFileSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.FileSearchCallDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.FileSearchCallDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchCall(), typeInfo); } else if (value.IsFileSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.FileSearchResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.FileSearchResultDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearchResult(), typeInfo); } else if (value.IsFunctionResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.FunctionResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.FunctionResultDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FunctionResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunctionResult(), typeInfo); } else if (value.IsGoogleMapsCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.GoogleMapsCallDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.GoogleMapsCallDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleMapsCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleMapsCall(), typeInfo); } else if (value.IsGoogleMapsResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.GoogleMapsResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.GoogleMapsResultDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleMapsResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleMapsResult(), typeInfo); } else if (value.IsGoogleSearchCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.GoogleSearchCallDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.GoogleSearchCallDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSearchCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSearchCall(), typeInfo); } else if (value.IsGoogleSearchResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.GoogleSearchResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.GoogleSearchResultDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleSearchResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleSearchResult(), typeInfo); } else if (value.IsImage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ImageDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? 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.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } 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.MCPServerToolCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMCPServerToolCall(), typeInfo); } 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.MCPServerToolResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMCPServerToolResult(), typeInfo); } else if (value.IsProcessingCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ProcessingCallDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ProcessingCallDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ProcessingCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickProcessingCall(), typeInfo); } else if (value.IsProcessingResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ProcessingResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? 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.ProcessingResult!, typeInfo); + 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.RetrievalCall!, typeInfo); + 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.RetrievalResult!, typeInfo); + 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 ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.TextAnnotationDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextAnnotation!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextAnnotation(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.TextDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.TextDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } else if (value.IsThoughtSignature) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ThoughtSignatureDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ThoughtSignatureDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThoughtSignature!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickThoughtSignature(), typeInfo); } else if (value.IsThoughtSummary) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ThoughtSummaryDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ThoughtSummaryDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ThoughtSummary!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickThoughtSummary(), typeInfo); } else if (value.IsURLContextCall) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.URLContextCallDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.URLContextCallDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.URLContextCall!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickURLContextCall(), typeInfo); } else if (value.IsURLContextResult) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.URLContextResultDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.URLContextResultDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.URLContextResult!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickURLContextResult(), typeInfo); } else if (value.IsVideo) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.VideoDelta), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.VideoDelta).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Video!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVideo(), typeInfo); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ThoughtSummaryContent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ThoughtSummaryContent.g.cs index 68088d2d3..950a8ab62 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ThoughtSummaryContent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.ThoughtSummaryContent.g.cs @@ -134,13 +134,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ImageContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Image!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImage(), typeInfo); } else if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.TextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickText(), typeInfo); } } } 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 6e1d2b01e..2d8fd94f0 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 @@ -434,55 +434,55 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.CodeExecution), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.CodeExecution).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.CodeExecution!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickCodeExecution(), typeInfo); } else if (value.IsComputerUse) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ComputerUse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ComputerUse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ComputerUse!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickComputerUse(), typeInfo); } else if (value.IsFileSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.FileSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.FileSearch).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearch!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFileSearch(), typeInfo); } else if (value.IsFunction) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.Function), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.Function).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickFunction(), typeInfo); } else if (value.IsGoogleMaps) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.GoogleMaps), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.GoogleMaps).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.GoogleMaps!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickGoogleMaps(), typeInfo); } else if (value.IsGoogleSearch) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.GoogleSearch), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? 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.GoogleSearch!, typeInfo); + 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.MCPServer!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickMCPServer(), typeInfo); } else if (value.IsRetrieval) { 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.Retrieval!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickRetrieval(), typeInfo); } else if (value.IsURLContext) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.URLContext), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.URLContext).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.URLContext!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickURLContext(), typeInfo); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.TranscriptionMode.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.TranscriptionMode.g.cs index a60191a6f..68e5befae 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.TranscriptionMode.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.TranscriptionMode.g.cs @@ -130,13 +130,13 @@ public override void Write( { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.SmartTranscriptionMode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.SmartTranscriptionMode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Smart!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickSmart(), typeInfo); } else if (value.IsVerbatim) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.VerbatimTranscriptionMode), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.VerbatimTranscriptionMode).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Verbatim!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickVerbatim(), typeInfo); } } } 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 8b78a4b0b..63466d2b1 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 @@ -1,22 +1,16 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Google.Gemini.NextGen { /// /// /// + #pragma warning disable CS3016 // Converter type array in this attribute is not CLS-compliant. [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] { - typeof(global::Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatusJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.CreateAgentInteractionStatusNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.AgentOptionJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.AgentOptionNullableJsonConverter), @@ -323,8 +317,6 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.FunctionResultSubcontentJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.AgentConfig2JsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionSSEEventJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionsInputJsonConverter), @@ -373,6 +365,8 @@ 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>), @@ -387,14 +381,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.UnixTimestampJsonConverter), })] + #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(global::Google.Gemini.NextGen.Agent))] @@ -416,12 +409,13 @@ namespace Google.Gemini.NextGen [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))] + #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::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SafetySetting))] [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.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")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookConfig))] @@ -542,11 +536,16 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FunctionResultSubcontent), TypeInfoPropertyName = "FunctionResultSubcontent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FunctionResultStep))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GenerationConfig))] + #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.OneOf>), TypeInfoPropertyName = "OneOfSpeakerConfigIListSpeechConfig22")] [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))] + #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.ThinkingLevel), TypeInfoPropertyName = "ThinkingLevel2")] [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))] @@ -592,9 +591,12 @@ namespace Google.Gemini.NextGen [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))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] + #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.ImageContentMimeType), TypeInfoPropertyName = "ImageContentMimeType2")] [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.ImageDelta))] @@ -605,8 +607,6 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ImageResponseFormatImageSize), TypeInfoPropertyName = "ImageResponseFormatImageSize2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ImageResponseFormatMimeType), TypeInfoPropertyName = "ImageResponseFormatMimeType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Interaction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AgentConfig2), TypeInfoPropertyName = "AgentConfig22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionAgentConfigDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [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.InteractionStatus), TypeInfoPropertyName = "InteractionStatus2")] @@ -714,7 +714,6 @@ namespace Google.Gemini.NextGen [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.OneOf), TypeInfoPropertyName = "OneOfCreateAgentInteractionCreateModelInteraction2")] [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")] @@ -748,6 +747,7 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdateState), TypeInfoPropertyName = "WebhookUpdateState2")] [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.OneOf), TypeInfoPropertyName = "OneOfCreateAgentInteractionCreateModelInteraction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateInteractionResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateInteractionResponse2))] 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 4a92ea06d..b18bc6e0e 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 @@ -129,507 +129,507 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.CreateAgentInteractionStatus? Type24 { get; set; } + public global::System.Collections.Generic.IList? Type24 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type25 { get; set; } + public global::Google.Gemini.NextGen.Tool? Type25 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Tool? Type26 { get; set; } + public global::Google.Gemini.NextGen.WebhookConfig? Type26 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookConfig? Type27 { get; set; } + public global::Google.Gemini.NextGen.CodeExecution? Type27 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecution? Type28 { get; set; } + public global::Google.Gemini.NextGen.Function? Type28 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Function? Type29 { get; set; } + public global::Google.Gemini.NextGen.GoogleSearch? Type29 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GoogleSearch? Type30 { get; set; } + public global::Google.Gemini.NextGen.MCPServer? Type30 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.MCPServer? Type31 { get; set; } + public global::Google.Gemini.NextGen.URLContext? Type31 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContext? Type32 { get; set; } + public global::Google.Gemini.NextGen.AllowedTools? Type32 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AllowedTools? Type33 { get; set; } + public global::Google.Gemini.NextGen.AllowedToolsMode? Type33 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AllowedToolsMode? Type34 { get; set; } + public global::System.Collections.Generic.IList? Type34 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type35 { get; set; } + public global::Google.Gemini.NextGen.Annotation? Type35 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Annotation? Type36 { get; set; } + public global::Google.Gemini.NextGen.FileCitation? Type36 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FileCitation? Type37 { get; set; } + public global::Google.Gemini.NextGen.PlaceCitation? Type37 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.PlaceCitation? Type38 { get; set; } + public global::Google.Gemini.NextGen.SpeechAnnotation? Type38 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SpeechAnnotation? Type39 { get; set; } + public global::Google.Gemini.NextGen.URLCitation? Type39 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLCitation? Type40 { get; set; } + public global::Google.Gemini.NextGen.WordInfo? Type40 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WordInfo? Type41 { get; set; } + public object? Type41 { get; set; } /// /// /// - public object? Type42 { get; set; } + public global::Google.Gemini.NextGen.ArgumentsDelta? Type42 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ArgumentsDelta? Type43 { get; set; } + public global::Google.Gemini.NextGen.AudioContent? Type43 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioContent? Type44 { get; set; } + public int? Type44 { get; set; } /// /// /// - public int? Type45 { get; set; } + public byte[]? Type45 { get; set; } /// /// /// - public byte[]? Type46 { get; set; } + public global::Google.Gemini.NextGen.AudioContentMimeType? Type46 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioContentMimeType? Type47 { get; set; } + public global::Google.Gemini.NextGen.AudioData? Type47 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioData? Type48 { get; set; } + public global::Google.Gemini.NextGen.AudioDelta? Type48 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioDelta? Type49 { get; set; } + public global::Google.Gemini.NextGen.AudioDeltaMimeType? Type49 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioDeltaMimeType? Type50 { get; set; } + public global::Google.Gemini.NextGen.AudioResponseFormat? Type50 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioResponseFormat? Type51 { get; set; } + public global::Google.Gemini.NextGen.AudioResponseFormatDelivery? Type51 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioResponseFormatDelivery? Type52 { get; set; } + public global::Google.Gemini.NextGen.AudioResponseFormatMimeType? Type52 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioResponseFormatMimeType? Type53 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionCallArguments? Type53 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionCallArguments? Type54 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage? Type54 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage? Type55 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionCallDelta? Type55 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionCallDelta? Type56 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionCallStep? Type56 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionCallStep? Type57 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionCallArguments2? Type57 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionCallArguments2? Type58 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage2? Type58 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage2? Type59 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionResultDelta? Type59 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionResultDelta? Type60 { get; set; } + public global::Google.Gemini.NextGen.CodeExecutionResultStep? Type60 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionResultStep? Type61 { get; set; } + public global::Google.Gemini.NextGen.FindRequest? Type61 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FindRequest? Type62 { get; set; } + public global::Google.Gemini.NextGen.FixRequest? Type62 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FixRequest? Type63 { get; set; } + public global::Google.Gemini.NextGen.SessionConfig? Type63 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SessionConfig? Type64 { get; set; } + public global::Google.Gemini.NextGen.ComputerUse? Type64 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ComputerUse? Type65 { get; set; } + public global::System.Collections.Generic.IList? Type65 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type66 { get; set; } + public global::Google.Gemini.NextGen.ComputerUseDisabledSafetyPolicie? Type66 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ComputerUseDisabledSafetyPolicie? Type67 { get; set; } + public global::Google.Gemini.NextGen.ComputerUseEnvironment? Type67 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ComputerUseEnvironment? Type68 { get; set; } + public global::Google.Gemini.NextGen.Content? Type68 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Content? Type69 { get; set; } + public global::Google.Gemini.NextGen.DocumentContent? Type69 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DocumentContent? Type70 { get; set; } + public global::Google.Gemini.NextGen.ImageContent? Type70 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageContent? Type71 { get; set; } + public global::Google.Gemini.NextGen.TextContent? Type71 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TextContent? Type72 { get; set; } + public global::Google.Gemini.NextGen.VideoContent? Type72 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoContent? Type73 { get; set; } + public global::Google.Gemini.NextGen.CreateEnvironmentRequest? Type73 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CreateEnvironmentRequest? Type74 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type74 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type75 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist? Type75 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist? Type76 { get; set; } + public global::Google.Gemini.NextGen.CreateEnvironmentRequestNetwork? Type76 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CreateEnvironmentRequestNetwork? Type77 { get; set; } + public global::System.Collections.Generic.IList? Type77 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type78 { get; set; } + public global::Google.Gemini.NextGen.Source? Type78 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Source? Type79 { get; set; } + public global::Google.Gemini.NextGen.CreateVoiceRequest? Type79 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CreateVoiceRequest? Type80 { get; set; } + public global::Google.Gemini.NextGen.Voice? Type80 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Voice? Type81 { get; set; } + public global::Google.Gemini.NextGen.CreateWebhookRequest? Type81 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CreateWebhookRequest? Type82 { get; set; } + public global::Google.Gemini.NextGen.Webhook? Type82 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Webhook? Type83 { get; set; } + public global::Google.Gemini.NextGen.Credential? Type83 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Credential? Type84 { get; set; } + public global::System.DateTime? Type84 { get; set; } /// /// /// - public global::System.DateTime? Type85 { get; set; } + public global::Google.Gemini.NextGen.CredentialStatus? Type85 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CredentialStatus? Type86 { get; set; } + public global::Google.Gemini.NextGen.CredentialType? Type86 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CredentialType? Type87 { get; set; } + public global::Google.Gemini.NextGen.CredentialCreateParams? Type87 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CredentialCreateParams? Type88 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentVariableConfig? Type88 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvironmentVariableConfig? Type89 { get; set; } + public global::Google.Gemini.NextGen.HttpBearerConfig? Type89 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.HttpBearerConfig? Type90 { get; set; } + public global::Google.Gemini.NextGen.OAuth2Config? Type90 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OAuth2Config? Type91 { get; set; } + public global::Google.Gemini.NextGen.CredentialUpdate? Type91 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CredentialUpdate? Type92 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig? Type92 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig? Type93 { get; set; } + public global::Google.Gemini.NextGen.HttpBearerUpdateConfig? Type93 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.HttpBearerUpdateConfig? Type94 { get; set; } + public global::Google.Gemini.NextGen.OAuth2UpdateConfig? Type94 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OAuth2UpdateConfig? Type95 { get; set; } + public global::Google.Gemini.NextGen.ThinkingSummaries? Type95 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ThinkingSummaries? Type96 { get; set; } + public global::Google.Gemini.NextGen.DeepResearchAgentConfigVisualization? Type96 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DeepResearchAgentConfigVisualization? Type97 { get; set; } + public global::Google.Gemini.NextGen.DeleteVoiceResponse? Type97 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DeleteVoiceResponse? Type98 { get; set; } + public global::Google.Gemini.NextGen.DocumentContentMimeType? Type98 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DocumentContentMimeType? Type99 { get; set; } + public global::Google.Gemini.NextGen.DocumentDelta? Type99 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DocumentDelta? Type100 { get; set; } + public global::Google.Gemini.NextGen.DocumentDeltaMimeType? Type100 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DocumentDeltaMimeType? Type101 { get; set; } + public global::Google.Gemini.NextGen.AllowlistEntry? Type101 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AllowlistEntry? Type102 { get; set; } + public global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>? Type102 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>? Type103 { get; set; } + public global::System.Collections.Generic.IList>? Type103 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type104 { get; set; } + public global::Google.Gemini.NextGen.Empty? Type104 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Empty? Type105 { get; set; } + public global::Google.Gemini.NextGen.EnvVar? Type105 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvVar? Type106 { get; set; } + public global::Google.Gemini.NextGen.Environment2? Type106 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Environment2? Type107 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type107 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type108 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentNetwork? Type108 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvironmentNetwork? Type109 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentStatus? Type109 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvironmentStatus? Type110 { get; set; } + public global::Google.Gemini.NextGen.OneOf, string>? Type110 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf, string>? Type111 { get; set; } + public global::System.Collections.Generic.Dictionary? Type111 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type112 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type112 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type113 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentNetwork2? Type113 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvironmentNetwork2? Type114 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentFile? Type114 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvironmentFile? Type115 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentFileType? Type115 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvironmentFileType? Type116 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum? Type116 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum? Type117 { get; set; } + public global::System.Collections.Generic.IList? Type117 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type118 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2? Type118 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2? Type119 { get; set; } + public global::Google.Gemini.NextGen.OneOf>? Type119 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf>? Type120 { get; set; } + public global::Google.Gemini.NextGen.InjectionLocation3? Type120 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InjectionLocation3? Type121 { get; set; } + public global::System.Collections.Generic.IList? Type121 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type122 { get; set; } + public global::Google.Gemini.NextGen.Error? Type122 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Error? Type123 { get; set; } + public global::Google.Gemini.NextGen.ErrorEvent? Type123 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ErrorEvent? Type124 { get; set; } + public global::Google.Gemini.NextGen.ExaAISearchConfig? Type124 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ExaAISearchConfig? Type125 { get; set; } + public global::Google.Gemini.NextGen.FileContent? Type125 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FileContent? Type126 { get; set; } + public global::Google.Gemini.NextGen.FileSearch? Type126 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FileSearch? Type127 { get; set; } + public global::Google.Gemini.NextGen.FileSearchCallDelta? Type127 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FileSearchCallDelta? Type128 { get; set; } + public global::Google.Gemini.NextGen.FileSearchCallStep? Type128 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FileSearchCallStep? Type129 { get; set; } + public global::Google.Gemini.NextGen.FileSearchResult? Type129 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FileSearchResult? Type130 { get; set; } + public global::Google.Gemini.NextGen.FileSearchResultDelta? Type130 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FileSearchResultDelta? Type131 { get; set; } + public global::System.Collections.Generic.IList? Type131 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type132 { get; set; } + public global::Google.Gemini.NextGen.FileSearchResultStep? Type132 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FileSearchResultStep? Type133 { get; set; } + public global::Google.Gemini.NextGen.Filter? Type133 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Filter? Type134 { get; set; } + public double? Type134 { get; set; } /// /// /// - public double? Type135 { get; set; } + public global::Google.Gemini.NextGen.FindRequestMode? Type135 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FindRequestMode? Type136 { get; set; } + public global::System.Collections.Generic.IList? Type136 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type137 { get; set; } + public global::Google.Gemini.NextGen.FunctionCallStep? Type137 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FunctionCallStep? Type138 { get; set; } + public global::Google.Gemini.NextGen.FunctionResultDelta? Type138 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FunctionResultDelta? Type139 { get; set; } + public global::Google.Gemini.NextGen.OneOf, object, string>? Type139 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf, object, string>? Type140 { get; set; } + public global::System.Collections.Generic.IList? Type140 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type141 { get; set; } + public global::Google.Gemini.NextGen.FunctionResultSubcontent? Type141 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FunctionResultSubcontent? Type142 { get; set; } + public global::Google.Gemini.NextGen.FunctionResultStep? Type142 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FunctionResultStep? Type143 { get; set; } + public global::Google.Gemini.NextGen.GenerationConfig? Type143 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GenerationConfig? Type144 { get; set; } + public global::Google.Gemini.NextGen.ImageConfig? Type144 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageConfig? Type145 { get; set; } + public global::Google.Gemini.NextGen.OneOf>? Type145 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf>? Type146 { get; set; } + public global::Google.Gemini.NextGen.SpeakerConfig? Type146 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SpeakerConfig? Type147 { get; set; } + public global::System.Collections.Generic.IList? Type147 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type148 { get; set; } + public global::Google.Gemini.NextGen.SpeechConfig2? Type148 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SpeechConfig2? Type149 { get; set; } + public float? Type149 { get; set; } /// /// /// @@ -813,663 +813,651 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public float? Type195 { get; set; } + public global::Google.Gemini.NextGen.ImageConfigAspectRatio? Type195 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageConfigAspectRatio? Type196 { get; set; } + public global::Google.Gemini.NextGen.ImageConfigImageSize? Type196 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageConfigImageSize? Type197 { get; set; } + public global::Google.Gemini.NextGen.ImageContentMimeType? Type197 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageContentMimeType? Type198 { get; set; } + public global::Google.Gemini.NextGen.MediaResolution? Type198 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.MediaResolution? Type199 { get; set; } + public global::Google.Gemini.NextGen.ImageDelta? Type199 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageDelta? Type200 { get; set; } + public global::Google.Gemini.NextGen.ImageDeltaMimeType? Type200 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageDeltaMimeType? Type201 { get; set; } + public global::Google.Gemini.NextGen.ImageResponseFormat? Type201 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageResponseFormat? Type202 { get; set; } + public global::Google.Gemini.NextGen.ImageResponseFormatAspectRatio? Type202 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageResponseFormatAspectRatio? Type203 { get; set; } + public global::Google.Gemini.NextGen.ImageResponseFormatDelivery? Type203 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageResponseFormatDelivery? Type204 { get; set; } + public global::Google.Gemini.NextGen.ImageResponseFormatImageSize? Type204 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageResponseFormatImageSize? Type205 { get; set; } + public global::Google.Gemini.NextGen.ImageResponseFormatMimeType? Type205 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageResponseFormatMimeType? Type206 { get; set; } + public global::Google.Gemini.NextGen.Interaction? Type206 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Interaction? Type207 { get; set; } + public global::System.Collections.Generic.IList? Type207 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AgentConfig2? Type208 { get; set; } + public global::Google.Gemini.NextGen.Model? Type208 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionAgentConfigDiscriminator? Type209 { get; set; } + public global::Google.Gemini.NextGen.InteractionStatus? Type209 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type210 { get; set; } + public global::System.Collections.Generic.IList? Type210 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Model? Type211 { get; set; } + public global::Google.Gemini.NextGen.Step? Type211 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionStatus? Type212 { get; set; } + public global::Google.Gemini.NextGen.Usage? Type212 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type213 { get; set; } + public global::Google.Gemini.NextGen.InteractionCompletedEvent? Type213 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Step? Type214 { get; set; } + public global::Google.Gemini.NextGen.InteractionSseEventInteraction? Type214 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Usage? Type215 { get; set; } + public global::Google.Gemini.NextGen.InteractionCreatedEvent? Type215 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionCompletedEvent? Type216 { get; set; } + public global::Google.Gemini.NextGen.InteractionSseEventInteractionStatus? Type216 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionSseEventInteraction? Type217 { get; set; } + public global::Google.Gemini.NextGen.InteractionSSEStreamEvent? Type217 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionCreatedEvent? Type218 { get; set; } + public global::Google.Gemini.NextGen.InteractionSSEEvent? Type218 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionSseEventInteractionStatus? Type219 { get; set; } + public global::Google.Gemini.NextGen.InteractionStatusUpdate? Type219 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionSSEStreamEvent? Type220 { get; set; } + public global::Google.Gemini.NextGen.StepDelta? Type220 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionSSEEvent? Type221 { get; set; } + public global::Google.Gemini.NextGen.StepStart? Type221 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionStatusUpdate? Type222 { get; set; } + public global::Google.Gemini.NextGen.StepStop? Type222 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.StepDelta? Type223 { get; set; } + public global::Google.Gemini.NextGen.InteractionStatusUpdateStatus? Type223 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.StepStart? Type224 { get; set; } + public global::System.Collections.Generic.IList? Type224 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.StepStop? Type225 { get; set; } + public global::Google.Gemini.NextGen.AgentListResponse? Type225 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionStatusUpdateStatus? Type226 { get; set; } + public global::System.Collections.Generic.IList? Type226 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type227 { get; set; } + public global::Google.Gemini.NextGen.CredentialListResponse? Type227 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AgentListResponse? Type228 { get; set; } + public global::System.Collections.Generic.IList? Type228 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type229 { get; set; } + public global::Google.Gemini.NextGen.ListEnvironmentsResponse? Type229 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CredentialListResponse? Type230 { get; set; } + public global::System.Collections.Generic.IList? Type230 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type231 { get; set; } + public global::Google.Gemini.NextGen.ListTriggerExecutionsResponse? Type231 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ListEnvironmentsResponse? Type232 { get; set; } + public global::System.Collections.Generic.IList? Type232 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type233 { get; set; } + public global::Google.Gemini.NextGen.TriggerExecution? Type233 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ListTriggerExecutionsResponse? Type234 { get; set; } + public global::Google.Gemini.NextGen.ListTriggersResponse? Type234 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type235 { get; set; } + public global::System.Collections.Generic.IList? Type235 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TriggerExecution? Type236 { get; set; } + public global::Google.Gemini.NextGen.Trigger? Type236 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ListTriggersResponse? Type237 { get; set; } + public global::Google.Gemini.NextGen.ListVoicesResponse? Type237 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type238 { get; set; } + public global::System.Collections.Generic.IList? Type238 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Trigger? Type239 { get; set; } + public global::Google.Gemini.NextGen.WebhookListResponse? Type239 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ListVoicesResponse? Type240 { get; set; } + public global::System.Collections.Generic.IList? Type240 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type241 { get; set; } + public global::System.Collections.Generic.IList? Type241 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookListResponse? Type242 { get; set; } + public global::Google.Gemini.NextGen.MCPServerToolCallDelta? Type242 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type243 { get; set; } + public global::Google.Gemini.NextGen.MCPServerToolCallStep? Type243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type244 { get; set; } + public global::Google.Gemini.NextGen.MCPServerToolResultDelta? Type244 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolCallDelta? Type245 { get; set; } + public global::Google.Gemini.NextGen.MCPServerToolResultStep? Type245 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolCallStep? Type246 { get; set; } + public global::Google.Gemini.NextGen.MediaProcessing? Type246 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolResultDelta? Type247 { get; set; } + public global::Google.Gemini.NextGen.StaticMediaProcessing? Type247 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolResultStep? Type248 { get; set; } + public global::Google.Gemini.NextGen.ModalityTokens? Type248 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.MediaProcessing? Type249 { get; set; } + public global::Google.Gemini.NextGen.CreateModelInteraction? Type249 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.StaticMediaProcessing? Type250 { get; set; } + public global::Google.Gemini.NextGen.CreateModelInteractionStatus? Type250 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ModalityTokens? Type251 { get; set; } + public global::Google.Gemini.NextGen.ModelOutputStep? Type251 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CreateModelInteraction? Type252 { get; set; } + public global::Google.Gemini.NextGen.Status? Type252 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CreateModelInteractionStatus? Type253 { get; set; } + public global::Google.Gemini.NextGen.ParallelAISearchConfig? Type253 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ModelOutputStep? Type254 { get; set; } + public global::Google.Gemini.NextGen.PingWebhookRequest? Type254 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Status? Type255 { get; set; } + public global::Google.Gemini.NextGen.WebhookPingResponse? Type255 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ParallelAISearchConfig? Type256 { get; set; } + public global::Google.Gemini.NextGen.Pitch? Type256 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.PingWebhookRequest? Type257 { get; set; } + public global::Google.Gemini.NextGen.ProcessingCallDelta? Type257 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookPingResponse? Type258 { get; set; } + public global::Google.Gemini.NextGen.ProcessingCallStep? Type258 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Pitch? Type259 { get; set; } + public global::Google.Gemini.NextGen.ProcessingResultDelta? Type259 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ProcessingCallDelta? Type260 { get; set; } + public global::Google.Gemini.NextGen.ProcessingResultStep? Type260 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ProcessingCallStep? Type261 { get; set; } + public global::Google.Gemini.NextGen.PromptedVoice? Type261 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ProcessingResultDelta? Type262 { get; set; } + public global::Google.Gemini.NextGen.RagResource? Type262 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ProcessingResultStep? Type263 { get; set; } + public global::Google.Gemini.NextGen.RagRetrievalConfig? Type263 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.PromptedVoice? Type264 { get; set; } + public global::Google.Gemini.NextGen.Ranking? Type264 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RagResource? Type265 { get; set; } + public global::Google.Gemini.NextGen.RagStoreConfig? Type265 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RagRetrievalConfig? Type266 { get; set; } + public global::System.Collections.Generic.IList? Type266 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Ranking? Type267 { get; set; } + public global::Google.Gemini.NextGen.RankService? Type267 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RagStoreConfig? Type268 { get; set; } + public global::Google.Gemini.NextGen.ReplicatedVoice? Type268 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type269 { get; set; } + public global::Google.Gemini.NextGen.TextResponseFormat? Type269 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RankService? Type270 { get; set; } + public global::Google.Gemini.NextGen.VideoResponseFormat? Type270 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ReplicatedVoice? Type271 { get; set; } + public global::Google.Gemini.NextGen.Retrieval? Type271 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TextResponseFormat? Type272 { get; set; } + public global::System.Collections.Generic.IList? Type272 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoResponseFormat? Type273 { get; set; } + public global::Google.Gemini.NextGen.RetrievalRetrievalType? Type273 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Retrieval? Type274 { get; set; } + public global::Google.Gemini.NextGen.VertexAISearchConfig? Type274 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type275 { get; set; } + public global::Google.Gemini.NextGen.RetrievalCallDelta? Type275 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalRetrievalType? Type276 { get; set; } + public global::Google.Gemini.NextGen.RetrievalCallArguments? Type276 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VertexAISearchConfig? Type277 { get; set; } + public global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalType? Type277 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalCallDelta? Type278 { get; set; } + public global::Google.Gemini.NextGen.RetrievalCallStep? Type278 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalCallArguments? Type279 { get; set; } + public global::Google.Gemini.NextGen.RetrievalCallStepRetrievalType? Type279 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalCallDeltaRetrievalType? Type280 { get; set; } + public global::Google.Gemini.NextGen.RetrievalResultDelta? Type280 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalCallStep? Type281 { get; set; } + public global::Google.Gemini.NextGen.RetrievalResultStep? Type281 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalCallStepRetrievalType? Type282 { get; set; } + public global::Google.Gemini.NextGen.RotateSigningSecretRequest? Type282 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalResultDelta? Type283 { get; set; } + public global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior? Type283 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RetrievalResultStep? Type284 { get; set; } + public global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse? Type284 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RotateSigningSecretRequest? Type285 { get; set; } + public global::Google.Gemini.NextGen.RunTriggerRequest? Type285 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior? Type286 { get; set; } + public global::Google.Gemini.NextGen.SafetySettingMethod? Type286 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse? Type287 { get; set; } + public global::Google.Gemini.NextGen.SafetySettingThreshold? Type287 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.RunTriggerRequest? Type288 { get; set; } + public global::Google.Gemini.NextGen.SigningSecret? Type288 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SafetySettingMethod? Type289 { get; set; } + public global::Google.Gemini.NextGen.SmartTranscriptionMode? Type289 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SafetySettingThreshold? Type290 { get; set; } + public global::Google.Gemini.NextGen.SourceType? Type290 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SigningSecret? Type291 { get; set; } + public global::Google.Gemini.NextGen.ThoughtStep? Type291 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SmartTranscriptionMode? Type292 { get; set; } + public global::Google.Gemini.NextGen.URLContextCallStep? Type292 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SourceType? Type293 { get; set; } + public global::Google.Gemini.NextGen.URLContextResultStep? Type293 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ThoughtStep? Type294 { get; set; } + public global::Google.Gemini.NextGen.UserInputStep? Type294 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContextCallStep? Type295 { get; set; } + public global::Google.Gemini.NextGen.StepDeltaData? Type295 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContextResultStep? Type296 { get; set; } + public global::Google.Gemini.NextGen.StepDeltaMetadata? Type296 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UserInputStep? Type297 { get; set; } + public global::Google.Gemini.NextGen.TextAnnotationDelta? Type297 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.StepDeltaData? Type298 { get; set; } + public global::Google.Gemini.NextGen.TextDelta? Type298 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.StepDeltaMetadata? Type299 { get; set; } + public global::Google.Gemini.NextGen.ThoughtSignatureDelta? Type299 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TextAnnotationDelta? Type300 { get; set; } + public global::Google.Gemini.NextGen.ThoughtSummaryDelta? Type300 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TextDelta? Type301 { get; set; } + public global::Google.Gemini.NextGen.URLContextCallDelta? Type301 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ThoughtSignatureDelta? Type302 { get; set; } + public global::Google.Gemini.NextGen.URLContextResultDelta? Type302 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ThoughtSummaryDelta? Type303 { get; set; } + public global::Google.Gemini.NextGen.VideoDelta? Type303 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContextCallDelta? Type304 { get; set; } + public global::System.Collections.Generic.IList? Type304 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContextResultDelta? Type305 { get; set; } + public global::Google.Gemini.NextGen.TextResponseFormatMimeType? Type305 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoDelta? Type306 { get; set; } + public global::Google.Gemini.NextGen.ThoughtSummaryContent? Type306 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type307 { get; set; } + public global::System.Collections.Generic.IList? Type307 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TextResponseFormatMimeType? Type308 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type308 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ThoughtSummaryContent? Type309 { get; set; } + public global::Google.Gemini.NextGen.TranscriptionMode? Type309 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type310 { get; set; } + public global::Google.Gemini.NextGen.TranscriptionConfigMode? Type310 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type311 { get; set; } + public global::Google.Gemini.NextGen.VerbatimTranscriptionMode? Type311 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TranscriptionMode? Type312 { get; set; } + public global::Google.Gemini.NextGen.TriggerStatus? Type312 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TranscriptionConfigMode? Type313 { get; set; } + public global::Google.Gemini.NextGen.TriggerCreateParams? Type313 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VerbatimTranscriptionMode? Type314 { get; set; } + public global::Google.Gemini.NextGen.TriggerExecutionStatus? Type314 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TriggerStatus? Type315 { get; set; } + public global::Google.Gemini.NextGen.TriggerUpdate? Type315 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TriggerCreateParams? Type316 { get; set; } + public global::Google.Gemini.NextGen.TriggerUpdateStatus? Type316 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type317 { get; set; } + public global::Google.Gemini.NextGen.UpdateTriggerRequest? Type317 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TriggerExecutionStatus? Type318 { get; set; } + public global::Google.Gemini.NextGen.UpdateWebhookRequest? Type318 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TriggerUpdate? Type319 { get; set; } + public global::Google.Gemini.NextGen.WebhookUpdate? Type319 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TriggerUpdateStatus? Type320 { get; set; } + public global::Google.Gemini.NextGen.UploadEnvironmentFileRequest? Type320 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UpdateTriggerRequest? Type321 { get; set; } + public global::Google.Gemini.NextGen.UploadEnvironmentFileResponse? Type321 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UpdateWebhookRequest? Type322 { get; set; } + public global::Google.Gemini.NextGen.URLContextCallArguments? Type322 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookUpdate? Type323 { get; set; } + public global::Google.Gemini.NextGen.UrlContextCallStepArguments? Type323 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UploadEnvironmentFileRequest? Type324 { get; set; } + public global::Google.Gemini.NextGen.URLContextResult? Type324 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UploadEnvironmentFileResponse? Type325 { get; set; } + public global::Google.Gemini.NextGen.URLContextResultStatus? Type325 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContextCallArguments? Type326 { get; set; } + public global::System.Collections.Generic.IList? Type326 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UrlContextCallStepArguments? Type327 { get; set; } + public global::Google.Gemini.NextGen.UrlContextResultItem? Type327 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContextResult? Type328 { get; set; } + public global::Google.Gemini.NextGen.UrlContextResultItemStatus? Type328 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.URLContextResultStatus? Type329 { get; set; } + public global::System.Collections.Generic.IList? Type329 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type330 { get; set; } + public global::System.Collections.Generic.IList? Type330 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UrlContextResultItem? Type331 { get; set; } + public global::Google.Gemini.NextGen.VideoConfigTask? Type331 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.UrlContextResultItemStatus? Type332 { get; set; } + public global::Google.Gemini.NextGen.VideoContentMimeType? Type332 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type333 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type333 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type334 { get; set; } + public global::Google.Gemini.NextGen.VideoContentProcessing? Type334 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoConfigTask? Type335 { get; set; } + public global::Google.Gemini.NextGen.VideoDeltaMimeType? Type335 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoContentMimeType? Type336 { get; set; } + public global::Google.Gemini.NextGen.VideoResponseFormatAspectRatio? Type336 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type337 { get; set; } + public global::Google.Gemini.NextGen.VideoResponseFormatDelivery? Type337 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoContentProcessing? Type338 { get; set; } + public global::Google.Gemini.NextGen.VideoResponseFormatResolution? Type338 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoDeltaMimeType? Type339 { get; set; } + public global::Google.Gemini.NextGen.VoiceType? Type339 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoResponseFormatAspectRatio? Type340 { get; set; } + public global::System.Collections.Generic.IList? Type340 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoResponseFormatDelivery? Type341 { get; set; } + public global::Google.Gemini.NextGen.WebhookState? Type341 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoResponseFormatResolution? Type342 { get; set; } + public global::System.Collections.Generic.IList? Type342 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VoiceType? Type343 { get; set; } + public global::Google.Gemini.NextGen.WebhookSubscribedEvent? Type343 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type344 { get; set; } + public global::Google.Gemini.NextGen.WebhookUpdateState? Type344 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookState? Type345 { get; set; } + public global::System.Collections.Generic.IList? Type345 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type346 { get; set; } + public global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent? Type346 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookSubscribedEvent? Type347 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type347 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookUpdateState? Type348 { get; set; } + public long? Type348 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type349 { get; set; } + public global::Google.Gemini.NextGen.CreateInteractionResponse? Type349 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent? Type350 { get; set; } + public global::Google.Gemini.NextGen.CreateInteractionResponse2? Type350 { get; set; } /// /// /// - public long? Type351 { get; set; } + public global::Google.Gemini.NextGen.DeleteInteractionResponse? Type351 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CreateInteractionResponse? Type352 { get; set; } + public global::Google.Gemini.NextGen.DeleteInteractionResponse2? Type352 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.CreateInteractionResponse2? Type353 { get; set; } + public global::Google.Gemini.NextGen.GetInteractionByIdResponse? Type353 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DeleteInteractionResponse? Type354 { get; set; } + public global::Google.Gemini.NextGen.GetInteractionByIdResponse2? Type354 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.DeleteInteractionResponse2? Type355 { get; set; } + public global::Google.Gemini.NextGen.CancelInteractionByIdResponse? Type355 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GetInteractionByIdResponse? Type356 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.GetInteractionByIdResponse2? Type357 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.CancelInteractionByIdResponse? Type358 { get; set; } - /// - /// - /// - public global::Google.Gemini.NextGen.CancelInteractionByIdResponse2? Type359 { get; set; } + public global::Google.Gemini.NextGen.CancelInteractionByIdResponse2? Type356 { get; set; } /// /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentConfig2.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentConfig2.Json.g.cs deleted file mode 100644 index 9db9116a8..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentConfig2.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public readonly partial struct AgentConfig2 - { - /// - /// 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.AgentConfig2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.AgentConfig2), - jsonSerializerContext) as global::Google.Gemini.NextGen.AgentConfig2?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.AgentConfig2? 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.AgentConfig2? 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.AgentConfig2), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.AgentConfig2?; - } - - /// - /// 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.AgentConfig2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentConfig2.g.cs deleted file mode 100644 index 8b3ee78c4..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AgentConfig2.g.cs +++ /dev/null @@ -1,463 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Configuration parameters for the agent interaction. - /// - public readonly partial struct AgentConfig2 : global::System.IEquatable - { - /// - /// Configuration for the Antigravity agent runtime.
- /// Provides server-side control over the agent's execution environment
- /// and tool configuration. - ///
-#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.AntigravityAgentConfig? AntigravityConfig { get; init; } -#else - public global::Google.Gemini.NextGen.AntigravityAgentConfig? AntigravityConfig { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AntigravityConfig))] -#endif - public bool IsAntigravityConfig => AntigravityConfig != null; - - /// - /// - /// - public bool TryPickAntigravityConfig( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Google.Gemini.NextGen.AntigravityAgentConfig? value) - { - value = AntigravityConfig; - return IsAntigravityConfig; - } - - /// - /// - /// - public global::Google.Gemini.NextGen.AntigravityAgentConfig PickAntigravityConfig() => IsAntigravityConfig - ? AntigravityConfig! - : throw new global::System.InvalidOperationException($"Expected union variant 'AntigravityConfig' but the value was {ToString()}."); - - /// - /// Configuration for the CodeMender agent. - /// -#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.CodeMenderAgentConfig? CodeMenderConfig { get; init; } -#else - public global::Google.Gemini.NextGen.CodeMenderAgentConfig? CodeMenderConfig { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(CodeMenderConfig))] -#endif - public bool IsCodeMenderConfig => CodeMenderConfig != null; - - /// - /// - /// - public bool TryPickCodeMenderConfig( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Google.Gemini.NextGen.CodeMenderAgentConfig? value) - { - value = CodeMenderConfig; - return IsCodeMenderConfig; - } - - /// - /// - /// - public global::Google.Gemini.NextGen.CodeMenderAgentConfig PickCodeMenderConfig() => IsCodeMenderConfig - ? CodeMenderConfig! - : throw new global::System.InvalidOperationException($"Expected union variant 'CodeMenderConfig' but the value was {ToString()}."); - - /// - /// Configuration for the Deep Research agent. - /// -#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.DeepResearchAgentConfig? DeepResearchConfig { get; init; } -#else - public global::Google.Gemini.NextGen.DeepResearchAgentConfig? DeepResearchConfig { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(DeepResearchConfig))] -#endif - public bool IsDeepResearchConfig => DeepResearchConfig != null; - - /// - /// - /// - public bool TryPickDeepResearchConfig( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Google.Gemini.NextGen.DeepResearchAgentConfig? value) - { - value = DeepResearchConfig; - return IsDeepResearchConfig; - } - - /// - /// - /// - public global::Google.Gemini.NextGen.DeepResearchAgentConfig PickDeepResearchConfig() => IsDeepResearchConfig - ? DeepResearchConfig! - : throw new global::System.InvalidOperationException($"Expected union variant 'DeepResearchConfig' but the value was {ToString()}."); - - /// - /// Configuration for dynamic agents. - /// -#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.DynamicAgentConfig? DynamicConfig { get; init; } -#else - public global::Google.Gemini.NextGen.DynamicAgentConfig? DynamicConfig { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(DynamicConfig))] -#endif - public bool IsDynamicConfig => DynamicConfig != null; - - /// - /// - /// - public bool TryPickDynamicConfig( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Google.Gemini.NextGen.DynamicAgentConfig? value) - { - value = DynamicConfig; - return IsDynamicConfig; - } - - /// - /// - /// - public global::Google.Gemini.NextGen.DynamicAgentConfig PickDynamicConfig() => IsDynamicConfig - ? DynamicConfig! - : throw new global::System.InvalidOperationException($"Expected union variant 'DynamicConfig' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator AgentConfig2(global::Google.Gemini.NextGen.AntigravityAgentConfig value) => new AgentConfig2((global::Google.Gemini.NextGen.AntigravityAgentConfig?)value); - - /// - /// - /// - public static implicit operator global::Google.Gemini.NextGen.AntigravityAgentConfig?(AgentConfig2 @this) => @this.AntigravityConfig; - - /// - /// - /// - public AgentConfig2(global::Google.Gemini.NextGen.AntigravityAgentConfig? value) - { - AntigravityConfig = value; - } - - /// - /// - /// - public static AgentConfig2 FromAntigravityConfig(global::Google.Gemini.NextGen.AntigravityAgentConfig? value) => new AgentConfig2(value); - - /// - /// - /// - public static implicit operator AgentConfig2(global::Google.Gemini.NextGen.CodeMenderAgentConfig value) => new AgentConfig2((global::Google.Gemini.NextGen.CodeMenderAgentConfig?)value); - - /// - /// - /// - public static implicit operator global::Google.Gemini.NextGen.CodeMenderAgentConfig?(AgentConfig2 @this) => @this.CodeMenderConfig; - - /// - /// - /// - public AgentConfig2(global::Google.Gemini.NextGen.CodeMenderAgentConfig? value) - { - CodeMenderConfig = value; - } - - /// - /// - /// - public static AgentConfig2 FromCodeMenderConfig(global::Google.Gemini.NextGen.CodeMenderAgentConfig? value) => new AgentConfig2(value); - - /// - /// - /// - public static implicit operator AgentConfig2(global::Google.Gemini.NextGen.DeepResearchAgentConfig value) => new AgentConfig2((global::Google.Gemini.NextGen.DeepResearchAgentConfig?)value); - - /// - /// - /// - public static implicit operator global::Google.Gemini.NextGen.DeepResearchAgentConfig?(AgentConfig2 @this) => @this.DeepResearchConfig; - - /// - /// - /// - public AgentConfig2(global::Google.Gemini.NextGen.DeepResearchAgentConfig? value) - { - DeepResearchConfig = value; - } - - /// - /// - /// - public static AgentConfig2 FromDeepResearchConfig(global::Google.Gemini.NextGen.DeepResearchAgentConfig? value) => new AgentConfig2(value); - - /// - /// - /// - public static implicit operator AgentConfig2(global::Google.Gemini.NextGen.DynamicAgentConfig value) => new AgentConfig2((global::Google.Gemini.NextGen.DynamicAgentConfig?)value); - - /// - /// - /// - public static implicit operator global::Google.Gemini.NextGen.DynamicAgentConfig?(AgentConfig2 @this) => @this.DynamicConfig; - - /// - /// - /// - public AgentConfig2(global::Google.Gemini.NextGen.DynamicAgentConfig? value) - { - DynamicConfig = value; - } - - /// - /// - /// - public static AgentConfig2 FromDynamicConfig(global::Google.Gemini.NextGen.DynamicAgentConfig? value) => new AgentConfig2(value); - - /// - /// - /// - public AgentConfig2( - global::Google.Gemini.NextGen.AntigravityAgentConfig? antigravityConfig, - global::Google.Gemini.NextGen.CodeMenderAgentConfig? codeMenderConfig, - global::Google.Gemini.NextGen.DeepResearchAgentConfig? deepResearchConfig, - global::Google.Gemini.NextGen.DynamicAgentConfig? dynamicConfig - ) - { - AntigravityConfig = antigravityConfig; - CodeMenderConfig = codeMenderConfig; - DeepResearchConfig = deepResearchConfig; - DynamicConfig = dynamicConfig; - } - - /// - /// - /// - public object? Object => - DynamicConfig as object ?? - DeepResearchConfig as object ?? - CodeMenderConfig as object ?? - AntigravityConfig as object - ; - - /// - /// - /// - public override string? ToString() => - AntigravityConfig?.ToString() ?? - CodeMenderConfig?.ToString() ?? - DeepResearchConfig?.ToString() ?? - DynamicConfig?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsAntigravityConfig && !IsCodeMenderConfig && !IsDeepResearchConfig && !IsDynamicConfig || !IsAntigravityConfig && IsCodeMenderConfig && !IsDeepResearchConfig && !IsDynamicConfig || !IsAntigravityConfig && !IsCodeMenderConfig && IsDeepResearchConfig && !IsDynamicConfig || !IsAntigravityConfig && !IsCodeMenderConfig && !IsDeepResearchConfig && IsDynamicConfig; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? antigravityConfig = null, - global::System.Func? codeMenderConfig = null, - global::System.Func? deepResearchConfig = null, - global::System.Func? dynamicConfig = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsAntigravityConfig && antigravityConfig != null) - { - return antigravityConfig(AntigravityConfig!); - } - else if (IsCodeMenderConfig && codeMenderConfig != null) - { - return codeMenderConfig(CodeMenderConfig!); - } - else if (IsDeepResearchConfig && deepResearchConfig != null) - { - return deepResearchConfig(DeepResearchConfig!); - } - else if (IsDynamicConfig && dynamicConfig != null) - { - return dynamicConfig(DynamicConfig!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? antigravityConfig = null, - - global::System.Action? codeMenderConfig = null, - - global::System.Action? deepResearchConfig = null, - - global::System.Action? dynamicConfig = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsAntigravityConfig) - { - antigravityConfig?.Invoke(AntigravityConfig!); - } - else if (IsCodeMenderConfig) - { - codeMenderConfig?.Invoke(CodeMenderConfig!); - } - else if (IsDeepResearchConfig) - { - deepResearchConfig?.Invoke(DeepResearchConfig!); - } - else if (IsDynamicConfig) - { - dynamicConfig?.Invoke(DynamicConfig!); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? antigravityConfig = null, - global::System.Action? codeMenderConfig = null, - global::System.Action? deepResearchConfig = null, - global::System.Action? dynamicConfig = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsAntigravityConfig) - { - antigravityConfig?.Invoke(AntigravityConfig!); - } - else if (IsCodeMenderConfig) - { - codeMenderConfig?.Invoke(CodeMenderConfig!); - } - else if (IsDeepResearchConfig) - { - deepResearchConfig?.Invoke(DeepResearchConfig!); - } - else if (IsDynamicConfig) - { - dynamicConfig?.Invoke(DynamicConfig!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - AntigravityConfig, - typeof(global::Google.Gemini.NextGen.AntigravityAgentConfig), - CodeMenderConfig, - typeof(global::Google.Gemini.NextGen.CodeMenderAgentConfig), - DeepResearchConfig, - typeof(global::Google.Gemini.NextGen.DeepResearchAgentConfig), - DynamicConfig, - typeof(global::Google.Gemini.NextGen.DynamicAgentConfig), - }; - 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(AgentConfig2 other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(AntigravityConfig, other.AntigravityConfig) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(CodeMenderConfig, other.CodeMenderConfig) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(DeepResearchConfig, other.DeepResearchConfig) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(DynamicConfig, other.DynamicConfig) - ; - } - - /// - /// - /// - public static bool operator ==(AgentConfig2 obj1, AgentConfig2 obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(AgentConfig2 obj1, AgentConfig2 obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is AgentConfig2 o && Equals(o); - } - } -} 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 bb23b8517..14d2d053f 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 @@ -42,8 +42,8 @@ public bool TryPickCodeExecution( /// /// /// - public global::Google.Gemini.NextGen.CodeExecution PickCodeExecution() => IsCodeExecution - ? CodeExecution! + public global::Google.Gemini.NextGen.CodeExecution PickCodeExecution() => CodeExecution is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeExecution' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickFunction( /// /// /// - public global::Google.Gemini.NextGen.Function PickFunction() => IsFunction - ? Function! + public global::Google.Gemini.NextGen.Function PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickGoogleSearch( /// /// /// - public global::Google.Gemini.NextGen.GoogleSearch PickGoogleSearch() => IsGoogleSearch - ? GoogleSearch! + public global::Google.Gemini.NextGen.GoogleSearch PickGoogleSearch() => GoogleSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSearch' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickMCPServer( /// /// /// - public global::Google.Gemini.NextGen.MCPServer PickMCPServer() => IsMCPServer - ? MCPServer! + 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()}."); /// @@ -190,8 +190,8 @@ public bool TryPickURLContext( /// /// /// - public global::Google.Gemini.NextGen.URLContext PickURLContext() => IsURLContext - ? URLContext! + public global::Google.Gemini.NextGen.URLContext PickURLContext() => URLContext is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'URLContext' but the value was {ToString()}."); /// /// @@ -372,25 +372,25 @@ public bool Validate() Validate(); } - if (IsCodeExecution && codeExecution != null) + if (CodeExecution is { } __value0 && codeExecution != null) { - return codeExecution(CodeExecution!); + return codeExecution(__value0); } - else if (IsFunction && function != null) + else if (Function is { } __value1 && function != null) { - return function(Function!); + return function(__value1); } - else if (IsGoogleSearch && googleSearch != null) + else if (GoogleSearch is { } __value2 && googleSearch != null) { - return googleSearch(GoogleSearch!); + return googleSearch(__value2); } - else if (IsMCPServer && mCPServer != null) + else if (MCPServer is { } __value3 && mCPServer != null) { - return mCPServer(MCPServer!); + return mCPServer(__value3); } - else if (IsURLContext && uRLContext != null) + else if (URLContext is { } __value4 && uRLContext != null) { - return uRLContext(URLContext!); + return uRLContext(__value4); } return default(TResult); @@ -416,25 +416,25 @@ public void Match( Validate(); } - if (IsCodeExecution) + if (CodeExecution is { } __value0) { - codeExecution?.Invoke(CodeExecution!); + codeExecution?.Invoke(__value0); } - else if (IsFunction) + else if (Function is { } __value1) { - function?.Invoke(Function!); + function?.Invoke(__value1); } - else if (IsGoogleSearch) + else if (GoogleSearch is { } __value2) { - googleSearch?.Invoke(GoogleSearch!); + googleSearch?.Invoke(__value2); } - else if (IsMCPServer) + else if (MCPServer is { } __value3) { - mCPServer?.Invoke(MCPServer!); + mCPServer?.Invoke(__value3); } - else if (IsURLContext) + else if (URLContext is { } __value4) { - uRLContext?.Invoke(URLContext!); + uRLContext?.Invoke(__value4); } } @@ -454,25 +454,25 @@ public void Switch( Validate(); } - if (IsCodeExecution) + if (CodeExecution is { } __value0) { - codeExecution?.Invoke(CodeExecution!); + codeExecution?.Invoke(__value0); } - else if (IsFunction) + else if (Function is { } __value1) { - function?.Invoke(Function!); + function?.Invoke(__value1); } - else if (IsGoogleSearch) + else if (GoogleSearch is { } __value2) { - googleSearch?.Invoke(GoogleSearch!); + googleSearch?.Invoke(__value2); } - else if (IsMCPServer) + else if (MCPServer is { } __value3) { - mCPServer?.Invoke(MCPServer!); + mCPServer?.Invoke(__value3); } - else if (IsURLContext) + else if (URLContext is { } __value4) { - uRLContext?.Invoke(URLContext!); + uRLContext?.Invoke(__value4); } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Annotation.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Annotation.g.cs index acdb784dd..293406a1c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Annotation.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Annotation.g.cs @@ -42,8 +42,8 @@ public bool TryPickFileCitation( /// /// /// - public global::Google.Gemini.NextGen.FileCitation PickFileCitation() => IsFileCitation - ? FileCitation! + public global::Google.Gemini.NextGen.FileCitation PickFileCitation() => FileCitation is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileCitation' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickPlaceCitation( /// /// /// - public global::Google.Gemini.NextGen.PlaceCitation PickPlaceCitation() => IsPlaceCitation - ? PlaceCitation! + public global::Google.Gemini.NextGen.PlaceCitation PickPlaceCitation() => PlaceCitation is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'PlaceCitation' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickSpeech( /// /// /// - public global::Google.Gemini.NextGen.SpeechAnnotation PickSpeech() => IsSpeech - ? Speech! + public global::Google.Gemini.NextGen.SpeechAnnotation PickSpeech() => Speech is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Speech' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickURLCitation( /// /// /// - public global::Google.Gemini.NextGen.URLCitation PickURLCitation() => IsURLCitation - ? URLCitation! + public global::Google.Gemini.NextGen.URLCitation PickURLCitation() => URLCitation is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'URLCitation' but the value was {ToString()}."); /// @@ -191,8 +191,8 @@ public bool TryPickWordInfo( /// /// /// - public global::Google.Gemini.NextGen.WordInfo PickWordInfo() => IsWordInfo - ? WordInfo! + public global::Google.Gemini.NextGen.WordInfo PickWordInfo() => WordInfo is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'WordInfo' but the value was {ToString()}."); /// /// @@ -373,25 +373,25 @@ public bool Validate() Validate(); } - if (IsFileCitation && fileCitation != null) + if (FileCitation is { } __value0 && fileCitation != null) { - return fileCitation(FileCitation!); + return fileCitation(__value0); } - else if (IsPlaceCitation && placeCitation != null) + else if (PlaceCitation is { } __value1 && placeCitation != null) { - return placeCitation(PlaceCitation!); + return placeCitation(__value1); } - else if (IsSpeech && speech != null) + else if (Speech is { } __value2 && speech != null) { - return speech(Speech!); + return speech(__value2); } - else if (IsURLCitation && uRLCitation != null) + else if (URLCitation is { } __value3 && uRLCitation != null) { - return uRLCitation(URLCitation!); + return uRLCitation(__value3); } - else if (IsWordInfo && wordInfo != null) + else if (WordInfo is { } __value4 && wordInfo != null) { - return wordInfo(WordInfo!); + return wordInfo(__value4); } return default(TResult); @@ -417,25 +417,25 @@ public void Match( Validate(); } - if (IsFileCitation) + if (FileCitation is { } __value0) { - fileCitation?.Invoke(FileCitation!); + fileCitation?.Invoke(__value0); } - else if (IsPlaceCitation) + else if (PlaceCitation is { } __value1) { - placeCitation?.Invoke(PlaceCitation!); + placeCitation?.Invoke(__value1); } - else if (IsSpeech) + else if (Speech is { } __value2) { - speech?.Invoke(Speech!); + speech?.Invoke(__value2); } - else if (IsURLCitation) + else if (URLCitation is { } __value3) { - uRLCitation?.Invoke(URLCitation!); + uRLCitation?.Invoke(__value3); } - else if (IsWordInfo) + else if (WordInfo is { } __value4) { - wordInfo?.Invoke(WordInfo!); + wordInfo?.Invoke(__value4); } } @@ -455,25 +455,25 @@ public void Switch( Validate(); } - if (IsFileCitation) + if (FileCitation is { } __value0) { - fileCitation?.Invoke(FileCitation!); + fileCitation?.Invoke(__value0); } - else if (IsPlaceCitation) + else if (PlaceCitation is { } __value1) { - placeCitation?.Invoke(PlaceCitation!); + placeCitation?.Invoke(__value1); } - else if (IsSpeech) + else if (Speech is { } __value2) { - speech?.Invoke(Speech!); + speech?.Invoke(__value2); } - else if (IsURLCitation) + else if (URLCitation is { } __value3) { - uRLCitation?.Invoke(URLCitation!); + uRLCitation?.Invoke(__value3); } - else if (IsWordInfo) + else if (WordInfo is { } __value4) { - wordInfo?.Invoke(WordInfo!); + wordInfo?.Invoke(__value4); } } 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 e83dbdf2d..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 @@ -42,8 +42,8 @@ public bool TryPickAudio( /// /// /// - public global::Google.Gemini.NextGen.AudioContent PickAudio() => IsAudio - ? Audio! + public global::Google.Gemini.NextGen.AudioContent PickAudio() => Audio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickDocument( /// /// /// - public global::Google.Gemini.NextGen.DocumentContent PickDocument() => IsDocument - ? Document! + public global::Google.Gemini.NextGen.DocumentContent PickDocument() => Document is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Document' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickImage( /// /// /// - public global::Google.Gemini.NextGen.ImageContent PickImage() => IsImage - ? Image! + public global::Google.Gemini.NextGen.ImageContent PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickText( /// /// /// - public global::Google.Gemini.NextGen.TextContent PickText() => IsText - ? Text! + public global::Google.Gemini.NextGen.TextContent PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -190,8 +190,8 @@ public bool TryPickVideo( /// /// /// - public global::Google.Gemini.NextGen.VideoContent PickVideo() => IsVideo - ? Video! + public global::Google.Gemini.NextGen.VideoContent PickVideo() => Video is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}."); /// /// @@ -372,25 +372,25 @@ public bool Validate() Validate(); } - if (IsAudio && audio != null) + if (Audio is { } __value0 && audio != null) { - return audio(Audio!); + return audio(__value0); } - else if (IsDocument && document != null) + else if (Document is { } __value1 && document != null) { - return document(Document!); + return document(__value1); } - else if (IsImage && image != null) + else if (Image is { } __value2 && image != null) { - return image(Image!); + return image(__value2); } - else if (IsText && text != null) + else if (Text is { } __value3 && text != null) { - return text(Text!); + return text(__value3); } - else if (IsVideo && video != null) + else if (Video is { } __value4 && video != null) { - return video(Video!); + return video(__value4); } return default(TResult); @@ -416,25 +416,25 @@ public void Match( Validate(); } - if (IsAudio) + if (Audio is { } __value0) { - audio?.Invoke(Audio!); + audio?.Invoke(__value0); } - else if (IsDocument) + else if (Document is { } __value1) { - document?.Invoke(Document!); + document?.Invoke(__value1); } - else if (IsImage) + else if (Image is { } __value2) { - image?.Invoke(Image!); + image?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } - else if (IsVideo) + else if (Video is { } __value4) { - video?.Invoke(Video!); + video?.Invoke(__value4); } } @@ -454,25 +454,25 @@ public void Switch( Validate(); } - if (IsAudio) + if (Audio is { } __value0) { - audio?.Invoke(Audio!); + audio?.Invoke(__value0); } - else if (IsDocument) + else if (Document is { } __value1) { - document?.Invoke(Document!); + document?.Invoke(__value1); } - else if (IsImage) + else if (Image is { } __value2) { - image?.Invoke(Image!); + image?.Invoke(__value2); } - else if (IsText) + else if (Text is { } __value3) { - text?.Invoke(Text!); + text?.Invoke(__value3); } - else if (IsVideo) + else if (Video is { } __value4) { - video?.Invoke(Video!); + video?.Invoke(__value4); } } 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 a015b2c65..075cf1173 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 @@ -26,21 +26,11 @@ public sealed partial class CreateAgentInteraction public global::Google.Gemini.NextGen.OneOf? AgentConfig { get; set; } /// - /// Input only. Whether to run the model interaction in the background.
- /// Included only in requests + /// Input only. Whether to run the model interaction in the background. ///
[global::System.Text.Json.Serialization.JsonPropertyName("background")] public bool? Background { 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!; - /// /// The environment configuration for the interaction. Can be an object
/// specifying remote environment sources or a string referencing an existing
@@ -50,22 +40,6 @@ public sealed partial class CreateAgentInteraction [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; } - - /// - /// 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!; - /// /// The input for the interaction. /// @@ -125,24 +99,13 @@ public sealed partial class CreateAgentInteraction public global::Google.Gemini.NextGen.ServiceTier? ServiceTier { 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.CreateAgentInteractionStatusJsonConverter))] - public global::Google.Gemini.NextGen.CreateAgentInteractionStatus Status { get; set; } = default!; - - /// - /// Input only. Whether to store the response and request for later retrieval.
- /// Included only in requests + /// Input only. Whether to store the response and request for later retrieval. ///
[global::System.Text.Json.Serialization.JsonPropertyName("store")] public bool? Store { get; set; } /// - /// Input only. Whether the interaction will be streamed.
- /// Included only in requests + /// Input only. Whether the interaction will be streamed. ///
[global::System.Text.Json.Serialization.JsonPropertyName("stream")] public bool? Stream { get; set; } @@ -159,15 +122,6 @@ public sealed partial class CreateAgentInteraction [global::System.Text.Json.Serialization.JsonPropertyName("tools")] public global::System.Collections.Generic.IList? Tools { 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!; - /// /// Message for configuring webhook events for a request. /// @@ -190,19 +144,13 @@ public sealed partial class CreateAgentInteraction /// Configuration parameters for the agent interaction. /// /// - /// Input only. Whether to run the model interaction in the background.
- /// Included only in requests + /// Input only. Whether to run the model interaction in the background. /// /// /// 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 - /// /// /// The input for the interaction. /// @@ -225,12 +173,10 @@ public sealed partial class CreateAgentInteraction /// /// /// - /// Input only. Whether to store the response and request for later retrieval.
- /// Included only in requests + /// Input only. Whether to store the response and request for later retrieval. /// /// - /// Input only. Whether the interaction will be streamed.
- /// Included only in requests + /// Input only. Whether the interaction will be streamed. /// /// /// System instruction for the interaction. @@ -241,24 +187,6 @@ public sealed partial class CreateAgentInteraction /// /// Message for configuring webhook events for a request. /// - /// - /// 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. 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 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 @@ -267,7 +195,6 @@ public CreateAgentInteraction( global::Google.Gemini.NextGen.OneOf? agentConfig, bool? background, global::Google.Gemini.NextGen.OneOf? environment, - string? environmentId, global::Google.Gemini.NextGen.InteractionsInput? input, global::System.Collections.Generic.Dictionary? labels, string? previousInteractionId, @@ -278,31 +205,22 @@ public CreateAgentInteraction( bool? stream, string? systemInstruction, global::System.Collections.Generic.IList? tools, - global::Google.Gemini.NextGen.WebhookConfig? webhookConfig, - string created = default!, - string id = default!, - global::Google.Gemini.NextGen.CreateAgentInteractionStatus status = default!, - string updated = default!) + global::Google.Gemini.NextGen.WebhookConfig? webhookConfig) { this.Agent = agent; this.AgentConfig = agentConfig; this.Background = background; - this.Created = created; this.Environment = environment; - this.EnvironmentId = environmentId; - this.Id = id; this.Input = input; this.Labels = labels; this.PreviousInteractionId = previousInteractionId; this.ResponseFormat = responseFormat; this.SafetySettings = safetySettings; this.ServiceTier = serviceTier; - this.Status = status; this.Store = store; this.Stream = stream; this.SystemInstruction = systemInstruction; this.Tools = tools; - this.Updated = updated; this.WebhookConfig = webhookConfig; } @@ -313,17 +231,5 @@ public CreateAgentInteraction() { } - /// - /// Creates a new from its single non-const required field, - /// hardcoding any const discriminator fields. - /// - public static CreateAgentInteraction FromAgent(global::Google.Gemini.NextGen.AgentOption agent) - { - return new CreateAgentInteraction - { - Agent = agent, - }; - } - } } \ No newline at end of file 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 deleted file mode 100644 index b0c9b9850..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateAgentInteractionStatus.g.cs +++ /dev/null @@ -1,88 +0,0 @@ - -#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, - /// - /// - /// - Queued, - /// - /// - /// - 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.Queued => "queued", - 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, - "queued" => CreateAgentInteractionStatus.Queued, - "requires_action" => CreateAgentInteractionStatus.RequiresAction, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateVoiceRequest.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateVoiceRequest.g.cs index 640542a8a..07a789db6 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateVoiceRequest.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateVoiceRequest.g.cs @@ -12,9 +12,11 @@ public sealed partial class CreateVoiceRequest /// Optional. Whether the created voice is persisted and managed by Google.
/// * When `true`, Google stores the voice and returns `Voice.id` (for example,
/// `voice_abc123def456`), which can be managed via `GetVoice`, `ListVoices`,
- /// and `DeleteVoice` and referenced by ID in synthesis requests. Projects
- /// are subject to a maximum active stored voice quota; exceeding the quota
- /// returns `RESOURCE_EXHAUSTED`.
+ /// and `DeleteVoice` and referenced by ID in synthesis requests. Stored
+ /// voices expire after 1 year of inactivity; using a stored voice in speech
+ /// synthesis or as a `base_voice` in `CreateVoice` extends its
+ /// `expire_time`. Projects are subject to a maximum active stored voice
+ /// quota; exceeding the quota returns `RESOURCE_EXHAUSTED`.
/// * When `false` (default), the voice is not stored by Google and `Voice.key`
/// (for example, `voicekey_...`) is returned for client-side storage and
/// synthesis. Optional discovery metadata fields on `voice` are not
@@ -50,9 +52,11 @@ public sealed partial class CreateVoiceRequest /// Optional. Whether the created voice is persisted and managed by Google.
/// * When `true`, Google stores the voice and returns `Voice.id` (for example,
/// `voice_abc123def456`), which can be managed via `GetVoice`, `ListVoices`,
- /// and `DeleteVoice` and referenced by ID in synthesis requests. Projects
- /// are subject to a maximum active stored voice quota; exceeding the quota
- /// returns `RESOURCE_EXHAUSTED`.
+ /// and `DeleteVoice` and referenced by ID in synthesis requests. Stored
+ /// voices expire after 1 year of inactivity; using a stored voice in speech
+ /// synthesis or as a `base_voice` in `CreateVoice` extends its
+ /// `expire_time`. Projects are subject to a maximum active stored voice
+ /// quota; exceeding the quota returns `RESOURCE_EXHAUSTED`.
/// * When `false` (default), the voice is not stored by Google and `Voice.key`
/// (for example, `voicekey_...`) is returned for client-side storage and
/// synthesis. Optional discovery metadata fields on `voice` are not
diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialCreateParams.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialCreateParams.g.cs index 2173ffae3..2676990a4 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialCreateParams.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CredentialCreateParams.g.cs @@ -42,8 +42,8 @@ public bool TryPickEnvironmentVariableConfig( /// /// /// - public global::Google.Gemini.NextGen.EnvironmentVariableConfig PickEnvironmentVariableConfig() => IsEnvironmentVariableConfig - ? EnvironmentVariableConfig! + public global::Google.Gemini.NextGen.EnvironmentVariableConfig PickEnvironmentVariableConfig() => EnvironmentVariableConfig is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EnvironmentVariableConfig' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickHttpBearerConfig( /// /// /// - public global::Google.Gemini.NextGen.HttpBearerConfig PickHttpBearerConfig() => IsHttpBearerConfig - ? HttpBearerConfig! + public global::Google.Gemini.NextGen.HttpBearerConfig PickHttpBearerConfig() => HttpBearerConfig is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'HttpBearerConfig' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickOAuth2Config( /// /// /// - public global::Google.Gemini.NextGen.OAuth2Config PickOAuth2Config() => IsOAuth2Config - ? OAuth2Config! + public global::Google.Gemini.NextGen.OAuth2Config PickOAuth2Config() => OAuth2Config is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OAuth2Config' but the value was {ToString()}."); /// /// @@ -242,17 +242,17 @@ public bool Validate() Validate(); } - if (IsEnvironmentVariableConfig && environmentVariableConfig != null) + if (EnvironmentVariableConfig is { } __value0 && environmentVariableConfig != null) { - return environmentVariableConfig(EnvironmentVariableConfig!); + return environmentVariableConfig(__value0); } - else if (IsHttpBearerConfig && httpBearerConfig != null) + else if (HttpBearerConfig is { } __value1 && httpBearerConfig != null) { - return httpBearerConfig(HttpBearerConfig!); + return httpBearerConfig(__value1); } - else if (IsOAuth2Config && oAuth2Config != null) + else if (OAuth2Config is { } __value2 && oAuth2Config != null) { - return oAuth2Config(OAuth2Config!); + return oAuth2Config(__value2); } return default(TResult); @@ -274,17 +274,17 @@ public void Match( Validate(); } - if (IsEnvironmentVariableConfig) + if (EnvironmentVariableConfig is { } __value0) { - environmentVariableConfig?.Invoke(EnvironmentVariableConfig!); + environmentVariableConfig?.Invoke(__value0); } - else if (IsHttpBearerConfig) + else if (HttpBearerConfig is { } __value1) { - httpBearerConfig?.Invoke(HttpBearerConfig!); + httpBearerConfig?.Invoke(__value1); } - else if (IsOAuth2Config) + else if (OAuth2Config is { } __value2) { - oAuth2Config?.Invoke(OAuth2Config!); + oAuth2Config?.Invoke(__value2); } } @@ -302,17 +302,17 @@ public void Switch( Validate(); } - if (IsEnvironmentVariableConfig) + if (EnvironmentVariableConfig is { } __value0) { - environmentVariableConfig?.Invoke(EnvironmentVariableConfig!); + environmentVariableConfig?.Invoke(__value0); } - else if (IsHttpBearerConfig) + else if (HttpBearerConfig is { } __value1) { - httpBearerConfig?.Invoke(HttpBearerConfig!); + httpBearerConfig?.Invoke(__value1); } - else if (IsOAuth2Config) + else if (OAuth2Config is { } __value2) { - oAuth2Config?.Invoke(OAuth2Config!); + oAuth2Config?.Invoke(__value2); } } 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.CredentialUpdate.g.cs index 809dfe681..e4bca9596 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.CredentialUpdate.g.cs @@ -42,8 +42,8 @@ public bool TryPickEnvironmentVariableConfig( /// /// /// - public global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig PickEnvironmentVariableConfig() => IsEnvironmentVariableConfig - ? EnvironmentVariableConfig! + public global::Google.Gemini.NextGen.EnvironmentVariableUpdateConfig PickEnvironmentVariableConfig() => EnvironmentVariableConfig is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'EnvironmentVariableConfig' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickHttpBearerConfig( /// /// /// - public global::Google.Gemini.NextGen.HttpBearerUpdateConfig PickHttpBearerConfig() => IsHttpBearerConfig - ? HttpBearerConfig! + public global::Google.Gemini.NextGen.HttpBearerUpdateConfig PickHttpBearerConfig() => HttpBearerConfig is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'HttpBearerConfig' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickOAuth2Config( /// /// /// - public global::Google.Gemini.NextGen.OAuth2UpdateConfig PickOAuth2Config() => IsOAuth2Config - ? OAuth2Config! + public global::Google.Gemini.NextGen.OAuth2UpdateConfig PickOAuth2Config() => OAuth2Config is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'OAuth2Config' but the value was {ToString()}."); /// /// @@ -242,17 +242,17 @@ public bool Validate() Validate(); } - if (IsEnvironmentVariableConfig && environmentVariableConfig != null) + if (EnvironmentVariableConfig is { } __value0 && environmentVariableConfig != null) { - return environmentVariableConfig(EnvironmentVariableConfig!); + return environmentVariableConfig(__value0); } - else if (IsHttpBearerConfig && httpBearerConfig != null) + else if (HttpBearerConfig is { } __value1 && httpBearerConfig != null) { - return httpBearerConfig(HttpBearerConfig!); + return httpBearerConfig(__value1); } - else if (IsOAuth2Config && oAuth2Config != null) + else if (OAuth2Config is { } __value2 && oAuth2Config != null) { - return oAuth2Config(OAuth2Config!); + return oAuth2Config(__value2); } return default(TResult); @@ -274,17 +274,17 @@ public void Match( Validate(); } - if (IsEnvironmentVariableConfig) + if (EnvironmentVariableConfig is { } __value0) { - environmentVariableConfig?.Invoke(EnvironmentVariableConfig!); + environmentVariableConfig?.Invoke(__value0); } - else if (IsHttpBearerConfig) + else if (HttpBearerConfig is { } __value1) { - httpBearerConfig?.Invoke(HttpBearerConfig!); + httpBearerConfig?.Invoke(__value1); } - else if (IsOAuth2Config) + else if (OAuth2Config is { } __value2) { - oAuth2Config?.Invoke(OAuth2Config!); + oAuth2Config?.Invoke(__value2); } } @@ -302,17 +302,17 @@ public void Switch( Validate(); } - if (IsEnvironmentVariableConfig) + if (EnvironmentVariableConfig is { } __value0) { - environmentVariableConfig?.Invoke(EnvironmentVariableConfig!); + environmentVariableConfig?.Invoke(__value0); } - else if (IsHttpBearerConfig) + else if (HttpBearerConfig is { } __value1) { - httpBearerConfig?.Invoke(HttpBearerConfig!); + httpBearerConfig?.Invoke(__value1); } - else if (IsOAuth2Config) + else if (OAuth2Config is { } __value2) { - oAuth2Config?.Invoke(OAuth2Config!); + oAuth2Config?.Invoke(__value2); } } 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 392e93e83..99bffa828 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 @@ -42,8 +42,8 @@ public bool TryPickAllowlist( /// /// /// - public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum PickAllowlist() => IsAllowlist - ? Allowlist! + public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum PickAllowlist() => Allowlist is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Allowlist' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickDisabled( /// /// /// - public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2 PickDisabled() => IsDisabled - ? Disabled!.Value + public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2 PickDisabled() => Disabled is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Disabled' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsAllowlist && allowlist != null) + if (Allowlist is { } __value0 && allowlist != null) { - return allowlist(Allowlist!); + return allowlist(__value0); } - else if (IsDisabled && disabled != null) + else if (Disabled is { } __value1 && disabled != null) { - return disabled(Disabled!); + return disabled(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsAllowlist) + if (Allowlist is { } __value0) { - allowlist?.Invoke(Allowlist!); + allowlist?.Invoke(__value0); } - else if (IsDisabled) + else if (Disabled is { } __value1) { - disabled?.Invoke(Disabled!); + disabled?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsAllowlist) + if (Allowlist is { } __value0) { - allowlist?.Invoke(Allowlist!); + allowlist?.Invoke(__value0); } - else if (IsDisabled) + else if (Disabled is { } __value1) { - disabled?.Invoke(Disabled!); + disabled?.Invoke(__value1); } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultSubcontent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultSubcontent.g.cs index b9616c5a9..b7b9b120e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultSubcontent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultSubcontent.g.cs @@ -42,8 +42,8 @@ public bool TryPickImageContent( /// /// /// - public global::Google.Gemini.NextGen.ImageContent PickImageContent() => IsImageContent - ? ImageContent! + public global::Google.Gemini.NextGen.ImageContent PickImageContent() => ImageContent is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageContent' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickTextContent( /// /// /// - public global::Google.Gemini.NextGen.TextContent PickTextContent() => IsTextContent - ? TextContent! + public global::Google.Gemini.NextGen.TextContent PickTextContent() => TextContent is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextContent' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsImageContent && imageContent != null) + if (ImageContent is { } __value0 && imageContent != null) { - return imageContent(ImageContent!); + return imageContent(__value0); } - else if (IsTextContent && textContent != null) + else if (TextContent is { } __value1 && textContent != null) { - return textContent(TextContent!); + return textContent(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsImageContent) + if (ImageContent is { } __value0) { - imageContent?.Invoke(ImageContent!); + imageContent?.Invoke(__value0); } - else if (IsTextContent) + else if (TextContent is { } __value1) { - textContent?.Invoke(TextContent!); + textContent?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsImageContent) + if (ImageContent is { } __value0) { - imageContent?.Invoke(ImageContent!); + imageContent?.Invoke(__value0); } - else if (IsTextContent) + else if (TextContent is { } __value1) { - textContent?.Invoke(TextContent!); + textContent?.Invoke(__value1); } } 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 6a3bf2159..7edacbe35 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 @@ -42,6 +42,13 @@ public sealed partial class GenerationConfig [global::System.Text.Json.Serialization.JsonPropertyName("stop_sequences")] public global::System.Collections.Generic.IList? StopSequences { get; set; } + /// + /// Controls the randomness of the output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + [global::System.Obsolete("This property marked as deprecated.")] + public float? Temperature { get; set; } + /// /// /// @@ -63,6 +70,13 @@ public sealed partial class GenerationConfig [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] public global::Google.Gemini.NextGen.OneOf? ToolChoice { get; set; } + /// + /// The maximum cumulative probability of tokens to consider when sampling. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("top_p")] + [global::System.Obsolete("This property marked as deprecated.")] + public float? TopP { get; set; } + /// /// Configuration for speech recognition (transcription). /// 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 a8bbca098..4f242c692 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 @@ -22,8 +22,8 @@ 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.AgentConfig2JsonConverter))] - public global::Google.Gemini.NextGen.AgentConfig2? 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; } /// /// Input only. Whether to run the model interaction in the background.
@@ -320,7 +320,7 @@ public sealed partial class Interaction #endif public Interaction( global::Google.Gemini.NextGen.AgentOption? agent, - global::Google.Gemini.NextGen.AgentConfig2? agentConfig, + global::Google.Gemini.NextGen.OneOf? agentConfig, bool? background, string? created, global::Google.Gemini.NextGen.OneOf? environment, diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionAgentConfigDiscriminator.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionAgentConfigDiscriminator.Json.g.cs deleted file mode 100644 index 064487db8..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionAgentConfigDiscriminator.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class InteractionAgentConfigDiscriminator - { - /// - /// 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.InteractionAgentConfigDiscriminator? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.InteractionAgentConfigDiscriminator), - jsonSerializerContext) as global::Google.Gemini.NextGen.InteractionAgentConfigDiscriminator; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.InteractionAgentConfigDiscriminator? 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.InteractionAgentConfigDiscriminator? 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.InteractionAgentConfigDiscriminator), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.InteractionAgentConfigDiscriminator; - } - - /// - /// 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.InteractionAgentConfigDiscriminator.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionAgentConfigDiscriminator.g.cs deleted file mode 100644 index b4ce5e792..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionAgentConfigDiscriminator.g.cs +++ /dev/null @@ -1,44 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// - /// - public sealed partial class InteractionAgentConfigDiscriminator - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - public string? Type { 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. - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public InteractionAgentConfigDiscriminator( - string? type) - { - this.Type = type; - } - - /// - /// Initializes a new instance of the class. - /// - public InteractionAgentConfigDiscriminator() - { - } - - } -} \ No newline at end of file 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 4b94dc98e..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 @@ -42,8 +42,8 @@ public bool TryPickError( /// /// /// - public global::Google.Gemini.NextGen.ErrorEvent PickError() => IsError - ? Error! + public global::Google.Gemini.NextGen.ErrorEvent PickError() => Error is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Error' but the value was {ToString()}."); /// @@ -81,8 +81,8 @@ public bool TryPickCompleted( /// /// /// - public global::Google.Gemini.NextGen.InteractionCompletedEvent PickCompleted() => IsCompleted - ? Completed! + public global::Google.Gemini.NextGen.InteractionCompletedEvent PickCompleted() => Completed is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Completed' but the value was {ToString()}."); /// @@ -118,8 +118,8 @@ public bool TryPickCreated( /// /// /// - public global::Google.Gemini.NextGen.InteractionCreatedEvent PickCreated() => IsCreated - ? Created! + public global::Google.Gemini.NextGen.InteractionCreatedEvent PickCreated() => Created is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Created' but the value was {ToString()}."); /// @@ -155,8 +155,8 @@ public bool TryPickStatusUpdate( /// /// /// - public global::Google.Gemini.NextGen.InteractionStatusUpdate PickStatusUpdate() => IsStatusUpdate - ? StatusUpdate! + public global::Google.Gemini.NextGen.InteractionStatusUpdate PickStatusUpdate() => StatusUpdate is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'StatusUpdate' but the value was {ToString()}."); /// @@ -192,8 +192,8 @@ public bool TryPickStepDelta( /// /// /// - public global::Google.Gemini.NextGen.StepDelta PickStepDelta() => IsStepDelta - ? StepDelta! + public global::Google.Gemini.NextGen.StepDelta PickStepDelta() => StepDelta is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'StepDelta' but the value was {ToString()}."); /// @@ -229,8 +229,8 @@ public bool TryPickStepStart( /// /// /// - public global::Google.Gemini.NextGen.StepStart PickStepStart() => IsStepStart - ? StepStart! + public global::Google.Gemini.NextGen.StepStart PickStepStart() => StepStart is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'StepStart' but the value was {ToString()}."); /// @@ -266,8 +266,8 @@ public bool TryPickStepStop( /// /// /// - public global::Google.Gemini.NextGen.StepStop PickStepStop() => IsStepStop - ? StepStop! + public global::Google.Gemini.NextGen.StepStop PickStepStop() => StepStop is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'StepStop' but the value was {ToString()}."); /// /// @@ -504,33 +504,33 @@ public bool Validate() Validate(); } - if (IsError && error != null) + if (Error is { } __value0 && error != null) { - return error(Error!); + return error(__value0); } - else if (IsCompleted && completed != null) + else if (Completed is { } __value1 && completed != null) { - return completed(Completed!); + return completed(__value1); } - else if (IsCreated && created != null) + else if (Created is { } __value2 && created != null) { - return created(Created!); + return created(__value2); } - else if (IsStatusUpdate && statusUpdate != null) + else if (StatusUpdate is { } __value3 && statusUpdate != null) { - return statusUpdate(StatusUpdate!); + return statusUpdate(__value3); } - else if (IsStepDelta && stepDelta != null) + else if (StepDelta is { } __value4 && stepDelta != null) { - return stepDelta(StepDelta!); + return stepDelta(__value4); } - else if (IsStepStart && stepStart != null) + else if (StepStart is { } __value5 && stepStart != null) { - return stepStart(StepStart!); + return stepStart(__value5); } - else if (IsStepStop && stepStop != null) + else if (StepStop is { } __value6 && stepStop != null) { - return stepStop(StepStop!); + return stepStop(__value6); } return default(TResult); @@ -560,33 +560,33 @@ public void Match( Validate(); } - if (IsError) + if (Error is { } __value0) { - error?.Invoke(Error!); + error?.Invoke(__value0); } - else if (IsCompleted) + else if (Completed is { } __value1) { - completed?.Invoke(Completed!); + completed?.Invoke(__value1); } - else if (IsCreated) + else if (Created is { } __value2) { - created?.Invoke(Created!); + created?.Invoke(__value2); } - else if (IsStatusUpdate) + else if (StatusUpdate is { } __value3) { - statusUpdate?.Invoke(StatusUpdate!); + statusUpdate?.Invoke(__value3); } - else if (IsStepDelta) + else if (StepDelta is { } __value4) { - stepDelta?.Invoke(StepDelta!); + stepDelta?.Invoke(__value4); } - else if (IsStepStart) + else if (StepStart is { } __value5) { - stepStart?.Invoke(StepStart!); + stepStart?.Invoke(__value5); } - else if (IsStepStop) + else if (StepStop is { } __value6) { - stepStop?.Invoke(StepStop!); + stepStop?.Invoke(__value6); } } @@ -608,33 +608,33 @@ public void Switch( Validate(); } - if (IsError) + if (Error is { } __value0) { - error?.Invoke(Error!); + error?.Invoke(__value0); } - else if (IsCompleted) + else if (Completed is { } __value1) { - completed?.Invoke(Completed!); + completed?.Invoke(__value1); } - else if (IsCreated) + else if (Created is { } __value2) { - created?.Invoke(Created!); + created?.Invoke(__value2); } - else if (IsStatusUpdate) + else if (StatusUpdate is { } __value3) { - statusUpdate?.Invoke(StatusUpdate!); + statusUpdate?.Invoke(__value3); } - else if (IsStepDelta) + else if (StepDelta is { } __value4) { - stepDelta?.Invoke(StepDelta!); + stepDelta?.Invoke(__value4); } - else if (IsStepStart) + else if (StepStart is { } __value5) { - stepStart?.Invoke(StepStart!); + stepStart?.Invoke(__value5); } - else if (IsStepStop) + else if (StepStop is { } __value6) { - stepStop?.Invoke(StepStop!); + stepStop?.Invoke(__value6); } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionsInput.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionsInput.g.cs index 753dbed04..5754a6c95 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionsInput.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionsInput.g.cs @@ -42,8 +42,8 @@ public bool TryPickContent( /// /// /// - public global::Google.Gemini.NextGen.Content PickContent() => IsContent - ? Content!.Value + public global::Google.Gemini.NextGen.Content PickContent() => Content is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Content' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickStepList( /// /// /// - public global::System.Collections.Generic.IList PickStepList() => IsStepList - ? StepList! + public global::System.Collections.Generic.IList PickStepList() => StepList is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'StepList' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickContentList( /// /// /// - public global::System.Collections.Generic.IList PickContentList() => IsContentList - ? ContentList! + public global::System.Collections.Generic.IList PickContentList() => ContentList is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ContentList' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickInteractionsInputVariant4( /// /// /// - public string PickInteractionsInputVariant4() => IsInteractionsInputVariant4 - ? InteractionsInputVariant4! + public string PickInteractionsInputVariant4() => InteractionsInputVariant4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'InteractionsInputVariant4' but the value was {ToString()}."); /// /// @@ -261,21 +261,21 @@ public bool Validate() Validate(); } - if (IsContent && content != null) + if (Content is { } __value0 && content != null) { - return content(Content!); + return content(__value0); } - else if (IsStepList && stepList != null) + else if (StepList is { } __value1 && stepList != null) { - return stepList(StepList!); + return stepList(__value1); } - else if (IsContentList && contentList != null) + else if (ContentList is { } __value2 && contentList != null) { - return contentList(ContentList!); + return contentList(__value2); } - else if (IsInteractionsInputVariant4 && interactionsInputVariant4 != null) + else if (InteractionsInputVariant4 is { } __value3 && interactionsInputVariant4 != null) { - return interactionsInputVariant4(InteractionsInputVariant4!); + return interactionsInputVariant4(__value3); } return default(TResult); @@ -299,21 +299,21 @@ public void Match( Validate(); } - if (IsContent) + if (Content is { } __value0) { - content?.Invoke(Content!); + content?.Invoke(__value0); } - else if (IsStepList) + else if (StepList is { } __value1) { - stepList?.Invoke(StepList!); + stepList?.Invoke(__value1); } - else if (IsContentList) + else if (ContentList is { } __value2) { - contentList?.Invoke(ContentList!); + contentList?.Invoke(__value2); } - else if (IsInteractionsInputVariant4) + else if (InteractionsInputVariant4 is { } __value3) { - interactionsInputVariant4?.Invoke(InteractionsInputVariant4!); + interactionsInputVariant4?.Invoke(__value3); } } @@ -332,21 +332,21 @@ public void Switch( Validate(); } - if (IsContent) + if (Content is { } __value0) { - content?.Invoke(Content!); + content?.Invoke(__value0); } - else if (IsStepList) + else if (StepList is { } __value1) { - stepList?.Invoke(StepList!); + stepList?.Invoke(__value1); } - else if (IsContentList) + else if (ContentList is { } __value2) { - contentList?.Invoke(ContentList!); + contentList?.Invoke(__value2); } - else if (IsInteractionsInputVariant4) + else if (InteractionsInputVariant4 is { } __value3) { - interactionsInputVariant4?.Invoke(InteractionsInputVariant4!); + interactionsInputVariant4?.Invoke(__value3); } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MediaProcessing.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MediaProcessing.g.cs index 519077580..e7c07b152 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MediaProcessing.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MediaProcessing.g.cs @@ -42,8 +42,8 @@ public bool TryPickStatic( /// /// /// - public global::Google.Gemini.NextGen.StaticMediaProcessing PickStatic() => IsStatic - ? Static! + public global::Google.Gemini.NextGen.StaticMediaProcessing PickStatic() => Static is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Static' but the value was {ToString()}."); /// /// @@ -102,9 +102,9 @@ public bool Validate() Validate(); } - if (IsStatic && @static != null) + if (Static is { } __value0 && @static != null) { - return @static(Static!); + return @static(__value0); } return default(TResult); @@ -122,9 +122,9 @@ public void Match( Validate(); } - if (IsStatic) + if (Static is { } __value0) { - @static?.Invoke(Static!); + @static?.Invoke(__value0); } } @@ -140,9 +140,9 @@ public void Switch( Validate(); } - if (IsStatic) + if (Static is { } __value0) { - @static?.Invoke(Static!); + @static?.Invoke(__value0); } } 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 b6d04f362..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 @@ -42,8 +42,8 @@ public bool TryPickAudioFormat( /// /// /// - public global::Google.Gemini.NextGen.AudioResponseFormat PickAudioFormat() => IsAudioFormat - ? AudioFormat! + public global::Google.Gemini.NextGen.AudioResponseFormat PickAudioFormat() => AudioFormat is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'AudioFormat' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickImageFormat( /// /// /// - public global::Google.Gemini.NextGen.ImageResponseFormat PickImageFormat() => IsImageFormat - ? ImageFormat! + public global::Google.Gemini.NextGen.ImageResponseFormat PickImageFormat() => ImageFormat is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ImageFormat' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickTextFormat( /// /// /// - public global::Google.Gemini.NextGen.TextResponseFormat PickTextFormat() => IsTextFormat - ? TextFormat! + public global::Google.Gemini.NextGen.TextResponseFormat PickTextFormat() => TextFormat is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextFormat' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickVideoFormat( /// /// /// - public global::Google.Gemini.NextGen.VideoResponseFormat PickVideoFormat() => IsVideoFormat - ? VideoFormat! + public global::Google.Gemini.NextGen.VideoResponseFormat PickVideoFormat() => VideoFormat is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'VideoFormat' but the value was {ToString()}."); /// @@ -190,8 +190,8 @@ public bool TryPickFormatVariant5( /// /// /// - public object PickFormatVariant5() => IsFormatVariant5 - ? FormatVariant5! + public object PickFormatVariant5() => FormatVariant5 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FormatVariant5' but the value was {ToString()}."); /// /// @@ -349,25 +349,25 @@ public bool Validate() Validate(); } - if (IsAudioFormat && audioFormat != null) + if (AudioFormat is { } __value0 && audioFormat != null) { - return audioFormat(AudioFormat!); + return audioFormat(__value0); } - else if (IsImageFormat && imageFormat != null) + else if (ImageFormat is { } __value1 && imageFormat != null) { - return imageFormat(ImageFormat!); + return imageFormat(__value1); } - else if (IsTextFormat && textFormat != null) + else if (TextFormat is { } __value2 && textFormat != null) { - return textFormat(TextFormat!); + return textFormat(__value2); } - else if (IsVideoFormat && videoFormat != null) + else if (VideoFormat is { } __value3 && videoFormat != null) { - return videoFormat(VideoFormat!); + return videoFormat(__value3); } - else if (IsFormatVariant5 && formatVariant5 != null) + else if (FormatVariant5 is { } __value4 && formatVariant5 != null) { - return formatVariant5(FormatVariant5!); + return formatVariant5(__value4); } return default(TResult); @@ -393,25 +393,25 @@ public void Match( Validate(); } - if (IsAudioFormat) + if (AudioFormat is { } __value0) { - audioFormat?.Invoke(AudioFormat!); + audioFormat?.Invoke(__value0); } - else if (IsImageFormat) + else if (ImageFormat is { } __value1) { - imageFormat?.Invoke(ImageFormat!); + imageFormat?.Invoke(__value1); } - else if (IsTextFormat) + else if (TextFormat is { } __value2) { - textFormat?.Invoke(TextFormat!); + textFormat?.Invoke(__value2); } - else if (IsVideoFormat) + else if (VideoFormat is { } __value3) { - videoFormat?.Invoke(VideoFormat!); + videoFormat?.Invoke(__value3); } - else if (IsFormatVariant5) + else if (FormatVariant5 is { } __value4) { - formatVariant5?.Invoke(FormatVariant5!); + formatVariant5?.Invoke(__value4); } } @@ -431,25 +431,25 @@ public void Switch( Validate(); } - if (IsAudioFormat) + if (AudioFormat is { } __value0) { - audioFormat?.Invoke(AudioFormat!); + audioFormat?.Invoke(__value0); } - else if (IsImageFormat) + else if (ImageFormat is { } __value1) { - imageFormat?.Invoke(ImageFormat!); + imageFormat?.Invoke(__value1); } - else if (IsTextFormat) + else if (TextFormat is { } __value2) { - textFormat?.Invoke(TextFormat!); + textFormat?.Invoke(__value2); } - else if (IsVideoFormat) + else if (VideoFormat is { } __value3) { - videoFormat?.Invoke(VideoFormat!); + videoFormat?.Invoke(__value3); } - else if (IsFormatVariant5) + else if (FormatVariant5 is { } __value4) { - formatVariant5?.Invoke(FormatVariant5!); + formatVariant5?.Invoke(__value4); } } 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 a48f7bc6d..d21d3ecd5 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 @@ -42,8 +42,8 @@ public bool TryPickCodeExecutionCall( /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionCallStep PickCodeExecutionCall() => IsCodeExecutionCall - ? CodeExecutionCall! + public global::Google.Gemini.NextGen.CodeExecutionCallStep PickCodeExecutionCall() => CodeExecutionCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeExecutionCall' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickCodeExecutionResult( /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionResultStep PickCodeExecutionResult() => IsCodeExecutionResult - ? CodeExecutionResult! + public global::Google.Gemini.NextGen.CodeExecutionResultStep PickCodeExecutionResult() => CodeExecutionResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeExecutionResult' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickFileSearchCall( /// /// /// - public global::Google.Gemini.NextGen.FileSearchCallStep PickFileSearchCall() => IsFileSearchCall - ? FileSearchCall! + public global::Google.Gemini.NextGen.FileSearchCallStep PickFileSearchCall() => FileSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchCall' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickFileSearchResult( /// /// /// - public global::Google.Gemini.NextGen.FileSearchResultStep PickFileSearchResult() => IsFileSearchResult - ? FileSearchResult! + public global::Google.Gemini.NextGen.FileSearchResultStep PickFileSearchResult() => FileSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchResult' but the value was {ToString()}."); /// @@ -190,8 +190,8 @@ public bool TryPickFunctionCall( /// /// /// - public global::Google.Gemini.NextGen.FunctionCallStep PickFunctionCall() => IsFunctionCall - ? FunctionCall! + public global::Google.Gemini.NextGen.FunctionCallStep PickFunctionCall() => FunctionCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionCall' but the value was {ToString()}."); /// @@ -227,8 +227,8 @@ public bool TryPickFunctionResult( /// /// /// - public global::Google.Gemini.NextGen.FunctionResultStep PickFunctionResult() => IsFunctionResult - ? FunctionResult! + public global::Google.Gemini.NextGen.FunctionResultStep PickFunctionResult() => FunctionResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionResult' but the value was {ToString()}."); /// @@ -264,8 +264,8 @@ public bool TryPickGoogleMapsCall( /// /// /// - public global::Google.Gemini.NextGen.GoogleMapsCallStep PickGoogleMapsCall() => IsGoogleMapsCall - ? GoogleMapsCall! + public global::Google.Gemini.NextGen.GoogleMapsCallStep PickGoogleMapsCall() => GoogleMapsCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleMapsCall' but the value was {ToString()}."); /// @@ -301,8 +301,8 @@ public bool TryPickGoogleMapsResult( /// /// /// - public global::Google.Gemini.NextGen.GoogleMapsResultStep PickGoogleMapsResult() => IsGoogleMapsResult - ? GoogleMapsResult! + public global::Google.Gemini.NextGen.GoogleMapsResultStep PickGoogleMapsResult() => GoogleMapsResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleMapsResult' but the value was {ToString()}."); /// @@ -338,8 +338,8 @@ public bool TryPickGoogleSearchCall( /// /// /// - public global::Google.Gemini.NextGen.GoogleSearchCallStep PickGoogleSearchCall() => IsGoogleSearchCall - ? GoogleSearchCall! + public global::Google.Gemini.NextGen.GoogleSearchCallStep PickGoogleSearchCall() => GoogleSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSearchCall' but the value was {ToString()}."); /// @@ -375,8 +375,8 @@ public bool TryPickGoogleSearchResult( /// /// /// - public global::Google.Gemini.NextGen.GoogleSearchResultStep PickGoogleSearchResult() => IsGoogleSearchResult - ? GoogleSearchResult! + public global::Google.Gemini.NextGen.GoogleSearchResultStep PickGoogleSearchResult() => GoogleSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSearchResult' but the value was {ToString()}."); /// @@ -412,8 +412,8 @@ public bool TryPickMCPServerToolCall( /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolCallStep PickMCPServerToolCall() => IsMCPServerToolCall - ? MCPServerToolCall! + 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()}."); /// @@ -449,8 +449,8 @@ public bool TryPickMCPServerToolResult( /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolResultStep PickMCPServerToolResult() => IsMCPServerToolResult - ? MCPServerToolResult! + 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()}."); /// @@ -486,8 +486,8 @@ public bool TryPickModelOutput( /// /// /// - public global::Google.Gemini.NextGen.ModelOutputStep PickModelOutput() => IsModelOutput - ? ModelOutput! + public global::Google.Gemini.NextGen.ModelOutputStep PickModelOutput() => ModelOutput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ModelOutput' but the value was {ToString()}."); /// @@ -524,8 +524,8 @@ public bool TryPickProcessingCall( /// /// /// - public global::Google.Gemini.NextGen.ProcessingCallStep PickProcessingCall() => IsProcessingCall - ? ProcessingCall! + public global::Google.Gemini.NextGen.ProcessingCallStep PickProcessingCall() => ProcessingCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProcessingCall' but the value was {ToString()}."); /// @@ -561,8 +561,8 @@ public bool TryPickProcessingResult( /// /// /// - public global::Google.Gemini.NextGen.ProcessingResultStep PickProcessingResult() => IsProcessingResult - ? ProcessingResult! + public global::Google.Gemini.NextGen.ProcessingResultStep PickProcessingResult() => ProcessingResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProcessingResult' but the value was {ToString()}."); /// @@ -600,8 +600,8 @@ public bool TryPickRetrievalCall( /// /// /// - public global::Google.Gemini.NextGen.RetrievalCallStep PickRetrievalCall() => IsRetrievalCall - ? RetrievalCall! + 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()}."); /// @@ -639,8 +639,8 @@ public bool TryPickRetrievalResult( /// /// /// - public global::Google.Gemini.NextGen.RetrievalResultStep PickRetrievalResult() => IsRetrievalResult - ? RetrievalResult! + 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()}."); /// @@ -676,8 +676,8 @@ public bool TryPickThought( /// /// /// - public global::Google.Gemini.NextGen.ThoughtStep PickThought() => IsThought - ? Thought! + public global::Google.Gemini.NextGen.ThoughtStep PickThought() => Thought is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Thought' but the value was {ToString()}."); /// @@ -713,8 +713,8 @@ public bool TryPickURLContextCall( /// /// /// - public global::Google.Gemini.NextGen.URLContextCallStep PickURLContextCall() => IsURLContextCall - ? URLContextCall! + public global::Google.Gemini.NextGen.URLContextCallStep PickURLContextCall() => URLContextCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'URLContextCall' but the value was {ToString()}."); /// @@ -750,8 +750,8 @@ public bool TryPickURLContextResult( /// /// /// - public global::Google.Gemini.NextGen.URLContextResultStep PickURLContextResult() => IsURLContextResult - ? URLContextResult! + public global::Google.Gemini.NextGen.URLContextResultStep PickURLContextResult() => URLContextResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'URLContextResult' but the value was {ToString()}."); /// @@ -787,8 +787,8 @@ public bool TryPickUserInput( /// /// /// - public global::Google.Gemini.NextGen.UserInputStep PickUserInput() => IsUserInput - ? UserInput! + public global::Google.Gemini.NextGen.UserInputStep PickUserInput() => UserInput is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'UserInput' but the value was {ToString()}."); /// /// @@ -1417,89 +1417,89 @@ public bool Validate() Validate(); } - if (IsCodeExecutionCall && codeExecutionCall != null) + if (CodeExecutionCall is { } __value0 && codeExecutionCall != null) { - return codeExecutionCall(CodeExecutionCall!); + return codeExecutionCall(__value0); } - else if (IsCodeExecutionResult && codeExecutionResult != null) + else if (CodeExecutionResult is { } __value1 && codeExecutionResult != null) { - return codeExecutionResult(CodeExecutionResult!); + return codeExecutionResult(__value1); } - else if (IsFileSearchCall && fileSearchCall != null) + else if (FileSearchCall is { } __value2 && fileSearchCall != null) { - return fileSearchCall(FileSearchCall!); + return fileSearchCall(__value2); } - else if (IsFileSearchResult && fileSearchResult != null) + else if (FileSearchResult is { } __value3 && fileSearchResult != null) { - return fileSearchResult(FileSearchResult!); + return fileSearchResult(__value3); } - else if (IsFunctionCall && functionCall != null) + else if (FunctionCall is { } __value4 && functionCall != null) { - return functionCall(FunctionCall!); + return functionCall(__value4); } - else if (IsFunctionResult && functionResult != null) + else if (FunctionResult is { } __value5 && functionResult != null) { - return functionResult(FunctionResult!); + return functionResult(__value5); } - else if (IsGoogleMapsCall && googleMapsCall != null) + else if (GoogleMapsCall is { } __value6 && googleMapsCall != null) { - return googleMapsCall(GoogleMapsCall!); + return googleMapsCall(__value6); } - else if (IsGoogleMapsResult && googleMapsResult != null) + else if (GoogleMapsResult is { } __value7 && googleMapsResult != null) { - return googleMapsResult(GoogleMapsResult!); + return googleMapsResult(__value7); } - else if (IsGoogleSearchCall && googleSearchCall != null) + else if (GoogleSearchCall is { } __value8 && googleSearchCall != null) { - return googleSearchCall(GoogleSearchCall!); + return googleSearchCall(__value8); } - else if (IsGoogleSearchResult && googleSearchResult != null) + else if (GoogleSearchResult is { } __value9 && googleSearchResult != null) { - return googleSearchResult(GoogleSearchResult!); + return googleSearchResult(__value9); } - else if (IsMCPServerToolCall && mCPServerToolCall != null) + else if (MCPServerToolCall is { } __value10 && mCPServerToolCall != null) { - return mCPServerToolCall(MCPServerToolCall!); + return mCPServerToolCall(__value10); } - else if (IsMCPServerToolResult && mCPServerToolResult != null) + else if (MCPServerToolResult is { } __value11 && mCPServerToolResult != null) { - return mCPServerToolResult(MCPServerToolResult!); + return mCPServerToolResult(__value11); } - else if (IsModelOutput && modelOutput != null) + else if (ModelOutput is { } __value12 && modelOutput != null) { - return modelOutput(ModelOutput!); + return modelOutput(__value12); } - else if (IsProcessingCall && processingCall != null) + else if (ProcessingCall is { } __value13 && processingCall != null) { - return processingCall(ProcessingCall!); + return processingCall(__value13); } - else if (IsProcessingResult && processingResult != null) + else if (ProcessingResult is { } __value14 && processingResult != null) { - return processingResult(ProcessingResult!); + return processingResult(__value14); } - else if (IsRetrievalCall && retrievalCall != null) + else if (RetrievalCall is { } __value15 && retrievalCall != null) { - return retrievalCall(RetrievalCall!); + return retrievalCall(__value15); } - else if (IsRetrievalResult && retrievalResult != null) + else if (RetrievalResult is { } __value16 && retrievalResult != null) { - return retrievalResult(RetrievalResult!); + return retrievalResult(__value16); } - else if (IsThought && thought != null) + else if (Thought is { } __value17 && thought != null) { - return thought(Thought!); + return thought(__value17); } - else if (IsURLContextCall && uRLContextCall != null) + else if (URLContextCall is { } __value18 && uRLContextCall != null) { - return uRLContextCall(URLContextCall!); + return uRLContextCall(__value18); } - else if (IsURLContextResult && uRLContextResult != null) + else if (URLContextResult is { } __value19 && uRLContextResult != null) { - return uRLContextResult(URLContextResult!); + return uRLContextResult(__value19); } - else if (IsUserInput && userInput != null) + else if (UserInput is { } __value20 && userInput != null) { - return userInput(UserInput!); + return userInput(__value20); } return default(TResult); @@ -1557,89 +1557,89 @@ public void Match( Validate(); } - if (IsCodeExecutionCall) + if (CodeExecutionCall is { } __value0) { - codeExecutionCall?.Invoke(CodeExecutionCall!); + codeExecutionCall?.Invoke(__value0); } - else if (IsCodeExecutionResult) + else if (CodeExecutionResult is { } __value1) { - codeExecutionResult?.Invoke(CodeExecutionResult!); + codeExecutionResult?.Invoke(__value1); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value2) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value4) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value4); } - else if (IsFunctionResult) + else if (FunctionResult is { } __value5) { - functionResult?.Invoke(FunctionResult!); + functionResult?.Invoke(__value5); } - else if (IsGoogleMapsCall) + else if (GoogleMapsCall is { } __value6) { - googleMapsCall?.Invoke(GoogleMapsCall!); + googleMapsCall?.Invoke(__value6); } - else if (IsGoogleMapsResult) + else if (GoogleMapsResult is { } __value7) { - googleMapsResult?.Invoke(GoogleMapsResult!); + googleMapsResult?.Invoke(__value7); } - else if (IsGoogleSearchCall) + else if (GoogleSearchCall is { } __value8) { - googleSearchCall?.Invoke(GoogleSearchCall!); + googleSearchCall?.Invoke(__value8); } - else if (IsGoogleSearchResult) + else if (GoogleSearchResult is { } __value9) { - googleSearchResult?.Invoke(GoogleSearchResult!); + googleSearchResult?.Invoke(__value9); } - else if (IsMCPServerToolCall) + else if (MCPServerToolCall is { } __value10) { - mCPServerToolCall?.Invoke(MCPServerToolCall!); + mCPServerToolCall?.Invoke(__value10); } - else if (IsMCPServerToolResult) + else if (MCPServerToolResult is { } __value11) { - mCPServerToolResult?.Invoke(MCPServerToolResult!); + mCPServerToolResult?.Invoke(__value11); } - else if (IsModelOutput) + else if (ModelOutput is { } __value12) { - modelOutput?.Invoke(ModelOutput!); + modelOutput?.Invoke(__value12); } - else if (IsProcessingCall) + else if (ProcessingCall is { } __value13) { - processingCall?.Invoke(ProcessingCall!); + processingCall?.Invoke(__value13); } - else if (IsProcessingResult) + else if (ProcessingResult is { } __value14) { - processingResult?.Invoke(ProcessingResult!); + processingResult?.Invoke(__value14); } - else if (IsRetrievalCall) + else if (RetrievalCall is { } __value15) { - retrievalCall?.Invoke(RetrievalCall!); + retrievalCall?.Invoke(__value15); } - else if (IsRetrievalResult) + else if (RetrievalResult is { } __value16) { - retrievalResult?.Invoke(RetrievalResult!); + retrievalResult?.Invoke(__value16); } - else if (IsThought) + else if (Thought is { } __value17) { - thought?.Invoke(Thought!); + thought?.Invoke(__value17); } - else if (IsURLContextCall) + else if (URLContextCall is { } __value18) { - uRLContextCall?.Invoke(URLContextCall!); + uRLContextCall?.Invoke(__value18); } - else if (IsURLContextResult) + else if (URLContextResult is { } __value19) { - uRLContextResult?.Invoke(URLContextResult!); + uRLContextResult?.Invoke(__value19); } - else if (IsUserInput) + else if (UserInput is { } __value20) { - userInput?.Invoke(UserInput!); + userInput?.Invoke(__value20); } } @@ -1675,89 +1675,89 @@ public void Switch( Validate(); } - if (IsCodeExecutionCall) + if (CodeExecutionCall is { } __value0) { - codeExecutionCall?.Invoke(CodeExecutionCall!); + codeExecutionCall?.Invoke(__value0); } - else if (IsCodeExecutionResult) + else if (CodeExecutionResult is { } __value1) { - codeExecutionResult?.Invoke(CodeExecutionResult!); + codeExecutionResult?.Invoke(__value1); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value2) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value2); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value3) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value3); } - else if (IsFunctionCall) + else if (FunctionCall is { } __value4) { - functionCall?.Invoke(FunctionCall!); + functionCall?.Invoke(__value4); } - else if (IsFunctionResult) + else if (FunctionResult is { } __value5) { - functionResult?.Invoke(FunctionResult!); + functionResult?.Invoke(__value5); } - else if (IsGoogleMapsCall) + else if (GoogleMapsCall is { } __value6) { - googleMapsCall?.Invoke(GoogleMapsCall!); + googleMapsCall?.Invoke(__value6); } - else if (IsGoogleMapsResult) + else if (GoogleMapsResult is { } __value7) { - googleMapsResult?.Invoke(GoogleMapsResult!); + googleMapsResult?.Invoke(__value7); } - else if (IsGoogleSearchCall) + else if (GoogleSearchCall is { } __value8) { - googleSearchCall?.Invoke(GoogleSearchCall!); + googleSearchCall?.Invoke(__value8); } - else if (IsGoogleSearchResult) + else if (GoogleSearchResult is { } __value9) { - googleSearchResult?.Invoke(GoogleSearchResult!); + googleSearchResult?.Invoke(__value9); } - else if (IsMCPServerToolCall) + else if (MCPServerToolCall is { } __value10) { - mCPServerToolCall?.Invoke(MCPServerToolCall!); + mCPServerToolCall?.Invoke(__value10); } - else if (IsMCPServerToolResult) + else if (MCPServerToolResult is { } __value11) { - mCPServerToolResult?.Invoke(MCPServerToolResult!); + mCPServerToolResult?.Invoke(__value11); } - else if (IsModelOutput) + else if (ModelOutput is { } __value12) { - modelOutput?.Invoke(ModelOutput!); + modelOutput?.Invoke(__value12); } - else if (IsProcessingCall) + else if (ProcessingCall is { } __value13) { - processingCall?.Invoke(ProcessingCall!); + processingCall?.Invoke(__value13); } - else if (IsProcessingResult) + else if (ProcessingResult is { } __value14) { - processingResult?.Invoke(ProcessingResult!); + processingResult?.Invoke(__value14); } - else if (IsRetrievalCall) + else if (RetrievalCall is { } __value15) { - retrievalCall?.Invoke(RetrievalCall!); + retrievalCall?.Invoke(__value15); } - else if (IsRetrievalResult) + else if (RetrievalResult is { } __value16) { - retrievalResult?.Invoke(RetrievalResult!); + retrievalResult?.Invoke(__value16); } - else if (IsThought) + else if (Thought is { } __value17) { - thought?.Invoke(Thought!); + thought?.Invoke(__value17); } - else if (IsURLContextCall) + else if (URLContextCall is { } __value18) { - uRLContextCall?.Invoke(URLContextCall!); + uRLContextCall?.Invoke(__value18); } - else if (IsURLContextResult) + else if (URLContextResult is { } __value19) { - uRLContextResult?.Invoke(URLContextResult!); + uRLContextResult?.Invoke(__value19); } - else if (IsUserInput) + else if (UserInput is { } __value20) { - userInput?.Invoke(UserInput!); + userInput?.Invoke(__value20); } } 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 548b73b33..eafeaf876 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 @@ -42,8 +42,8 @@ public bool TryPickArguments( /// /// /// - public global::Google.Gemini.NextGen.ArgumentsDelta PickArguments() => IsArguments - ? Arguments! + public global::Google.Gemini.NextGen.ArgumentsDelta PickArguments() => Arguments is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Arguments' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickAudio( /// /// /// - public global::Google.Gemini.NextGen.AudioDelta PickAudio() => IsAudio - ? Audio! + public global::Google.Gemini.NextGen.AudioDelta PickAudio() => Audio is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Audio' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickCodeExecutionCall( /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionCallDelta PickCodeExecutionCall() => IsCodeExecutionCall - ? CodeExecutionCall! + public global::Google.Gemini.NextGen.CodeExecutionCallDelta PickCodeExecutionCall() => CodeExecutionCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeExecutionCall' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickCodeExecutionResult( /// /// /// - public global::Google.Gemini.NextGen.CodeExecutionResultDelta PickCodeExecutionResult() => IsCodeExecutionResult - ? CodeExecutionResult! + public global::Google.Gemini.NextGen.CodeExecutionResultDelta PickCodeExecutionResult() => CodeExecutionResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeExecutionResult' but the value was {ToString()}."); /// @@ -190,8 +190,8 @@ public bool TryPickDocument( /// /// /// - public global::Google.Gemini.NextGen.DocumentDelta PickDocument() => IsDocument - ? Document! + public global::Google.Gemini.NextGen.DocumentDelta PickDocument() => Document is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Document' but the value was {ToString()}."); /// @@ -227,8 +227,8 @@ public bool TryPickFileSearchCall( /// /// /// - public global::Google.Gemini.NextGen.FileSearchCallDelta PickFileSearchCall() => IsFileSearchCall - ? FileSearchCall! + public global::Google.Gemini.NextGen.FileSearchCallDelta PickFileSearchCall() => FileSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchCall' but the value was {ToString()}."); /// @@ -264,8 +264,8 @@ public bool TryPickFileSearchResult( /// /// /// - public global::Google.Gemini.NextGen.FileSearchResultDelta PickFileSearchResult() => IsFileSearchResult - ? FileSearchResult! + public global::Google.Gemini.NextGen.FileSearchResultDelta PickFileSearchResult() => FileSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearchResult' but the value was {ToString()}."); /// @@ -301,8 +301,8 @@ public bool TryPickFunctionResult( /// /// /// - public global::Google.Gemini.NextGen.FunctionResultDelta PickFunctionResult() => IsFunctionResult - ? FunctionResult! + public global::Google.Gemini.NextGen.FunctionResultDelta PickFunctionResult() => FunctionResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FunctionResult' but the value was {ToString()}."); /// @@ -338,8 +338,8 @@ public bool TryPickGoogleMapsCall( /// /// /// - public global::Google.Gemini.NextGen.GoogleMapsCallDelta PickGoogleMapsCall() => IsGoogleMapsCall - ? GoogleMapsCall! + public global::Google.Gemini.NextGen.GoogleMapsCallDelta PickGoogleMapsCall() => GoogleMapsCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleMapsCall' but the value was {ToString()}."); /// @@ -375,8 +375,8 @@ public bool TryPickGoogleMapsResult( /// /// /// - public global::Google.Gemini.NextGen.GoogleMapsResultDelta PickGoogleMapsResult() => IsGoogleMapsResult - ? GoogleMapsResult! + public global::Google.Gemini.NextGen.GoogleMapsResultDelta PickGoogleMapsResult() => GoogleMapsResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleMapsResult' but the value was {ToString()}."); /// @@ -412,8 +412,8 @@ public bool TryPickGoogleSearchCall( /// /// /// - public global::Google.Gemini.NextGen.GoogleSearchCallDelta PickGoogleSearchCall() => IsGoogleSearchCall - ? GoogleSearchCall! + public global::Google.Gemini.NextGen.GoogleSearchCallDelta PickGoogleSearchCall() => GoogleSearchCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSearchCall' but the value was {ToString()}."); /// @@ -449,8 +449,8 @@ public bool TryPickGoogleSearchResult( /// /// /// - public global::Google.Gemini.NextGen.GoogleSearchResultDelta PickGoogleSearchResult() => IsGoogleSearchResult - ? GoogleSearchResult! + public global::Google.Gemini.NextGen.GoogleSearchResultDelta PickGoogleSearchResult() => GoogleSearchResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSearchResult' but the value was {ToString()}."); /// @@ -486,8 +486,8 @@ public bool TryPickImage( /// /// /// - public global::Google.Gemini.NextGen.ImageDelta PickImage() => IsImage - ? Image! + public global::Google.Gemini.NextGen.ImageDelta PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// @@ -523,8 +523,8 @@ public bool TryPickMCPServerToolCall( /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolCallDelta PickMCPServerToolCall() => IsMCPServerToolCall - ? MCPServerToolCall! + 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()}."); /// @@ -560,8 +560,8 @@ public bool TryPickMCPServerToolResult( /// /// /// - public global::Google.Gemini.NextGen.MCPServerToolResultDelta PickMCPServerToolResult() => IsMCPServerToolResult - ? MCPServerToolResult! + 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()}."); /// @@ -597,8 +597,8 @@ public bool TryPickProcessingCall( /// /// /// - public global::Google.Gemini.NextGen.ProcessingCallDelta PickProcessingCall() => IsProcessingCall - ? ProcessingCall! + public global::Google.Gemini.NextGen.ProcessingCallDelta PickProcessingCall() => ProcessingCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProcessingCall' but the value was {ToString()}."); /// @@ -634,8 +634,8 @@ public bool TryPickProcessingResult( /// /// /// - public global::Google.Gemini.NextGen.ProcessingResultDelta PickProcessingResult() => IsProcessingResult - ? ProcessingResult! + public global::Google.Gemini.NextGen.ProcessingResultDelta PickProcessingResult() => ProcessingResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ProcessingResult' but the value was {ToString()}."); /// @@ -672,8 +672,8 @@ public bool TryPickRetrievalCall( /// /// /// - public global::Google.Gemini.NextGen.RetrievalCallDelta PickRetrievalCall() => IsRetrievalCall - ? RetrievalCall! + 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()}."); /// @@ -711,8 +711,8 @@ public bool TryPickRetrievalResult( /// /// /// - public global::Google.Gemini.NextGen.RetrievalResultDelta PickRetrievalResult() => IsRetrievalResult - ? RetrievalResult! + 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()}."); /// @@ -748,8 +748,8 @@ public bool TryPickTextAnnotation( /// /// /// - public global::Google.Gemini.NextGen.TextAnnotationDelta PickTextAnnotation() => IsTextAnnotation - ? TextAnnotation! + public global::Google.Gemini.NextGen.TextAnnotationDelta PickTextAnnotation() => TextAnnotation is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'TextAnnotation' but the value was {ToString()}."); /// @@ -785,8 +785,8 @@ public bool TryPickText( /// /// /// - public global::Google.Gemini.NextGen.TextDelta PickText() => IsText - ? Text! + public global::Google.Gemini.NextGen.TextDelta PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// @@ -822,8 +822,8 @@ public bool TryPickThoughtSignature( /// /// /// - public global::Google.Gemini.NextGen.ThoughtSignatureDelta PickThoughtSignature() => IsThoughtSignature - ? ThoughtSignature! + public global::Google.Gemini.NextGen.ThoughtSignatureDelta PickThoughtSignature() => ThoughtSignature is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ThoughtSignature' but the value was {ToString()}."); /// @@ -859,8 +859,8 @@ public bool TryPickThoughtSummary( /// /// /// - public global::Google.Gemini.NextGen.ThoughtSummaryDelta PickThoughtSummary() => IsThoughtSummary - ? ThoughtSummary! + public global::Google.Gemini.NextGen.ThoughtSummaryDelta PickThoughtSummary() => ThoughtSummary is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ThoughtSummary' but the value was {ToString()}."); /// @@ -896,8 +896,8 @@ public bool TryPickURLContextCall( /// /// /// - public global::Google.Gemini.NextGen.URLContextCallDelta PickURLContextCall() => IsURLContextCall - ? URLContextCall! + public global::Google.Gemini.NextGen.URLContextCallDelta PickURLContextCall() => URLContextCall is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'URLContextCall' but the value was {ToString()}."); /// @@ -933,8 +933,8 @@ public bool TryPickURLContextResult( /// /// /// - public global::Google.Gemini.NextGen.URLContextResultDelta PickURLContextResult() => IsURLContextResult - ? URLContextResult! + public global::Google.Gemini.NextGen.URLContextResultDelta PickURLContextResult() => URLContextResult is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'URLContextResult' but the value was {ToString()}."); /// @@ -970,8 +970,8 @@ public bool TryPickVideo( /// /// /// - public global::Google.Gemini.NextGen.VideoDelta PickVideo() => IsVideo - ? Video! + public global::Google.Gemini.NextGen.VideoDelta PickVideo() => Video is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Video' but the value was {ToString()}."); /// /// @@ -1740,109 +1740,109 @@ public bool Validate() Validate(); } - if (IsArguments && arguments != null) + if (Arguments is { } __value0 && arguments != null) { - return arguments(Arguments!); + return arguments(__value0); } - else if (IsAudio && audio != null) + else if (Audio is { } __value1 && audio != null) { - return audio(Audio!); + return audio(__value1); } - else if (IsCodeExecutionCall && codeExecutionCall != null) + else if (CodeExecutionCall is { } __value2 && codeExecutionCall != null) { - return codeExecutionCall(CodeExecutionCall!); + return codeExecutionCall(__value2); } - else if (IsCodeExecutionResult && codeExecutionResult != null) + else if (CodeExecutionResult is { } __value3 && codeExecutionResult != null) { - return codeExecutionResult(CodeExecutionResult!); + return codeExecutionResult(__value3); } - else if (IsDocument && document != null) + else if (Document is { } __value4 && document != null) { - return document(Document!); + return document(__value4); } - else if (IsFileSearchCall && fileSearchCall != null) + else if (FileSearchCall is { } __value5 && fileSearchCall != null) { - return fileSearchCall(FileSearchCall!); + return fileSearchCall(__value5); } - else if (IsFileSearchResult && fileSearchResult != null) + else if (FileSearchResult is { } __value6 && fileSearchResult != null) { - return fileSearchResult(FileSearchResult!); + return fileSearchResult(__value6); } - else if (IsFunctionResult && functionResult != null) + else if (FunctionResult is { } __value7 && functionResult != null) { - return functionResult(FunctionResult!); + return functionResult(__value7); } - else if (IsGoogleMapsCall && googleMapsCall != null) + else if (GoogleMapsCall is { } __value8 && googleMapsCall != null) { - return googleMapsCall(GoogleMapsCall!); + return googleMapsCall(__value8); } - else if (IsGoogleMapsResult && googleMapsResult != null) + else if (GoogleMapsResult is { } __value9 && googleMapsResult != null) { - return googleMapsResult(GoogleMapsResult!); + return googleMapsResult(__value9); } - else if (IsGoogleSearchCall && googleSearchCall != null) + else if (GoogleSearchCall is { } __value10 && googleSearchCall != null) { - return googleSearchCall(GoogleSearchCall!); + return googleSearchCall(__value10); } - else if (IsGoogleSearchResult && googleSearchResult != null) + else if (GoogleSearchResult is { } __value11 && googleSearchResult != null) { - return googleSearchResult(GoogleSearchResult!); + return googleSearchResult(__value11); } - else if (IsImage && image != null) + else if (Image is { } __value12 && image != null) { - return image(Image!); + return image(__value12); } - else if (IsMCPServerToolCall && mCPServerToolCall != null) + else if (MCPServerToolCall is { } __value13 && mCPServerToolCall != null) { - return mCPServerToolCall(MCPServerToolCall!); + return mCPServerToolCall(__value13); } - else if (IsMCPServerToolResult && mCPServerToolResult != null) + else if (MCPServerToolResult is { } __value14 && mCPServerToolResult != null) { - return mCPServerToolResult(MCPServerToolResult!); + return mCPServerToolResult(__value14); } - else if (IsProcessingCall && processingCall != null) + else if (ProcessingCall is { } __value15 && processingCall != null) { - return processingCall(ProcessingCall!); + return processingCall(__value15); } - else if (IsProcessingResult && processingResult != null) + else if (ProcessingResult is { } __value16 && processingResult != null) { - return processingResult(ProcessingResult!); + return processingResult(__value16); } - else if (IsRetrievalCall && retrievalCall != null) + else if (RetrievalCall is { } __value17 && retrievalCall != null) { - return retrievalCall(RetrievalCall!); + return retrievalCall(__value17); } - else if (IsRetrievalResult && retrievalResult != null) + else if (RetrievalResult is { } __value18 && retrievalResult != null) { - return retrievalResult(RetrievalResult!); + return retrievalResult(__value18); } - else if (IsTextAnnotation && textAnnotation != null) + else if (TextAnnotation is { } __value19 && textAnnotation != null) { - return textAnnotation(TextAnnotation!); + return textAnnotation(__value19); } - else if (IsText && text != null) + else if (Text is { } __value20 && text != null) { - return text(Text!); + return text(__value20); } - else if (IsThoughtSignature && thoughtSignature != null) + else if (ThoughtSignature is { } __value21 && thoughtSignature != null) { - return thoughtSignature(ThoughtSignature!); + return thoughtSignature(__value21); } - else if (IsThoughtSummary && thoughtSummary != null) + else if (ThoughtSummary is { } __value22 && thoughtSummary != null) { - return thoughtSummary(ThoughtSummary!); + return thoughtSummary(__value22); } - else if (IsURLContextCall && uRLContextCall != null) + else if (URLContextCall is { } __value23 && uRLContextCall != null) { - return uRLContextCall(URLContextCall!); + return uRLContextCall(__value23); } - else if (IsURLContextResult && uRLContextResult != null) + else if (URLContextResult is { } __value24 && uRLContextResult != null) { - return uRLContextResult(URLContextResult!); + return uRLContextResult(__value24); } - else if (IsVideo && video != null) + else if (Video is { } __value25 && video != null) { - return video(Video!); + return video(__value25); } return default(TResult); @@ -1910,109 +1910,109 @@ public void Match( Validate(); } - if (IsArguments) + if (Arguments is { } __value0) { - arguments?.Invoke(Arguments!); + arguments?.Invoke(__value0); } - else if (IsAudio) + else if (Audio is { } __value1) { - audio?.Invoke(Audio!); + audio?.Invoke(__value1); } - else if (IsCodeExecutionCall) + else if (CodeExecutionCall is { } __value2) { - codeExecutionCall?.Invoke(CodeExecutionCall!); + codeExecutionCall?.Invoke(__value2); } - else if (IsCodeExecutionResult) + else if (CodeExecutionResult is { } __value3) { - codeExecutionResult?.Invoke(CodeExecutionResult!); + codeExecutionResult?.Invoke(__value3); } - else if (IsDocument) + else if (Document is { } __value4) { - document?.Invoke(Document!); + document?.Invoke(__value4); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value5) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value5); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value6) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value6); } - else if (IsFunctionResult) + else if (FunctionResult is { } __value7) { - functionResult?.Invoke(FunctionResult!); + functionResult?.Invoke(__value7); } - else if (IsGoogleMapsCall) + else if (GoogleMapsCall is { } __value8) { - googleMapsCall?.Invoke(GoogleMapsCall!); + googleMapsCall?.Invoke(__value8); } - else if (IsGoogleMapsResult) + else if (GoogleMapsResult is { } __value9) { - googleMapsResult?.Invoke(GoogleMapsResult!); + googleMapsResult?.Invoke(__value9); } - else if (IsGoogleSearchCall) + else if (GoogleSearchCall is { } __value10) { - googleSearchCall?.Invoke(GoogleSearchCall!); + googleSearchCall?.Invoke(__value10); } - else if (IsGoogleSearchResult) + else if (GoogleSearchResult is { } __value11) { - googleSearchResult?.Invoke(GoogleSearchResult!); + googleSearchResult?.Invoke(__value11); } - else if (IsImage) + else if (Image is { } __value12) { - image?.Invoke(Image!); + image?.Invoke(__value12); } - else if (IsMCPServerToolCall) + else if (MCPServerToolCall is { } __value13) { - mCPServerToolCall?.Invoke(MCPServerToolCall!); + mCPServerToolCall?.Invoke(__value13); } - else if (IsMCPServerToolResult) + else if (MCPServerToolResult is { } __value14) { - mCPServerToolResult?.Invoke(MCPServerToolResult!); + mCPServerToolResult?.Invoke(__value14); } - else if (IsProcessingCall) + else if (ProcessingCall is { } __value15) { - processingCall?.Invoke(ProcessingCall!); + processingCall?.Invoke(__value15); } - else if (IsProcessingResult) + else if (ProcessingResult is { } __value16) { - processingResult?.Invoke(ProcessingResult!); + processingResult?.Invoke(__value16); } - else if (IsRetrievalCall) + else if (RetrievalCall is { } __value17) { - retrievalCall?.Invoke(RetrievalCall!); + retrievalCall?.Invoke(__value17); } - else if (IsRetrievalResult) + else if (RetrievalResult is { } __value18) { - retrievalResult?.Invoke(RetrievalResult!); + retrievalResult?.Invoke(__value18); } - else if (IsTextAnnotation) + else if (TextAnnotation is { } __value19) { - textAnnotation?.Invoke(TextAnnotation!); + textAnnotation?.Invoke(__value19); } - else if (IsText) + else if (Text is { } __value20) { - text?.Invoke(Text!); + text?.Invoke(__value20); } - else if (IsThoughtSignature) + else if (ThoughtSignature is { } __value21) { - thoughtSignature?.Invoke(ThoughtSignature!); + thoughtSignature?.Invoke(__value21); } - else if (IsThoughtSummary) + else if (ThoughtSummary is { } __value22) { - thoughtSummary?.Invoke(ThoughtSummary!); + thoughtSummary?.Invoke(__value22); } - else if (IsURLContextCall) + else if (URLContextCall is { } __value23) { - uRLContextCall?.Invoke(URLContextCall!); + uRLContextCall?.Invoke(__value23); } - else if (IsURLContextResult) + else if (URLContextResult is { } __value24) { - uRLContextResult?.Invoke(URLContextResult!); + uRLContextResult?.Invoke(__value24); } - else if (IsVideo) + else if (Video is { } __value25) { - video?.Invoke(Video!); + video?.Invoke(__value25); } } @@ -2053,109 +2053,109 @@ public void Switch( Validate(); } - if (IsArguments) + if (Arguments is { } __value0) { - arguments?.Invoke(Arguments!); + arguments?.Invoke(__value0); } - else if (IsAudio) + else if (Audio is { } __value1) { - audio?.Invoke(Audio!); + audio?.Invoke(__value1); } - else if (IsCodeExecutionCall) + else if (CodeExecutionCall is { } __value2) { - codeExecutionCall?.Invoke(CodeExecutionCall!); + codeExecutionCall?.Invoke(__value2); } - else if (IsCodeExecutionResult) + else if (CodeExecutionResult is { } __value3) { - codeExecutionResult?.Invoke(CodeExecutionResult!); + codeExecutionResult?.Invoke(__value3); } - else if (IsDocument) + else if (Document is { } __value4) { - document?.Invoke(Document!); + document?.Invoke(__value4); } - else if (IsFileSearchCall) + else if (FileSearchCall is { } __value5) { - fileSearchCall?.Invoke(FileSearchCall!); + fileSearchCall?.Invoke(__value5); } - else if (IsFileSearchResult) + else if (FileSearchResult is { } __value6) { - fileSearchResult?.Invoke(FileSearchResult!); + fileSearchResult?.Invoke(__value6); } - else if (IsFunctionResult) + else if (FunctionResult is { } __value7) { - functionResult?.Invoke(FunctionResult!); + functionResult?.Invoke(__value7); } - else if (IsGoogleMapsCall) + else if (GoogleMapsCall is { } __value8) { - googleMapsCall?.Invoke(GoogleMapsCall!); + googleMapsCall?.Invoke(__value8); } - else if (IsGoogleMapsResult) + else if (GoogleMapsResult is { } __value9) { - googleMapsResult?.Invoke(GoogleMapsResult!); + googleMapsResult?.Invoke(__value9); } - else if (IsGoogleSearchCall) + else if (GoogleSearchCall is { } __value10) { - googleSearchCall?.Invoke(GoogleSearchCall!); + googleSearchCall?.Invoke(__value10); } - else if (IsGoogleSearchResult) + else if (GoogleSearchResult is { } __value11) { - googleSearchResult?.Invoke(GoogleSearchResult!); + googleSearchResult?.Invoke(__value11); } - else if (IsImage) + else if (Image is { } __value12) { - image?.Invoke(Image!); + image?.Invoke(__value12); } - else if (IsMCPServerToolCall) + else if (MCPServerToolCall is { } __value13) { - mCPServerToolCall?.Invoke(MCPServerToolCall!); + mCPServerToolCall?.Invoke(__value13); } - else if (IsMCPServerToolResult) + else if (MCPServerToolResult is { } __value14) { - mCPServerToolResult?.Invoke(MCPServerToolResult!); + mCPServerToolResult?.Invoke(__value14); } - else if (IsProcessingCall) + else if (ProcessingCall is { } __value15) { - processingCall?.Invoke(ProcessingCall!); + processingCall?.Invoke(__value15); } - else if (IsProcessingResult) + else if (ProcessingResult is { } __value16) { - processingResult?.Invoke(ProcessingResult!); + processingResult?.Invoke(__value16); } - else if (IsRetrievalCall) + else if (RetrievalCall is { } __value17) { - retrievalCall?.Invoke(RetrievalCall!); + retrievalCall?.Invoke(__value17); } - else if (IsRetrievalResult) + else if (RetrievalResult is { } __value18) { - retrievalResult?.Invoke(RetrievalResult!); + retrievalResult?.Invoke(__value18); } - else if (IsTextAnnotation) + else if (TextAnnotation is { } __value19) { - textAnnotation?.Invoke(TextAnnotation!); + textAnnotation?.Invoke(__value19); } - else if (IsText) + else if (Text is { } __value20) { - text?.Invoke(Text!); + text?.Invoke(__value20); } - else if (IsThoughtSignature) + else if (ThoughtSignature is { } __value21) { - thoughtSignature?.Invoke(ThoughtSignature!); + thoughtSignature?.Invoke(__value21); } - else if (IsThoughtSummary) + else if (ThoughtSummary is { } __value22) { - thoughtSummary?.Invoke(ThoughtSummary!); + thoughtSummary?.Invoke(__value22); } - else if (IsURLContextCall) + else if (URLContextCall is { } __value23) { - uRLContextCall?.Invoke(URLContextCall!); + uRLContextCall?.Invoke(__value23); } - else if (IsURLContextResult) + else if (URLContextResult is { } __value24) { - uRLContextResult?.Invoke(URLContextResult!); + uRLContextResult?.Invoke(__value24); } - else if (IsVideo) + else if (Video is { } __value25) { - video?.Invoke(Video!); + video?.Invoke(__value25); } } 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 d8908bc34..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 @@ -42,8 +42,8 @@ public bool TryPickImage( /// /// /// - public global::Google.Gemini.NextGen.ImageContent PickImage() => IsImage - ? Image! + public global::Google.Gemini.NextGen.ImageContent PickImage() => Image is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Image' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickText( /// /// /// - public global::Google.Gemini.NextGen.TextContent PickText() => IsText - ? Text! + public global::Google.Gemini.NextGen.TextContent PickText() => Text is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsImage && image != null) + if (Image is { } __value0 && image != null) { - return image(Image!); + return image(__value0); } - else if (IsText && text != null) + else if (Text is { } __value1 && text != null) { - return text(Text!); + return text(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsImage) + if (Image is { } __value0) { - image?.Invoke(Image!); + image?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsImage) + if (Image is { } __value0) { - image?.Invoke(Image!); + image?.Invoke(__value0); } - else if (IsText) + else if (Text is { } __value1) { - text?.Invoke(Text!); + text?.Invoke(__value1); } } 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 1ca91fe63..78ddc46fb 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 @@ -42,8 +42,8 @@ public bool TryPickCodeExecution( /// /// /// - public global::Google.Gemini.NextGen.CodeExecution PickCodeExecution() => IsCodeExecution - ? CodeExecution! + public global::Google.Gemini.NextGen.CodeExecution PickCodeExecution() => CodeExecution is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'CodeExecution' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickComputerUse( /// /// /// - public global::Google.Gemini.NextGen.ComputerUse PickComputerUse() => IsComputerUse - ? ComputerUse! + public global::Google.Gemini.NextGen.ComputerUse PickComputerUse() => ComputerUse is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'ComputerUse' but the value was {ToString()}."); /// @@ -116,8 +116,8 @@ public bool TryPickFileSearch( /// /// /// - public global::Google.Gemini.NextGen.FileSearch PickFileSearch() => IsFileSearch - ? FileSearch! + public global::Google.Gemini.NextGen.FileSearch PickFileSearch() => FileSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'FileSearch' but the value was {ToString()}."); /// @@ -153,8 +153,8 @@ public bool TryPickFunction( /// /// /// - public global::Google.Gemini.NextGen.Function PickFunction() => IsFunction - ? Function! + public global::Google.Gemini.NextGen.Function PickFunction() => Function is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Function' but the value was {ToString()}."); /// @@ -190,8 +190,8 @@ public bool TryPickGoogleMaps( /// /// /// - public global::Google.Gemini.NextGen.GoogleMaps PickGoogleMaps() => IsGoogleMaps - ? GoogleMaps! + public global::Google.Gemini.NextGen.GoogleMaps PickGoogleMaps() => GoogleMaps is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleMaps' but the value was {ToString()}."); /// @@ -227,8 +227,8 @@ public bool TryPickGoogleSearch( /// /// /// - public global::Google.Gemini.NextGen.GoogleSearch PickGoogleSearch() => IsGoogleSearch - ? GoogleSearch! + public global::Google.Gemini.NextGen.GoogleSearch PickGoogleSearch() => GoogleSearch is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'GoogleSearch' but the value was {ToString()}."); /// @@ -264,8 +264,8 @@ public bool TryPickMCPServer( /// /// /// - public global::Google.Gemini.NextGen.MCPServer PickMCPServer() => IsMCPServer - ? MCPServer! + 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()}."); /// @@ -301,8 +301,8 @@ public bool TryPickRetrieval( /// /// /// - public global::Google.Gemini.NextGen.Retrieval PickRetrieval() => IsRetrieval - ? Retrieval! + 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()}."); /// @@ -338,8 +338,8 @@ public bool TryPickURLContext( /// /// /// - public global::Google.Gemini.NextGen.URLContext PickURLContext() => IsURLContext - ? URLContext! + public global::Google.Gemini.NextGen.URLContext PickURLContext() => URLContext is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'URLContext' but the value was {ToString()}."); /// /// @@ -632,41 +632,41 @@ public bool Validate() Validate(); } - if (IsCodeExecution && codeExecution != null) + if (CodeExecution is { } __value0 && codeExecution != null) { - return codeExecution(CodeExecution!); + return codeExecution(__value0); } - else if (IsComputerUse && computerUse != null) + else if (ComputerUse is { } __value1 && computerUse != null) { - return computerUse(ComputerUse!); + return computerUse(__value1); } - else if (IsFileSearch && fileSearch != null) + else if (FileSearch is { } __value2 && fileSearch != null) { - return fileSearch(FileSearch!); + return fileSearch(__value2); } - else if (IsFunction && function != null) + else if (Function is { } __value3 && function != null) { - return function(Function!); + return function(__value3); } - else if (IsGoogleMaps && googleMaps != null) + else if (GoogleMaps is { } __value4 && googleMaps != null) { - return googleMaps(GoogleMaps!); + return googleMaps(__value4); } - else if (IsGoogleSearch && googleSearch != null) + else if (GoogleSearch is { } __value5 && googleSearch != null) { - return googleSearch(GoogleSearch!); + return googleSearch(__value5); } - else if (IsMCPServer && mCPServer != null) + else if (MCPServer is { } __value6 && mCPServer != null) { - return mCPServer(MCPServer!); + return mCPServer(__value6); } - else if (IsRetrieval && retrieval != null) + else if (Retrieval is { } __value7 && retrieval != null) { - return retrieval(Retrieval!); + return retrieval(__value7); } - else if (IsURLContext && uRLContext != null) + else if (URLContext is { } __value8 && uRLContext != null) { - return uRLContext(URLContext!); + return uRLContext(__value8); } return default(TResult); @@ -700,41 +700,41 @@ public void Match( Validate(); } - if (IsCodeExecution) + if (CodeExecution is { } __value0) { - codeExecution?.Invoke(CodeExecution!); + codeExecution?.Invoke(__value0); } - else if (IsComputerUse) + else if (ComputerUse is { } __value1) { - computerUse?.Invoke(ComputerUse!); + computerUse?.Invoke(__value1); } - else if (IsFileSearch) + else if (FileSearch is { } __value2) { - fileSearch?.Invoke(FileSearch!); + fileSearch?.Invoke(__value2); } - else if (IsFunction) + else if (Function is { } __value3) { - function?.Invoke(Function!); + function?.Invoke(__value3); } - else if (IsGoogleMaps) + else if (GoogleMaps is { } __value4) { - googleMaps?.Invoke(GoogleMaps!); + googleMaps?.Invoke(__value4); } - else if (IsGoogleSearch) + else if (GoogleSearch is { } __value5) { - googleSearch?.Invoke(GoogleSearch!); + googleSearch?.Invoke(__value5); } - else if (IsMCPServer) + else if (MCPServer is { } __value6) { - mCPServer?.Invoke(MCPServer!); + mCPServer?.Invoke(__value6); } - else if (IsRetrieval) + else if (Retrieval is { } __value7) { - retrieval?.Invoke(Retrieval!); + retrieval?.Invoke(__value7); } - else if (IsURLContext) + else if (URLContext is { } __value8) { - uRLContext?.Invoke(URLContext!); + uRLContext?.Invoke(__value8); } } @@ -758,41 +758,41 @@ public void Switch( Validate(); } - if (IsCodeExecution) + if (CodeExecution is { } __value0) { - codeExecution?.Invoke(CodeExecution!); + codeExecution?.Invoke(__value0); } - else if (IsComputerUse) + else if (ComputerUse is { } __value1) { - computerUse?.Invoke(ComputerUse!); + computerUse?.Invoke(__value1); } - else if (IsFileSearch) + else if (FileSearch is { } __value2) { - fileSearch?.Invoke(FileSearch!); + fileSearch?.Invoke(__value2); } - else if (IsFunction) + else if (Function is { } __value3) { - function?.Invoke(Function!); + function?.Invoke(__value3); } - else if (IsGoogleMaps) + else if (GoogleMaps is { } __value4) { - googleMaps?.Invoke(GoogleMaps!); + googleMaps?.Invoke(__value4); } - else if (IsGoogleSearch) + else if (GoogleSearch is { } __value5) { - googleSearch?.Invoke(GoogleSearch!); + googleSearch?.Invoke(__value5); } - else if (IsMCPServer) + else if (MCPServer is { } __value6) { - mCPServer?.Invoke(MCPServer!); + mCPServer?.Invoke(__value6); } - else if (IsRetrieval) + else if (Retrieval is { } __value7) { - retrieval?.Invoke(Retrieval!); + retrieval?.Invoke(__value7); } - else if (IsURLContext) + else if (URLContext is { } __value8) { - uRLContext?.Invoke(URLContext!); + uRLContext?.Invoke(__value8); } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TranscriptionMode.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TranscriptionMode.g.cs index f40c819f0..d0c3df17a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TranscriptionMode.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TranscriptionMode.g.cs @@ -42,8 +42,8 @@ public bool TryPickSmart( /// /// /// - public global::Google.Gemini.NextGen.SmartTranscriptionMode PickSmart() => IsSmart - ? Smart! + public global::Google.Gemini.NextGen.SmartTranscriptionMode PickSmart() => Smart is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Smart' but the value was {ToString()}."); /// @@ -79,8 +79,8 @@ public bool TryPickVerbatim( /// /// /// - public global::Google.Gemini.NextGen.VerbatimTranscriptionMode PickVerbatim() => IsVerbatim - ? Verbatim! + public global::Google.Gemini.NextGen.VerbatimTranscriptionMode PickVerbatim() => Verbatim is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Verbatim' but the value was {ToString()}."); /// /// @@ -177,13 +177,13 @@ public bool Validate() Validate(); } - if (IsSmart && smart != null) + if (Smart is { } __value0 && smart != null) { - return smart(Smart!); + return smart(__value0); } - else if (IsVerbatim && verbatim != null) + else if (Verbatim is { } __value1 && verbatim != null) { - return verbatim(Verbatim!); + return verbatim(__value1); } return default(TResult); @@ -203,13 +203,13 @@ public void Match( Validate(); } - if (IsSmart) + if (Smart is { } __value0) { - smart?.Invoke(Smart!); + smart?.Invoke(__value0); } - else if (IsVerbatim) + else if (Verbatim is { } __value1) { - verbatim?.Invoke(Verbatim!); + verbatim?.Invoke(__value1); } } @@ -226,13 +226,13 @@ public void Switch( Validate(); } - if (IsSmart) + if (Smart is { } __value0) { - smart?.Invoke(Smart!); + smart?.Invoke(__value0); } - else if (IsVerbatim) + else if (Verbatim is { } __value1) { - verbatim?.Invoke(Verbatim!); + verbatim?.Invoke(__value1); } } 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 21792f38a..9bbc2ce80 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 @@ -50,13 +50,11 @@ public sealed partial class Trigger public string Id { get; set; } = default!; /// - /// The Interaction resource.
- /// Example: {"created":"2025-12-04T15:01:45Z","id":"v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg","model":"gemini-3.6-flash","object":"interaction","status":"completed","steps":[{"type":"model_output","content":[{"type":"text","text":"Hello! I\u0027m doing well, functioning as expected. Thank you for asking! How are you doing today?"}]}],"updated":"2025-12-04T15:01:45Z","usage":{"input_tokens_by_modality":[{"modality":"text","tokens":7}],"total_cached_tokens":0,"total_input_tokens":7,"total_output_tokens":23,"total_thought_tokens":49,"total_tokens":79,"total_tool_use_tokens":0}} + /// Interaction for generating the completion using agents. ///
- /// {"created":"2025-12-04T15:01:45Z","id":"v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg","model":"gemini-3.6-flash","object":"interaction","status":"completed","steps":[{"type":"model_output","content":[{"type":"text","text":"Hello! I\u0027m doing well, functioning as expected. Thank you for asking! How are you doing today?"}]}],"updated":"2025-12-04T15:01:45Z","usage":{"input_tokens_by_modality":[{"modality":"text","tokens":7}],"total_cached_tokens":0,"total_input_tokens":7,"total_output_tokens":23,"total_thought_tokens":49,"total_tokens":79,"total_tool_use_tokens":0}} [global::System.Text.Json.Serialization.JsonPropertyName("interaction")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.Interaction Interaction { get; set; } + public required global::Google.Gemini.NextGen.CreateAgentInteraction CreateAgentInteraction { get; set; } /// /// Output only. The time when the trigger was last paused.
@@ -139,9 +137,8 @@ public sealed partial class Trigger /// /// Initializes a new instance of the class. /// - /// - /// The Interaction resource.
- /// Example: {"created":"2025-12-04T15:01:45Z","id":"v1_ChdXS0l4YWZXTk9xbk0xZThQczhEcmlROBIXV0tJeGFmV05PcW5NMWU4UHM4RHJpUTg","model":"gemini-3.6-flash","object":"interaction","status":"completed","steps":[{"type":"model_output","content":[{"type":"text","text":"Hello! I\u0027m doing well, functioning as expected. Thank you for asking! How are you doing today?"}]}],"updated":"2025-12-04T15:01:45Z","usage":{"input_tokens_by_modality":[{"modality":"text","tokens":7}],"total_cached_tokens":0,"total_input_tokens":7,"total_output_tokens":23,"total_thought_tokens":49,"total_tokens":79,"total_tool_use_tokens":0}} + /// + /// Interaction for generating the completion using agents. /// /// /// Required. The cron schedule on which the trigger should run.
@@ -208,7 +205,7 @@ public sealed partial class Trigger [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Trigger( - global::Google.Gemini.NextGen.Interaction interaction, + global::Google.Gemini.NextGen.CreateAgentInteraction createAgentInteraction, string schedule, string timeZone, int? consecutiveFailureCount, @@ -232,7 +229,7 @@ public Trigger( this.EnvironmentId = environmentId; this.ExecutionTimeoutSeconds = executionTimeoutSeconds; this.Id = id; - this.Interaction = interaction ?? throw new global::System.ArgumentNullException(nameof(interaction)); + this.CreateAgentInteraction = createAgentInteraction ?? throw new global::System.ArgumentNullException(nameof(createAgentInteraction)); this.LastPauseTime = lastPauseTime; this.LastResumeTime = lastResumeTime; this.LastRunTime = lastRunTime; 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 index 9c74e1fe4..bce97858f 100644 --- 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 @@ -27,12 +27,11 @@ public sealed partial class TriggerCreateParams public int? ExecutionTimeoutSeconds { get; set; } /// - /// Required. The interaction request template to be executed. + /// Interaction for generating the completion using agents. /// [global::System.Text.Json.Serialization.JsonPropertyName("interaction")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.OneOf Interaction { get; set; } + public required global::Google.Gemini.NextGen.CreateAgentInteraction CreateAgentInteraction { get; set; } /// /// Optional. The maximum number of consecutive failures allowed before
@@ -65,8 +64,8 @@ public sealed partial class TriggerCreateParams /// /// Initializes a new instance of the class. /// - /// - /// Required. The interaction request template to be executed. + /// + /// Interaction for generating the completion using agents. /// /// /// Required. The cron schedule on which the trigger should run.
@@ -92,7 +91,7 @@ public sealed partial class TriggerCreateParams [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TriggerCreateParams( - global::Google.Gemini.NextGen.OneOf interaction, + global::Google.Gemini.NextGen.CreateAgentInteraction createAgentInteraction, string schedule, string timeZone, string? displayName, @@ -103,7 +102,7 @@ public TriggerCreateParams( this.DisplayName = displayName; this.EnvironmentId = environmentId; this.ExecutionTimeoutSeconds = executionTimeoutSeconds; - this.Interaction = interaction; + this.CreateAgentInteraction = createAgentInteraction ?? throw new global::System.ArgumentNullException(nameof(createAgentInteraction)); this.MaxConsecutiveFailures = maxConsecutiveFailures; this.Schedule = schedule ?? throw new global::System.ArgumentNullException(nameof(schedule)); this.TimeZone = timeZone ?? throw new global::System.ArgumentNullException(nameof(timeZone)); 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 6eae6623a..e9e98fb72 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 @@ -37,8 +37,10 @@ public sealed partial class Voice /// /// Output only. The timestamp at which a custom stored voice (`store = true`)
- /// or replicated voice key (`store = false`) expires. Unset for prebuilt
- /// catalog voices (`"prebuilt"`), which do not expire.
+ /// or replicated voice key (`store = false`) expires. For custom stored voices
+ /// (`store = true`), this expiration time is extended when the voice is used
+ /// for speech synthesis or as a `base_voice` in `CreateVoice`. Unset for
+ /// prebuilt catalog voices (`"prebuilt"`), which do not expire.
/// Included only in responses ///
[global::System.Text.Json.Serialization.JsonPropertyName("expire_time")] @@ -178,8 +180,10 @@ public sealed partial class Voice /// /// /// Output only. The timestamp at which a custom stored voice (`store = true`)
- /// or replicated voice key (`store = false`) expires. Unset for prebuilt
- /// catalog voices (`"prebuilt"`), which do not expire.
+ /// or replicated voice key (`store = false`) expires. For custom stored voices
+ /// (`store = true`), this expiration time is extended when the voice is used
+ /// for speech synthesis or as a `base_voice` in `CreateVoice`. Unset for
+ /// prebuilt catalog voices (`"prebuilt"`), which do not expire.
/// Included only in responses /// /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.2.g.cs index b30c412fd..cee3d2a79 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.2.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.2.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// /// @@ -176,13 +176,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } return default(TResult); @@ -202,13 +202,13 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } @@ -225,13 +225,13 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.3.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.3.g.cs index e09c20c92..aa447f0cd 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.3.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OneOf.3.g.cs @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// /// @@ -241,17 +241,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } return default(TResult); @@ -273,17 +273,17 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } @@ -301,17 +301,17 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } } 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 index bfaf37cf7..866426952 100644 --- 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 @@ -41,8 +41,8 @@ public bool TryPickValue1( /// /// /// - public T1 PickValue1() => IsValue1 - ? Value1! + public T1 PickValue1() => Value1 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}."); /// @@ -78,8 +78,8 @@ public bool TryPickValue2( /// /// /// - public T2 PickValue2() => IsValue2 - ? Value2! + public T2 PickValue2() => Value2 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}."); /// @@ -115,8 +115,8 @@ public bool TryPickValue3( /// /// /// - public T3 PickValue3() => IsValue3 - ? Value3! + public T3 PickValue3() => Value3 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}."); /// @@ -152,8 +152,8 @@ public bool TryPickValue4( /// /// /// - public T4 PickValue4() => IsValue4 - ? Value4! + public T4 PickValue4() => Value4 is { } value + ? value : throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}."); /// /// @@ -306,21 +306,21 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (Value1 is { } __value0 && value1 != null) { - return value1(Value1!); + return value1(__value0); } - else if (IsValue2 && value2 != null) + else if (Value2 is { } __value1 && value2 != null) { - return value2(Value2!); + return value2(__value1); } - else if (IsValue3 && value3 != null) + else if (Value3 is { } __value2 && value3 != null) { - return value3(Value3!); + return value3(__value2); } - else if (IsValue4 && value4 != null) + else if (Value4 is { } __value3 && value4 != null) { - return value4(Value4!); + return value4(__value3); } return default(TResult); @@ -344,21 +344,21 @@ public void Match( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } } @@ -377,21 +377,21 @@ public void Switch( Validate(); } - if (IsValue1) + if (Value1 is { } __value0) { - value1?.Invoke(Value1!); + value1?.Invoke(__value0); } - else if (IsValue2) + else if (Value2 is { } __value1) { - value2?.Invoke(Value2!); + value2?.Invoke(__value1); } - else if (IsValue3) + else if (Value3 is { } __value2) { - value3?.Invoke(Value3!); + value3?.Invoke(__value2); } - else if (IsValue4) + else if (Value4 is { } __value3) { - value4?.Invoke(Value4!); + value4?.Invoke(__value3); } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OptionsSupport.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OptionsSupport.g.cs index 78160c3d6..a0ed7abb6 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OptionsSupport.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.OptionsSupport.g.cs @@ -241,7 +241,8 @@ public sealed class AutoSDKAuthorizationProviderHook : global::Google.Gemini.Nex { context = context ?? throw new global::System.ArgumentNullException(nameof(context)); - if (context.Request == null) + var request = context.Request; + if (request == null) { return; } @@ -251,10 +252,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::Google.Gemini.Nex { for (var index = 0; index < perRequest.Count; index++) { - ApplyAuthorization(context.Request, perRequest[index]); + ApplyAuthorization(request, perRequest[index]); } - global::Google.Gemini.NextGen.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::Google.Gemini.NextGen.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); return; } @@ -272,10 +273,10 @@ public sealed class AutoSDKAuthorizationProviderHook : global::Google.Gemini.Nex for (var index = 0; index < resolved.Count; index++) { - ApplyAuthorization(context.Request, resolved[index]); + ApplyAuthorization(request, resolved[index]); } - global::Google.Gemini.NextGen.AutoSDKHttpRequestOptions.StampAuthorizationOverride(context.Request); + global::Google.Gemini.NextGen.AutoSDKHttpRequestOptions.StampAuthorizationOverride(request); } private static void ApplyAuthorization( @@ -486,7 +487,7 @@ public sealed class AutoSDKHookContext /// /// The outgoing HTTP request for the current attempt. /// - public global::System.Net.Http.HttpRequestMessage Request { get; set; } = null!; + public global::System.Net.Http.HttpRequestMessage? Request { get; set; } /// /// The HTTP response when one was received. @@ -501,7 +502,7 @@ public sealed class AutoSDKHookContext /// /// The client-wide runtime options. /// - public global::Google.Gemini.NextGen.AutoSDKClientOptions ClientOptions { get; set; } = null!; + public global::Google.Gemini.NextGen.AutoSDKClientOptions? ClientOptions { get; set; } /// /// The per-request runtime options. 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.Create.g.cs index ca511fd1d..857c1e5cd 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.Create.g.cs @@ -49,6 +49,20 @@ partial void ProcessCreateResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// + /// + /// curl -X POST https://generativelanguage.googleapis.com/v1beta/triggers \
+ /// -H "x-goog-api-key: $GEMINI_API_KEY" \
+ /// -H "Content-Type: application/json" \
+ /// -d '{
+ /// "schedule": "0 9 * * *",
+ /// "time_zone": "America/New_York",
+ /// "interaction": {
+ /// "agent": "antigravity-preview-05-2026",
+ /// "input": "Summarize top news stories.",
+ /// "environment": "remote"
+ /// }
+ /// }' + ///
public async global::System.Threading.Tasks.Task CreateAsync( global::Google.Gemini.NextGen.TriggerCreateParams request, @@ -72,6 +86,20 @@ partial void ProcessCreateResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// + /// + /// curl -X POST https://generativelanguage.googleapis.com/v1beta/triggers \
+ /// -H "x-goog-api-key: $GEMINI_API_KEY" \
+ /// -H "Content-Type: application/json" \
+ /// -d '{
+ /// "schedule": "0 9 * * *",
+ /// "time_zone": "America/New_York",
+ /// "interaction": {
+ /// "agent": "antigravity-preview-05-2026",
+ /// "input": "Summarize top news stories.",
+ /// "environment": "remote"
+ /// }
+ /// }' + ///
public async global::System.Threading.Tasks.Task> CreateAsResponseAsync( global::Google.Gemini.NextGen.TriggerCreateParams request, @@ -180,7 +208,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/triggers\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +242,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/triggers\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +283,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/triggers\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +331,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/triggers\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +353,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/triggers\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -483,8 +511,8 @@ partial void ProcessCreateResponseContent( /// /// Optional. The execution timeout for the triggered interaction. /// - /// - /// Required. The interaction request template to be executed. + /// + /// Interaction for generating the completion using agents. /// /// /// Optional. The maximum number of consecutive failures allowed before
@@ -501,7 +529,7 @@ partial void ProcessCreateResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateAsync( - global::Google.Gemini.NextGen.OneOf interaction, + global::Google.Gemini.NextGen.CreateAgentInteraction createAgentInteraction, string schedule, string timeZone, string? displayName = default, @@ -516,7 +544,7 @@ partial void ProcessCreateResponseContent( DisplayName = displayName, EnvironmentId = environmentId, ExecutionTimeoutSeconds = executionTimeoutSeconds, - Interaction = interaction, + CreateAgentInteraction = createAgentInteraction, MaxConsecutiveFailures = maxConsecutiveFailures, Schedule = schedule, TimeZone = timeZone, 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.Delete.g.cs index 7d9cc23b1..a7f6052a8 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.Delete.g.cs @@ -145,7 +145,7 @@ partial void ProcessDeleteResponseContent( PrepareDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.Get.g.cs index c5800fe49..d27cf9de9 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.Get.g.cs @@ -145,7 +145,7 @@ partial void ProcessGetResponseContent( PrepareGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.List.g.cs index c479ff877..6966b2bf4 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.List.g.cs @@ -190,7 +190,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/triggers\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -224,7 +224,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/triggers\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -265,7 +265,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/triggers\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -313,7 +313,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/triggers\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -335,7 +335,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/triggers\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.TriggersClient.ListExecutions.g.cs index 76ca29c91..628e2a858 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.TriggersClient.ListExecutions.g.cs @@ -167,7 +167,7 @@ partial void ProcessListExecutionsResponseContent( httpRequestMessage: __httpRequest, pageSize: pageSize, pageToken: pageToken, - triggerId: triggerId!); + triggerId: triggerId); return __httpRequest; } @@ -189,7 +189,7 @@ partial void ProcessListExecutionsResponseContent( pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -223,7 +223,7 @@ partial void ProcessListExecutionsResponseContent( pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -264,7 +264,7 @@ partial void ProcessListExecutionsResponseContent( pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessListExecutionsResponseContent( pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -334,7 +334,7 @@ partial void ProcessListExecutionsResponseContent( pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.Run.g.cs index df26579b6..2889c67ff 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.Run.g.cs @@ -145,7 +145,7 @@ partial void ProcessRunResponseContent( PrepareRunRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - triggerId: triggerId!); + triggerId: triggerId); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessRunResponseContent( pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessRunResponseContent( pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessRunResponseContent( pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessRunResponseContent( pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessRunResponseContent( pathTemplate: "$\"/v1beta/triggers/{triggerId}/executions\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.Update.g.cs index dcadcbef9..9b3128d3d 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.Update.g.cs @@ -164,7 +164,7 @@ partial void ProcessUpdateResponseContent( PrepareUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessUpdateResponseContent( pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessUpdateResponseContent( pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessUpdateResponseContent( pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessUpdateResponseContent( pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessUpdateResponseContent( pathTemplate: "$\"/v1beta/triggers/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 d852aea25..dac265b8f 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 @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Google.Gemini.NextGen { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + 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")] @@ -62,6 +57,9 @@ public sealed partial class VoicesSourceGenerationContext : global::System.Text. { 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(); 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.Create.g.cs index 9c4499bfd..51b3e77da 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.Create.g.cs @@ -214,7 +214,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -248,7 +248,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -289,7 +289,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -337,7 +337,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -359,7 +359,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/voices\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -513,9 +513,11 @@ partial void ProcessCreateResponseContent( /// Optional. Whether the created voice is persisted and managed by Google.
/// * When `true`, Google stores the voice and returns `Voice.id` (for example,
/// `voice_abc123def456`), which can be managed via `GetVoice`, `ListVoices`,
- /// and `DeleteVoice` and referenced by ID in synthesis requests. Projects
- /// are subject to a maximum active stored voice quota; exceeding the quota
- /// returns `RESOURCE_EXHAUSTED`.
+ /// and `DeleteVoice` and referenced by ID in synthesis requests. Stored
+ /// voices expire after 1 year of inactivity; using a stored voice in speech
+ /// synthesis or as a `base_voice` in `CreateVoice` extends its
+ /// `expire_time`. Projects are subject to a maximum active stored voice
+ /// quota; exceeding the quota returns `RESOURCE_EXHAUSTED`.
/// * When `false` (default), the voice is not stored by Google and `Voice.key`
/// (for example, `voicekey_...`) is returned for client-side storage and
/// synthesis. Optional discovery metadata fields on `voice` are not
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.Delete.g.cs index 30c9d60f3..0b7a64a48 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.Delete.g.cs @@ -155,7 +155,7 @@ partial void ProcessDeleteResponseContent( PrepareDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - voicesId: voicesId!); + voicesId: voicesId); return __httpRequest; } @@ -177,7 +177,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -211,7 +211,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -252,7 +252,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -300,7 +300,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -322,7 +322,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.Get.g.cs index cb403688f..fb6510746 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.Get.g.cs @@ -157,7 +157,7 @@ partial void ProcessGetResponseContent( PrepareGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - voicesId: voicesId!); + voicesId: voicesId); return __httpRequest; } @@ -179,7 +179,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -213,7 +213,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -254,7 +254,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -302,7 +302,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -324,7 +324,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/voices/{voicesId}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.List.g.cs index e4dce9cb8..aa353af0d 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.List.g.cs @@ -280,7 +280,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/voices\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -314,7 +314,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/voices\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -355,7 +355,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/voices\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -403,7 +403,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/voices\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -425,7 +425,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/voices\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 c65fe0ae6..313b445b7 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 @@ -1,19 +1,14 @@ #nullable enable -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - namespace Google.Gemini.NextGen { /// /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - })] + 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")] @@ -60,6 +55,9 @@ public sealed partial class WebhooksSourceGenerationContext : global::System.Tex { 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(); 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.Create.g.cs index 5f259f159..f16619444 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.Create.g.cs @@ -178,7 +178,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -212,7 +212,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -253,7 +253,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -301,7 +301,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -323,7 +323,7 @@ partial void ProcessCreateResponseContent( pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.Delete.g.cs index 884a7caef..45ed3595f 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.Delete.g.cs @@ -145,7 +145,7 @@ partial void ProcessDeleteResponseContent( PrepareDeleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessDeleteResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "DELETE", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.Get.g.cs index a5fb8694c..cc32f9f1a 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.Get.g.cs @@ -145,7 +145,7 @@ partial void ProcessGetResponseContent( PrepareGetRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!); + id: id); return __httpRequest; } @@ -167,7 +167,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -201,7 +201,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -242,7 +242,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -290,7 +290,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -312,7 +312,7 @@ partial void ProcessGetResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.List.g.cs index d2220278b..6bf01b09f 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.List.g.cs @@ -180,7 +180,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -214,7 +214,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -255,7 +255,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -303,7 +303,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -325,7 +325,7 @@ partial void ProcessListResponseContent( pathTemplate: "\"/v1beta/webhooks\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 index 2b890f678..4f723bb8e 100644 --- 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 @@ -164,7 +164,7 @@ partial void ProcessPingResponseContent( PreparePingRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessPingResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}:ping\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessPingResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}:ping\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessPingResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}:ping\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessPingResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}:ping\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessPingResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}:ping\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 126a1d3ce..237e55ef9 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 @@ -164,7 +164,7 @@ partial void ProcessRotateSigningSecretResponseContent( PrepareRotateSigningSecretRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, request: request); return __httpRequest; @@ -187,7 +187,7 @@ partial void ProcessRotateSigningSecretResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}:rotateSigningSecret\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -221,7 +221,7 @@ partial void ProcessRotateSigningSecretResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}:rotateSigningSecret\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -262,7 +262,7 @@ partial void ProcessRotateSigningSecretResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}:rotateSigningSecret\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -310,7 +310,7 @@ partial void ProcessRotateSigningSecretResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}:rotateSigningSecret\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -332,7 +332,7 @@ partial void ProcessRotateSigningSecretResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}:rotateSigningSecret\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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.Update.g.cs index 43dac6b98..c366cd297 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.Update.g.cs @@ -175,7 +175,7 @@ partial void ProcessUpdateResponseContent( PrepareUpdateRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, - id: id!, + id: id, updateMask: updateMask, request: request); @@ -199,7 +199,7 @@ partial void ProcessUpdateResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -233,7 +233,7 @@ partial void ProcessUpdateResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -274,7 +274,7 @@ partial void ProcessUpdateResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -322,7 +322,7 @@ partial void ProcessUpdateResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -344,7 +344,7 @@ partial void ProcessUpdateResponseContent( pathTemplate: "$\"/v1beta/webhooks/{id}\"", httpMethod: "PATCH", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, 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 0ee520efe..2e6edb68d 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/autosdk.generated-examples.json +++ b/src/libs/Google.Gemini/NextGen/Generated/autosdk.generated-examples.json @@ -39,7 +39,7 @@ "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 \u0022max_total_tokens\u0022: \u0022string\u0022,\n \u0022model\u0022: \u0022string\u0022,\n \u0022type\u0022: \u0022string\u0022\n },\n \u0022background\u0022: true,\n \u0022created\u0022: \u0022string\u0022,\n \u0022environment\u0022: {\n \u0022env\u0022: {},\n \u0022environment_id\u0022: \u0022string\u0022,\n \u0022network\u0022: {\n \u0022allowlist\u0022: []\n },\n \u0022sources\u0022: [\n {}\n ],\n \u0022type\u0022: \u0022string\u0022\n },\n \u0022environment_id\u0022: \u0022string\u0022,\n \u0022id\u0022: \u0022string\u0022,\n \u0022input\u0022: {\n \u0022channels\u0022: 0,\n \u0022data\u0022: \u0022\u0022,\n \u0022mime_type\u0022: \u0022audio/wav\u0022,\n \u0022sample_rate\u0022: 0,\n \u0022type\u0022: \u0022string\u0022,\n \u0022uri\u0022: \u0022string\u0022\n },\n \u0022labels\u0022: {},\n \u0022previous_interaction_id\u0022: \u0022string\u0022,\n \u0022response_format\u0022: {\n \u0022bit_rate\u0022: 0,\n \u0022delivery\u0022: \u0022inline\u0022,\n \u0022mime_type\u0022: \u0022audio/mp3\u0022,\n \u0022sample_rate\u0022: 0,\n \u0022type\u0022: \u0022string\u0022\n },\n \u0022response_mime_type\u0022: \u0022string\u0022,\n \u0022response_modalities\u0022: [\n \u0022text\u0022\n ],\n \u0022safety_settings\u0022: [\n {\n \u0022method\u0022: \u0022severity\u0022,\n \u0022threshold\u0022: \u0022block_low_and_above\u0022,\n \u0022type\u0022: \u0022hate_speech\u0022\n }\n ],\n \u0022service_tier\u0022: \u0022flex\u0022,\n \u0022status\u0022: \u0022in_progress\u0022,\n \u0022store\u0022: true,\n \u0022stream\u0022: true,\n \u0022system_instruction\u0022: \u0022string\u0022,\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022string\u0022\n }\n ],\n \u0022updated\u0022: \u0022string\u0022,\n \u0022webhook_config\u0022: {\n \u0022uris\u0022: [\n \u0022string\u0022\n ],\n \u0022user_metadata\u0022: {}\n }\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": "### 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 \u0022max_total_tokens\u0022: \u0022string\u0022,\n \u0022model\u0022: \u0022string\u0022,\n \u0022type\u0022: \u0022string\u0022\n },\n \u0022background\u0022: true,\n \u0022environment\u0022: {\n \u0022env\u0022: {},\n \u0022environment_id\u0022: \u0022string\u0022,\n \u0022network\u0022: {\n \u0022allowlist\u0022: []\n },\n \u0022sources\u0022: [\n {}\n ],\n \u0022type\u0022: \u0022string\u0022\n },\n \u0022input\u0022: {\n \u0022channels\u0022: 0,\n \u0022data\u0022: \u0022\u0022,\n \u0022mime_type\u0022: \u0022audio/wav\u0022,\n \u0022sample_rate\u0022: 0,\n \u0022type\u0022: \u0022string\u0022,\n \u0022uri\u0022: \u0022string\u0022\n },\n \u0022labels\u0022: {},\n \u0022previous_interaction_id\u0022: \u0022string\u0022,\n \u0022response_format\u0022: {\n \u0022bit_rate\u0022: 0,\n \u0022delivery\u0022: \u0022inline\u0022,\n \u0022mime_type\u0022: \u0022audio/mp3\u0022,\n \u0022sample_rate\u0022: 0,\n \u0022type\u0022: \u0022string\u0022\n },\n \u0022response_mime_type\u0022: \u0022string\u0022,\n \u0022response_modalities\u0022: [\n \u0022text\u0022\n ],\n \u0022safety_settings\u0022: [\n {\n \u0022method\u0022: \u0022severity\u0022,\n \u0022threshold\u0022: \u0022block_low_and_above\u0022,\n \u0022type\u0022: \u0022hate_speech\u0022\n }\n ],\n \u0022service_tier\u0022: \u0022flex\u0022,\n \u0022store\u0022: true,\n \u0022stream\u0022: true,\n \u0022system_instruction\u0022: \u0022string\u0022,\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022string\u0022\n }\n ],\n \u0022webhook_config\u0022: {\n \u0022uris\u0022: [\n \u0022string\u0022\n ],\n \u0022user_metadata\u0022: {}\n }\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", "Format": "http", "OperationId": "CreateInteraction", "Setup": null diff --git a/src/libs/Google.Gemini/nextgen.openapi.json b/src/libs/Google.Gemini/nextgen.openapi.json index 1c99a311d..95e606130 100644 --- a/src/libs/Google.Gemini/nextgen.openapi.json +++ b/src/libs/Google.Gemini/nextgen.openapi.json @@ -137,6 +137,11 @@ "label": "list", "lang": "java", "source": "import com.google.genai.gaos.models.agents.Agent;\nimport com.google.genai.gaos.models.agents.AgentListResponse;\nimport com.google.genai.Client;\nimport com.google.genai.gaos.models.operations.ListAgentsResponse;\n\nClient client = new Client();\nListAgentsResponse response = client.agents.list().call();\nList agents =\n response.agentListResponse().flatMap(AgentListResponse::agents).orElse(List.of());\nfor (Agent agent : agents) {\n agent.id().ifPresent(System.out::println);\n}\n" + }, + { + "label": "list", + "lang": "go", + "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.Agents.List(ctx, operations.ListAgentsRequest{})\n if err != nil {\n log.Fatal(err)\n }\n\n if res.AgentListResponse != nil {\n for _, agent := range res.AgentListResponse.Agents {\n if agent.ID != nil {\n fmt.Println(*agent.ID)\n }\n }\n }\n}\n" } ] }, @@ -238,6 +243,21 @@ "label": "fork_from_env", "lang": "java", "source": "import com.google.genai.gaos.models.agents.Agent;\nimport com.google.genai.gaos.models.interactions.AgentOption;\nimport com.google.genai.gaos.models.agents.BaseEnvironment;\nimport com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.CreateAgentInteraction;\nimport com.google.genai.gaos.models.interactions.CreateAgentInteractionEnvironment;\nimport com.google.genai.gaos.models.operations.CreateAgentResponse;\nimport com.google.genai.gaos.models.operations.CreateInteractionRequestBody;\nimport com.google.genai.gaos.models.operations.CreateInteractionResponse;\nimport com.google.genai.gaos.models.interactions.Interaction;\nimport com.google.genai.gaos.models.interactions.InteractionsInput;\nimport com.google.genai.gaos.models.interactions.Step;\n\nClient client = new Client();\n\n// Step 1: Set up the environment interactively.\nCreateAgentInteraction params =\n CreateAgentInteraction.builder()\n .agent(AgentOption.of(\"antigravity-preview-05-2026\"))\n .input(\n InteractionsInput.of(\n \"Write a basic Hello World template to /workspace/template.py.\"))\n .environment(CreateAgentInteractionEnvironment.of(\"remote\"))\n .build();\nCreateInteractionResponse interactionResponse =\n client.interactions.create(CreateInteractionRequestBody.of(params));\nInteraction interaction =\n interactionResponse\n .interaction()\n .orElseThrow(() -> new RuntimeException(\"No interaction returned\"));\n\n// Step 2: Fork that environment into a named agent.\nString agentId = \"my-data-analyst-\" + UUID.randomUUID().toString().substring(0, 8);\nAgent agent =\n Agent.builder()\n .id(agentId)\n .baseAgent(\"antigravity-preview-05-2026\")\n .systemInstruction(\n \"You are a data analyst. Use the template at /workspace/template.py for all\"\n + \" reports.\")\n .baseEnvironment(BaseEnvironment.of(interaction.environmentId().orElse(\"\")))\n .build();\nCreateAgentResponse agentResponse = client.agents.create(agent);\nSystem.out.println(\"Forked agent: \" + agentResponse.agent().flatMap(Agent::id).orElse(\"\"));\n" + }, + { + "label": "create", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"time\"\n \"google.golang.org/genai\"\n gaos_agents \"google.golang.org/genai/interactions/models/agents\"\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 agentID := fmt.Sprintf(\"research-assistant-%d\", time.Now().UnixNano())\n req := operations.CreateAgentRequest{\n Body: gaos_agents.Agent{\n ID: genai.Ptr(agentID),\n BaseAgent: genai.Ptr(\"antigravity-preview-05-2026\"),\n Description: genai.Ptr(\"A helpful research assistant.\"),\n SystemInstruction: genai.Ptr(\"You are a helpful research assistant.\"),\n BaseEnvironment: genai.Ptr(gaos_agents.NewBaseEnvironment(\"remote\")),\n Tools: []gaos_agents.AgentTool{\n gaos_agents.NewAgentTool(gaos_interactions.GoogleSearch{}),\n },\n },\n }\n\n res, err := client.Agents.Create(ctx, req)\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Agent != nil && res.Agent.ID != nil {\n fmt.Println(*res.Agent.ID)\n }\n}\n" + }, + { + "label": "with_sources", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"time\"\n \"google.golang.org/genai\"\n gaos_agents \"google.golang.org/genai/interactions/models/agents\"\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 agentID := fmt.Sprintf(\"data-analyst-%d\", time.Now().UnixNano())\n env := gaos_interactions.Environment{\n Sources: []gaos_interactions.Source{\n {\n Type: genai.Ptr(gaos_interactions.SourceTypeInline),\n Target: genai.Ptr(\".agents/AGENTS.md\"),\n Content: genai.Ptr(\"Always use matplotlib for charts. Include a summary table in every report.\"),\n },\n {\n Type: genai.Ptr(gaos_interactions.SourceTypeRepository),\n Source: genai.Ptr(\"https://github.com/my-org/analysis-templates\"),\n Target: genai.Ptr(\"/workspace/templates\"),\n },\n },\n }\n\n req := operations.CreateAgentRequest{\n Body: gaos_agents.Agent{\n ID: genai.Ptr(agentID),\n BaseAgent: genai.Ptr(\"antigravity-preview-05-2026\"),\n SystemInstruction: genai.Ptr(\"You are a data analyst. Always include visualizations and export results as PDF.\"),\n BaseEnvironment: genai.Ptr(gaos_agents.NewBaseEnvironment(env)),\n },\n }\n\n res, err := client.Agents.Create(ctx, req)\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Agent != nil && res.Agent.ID != nil {\n fmt.Printf(\"Created agent: %s\\n\", *res.Agent.ID)\n }\n}\n" + }, + { + "label": "fork_from_env", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"time\"\n \"google.golang.org/genai\"\n gaos_agents \"google.golang.org/genai/interactions/models/agents\"\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 // Step 1: Set up the environment interactively.\n interactionReq := operations.CreateInteractionRequest{\n Body: operations.NewCreateInteractionRequestBody(gaos_interactions.CreateAgentInteraction{\n Agent: gaos_interactions.AgentOption(\"antigravity-preview-05-2026\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"Write a basic Hello World template to /workspace/template.py.\")),\n Environment: genai.Ptr(gaos_interactions.NewCreateAgentInteractionEnvironment(\"remote\")),\n }),\n }\n interactionRes, err := client.Interactions.Create(ctx, interactionReq)\n if err != nil {\n log.Fatal(err)\n }\n envID := \"\"\n if interactionRes.Interaction != nil && interactionRes.Interaction.EnvironmentID != nil {\n envID = *interactionRes.Interaction.EnvironmentID\n }\n\n // Step 2: Fork that environment into a named agent.\n agentID := fmt.Sprintf(\"my-data-analyst-%d\", time.Now().UnixNano())\n req := operations.CreateAgentRequest{\n Body: gaos_agents.Agent{\n ID: genai.Ptr(agentID),\n BaseAgent: genai.Ptr(\"antigravity-preview-05-2026\"),\n SystemInstruction: genai.Ptr(\"You are a data analyst. Use the template at /workspace/template.py for all reports.\"),\n BaseEnvironment: genai.Ptr(gaos_agents.NewBaseEnvironment(envID)),\n },\n }\n res, err := client.Agents.Create(ctx, req)\n if err != nil {\n log.Fatal(err)\n }\n if res.Agent != nil && res.Agent.ID != nil {\n fmt.Printf(\"Forked agent: %s\\n\", *res.Agent.ID)\n }\n}\n" } ] } @@ -306,6 +326,11 @@ "label": "delete", "lang": "java", "source": "import com.google.genai.gaos.models.agents.Agent;\nimport com.google.genai.Client;\n\nClient client = new Client();\n\n\nclient.agents.delete(agentId);\nSystem.out.println(\"Agent deleted successfully.\");\n" + }, + { + "label": "delete", + "lang": "go", + "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.Agents.Delete(ctx, operations.DeleteAgentRequest{ID: agentID})\n if err != nil {\n log.Fatal(err)\n }\n fmt.Println(\"Agent deleted successfully.\")\n}\n" } ] }, @@ -384,6 +409,11 @@ "label": "get", "lang": "java", "source": "import com.google.genai.gaos.models.agents.Agent;\nimport com.google.genai.Client;\nimport com.google.genai.gaos.models.operations.GetAgentResponse;\n\nClient client = new Client();\n\n\nGetAgentResponse response = client.agents.get(agentId);\nAgent agent = response.agent().orElseThrow(() -> new RuntimeException(\"No agent returned\"));\nSystem.out.println(agent.id().orElse(\"\"));\n" + }, + { + "label": "get", + "lang": "go", + "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.Agents.Get(ctx, operations.GetAgentRequest{ID: agentID})\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Agent != nil && res.Agent.ID != nil {\n fmt.Println(*res.Agent.ID)\n }\n}\n" } ] } @@ -668,6 +698,11 @@ "label": "list", "lang": "java", "source": "import com.google.genai.Client;\nimport com.google.genai.gaos.models.environments.Environment;\nimport com.google.genai.gaos.models.operations.ListEnvironmentsResponse;\n\nClient client = new Client();\nListEnvironmentsResponse response = client.environments.listEnvironmentsDirect();\nfor (com.google.genai.gaos.models.environments.Environment env :\n response.listEnvironmentsResponse().flatMap(res -> res.environments()).orElse(List.of())) {\n System.out.println(env.id().orElse(\"\"));\n}\n" + }, + { + "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" } ] }, @@ -741,6 +776,16 @@ "label": "copy", "lang": "java", "source": "import com.google.genai.Client;\nimport com.google.genai.gaos.models.environments.CreateEnvironmentRequest;\nimport com.google.genai.gaos.models.environments.Environment;\n\nClient client = new Client();\n\n\nCreateEnvironmentRequest request =\n CreateEnvironmentRequest.builder().fromEnvironment(sourceEnvId).build();\ncom.google.genai.gaos.models.environments.Environment environment =\n client.environments.createEnvironment(request).environment().orElseThrow();\nSystem.out.println(environment.id().orElse(\"\"));\n" + }, + { + "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" + }, + { + "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" } ] } @@ -842,6 +887,16 @@ "label": "get_file", "lang": "java", "source": "import com.google.genai.Client;\nimport com.google.genai.gaos.models.environments.EnvironmentFile;\nimport com.google.genai.gaos.models.operations.GetEnvironmentFilesRequest;\nimport com.google.genai.gaos.models.environments.GetEnvironmentFilesResponse;\n\nClient client = new Client();\n\n\ncom.google.genai.gaos.models.operations.GetEnvironmentFilesResponse response =\n client\n .environments\n .files()\n .list(GetEnvironmentFilesRequest.builder().environment(envId).path(\"main.py\").build());\nGetEnvironmentFilesResponse filesResponse =\n response.getEnvironmentFilesResponse().orElseThrow();\nfor (EnvironmentFile file : filesResponse.files().orElse(List.of())) {\n System.out.println(file.name().orElse(\"\") + \" \" + file.sizeBytes().orElse(\"\"));\n}\n" + }, + { + "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" + }, + { + "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" } ] } @@ -896,6 +951,11 @@ "label": "delete", "lang": "java", "source": "import com.google.genai.Client;\nimport com.google.genai.gaos.models.environments.Environment;\n\nClient client = new Client();\n\n\nclient.environments.deleteEnvironment(envId);\nSystem.out.println(\n \"com.google.genai.gaos.models.environments.Environment deleted successfully.\");\n" + }, + { + "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" } ] }, @@ -948,6 +1008,11 @@ "label": "get", "lang": "java", "source": "import com.google.genai.Client;\nimport com.google.genai.gaos.models.environments.Environment;\n\nClient client = new Client();\n\n\ncom.google.genai.gaos.models.environments.Environment environment =\n client.environments.getEnvironment(envId).environment().orElseThrow();\nSystem.out.println(environment.id().orElse(\"\"));\n" + }, + { + "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" } ] } @@ -1479,6 +1544,51 @@ "label": "custom_agent", "lang": "java", "source": "import com.google.genai.gaos.models.agents.Agent;\nimport com.google.genai.gaos.models.interactions.AgentOption;\nimport com.google.genai.gaos.models.agents.BaseEnvironment;\nimport com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.CreateAgentInteraction;\nimport com.google.genai.gaos.models.interactions.CreateAgentInteractionEnvironment;\nimport com.google.genai.gaos.models.operations.CreateInteractionRequestBody;\nimport com.google.genai.gaos.models.operations.CreateInteractionResponse;\nimport com.google.genai.gaos.models.environments.Environment;\nimport com.google.genai.gaos.models.interactions.Interaction;\nimport com.google.genai.gaos.models.interactions.InteractionsInput;\nimport com.google.genai.gaos.models.interactions.Source;\nimport com.google.genai.gaos.models.interactions.SourceType;\nimport com.google.genai.gaos.models.interactions.Step;\n\nClient client = new Client();\n\n// Step 1: Create a custom agent.\nString agentId = \"code-reviewer-\" + UUID.randomUUID().toString().substring(0, 8);\ncom.google.genai.gaos.models.interactions.Environment baseEnv =\n com.google.genai.gaos.models.interactions.Environment.builder()\n .sources(\n List.of(\n Source.builder()\n .type(SourceType.REPOSITORY)\n .source(\"https://github.com/octocat/Spoon-Knife\")\n .target(\"/workspace/repo\")\n .build()))\n .build();\nAgent customAgent =\n Agent.builder()\n .id(agentId)\n .baseAgent(\"antigravity-preview-05-2026\")\n .systemInstruction(\n \"You are a senior code reviewer. Check every file for bugs, style issues, and\"\n + \" security vulnerabilities.\")\n .baseEnvironment(BaseEnvironment.of(baseEnv))\n .build();\nclient.agents.create(customAgent);\n\n// Step 2: Use the custom agent.\nCreateAgentInteraction params =\n CreateAgentInteraction.builder()\n .agent(AgentOption.of(agentId))\n .input(\n InteractionsInput.of(\n \"Review the latest changes in /workspace/repo/src and file a summary.\"))\n .environment(CreateAgentInteractionEnvironment.of(\"remote\"))\n .build();\nCreateInteractionResponse response =\n client.interactions.create(CreateInteractionRequestBody.of(params));\nInteraction interaction =\n response.interaction().orElseThrow(() -> new RuntimeException(\"No interaction returned\"));\nSystem.out.println(interaction.outputText().orElse(\"\"));\n" + }, + { + "label": "simple", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\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 body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateModelInteraction{\n Model: gaos_interactions.Model(\"gemini-3.6-flash\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"Hello, how are you?\")),\n })\n\n res, err := client.Interactions.Create(ctx, operations.CreateInteractionRequest{Body: body})\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil && res.Interaction.OutputText != nil {\n fmt.Println(*res.Interaction.OutputText)\n }\n}\n" + }, + { + "label": "multi_turn", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\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 history := []gaos_interactions.Step{\n gaos_interactions.NewStep(gaos_interactions.UserInputStep{\n Content: []gaos_interactions.Content{\n gaos_interactions.NewContent(gaos_interactions.TextContent{\n Text: \"Hello!\",\n }),\n },\n }),\n gaos_interactions.NewStep(gaos_interactions.ModelOutputStep{\n Content: []gaos_interactions.Content{\n gaos_interactions.NewContent(gaos_interactions.TextContent{\n Text: \"Hi there! How can I help you today?\",\n }),\n },\n }),\n gaos_interactions.NewStep(gaos_interactions.UserInputStep{\n Content: []gaos_interactions.Content{\n gaos_interactions.NewContent(gaos_interactions.TextContent{\n Text: \"What is the capital of France?\",\n }),\n },\n }),\n }\n\n body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateModelInteraction{\n Model: gaos_interactions.Model(\"gemini-3.6-flash\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(history)),\n })\n\n res, err := client.Interactions.Create(ctx, operations.CreateInteractionRequest{Body: body})\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil && res.Interaction.OutputText != nil {\n fmt.Println(*res.Interaction.OutputText)\n }\n}\n" + }, + { + "label": "multimodal_image", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\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 contents := []gaos_interactions.Content{\n gaos_interactions.NewContent(gaos_interactions.TextContent{\n Text: \"What is in this picture?\",\n }),\n gaos_interactions.NewContent(gaos_interactions.ImageContent{\n Data: genai.Ptr(\"BASE64_ENCODED_IMAGE\"),\n MimeType: gaos_interactions.ImageContentMimeTypeImagePng.ToPointer(),\n }),\n }\n\n body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateModelInteraction{\n Model: gaos_interactions.Model(\"gemini-3.6-flash\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(contents)),\n })\n\n res, err := client.Interactions.Create(ctx, operations.CreateInteractionRequest{Body: body})\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil && res.Interaction.OutputText != nil {\n fmt.Println(*res.Interaction.OutputText)\n }\n}\n" + }, + { + "label": "function_calling", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\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 function := gaos_interactions.Function{\n Name: genai.Ptr(\"get_weather\"),\n Description: genai.Ptr(\"Get the current weather in a given location\"),\n Parameters: map[string]any{\n \"type\": \"object\",\n \"properties\": map[string]any{\n \"location\": map[string]any{\n \"type\": \"string\",\n \"description\": \"The city and state, e.g. San Francisco, CA\",\n },\n },\n \"required\": []string{\"location\"},\n },\n }\n\n tool := gaos_interactions.NewTool(function)\n\n body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateModelInteraction{\n Model: gaos_interactions.Model(\"gemini-3.6-flash\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"What is the weather like in Boston, MA?\")),\n Tools: []gaos_interactions.Tool{tool},\n })\n\n res, err := client.Interactions.Create(ctx, operations.CreateInteractionRequest{Body: body})\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil {\n for _, step := range res.Interaction.Steps {\n if step.FunctionCallStep != nil {\n fmt.Println(\"Function Call:\", step.FunctionCallStep.Name)\n fmt.Println(\"Arguments:\", step.FunctionCallStep.Arguments)\n }\n }\n }\n}\n" + }, + { + "label": "deep_research", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\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 body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateAgentInteraction{\n Agent: gaos_interactions.AgentOption(\"deep-research-pro-preview-12-2025\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"find a cure to cancer\")),\n Background: genai.Ptr(true),\n })\n\n req := operations.CreateInteractionRequest{\n Body: body,\n }\n\n res, err := client.Interactions.Create(ctx, req)\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil {\n fmt.Println(res.Interaction.Status)\n }\n}\n" + }, + { + "label": "antigravity", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\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 body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateAgentInteraction{\n Agent: gaos_interactions.AgentOption(\"antigravity-preview-05-2026\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"Read Hacker News, summarize the top 5 stories, and save results as a markdown file.\")),\n Environment: genai.Ptr(gaos_interactions.NewCreateAgentInteractionEnvironment(\"remote\")),\n })\n\n res, err := client.Interactions.Create(ctx, operations.CreateInteractionRequest{Body: body})\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil && res.Interaction.OutputText != nil {\n fmt.Println(*res.Interaction.OutputText)\n }\n}\n" + }, + { + "label": "reuse_env", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\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 // Step 1: Create an interaction with a fresh remote environment.\n body1 := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateAgentInteraction{\n Agent: gaos_interactions.AgentOption(\"antigravity-preview-05-2026\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"Write a hello world script at /workspace/hello.py.\")),\n Environment: genai.Ptr(gaos_interactions.NewCreateAgentInteractionEnvironment(\"remote\")),\n })\n\n res1, err := client.Interactions.Create(ctx, operations.CreateInteractionRequest{Body: body1})\n if err != nil {\n log.Fatal(err)\n }\n\n if res1.Interaction == nil || res1.Interaction.EnvironmentID == nil {\n log.Fatal(\"No environment ID returned\")\n }\n fmt.Printf(\"Environment ID: %s\\n\", *res1.Interaction.EnvironmentID)\n\n // Step 2: Reuse the same environment in a follow-up interaction.\n body2 := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateAgentInteraction{\n Agent: gaos_interactions.AgentOption(\"antigravity-preview-05-2026\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"Modify the script to accept a name argument and greet the user.\")),\n Environment: genai.Ptr(gaos_interactions.NewCreateAgentInteractionEnvironment(*res1.Interaction.EnvironmentID)),\n PreviousInteractionID: res1.Interaction.ID,\n })\n\n res2, err := client.Interactions.Create(ctx, operations.CreateInteractionRequest{Body: body2})\n if err != nil {\n log.Fatal(err)\n }\n\n if res2.Interaction != nil && res2.Interaction.OutputText != nil {\n fmt.Println(*res2.Interaction.OutputText)\n }\n}\n" + }, + { + "label": "with_sources", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\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 env := gaos_interactions.Environment{\n Sources: []gaos_interactions.Source{\n {\n Type: genai.Ptr(gaos_interactions.SourceTypeRepository),\n Source: genai.Ptr(\"https://github.com/octocat/Spoon-Knife\"),\n Target: genai.Ptr(\"/workspace/repo\"),\n },\n {\n Type: genai.Ptr(gaos_interactions.SourceTypeInline),\n Content: genai.Ptr(\"Focus on Python files only.\"),\n Target: genai.Ptr(\"/workspace/notes.txt\"),\n },\n },\n }\n\n body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateAgentInteraction{\n Agent: gaos_interactions.AgentOption(\"antigravity-preview-05-2026\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"List all files under /workspace and summarize what you find.\")),\n Environment: genai.Ptr(gaos_interactions.NewCreateAgentInteractionEnvironment(env)),\n })\n\n res, err := client.Interactions.Create(ctx, operations.CreateInteractionRequest{Body: body})\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil && res.Interaction.OutputText != nil {\n fmt.Println(*res.Interaction.OutputText)\n }\n}\n" + }, + { + "label": "custom_agent", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"time\"\n \"google.golang.org/genai\"\n gaos_agents \"google.golang.org/genai/interactions/models/agents\"\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 // Step 1: Create a custom agent.\n agentID := fmt.Sprintf(\"code-reviewer-%d\", time.Now().UnixNano())\n baseEnv := gaos_interactions.Environment{\n Sources: []gaos_interactions.Source{\n {\n Type: genai.Ptr(gaos_interactions.SourceTypeRepository),\n Source: genai.Ptr(\"https://github.com/octocat/Spoon-Knife\"),\n Target: genai.Ptr(\"/workspace/repo\"),\n },\n },\n }\n\n _, err = client.Agents.Create(ctx, operations.CreateAgentRequest{\n Body: gaos_agents.Agent{\n ID: genai.Ptr(agentID),\n BaseAgent: genai.Ptr(\"antigravity-preview-05-2026\"),\n SystemInstruction: genai.Ptr(\"You are a senior code reviewer. Check every file for bugs, style issues, and security vulnerabilities.\"),\n BaseEnvironment: genai.Ptr(gaos_agents.NewBaseEnvironment(baseEnv)),\n },\n })\n if err != nil {\n log.Fatal(err)\n }\n\n // Step 2: Use the custom agent.\n body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateAgentInteraction{\n Agent: gaos_interactions.AgentOption(agentID),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"Review the latest changes in /workspace/repo/src and file a summary.\")),\n Environment: genai.Ptr(gaos_interactions.NewCreateAgentInteractionEnvironment(\"remote\")),\n })\n\n res, err := client.Interactions.Create(ctx, operations.CreateInteractionRequest{Body: body})\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil && res.Interaction.OutputText != nil {\n fmt.Println(*res.Interaction.OutputText)\n }\n}\n" } ] } @@ -1570,6 +1680,11 @@ "label": "delete", "lang": "java", "source": "import com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.Interaction;\n\nClient client = new Client();\n\n\nclient.interactions.delete(interactionId);\nSystem.out.println(\"Interaction deleted successfully.\");\n" + }, + { + "label": "delete", + "lang": "go", + "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 req := operations.DeleteInteractionRequest{\n ID: interactionID,\n }\n\n _, err = client.Interactions.Delete(\n ctx,\n req,\n )\n if err != nil {\n log.Fatal(err)\n }\n\n fmt.Println(\"Interaction deleted successfully.\")\n}\n" } ] }, @@ -1721,6 +1836,11 @@ "label": "get", "lang": "java", "source": "import com.google.genai.Client;\nimport com.google.genai.gaos.models.operations.GetInteractionByIdRequest;\nimport com.google.genai.gaos.models.operations.GetInteractionByIdResponse;\nimport com.google.genai.gaos.models.interactions.Interaction;\nimport com.google.genai.gaos.models.interactions.InteractionStatus;\n\nClient client = new Client();\n\n\nGetInteractionByIdResponse getResponse =\n client.interactions.get(new GetInteractionByIdRequest(interactionId));\nInteraction interaction =\n getResponse\n .interaction()\n .orElseThrow(() -> new RuntimeException(\"No interaction returned\"));\nSystem.out.println(interaction.status().map(InteractionStatus::value).orElse(\"\"));\n" + }, + { + "label": "get", + "lang": "go", + "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 interaction, err := client.Interactions.Get(ctx, operations.GetInteractionByIDRequest{\n ID: *created.Interaction.ID,\n })\n if err != nil {\n log.Fatal(err)\n }\n\n if interaction.Interaction != nil {\n fmt.Println(interaction.Interaction.Status)\n }\n}\n" } ] } @@ -1819,6 +1939,11 @@ "label": "cancel", "lang": "java", "source": "import com.google.genai.gaos.models.operations.CancelInteractionByIdResponse;\nimport com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.ComputerUse;\nimport com.google.genai.gaos.models.operations.CreateInteractionRequestBody;\nimport com.google.genai.gaos.models.operations.CreateInteractionResponse;\nimport com.google.genai.gaos.models.interactions.CreateModelInteraction;\nimport com.google.genai.gaos.models.interactions.Interaction;\nimport com.google.genai.gaos.models.interactions.InteractionStatus;\nimport com.google.genai.gaos.models.interactions.InteractionsInput;\n\nClient client = new Client();\n\n// Start a background interaction so it stays in-progress.\nCreateModelInteraction params =\n CreateModelInteraction.builder()\n .model(\"gemini-3.6-flash\")\n .input(InteractionsInput.of(\"Write a long essay about the history of computing.\"))\n .tools(List.of(new ComputerUse()))\n .background(true)\n .build();\nCreateInteractionResponse created =\n client.interactions.create(CreateInteractionRequestBody.of(params));\nString interactionId = created.interaction().flatMap(Interaction::id).orElseThrow();\n\n// Cancel the in-progress interaction.\nCancelInteractionByIdResponse cancelResponse = client.interactions.cancel(interactionId);\nInteraction interaction =\n cancelResponse\n .interaction()\n .orElseThrow(() -> new RuntimeException(\"No interaction returned\"));\nSystem.out.println(interaction.status().map(InteractionStatus::value).orElse(\"\"));\n" + }, + { + "label": "cancel", + "lang": "go", + "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 req := operations.CancelInteractionByIDRequest{\n ID: interactionID,\n }\n\n res, err := client.Interactions.Cancel(\n ctx,\n req,\n )\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil {\n fmt.Println(res.Interaction.Status)\n }\n}\n" } ] } @@ -1915,7 +2040,29 @@ "representation": "input" } ], - "x-speakeasy-name-override": "create" + "x-speakeasy-name-override": "create", + "x-codeSamples": [ + { + "label": "create", + "lang": "sh", + "source": "curl -X POST https://generativelanguage.googleapis.com/v1beta/triggers \\\n -H \"x-goog-api-key: $GEMINI_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"schedule\": \"0 9 * * *\",\n \"time_zone\": \"America/New_York\",\n \"interaction\": {\n \"agent\": \"antigravity-preview-05-2026\",\n \"input\": \"Summarize top news stories.\",\n \"environment\": \"remote\"\n }\n }'\n" + }, + { + "label": "create", + "lang": "python", + "source": "from google import genai\n\nclient = genai.Client()\ntrigger = client.triggers.create(\n schedule=\"0 9 * * *\",\n time_zone=\"America/New_York\",\n interaction={\n \"agent\": \"antigravity-preview-05-2026\",\n \"input\": \"Summarize top news stories.\",\n \"environment\": \"remote\",\n },\n)\nprint(trigger.id, trigger.interaction.agent)\n" + }, + { + "label": "create", + "lang": "javascript", + "source": "import {GoogleGenAI} from '@google/genai';\n\nconst ai = new GoogleGenAI({});\nconst trigger = await ai.triggers.create({\n schedule: '0 9 * * *',\n time_zone: 'America/New_York',\n interaction: {\n agent: 'antigravity-preview-05-2026',\n input: 'Summarize top news stories.',\n environment: 'remote',\n },\n});\nconsole.log(trigger.id, trigger.interaction.agent);\n" + }, + { + "label": "create", + "lang": "java", + "source": "import com.google.genai.gaos.models.interactions.AgentOption;\nimport com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.CreateAgentInteraction;\nimport com.google.genai.gaos.models.interactions.CreateAgentInteractionEnvironment;\nimport com.google.genai.gaos.models.operations.CreateTriggerResponse;\nimport com.google.genai.gaos.models.interactions.InteractionsInput;\nimport com.google.genai.gaos.models.triggers.Trigger;\nimport com.google.genai.gaos.models.triggers.TriggerCreateParams;\n\nClient client = new Client();\nCreateAgentInteraction interaction =\n CreateAgentInteraction.builder()\n .agent(AgentOption.of(\"antigravity-preview-05-2026\"))\n .input(InteractionsInput.of(\"Summarize top news stories.\"))\n .environment(CreateAgentInteractionEnvironment.of(\"remote\"))\n .build();\nTriggerCreateParams params =\n TriggerCreateParams.builder()\n .schedule(\"0 9 * * *\")\n .timeZone(\"America/New_York\")\n .interaction(interaction)\n .build();\nCreateTriggerResponse response = client.triggers.create(params);\nTrigger trigger =\n response.trigger().orElseThrow(() -> new RuntimeException(\"No trigger returned\"));\nSystem.out.println(\n trigger.id().orElse(\"\")\n + \" \"\n + trigger.interaction().flatMap(CreateAgentInteraction::agent).orElse(null));\n" + } + ] } }, "/v1beta/triggers/{id}": { @@ -2940,17 +3087,12 @@ { "$ref": "#/components/schemas/DynamicAgentConfig" } - ] + ], + "x-speakeasy-unknown-values": "disallow" }, "background": { "description": "Input only. Whether to run the model interaction in the background.", - "type": "boolean", - "writeOnly": true - }, - "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 + "type": "boolean" }, "environment": { "description": "The environment configuration for the interaction. Can be an object\nspecifying remote environment sources or a string referencing an existing\nenvironment ID.", @@ -2961,17 +3103,8 @@ { "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 - }, - "id": { - "description": "Required. Output only. A unique identifier for the interaction completion.", - "type": "string", - "readOnly": true + ], + "x-speakeasy-unknown-values": "disallow" }, "input": { "$ref": "#/components/schemas/InteractionsInput" @@ -3026,50 +3159,13 @@ "description": "The service tier for the interaction.", "$ref": "#/components/schemas/ServiceTier" }, - "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)." - ] - }, "store": { "description": "Input only. Whether to store the response and request for later retrieval.", - "type": "boolean", - "writeOnly": true + "type": "boolean" }, "stream": { "description": "Input only. Whether the interaction will be streamed.", - "type": "boolean", - "writeOnly": true + "type": "boolean" }, "system_instruction": { "description": "System instruction for the interaction.", @@ -3082,23 +3178,13 @@ "$ref": "#/components/schemas/Tool" } }, - "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 - }, "webhook_config": { "description": "Optional. Webhook configuration for receiving notifications when the\ninteraction completes.", "$ref": "#/components/schemas/WebhookConfig" } }, "required": [ - "agent", - "created", - "id", - "status", - "steps", - "updated" + "agent" ], "x-speakeasy-exports": [ { @@ -3258,7 +3344,8 @@ "group": "interactions" } ], - "x-speakeasy-model-namespace": "interactions" + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-unknown-values": "disallow" }, "ArgumentsDelta": { "type": "object", @@ -3537,6 +3624,11 @@ "label": "code_execution", "lang": "java", "source": "import com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.CodeExecution;\nimport com.google.genai.gaos.models.operations.CreateInteractionRequestBody;\nimport com.google.genai.gaos.models.operations.CreateInteractionResponse;\nimport com.google.genai.gaos.models.interactions.CreateModelInteraction;\nimport com.google.genai.gaos.models.interactions.Interaction;\nimport com.google.genai.gaos.models.interactions.InteractionsInput;\n\nClient client = new Client();\nCreateModelInteraction params =\n CreateModelInteraction.builder()\n .model(\"gemini-3.6-flash\")\n .tools(List.of(new CodeExecution()))\n .input(InteractionsInput.of(\"Calculate the first 10 Fibonacci numbers\"))\n .build();\nCreateInteractionResponse response =\n client.interactions.create(CreateInteractionRequestBody.of(params));\nInteraction interaction =\n response.interaction().orElseThrow(() -> new RuntimeException(\"No interaction returned\"));\nSystem.out.println(interaction.outputText().orElse(\"\"));\n" + }, + { + "label": "code_execution", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\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 tool := gaos_interactions.NewTool(gaos_interactions.CodeExecution{})\n\n body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateModelInteraction{\n Model: gaos_interactions.Model(\"gemini-3.6-flash\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"Calculate the first 10 Fibonacci numbers\")),\n Tools: []gaos_interactions.Tool{tool},\n })\n\n req := operations.CreateInteractionRequest{\n Body: body,\n }\n\n res, err := client.Interactions.Create(ctx, req)\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil && res.Interaction.OutputText != nil {\n fmt.Println(*res.Interaction.OutputText)\n }\n}\n" } ] }, @@ -3747,7 +3839,8 @@ "group": "interactions" } ], - "x-speakeasy-model-namespace": "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.", @@ -3831,6 +3924,11 @@ "label": "computer_use", "lang": "java", "source": "import com.google.genai.Client;\nimport com.google.genai.gaos.models.interactions.ComputerUse;\nimport com.google.genai.gaos.models.operations.CreateInteractionRequestBody;\nimport com.google.genai.gaos.models.operations.CreateInteractionResponse;\nimport com.google.genai.gaos.models.interactions.CreateModelInteraction;\nimport com.google.genai.gaos.models.interactions.Interaction;\nimport com.google.genai.gaos.models.interactions.InteractionsInput;\n\nClient client = new Client();\nCreateModelInteraction params =\n CreateModelInteraction.builder()\n .model(\"gemini-2.5-computer-use-preview-10-2025\")\n .tools(List.of(new ComputerUse()))\n .input(InteractionsInput.of(\"Find a flight to Tokyo\"))\n .build();\nCreateInteractionResponse response =\n client.interactions.create(CreateInteractionRequestBody.of(params));\nInteraction interaction =\n response.interaction().orElseThrow(() -> new RuntimeException(\"No interaction returned\"));\nSystem.out.println(interaction.outputText().orElse(\"\"));\n" + }, + { + "label": "computer_use", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\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 tool := gaos_interactions.NewTool(gaos_interactions.ComputerUse{})\n\n body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateModelInteraction{\n Model: gaos_interactions.Model(\"gemini-2.5-computer-use-preview-10-2025\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"Find a flight to Tokyo\")),\n Tools: []gaos_interactions.Tool{tool},\n })\n\n req := operations.CreateInteractionRequest{\n Body: body,\n }\n\n res, err := client.Interactions.Create(ctx, req)\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil && res.Interaction.OutputText != nil {\n fmt.Println(*res.Interaction.OutputText)\n }\n}\n" } ] }, @@ -3907,7 +4005,7 @@ "type": "object", "properties": { "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. Projects\n are subject to a maximum active stored voice quota; exceeding the quota\n 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`).", + "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" }, "voice": { @@ -4089,7 +4187,8 @@ "group": "interactions" } ], - "x-speakeasy-model-namespace": "interactions" + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-unknown-values": "disallow" }, "DeleteVoiceResponse": { "description": "Response message for `VoicesService.DeleteVoice`.", @@ -4192,7 +4291,8 @@ "group": "interactions" } ], - "x-speakeasy-model-namespace": "interactions" + "x-speakeasy-model-namespace": "interactions", + "x-speakeasy-unknown-values": "disallow" }, "EgressRule": { "description": "A single domain allowlist rule with optional header injection.", @@ -4426,7 +4526,8 @@ } ], "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-name-override": "Environment" + "x-speakeasy-name-override": "Environment", + "x-speakeasy-unknown-values": "disallow" }, "EnvironmentFile": { "description": "Metadata for a file or directory within an environment.", @@ -4801,6 +4902,11 @@ "label": "file_search", "lang": "java", "source": "import com.google.genai.Client;\nimport com.google.genai.types.CreateFileSearchStoreConfig;\nimport com.google.genai.gaos.models.operations.CreateInteractionRequestBody;\nimport com.google.genai.gaos.models.operations.CreateInteractionResponse;\nimport com.google.genai.gaos.models.interactions.CreateModelInteraction;\nimport com.google.genai.gaos.models.interactions.FileSearch;\nimport com.google.genai.types.FileSearchStore;\nimport com.google.genai.gaos.models.interactions.Interaction;\nimport com.google.genai.gaos.models.interactions.InteractionsInput;\n\nClient client = new Client();\n\n// Create a file search store so we have a valid one to use.\nFileSearchStore store =\n client.fileSearchStores.create(CreateFileSearchStoreConfig.builder().build());\nString storeName = store.name().orElseThrow();\n\nFileSearch tool = FileSearch.builder().fileSearchStoreNames(List.of(storeName)).build();\nCreateModelInteraction params =\n CreateModelInteraction.builder()\n .model(\"gemini-3.6-flash\")\n .tools(List.of(tool))\n .input(InteractionsInput.of(\"What documents are available?\"))\n .build();\nCreateInteractionResponse response =\n client.interactions.create(CreateInteractionRequestBody.of(params));\nInteraction interaction =\n response.interaction().orElseThrow(() -> new RuntimeException(\"No interaction returned\"));\nSystem.out.println(interaction.outputText().orElse(\"\"));\n" + }, + { + "label": "file_search", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\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\n tool := gaos_interactions.NewTool(gaos_interactions.FileSearch{\n FileSearchStoreNames: []string{store.Name},\n })\n\n body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateModelInteraction{\n Model: gaos_interactions.Model(\"gemini-3.6-flash\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"What documents are available?\")),\n Tools: []gaos_interactions.Tool{tool},\n })\n\n req := operations.CreateInteractionRequest{\n Body: body,\n }\n\n res, err := client.Interactions.Create(ctx, req)\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil && res.Interaction.OutputText != nil {\n fmt.Println(*res.Interaction.OutputText)\n }\n}\n" } ] }, @@ -5038,6 +5144,11 @@ "label": "function_calling", "lang": "java", "source": "import com.google.genai.Client;\nimport com.google.genai.gaos.models.operations.CreateInteractionRequestBody;\nimport com.google.genai.gaos.models.operations.CreateInteractionResponse;\nimport com.google.genai.gaos.models.interactions.CreateModelInteraction;\nimport com.google.genai.gaos.models.interactions.Function;\nimport com.google.genai.gaos.models.interactions.Interaction;\nimport com.google.genai.gaos.models.interactions.InteractionsInput;\nimport com.google.genai.gaos.models.interactions.Step;\n\nClient client = new Client();\nMap parameters =\n Map.of(\n \"type\", \"object\",\n \"properties\",\n Map.of(\n \"location\",\n Map.of(\n \"type\", \"string\",\n \"description\", \"The city and state, e.g. San Francisco, CA\")),\n \"required\", List.of(\"location\"));\nFunction functionTool =\n Function.builder()\n .name(\"get_weather\")\n .description(\"Get the current weather in a given location\")\n .parameters(parameters)\n .build();\nCreateModelInteraction params =\n CreateModelInteraction.builder()\n .model(\"gemini-3.6-flash\")\n .tools(List.of(functionTool))\n .input(InteractionsInput.of(\"What is the weather like in Boston?\"))\n .build();\nCreateInteractionResponse response =\n client.interactions.create(CreateInteractionRequestBody.of(params));\nInteraction interaction =\n response.interaction().orElseThrow(() -> new RuntimeException(\"No interaction returned\"));\nList steps = interaction.steps().orElse(List.of());\nif (!steps.isEmpty()) {\n System.out.println(steps.get(steps.size() - 1));\n}\n" + }, + { + "label": "function_calling", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\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 function := gaos_interactions.Function{\n Name: genai.Ptr(\"get_weather\"),\n Description: genai.Ptr(\"Get the current weather in a given location\"),\n Parameters: map[string]any{\n \"type\": \"object\",\n \"properties\": map[string]any{\n \"location\": map[string]any{\n \"type\": \"string\",\n \"description\": \"The city and state, e.g. San Francisco, CA\",\n },\n },\n \"required\": []string{\"location\"},\n },\n }\n\n tool := gaos_interactions.NewTool(function)\n\n body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateModelInteraction{\n Model: gaos_interactions.Model(\"gemini-3.6-flash\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"What is the weather like in Boston, MA?\")),\n Tools: []gaos_interactions.Tool{tool},\n })\n\n req := operations.CreateInteractionRequest{\n Body: body,\n }\n\n res, err := client.Interactions.Create(ctx, req)\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil {\n for _, step := range res.Interaction.Steps {\n if step.FunctionCallStep != nil {\n fmt.Println(\"Function Call:\", step.FunctionCallStep.Name)\n fmt.Println(\"Arguments:\", step.FunctionCallStep.Arguments)\n }\n }\n }\n}\n" } ] }, @@ -5216,6 +5327,12 @@ "type": "string" } }, + "temperature": { + "description": "Controls the randomness of the output.", + "type": "number", + "deprecated": true, + "format": "float" + }, "thinking_level": { "description": "The level of thought tokens that the model should generate.", "$ref": "#/components/schemas/ThinkingLevel" @@ -5254,6 +5371,12 @@ } ] }, + "top_p": { + "description": "The maximum cumulative probability of tokens to consider when sampling.", + "type": "number", + "deprecated": true, + "format": "float" + }, "transcription_config": { "description": "Optional. Configuration for speech recognition (transcription). If present, ASR is\nenabled.", "$ref": "#/components/schemas/TranscriptionConfig" @@ -5368,6 +5491,11 @@ "label": "google_maps", "lang": "java", "source": "import com.google.genai.Client;\nimport com.google.genai.gaos.models.operations.CreateInteractionRequestBody;\nimport com.google.genai.gaos.models.operations.CreateInteractionResponse;\nimport com.google.genai.gaos.models.interactions.CreateModelInteraction;\nimport com.google.genai.gaos.models.interactions.GoogleMaps;\nimport com.google.genai.gaos.models.interactions.Interaction;\nimport com.google.genai.gaos.models.interactions.InteractionsInput;\n\nClient client = new Client();\nGoogleMaps tool = GoogleMaps.builder().latitude(37.7749).longitude(-122.4194).build();\nCreateModelInteraction params =\n CreateModelInteraction.builder()\n .model(\"gemini-3.6-flash\")\n .tools(List.of(tool))\n .input(InteractionsInput.of(\"What is the best food near me?\"))\n .build();\nCreateInteractionResponse response =\n client.interactions.create(CreateInteractionRequestBody.of(params));\nInteraction interaction =\n response.interaction().orElseThrow(() -> new RuntimeException(\"No interaction returned\"));\nSystem.out.println(interaction.outputText().orElse(\"\"));\n" + }, + { + "label": "google_maps", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\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 tool := gaos_interactions.NewTool(gaos_interactions.GoogleMaps{\n Latitude: genai.Ptr(37.7749),\n Longitude: genai.Ptr(-122.4194),\n })\n\n body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateModelInteraction{\n Model: gaos_interactions.Model(\"gemini-3.6-flash\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"What is the best food near me?\")),\n Tools: []gaos_interactions.Tool{tool},\n })\n\n req := operations.CreateInteractionRequest{\n Body: body,\n }\n\n res, err := client.Interactions.Create(ctx, req)\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil && res.Interaction.OutputText != nil {\n fmt.Println(*res.Interaction.OutputText)\n }\n}\n" } ] }, @@ -5635,6 +5763,11 @@ "label": "google_search", "lang": "java", "source": "import com.google.genai.Client;\nimport com.google.genai.gaos.models.operations.CreateInteractionRequestBody;\nimport com.google.genai.gaos.models.operations.CreateInteractionResponse;\nimport com.google.genai.gaos.models.interactions.CreateModelInteraction;\nimport com.google.genai.gaos.models.interactions.GoogleSearch;\nimport com.google.genai.gaos.models.interactions.Interaction;\nimport com.google.genai.gaos.models.interactions.InteractionsInput;\n\nClient client = new Client();\nCreateModelInteraction params =\n CreateModelInteraction.builder()\n .model(\"gemini-3.6-flash\")\n .tools(List.of(new GoogleSearch()))\n .input(InteractionsInput.of(\"Who is the current president of France?\"))\n .build();\nCreateInteractionResponse response =\n client.interactions.create(CreateInteractionRequestBody.of(params));\nInteraction interaction =\n response.interaction().orElseThrow(() -> new RuntimeException(\"No interaction returned\"));\nSystem.out.println(interaction.outputText().orElse(\"\"));\n" + }, + { + "label": "google_search", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\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 tool := gaos_interactions.NewTool(gaos_interactions.GoogleSearch{})\n\n body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateModelInteraction{\n Model: gaos_interactions.Model(\"gemini-3.6-flash\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"Who is the current president of France?\")),\n Tools: []gaos_interactions.Tool{tool},\n })\n\n req := operations.CreateInteractionRequest{\n Body: body,\n }\n\n res, err := client.Interactions.Create(ctx, req)\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil && res.Interaction.OutputText != nil {\n fmt.Println(*res.Interaction.OutputText)\n }\n}\n" } ] }, @@ -6323,10 +6456,7 @@ { "$ref": "#/components/schemas/DynamicAgentConfig" } - ], - "discriminator": { - "propertyName": "type" - } + ] }, "background": { "description": "Input only. Whether to run the model interaction in the background.", @@ -7045,6 +7175,11 @@ "label": "mcp_server", "lang": "java", "source": "import com.google.genai.Client;\nimport com.google.genai.gaos.models.operations.CreateInteractionRequestBody;\nimport com.google.genai.gaos.models.operations.CreateInteractionResponse;\nimport com.google.genai.gaos.models.interactions.CreateModelInteraction;\nimport com.google.genai.gaos.models.interactions.Interaction;\nimport com.google.genai.gaos.models.interactions.InteractionsInput;\nimport com.google.genai.gaos.models.interactions.MCPServer;\n\nClient client = new Client();\nMCPServer mcpTool =\n MCPServer.builder()\n .name(\"weather_service\")\n .url(\"https://gemini-api-demos.uc.r.appspot.com/mcp\")\n .build();\nCreateModelInteraction params =\n CreateModelInteraction.builder()\n .model(\"gemini-3.6-flash\")\n .tools(List.of(mcpTool))\n .input(\n InteractionsInput.of(\n \"Today is 12-05-2025, what is the temperature today in London?\"))\n .build();\nCreateInteractionResponse response =\n client.interactions.create(CreateInteractionRequestBody.of(params));\nInteraction interaction =\n response.interaction().orElseThrow(() -> new RuntimeException(\"No interaction returned\"));\nSystem.out.println(interaction.outputText().orElse(\"\"));\n" + }, + { + "label": "mcp_server", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"os\"\n \"google.golang.org/genai\"\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 mcpServer := gaos_interactions.MCPServer{\n Name: genai.Ptr(\"weather_service\"),\n URL: genai.Ptr(\"https://gemini-api-demos.uc.r.appspot.com/mcp\"),\n }\n tool := gaos_interactions.NewTool(mcpServer)\n\n body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateModelInteraction{\n Model: gaos_interactions.Model(\"gemini-3.6-flash\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"Today is 12-05-2025, what is the temperature today in London?\")),\n Tools: []gaos_interactions.Tool{tool},\n })\n\n req := operations.CreateInteractionRequest{\n Body: body,\n }\n\n res, err := client.Interactions.Create(ctx, req)\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil && res.Interaction.OutputText != nil {\n fmt.Println(*res.Interaction.OutputText)\n }\n}\n" } ] }, @@ -9316,7 +9451,7 @@ }, "interaction": { "description": "Required. The interaction request template to be executed.", - "$ref": "#/components/schemas/Interaction" + "$ref": "#/components/schemas/AgentInteraction" }, "last_pause_time": { "description": "Output only. The time when the trigger was last paused.", @@ -9416,14 +9551,7 @@ }, "interaction": { "description": "Required. The interaction request template to be executed.", - "oneOf": [ - { - "$ref": "#/components/schemas/AgentInteraction" - }, - { - "$ref": "#/components/schemas/ModelInteraction" - } - ] + "$ref": "#/components/schemas/AgentInteraction" }, "max_consecutive_failures": { "description": "Optional. The maximum number of consecutive failures allowed before\nthe trigger is automatically paused (status becomes ERROR).", @@ -9715,6 +9843,11 @@ "label": "url_context", "lang": "java", "source": "import com.google.genai.Client;\nimport com.google.genai.gaos.models.operations.CreateInteractionRequestBody;\nimport com.google.genai.gaos.models.operations.CreateInteractionResponse;\nimport com.google.genai.gaos.models.interactions.CreateModelInteraction;\nimport com.google.genai.gaos.models.interactions.Interaction;\nimport com.google.genai.gaos.models.interactions.InteractionsInput;\nimport com.google.genai.gaos.models.interactions.URLContext;\n\nClient client = new Client();\nCreateModelInteraction params =\n CreateModelInteraction.builder()\n .model(\"gemini-3.6-flash\")\n .tools(List.of(new URLContext()))\n .input(InteractionsInput.of(\"Summarize https://www.example.com\"))\n .build();\nCreateInteractionResponse response =\n client.interactions.create(CreateInteractionRequestBody.of(params));\nInteraction interaction =\n response.interaction().orElseThrow(() -> new RuntimeException(\"No interaction returned\"));\nSystem.out.println(interaction.outputText().orElse(\"\"));\n" + }, + { + "label": "url_context", + "lang": "go", + "source": "package main\n\nimport (\n \"context\"\n \"fmt\"\n \"log\"\n \"google.golang.org/genai\"\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 tool := gaos_interactions.NewTool(gaos_interactions.URLContext{})\n\n body := operations.NewCreateInteractionRequestBody(gaos_interactions.CreateModelInteraction{\n Model: gaos_interactions.Model(\"gemini-3.6-flash\"),\n Input: genai.Ptr(gaos_interactions.NewInteractionsInput(\"Summarize https://www.example.com\")),\n Tools: []gaos_interactions.Tool{tool},\n })\n\n req := operations.CreateInteractionRequest{\n Body: body,\n }\n\n res, err := client.Interactions.Create(ctx, req)\n if err != nil {\n log.Fatal(err)\n }\n\n if res.Interaction != nil && res.Interaction.OutputText != nil {\n fmt.Println(*res.Interaction.OutputText)\n }\n}\n" } ] }, @@ -10345,7 +10478,7 @@ "type": "string" }, "expire_time": { - "description": "Output only. The timestamp at which a custom stored voice (`store = true`)\nor replicated voice key (`store = false`) expires. Unset for prebuilt\ncatalog voices (`\"prebuilt\"`), which do not expire.", + "description": "Output only. The timestamp at which a custom stored voice (`store = true`)\nor replicated voice key (`store = false`) expires. For custom stored voices\n(`store = true`), this expiration time is extended when the voice is used\nfor speech synthesis or as a `base_voice` in `CreateVoice`. Unset for\nprebuilt catalog voices (`\"prebuilt\"`), which do not expire.", "type": "string", "format": "date-time", "readOnly": true diff --git a/src/libs/Google.Gemini/openapi.json b/src/libs/Google.Gemini/openapi.json index 4490d4e46..4cdd12457 100644 --- a/src/libs/Google.Gemini/openapi.json +++ b/src/libs/Google.Gemini/openapi.json @@ -11,19 +11,19 @@ } ], "paths": { - "/models/{modelsId}:batchEmbedContents": { + "/dynamic/{dynamicId}:streamGenerateContent": { "post": { - "description": "Generates multiple embedding vectors from the input `Content` which consists of a batch of strings represented as `EmbedContentRequest` objects.", - "operationId": "models.batchEmbedContents", + "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": "modelsId", + "name": "dynamicId", "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 `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^dynamic/[^/]+$" } } ], @@ -31,7 +31,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BatchEmbedContentsRequest" + "$ref": "#/components/schemas/GenerateContentRequest" } } } @@ -42,7 +42,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BatchEmbedContentsResponse" + "$ref": "#/components/schemas/GenerateContentResponse" + } + }, + "text/event-stream": { + "schema": { + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -50,19 +55,19 @@ } } }, - "/models/{modelsId}:countTokens": { + "/dynamic/{dynamicId}:generateContent": { "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": "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": "modelsId", + "name": "dynamicId", "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 `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^dynamic/[^/]+$" } } ], @@ -70,7 +75,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CountTokensRequest" + "$ref": "#/components/schemas/GenerateContentRequest" } } } @@ -81,7 +86,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CountTokensResponse" + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -89,38 +94,36 @@ } } }, - "/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", + "/generatedFiles": { + "get": { + "description": "Lists the generated files owned by the requesting project.", + "operationId": "generatedFiles.list", "parameters": [ { - "name": "modelsId", - "in": "path", - "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "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.", "schema": { - "type": "string", - "pattern": "^models/[^/]+$" + "type": "integer", + "format": "int32" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" - } + }, + { + "name": "pageToken", + "in": "query", + "description": "Optional. A page token from a previous `ListGeneratedFiles` call.", + "schema": { + "type": "string" } } - }, + ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/ListGeneratedFilesResponse" } } } @@ -128,38 +131,37 @@ } } }, - "/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", + "/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", "parameters": [ { - "name": "modelsId", + "name": "operationsId", "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" + } + }, + { + "name": "generatedFilesId", + "in": "path", + "required": true, + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^generatedFiles/[^/]+/operations/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EmbedContentRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EmbedContentResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -167,27 +169,50 @@ } } }, - "/models/{modelsId}:batchGenerateContent": { - "post": { - "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", - "operationId": "models.batchGenerateContent", + "/files": { + "get": { + "description": "Lists the metadata for `File`s owned by the requesting project.", + "operationId": "files.list", "parameters": [ { - "name": "modelsId", - "in": "path", - "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "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": "string", - "pattern": "^models/[^/]+$" + "type": "integer", + "format": "int32" + } + }, + { + "name": "pageToken", + "in": "query", + "description": "Optional. A page token from a previous `ListFiles` call.", + "schema": { + "type": "string" } } ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListFilesResponse" + } + } + } + } + } + }, + "post": { + "description": "Creates a `File`.", + "operationId": "media.upload", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BatchGenerateContentRequest" + "$ref": "#/components/schemas/CreateFileRequest" } } } @@ -198,7 +223,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/CreateFileResponse" } } } @@ -206,65 +231,47 @@ } } }, - "/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", + "/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 name of the `Model` to use for generating the completion. 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/AsyncBatchEmbedContentRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/File" } } } } } - } - }, - "/models": { - "get": { - "description": "Lists the [`Model`s](https://ai.google.dev/gemini-api/docs/models/gemini) available through the Gemini API.", - "operationId": "models.list", + }, + "delete": { + "description": "Deletes the `File`.", + "operationId": "files.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.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "pageToken", - "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.", + "name": "filesId", + "in": "path", + "required": true, + "description": "Required. The name of the `File` to delete. Example: `files/abc-123`", "schema": { - "type": "string" + "type": "string", + "pattern": "^files/[^/]+$" } } ], @@ -274,7 +281,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListModelsResponse" + "$ref": "#/components/schemas/Empty" } } } @@ -282,27 +289,15 @@ } } }, - "/models/{modelsId}:streamGenerateContent": { + "/files:register": { "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", - "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/[^/]+$" - } - } - ], + "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/GenerateContentRequest" + "$ref": "#/components/schemas/RegisterFilesRequest" } } } @@ -313,12 +308,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" - } - }, - "text/event-stream": { - "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/RegisterFilesResponse" } } } @@ -326,29 +316,38 @@ } } }, - "/models/{modelsId}": { - "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", + "/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": "modelsId", + "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. Immutable. The name of the `FileSearchStore` to upload the file into. Example: `fileSearchStores/my-file-search-store-123`", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^fileSearchStores/[^/]+$" } } ], - "responses": { - "200": { - "description": "Successful response", - "content": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UploadToFileSearchStoreRequest" + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Model" + "$ref": "#/components/schemas/CustomLongRunningOperation" } } } @@ -356,62 +355,38 @@ } } }, - "/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", + "/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", "parameters": [ - { - "name": "filter", - "in": "query", - "description": "The standard list filter.", - "schema": { - "type": "string" - } - }, { "name": "modelsId", "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" - } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AsyncBatchEmbedContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListOperationsResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -419,37 +394,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", + "/models/{modelsId}:countTokens": { + "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", "parameters": [ - { - "name": "operationsId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, { "name": "modelsId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "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/[^/]+/operations/[^/]+$" + "pattern": "^models/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CountTokensRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/CountTokensResponse" } } } @@ -457,36 +433,38 @@ } } }, - "/generatedFiles": { - "get": { - "description": "Lists the generated files owned by the requesting project.", - "operationId": "generatedFiles.list", + "/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": "pageSize", - "in": "query", - "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" - } - }, - { - "name": "pageToken", - "in": "query", - "description": "Optional. A page token from a previous `ListGeneratedFiles` call.", + "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" + "type": "string", + "pattern": "^models/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenerateContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListGeneratedFilesResponse" + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -494,30 +472,31 @@ } } }, - "/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", + "/models/{modelsId}:batchGenerateContent": { + "post": { + "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", + "operationId": "models.batchGenerateContent", "parameters": [ { - "name": "operationsId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "generatedFilesId", + "name": "modelsId", "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": "^generatedFiles/[^/]+/operations/[^/]+$" + "pattern": "^models/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BatchGenerateContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -532,15 +511,15 @@ } } }, - "/corpora": { + "/models": { "get": { - "description": "Lists all `Corpora` owned by the user.", - "operationId": "corpora.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 `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 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" @@ -549,7 +528,7 @@ { "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": "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" } @@ -561,21 +540,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListCorporaResponse" + "$ref": "#/components/schemas/ListModelsResponse" } } } } } - }, + } + }, + "/models/{modelsId}:streamGenerateContent": { "post": { - "description": "Creates an empty `Corpus`.", - "operationId": "corpora.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/Corpus" + "$ref": "#/components/schemas/GenerateContentRequest" } } } @@ -586,7 +579,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Corpus" + "$ref": "#/components/schemas/GenerateContentResponse" + } + }, + "text/event-stream": { + "schema": { + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -594,27 +592,19 @@ } } }, - "/corpora/{corporaId}": { - "delete": { - "description": "Deletes a `Corpus`.", - "operationId": "corpora.delete", + "/models/{modelsId}": { + "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", "parameters": [ { - "name": "force", - "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.", - "schema": { - "type": "boolean" - } - }, - { - "name": "corporaId", + "name": "modelsId", "in": "path", "required": true, - "description": "Required. The resource name of the `Corpus`. Example: `corpora/my-corpus-123`", + "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", - "pattern": "^corpora/[^/]+$" + "pattern": "^models/[^/]+$" } } ], @@ -624,35 +614,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/Model" } } } } } - }, - "get": { - "description": "Gets information about a specific `Corpus`.", - "operationId": "corpora.get", + } + }, + "/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": "corporaId", + "name": "modelsId", "in": "path", "required": true, - "description": "Required. The name of the `Corpus`. Example: `corpora/my-corpus-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": "^corpora/[^/]+$" + "pattern": "^models/[^/]+$" } } ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Corpus" + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EmbedContentRequest" + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EmbedContentResponse" } } } @@ -660,37 +661,38 @@ } } }, - "/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", + "/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", "parameters": [ { - "name": "operationsId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "corporaId", + "name": "modelsId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "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": "^corpora/[^/]+/operations/[^/]+$" + "pattern": "^models/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BatchEmbedContentsRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/BatchEmbedContentsResponse" } } } @@ -698,13 +700,13 @@ } } }, - "/corpora/{corporaId}/permissions/{permissionsId}": { + "/models/{modelsId}/operations/{operationsId}": { "get": { - "description": "Gets information about a specific Permission.", - "operationId": "corpora.permissions.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": "permissionsId", + "name": "operationsId", "in": "path", "required": true, "schema": { @@ -712,13 +714,13 @@ } }, { - "name": "corporaId", + "name": "modelsId", "in": "path", "required": true, - "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^corpora/[^/]+/permissions/[^/]+$" + "pattern": "^models/[^/]+/operations/[^/]+$" } } ], @@ -728,33 +730,60 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/Operation" } } } } } - }, - "delete": { - "description": "Deletes the permission.", - "operationId": "corpora.permissions.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": "permissionsId", - "in": "path", - "required": true, + "name": "filter", + "in": "query", + "description": "The standard list filter.", "schema": { "type": "string" } }, { - "name": "corporaId", + "name": "modelsId", "in": "path", "required": true, - "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", + "description": "The name of the operation's parent resource.", "schema": { "type": "string", - "pattern": "^corpora/[^/]+/permissions/[^/]+$" + "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" } } ], @@ -764,61 +793,60 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/ListOperationsResponse" } } } } } - }, - "patch": { - "description": "Updates the permission.", - "operationId": "corpora.permissions.patch", + } + }, + "/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": "permissionsId", - "in": "path", - "required": true, + "name": "filter", + "in": "query", + "description": "The standard list filter.", "schema": { "type": "string" } }, { - "name": "corporaId", - "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.", + "name": "pageSize", + "in": "query", + "description": "The standard list page size.", "schema": { - "type": "string", - "pattern": "^corpora/[^/]+/permissions/[^/]+$" + "type": "integer", + "format": "int32" } }, { - "name": "updateMask", + "name": "pageToken", "in": "query", - "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)", + "description": "The standard list page token.", "schema": { - "type": "string", - "format": "google-fieldmask" + "type": "string" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Permission" - } + }, + { + "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": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/ListOperationsResponse" } } } @@ -826,38 +854,29 @@ } } }, - "/corpora/{corporaId}/permissions": { - "post": { - "description": "Create a permission to a specific resource.", - "operationId": "corpora.permissions.create", + "/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": "corporaId", + "name": "batchesId", "in": "path", "required": true, - "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", + "description": "The name of the operation resource to be deleted.", "schema": { "type": "string", - "pattern": "^corpora/[^/]+$" + "pattern": "^batches/[^/]+$" } } ], - "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/Empty" } } } @@ -865,34 +884,17 @@ } }, "get": { - "description": "Lists permissions for the specific resource.", - "operationId": "corpora.permissions.list", + "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": "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", - "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": "corporaId", + "name": "batchesId", "in": "path", "required": true, - "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^corpora/[^/]+$" + "pattern": "^batches/[^/]+$" } } ], @@ -902,7 +904,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListPermissionsResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -910,26 +912,29 @@ } } }, - "/auth_tokens": { + "/batches/{batchesId}:cancel": { "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" - } + "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": "batchesId", + "in": "path", + "required": true, + "description": "The name of the operation resource to be cancelled.", + "schema": { + "type": "string", + "pattern": "^batches/[^/]+$" } } - }, + ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthToken" + "$ref": "#/components/schemas/Empty" } } } @@ -937,36 +942,47 @@ } } }, - "/environments:list": { - "get": { - "description": "Lists environments.", - "operationId": "environments.list", + "/batches/{batchesId}:updateEmbedContentBatch": { + "patch": { + "description": "Updates a batch of EmbedContent requests for batch processing.", + "operationId": "batches.updateEmbedContentBatch", "parameters": [ { - "name": "pageSize", - "in": "query", - "description": "Optional. Maximum number of environments to return. If unspecified, defaults to 50. Maximum is 1000.", + "name": "batchesId", + "in": "path", + "required": true, + "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", "schema": { - "type": "integer", - "format": "int32" + "type": "string", + "pattern": "^batches/[^/]+$" } }, { - "name": "pageToken", + "name": "updateMask", "in": "query", - "description": "Optional. Pagination token.", + "description": "Optional. The list of fields to update.", "schema": { - "type": "string" + "type": "string", + "format": "google-fieldmask" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EmbedContentBatch" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListEnvironmentsResponse" + "$ref": "#/components/schemas/EmbedContentBatch" } } } @@ -974,15 +990,36 @@ } } }, - "/environments:create": { - "post": { - "description": "Creates an environment.", - "operationId": "environments.create", + "/batches/{batchesId}:updateGenerateContentBatch": { + "patch": { + "description": "Updates a batch of GenerateContent requests for batch processing.", + "operationId": "batches.updateGenerateContentBatch", + "parameters": [ + { + "name": "batchesId", + "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.", + "schema": { + "type": "string", + "format": "google-fieldmask" + } + } + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateEnvironmentRequest" + "$ref": "#/components/schemas/GenerateContentBatch" } } } @@ -993,7 +1030,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Environment" + "$ref": "#/components/schemas/GenerateContentBatch" } } } @@ -1059,37 +1096,52 @@ } } }, - "/environments/{environmentsId}/files/{filesId}": { - "put": { - "description": "Uploads (creates or updates) a file in an environment's workspace.", - "operationId": "environments.files.media.upload", + "/environments:list": { + "get": { + "description": "Lists environments.", + "operationId": "environments.list", "parameters": [ { - "name": "environmentsId", - "in": "path", - "required": true, - "description": "Required. The resource name of the target environment. Format: `environments/{environment_id}`", + "name": "pageSize", + "in": "query", + "description": "Optional. Maximum number of environments to return. If unspecified, defaults to 50. Maximum is 1000.", "schema": { - "type": "string", - "pattern": "^environments/[^/]+$" + "type": "integer", + "format": "int32" } }, { - "name": "filesId", - "in": "path", - "required": true, - "description": "Required. The destination relative path of the file within the environment. Example: \"workspace/src/main.py\"", + "name": "pageToken", + "in": "query", + "description": "Optional. Pagination token.", "schema": { - "type": "string", - "pattern": "^.*$" + "type": "string" } } ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListEnvironmentsResponse" + } + } + } + } + } + } + }, + "/environments:create": { + "post": { + "description": "Creates an environment.", + "operationId": "environments.create", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UploadEnvironmentFileRequest" + "$ref": "#/components/schemas/CreateEnvironmentRequest" } } } @@ -1100,13 +1152,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UploadEnvironmentFileResponse" + "$ref": "#/components/schemas/Environment" } } } } } - }, + } + }, + "/environments/{environmentsId}/files": { "get": { "description": "Retrieves file metadata or directory contents from an environment's snapshot. To download file contents directly, pass ?alt=media or use the files.download helper.", "operationId": "environments.files.media.download", @@ -1139,13 +1193,11 @@ } }, { - "name": "filesId", - "in": "path", - "required": true, + "name": "path", + "in": "query", "description": "Optional. The path of the file or directory within the environment. If empty, defaults to the root of the workspace. Example: \"workspace/src/main.py\"", "schema": { - "type": "string", - "pattern": "^.*$" + "type": "string" } }, { @@ -1171,47 +1223,68 @@ } } }, - "/files/{filesId}": { - "get": { - "description": "Gets the metadata for the given `File`.", - "operationId": "files.get", + "/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 name of the `File` to get. Example: `files/abc-123`", + "description": "Required. The destination relative path of the file within the environment. Example: \"workspace/src/main.py\"", "schema": { "type": "string", - "pattern": "^files/[^/]+$" + "pattern": "^.*$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UploadEnvironmentFileRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/File" + "$ref": "#/components/schemas/UploadEnvironmentFileResponse" } } } } } - }, - "delete": { - "description": "Deletes the `File`.", - "operationId": "files.delete", + } + }, + "/cachedContents/{cachedContentsId}": { + "get": { + "description": "Reads CachedContent resource.", + "operationId": "cachedContents.get", "parameters": [ { - "name": "filesId", + "name": "cachedContentsId", "in": "path", "required": true, - "description": "Required. The name of the `File` to delete. Example: `files/abc-123`", + "description": "Required. The resource name referring to the content cache entry. Format: `cachedContents/{id}`", "schema": { "type": "string", - "pattern": "^files/[^/]+$" + "pattern": "^cachedContents/[^/]+$" } } ], @@ -1221,23 +1294,42 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/CachedContent" } } } } } - } - }, - "/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", + }, + "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/RegisterFilesRequest" + "$ref": "#/components/schemas/CachedContent" } } } @@ -1248,7 +1340,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RegisterFilesResponse" + "$ref": "#/components/schemas/CachedContent" + } + } + } + } + } + }, + "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" } } } @@ -1256,15 +1376,15 @@ } } }, - "/files": { + "/cachedContents": { "get": { - "description": "Lists the metadata for `File`s owned by the requesting project.", - "operationId": "files.list", + "description": "Lists CachedContents.", + "operationId": "cachedContents.list", "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.", + "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" @@ -1273,7 +1393,7 @@ { "name": "pageToken", "in": "query", - "description": "Optional. A page token from a previous `ListFiles` call.", + "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" } @@ -1285,7 +1405,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListFilesResponse" + "$ref": "#/components/schemas/ListCachedContentsResponse" } } } @@ -1293,13 +1413,13 @@ } }, "post": { - "description": "Creates a `File`.", - "operationId": "media.upload", + "description": "Creates CachedContent resource.", + "operationId": "cachedContents.create", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateFileRequest" + "$ref": "#/components/schemas/CachedContent" } } } @@ -1310,7 +1430,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateFileResponse" + "$ref": "#/components/schemas/CachedContent" } } } @@ -1318,19 +1438,19 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}": { + "/corpora/{corporaId}": { "get": { - "description": "Gets information about a specific `FileSearchStore`.", - "operationId": "fileSearchStores.get", + "description": "Gets information about a specific `Corpus`.", + "operationId": "corpora.get", "parameters": [ { - "name": "fileSearchStoresId", + "name": "corporaId", "in": "path", "required": true, - "description": "Required. The name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", + "description": "Required. The name of the `Corpus`. Example: `corpora/my-corpus-123`", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+$" + "pattern": "^corpora/[^/]+$" } } ], @@ -1340,7 +1460,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FileSearchStore" + "$ref": "#/components/schemas/Corpus" } } } @@ -1348,25 +1468,25 @@ } }, "delete": { - "description": "Deletes a `FileSearchStore`.", - "operationId": "fileSearchStores.delete", + "description": "Deletes a `Corpus`.", + "operationId": "corpora.delete", "parameters": [ { "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.", + "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": "boolean" } }, { - "name": "fileSearchStoresId", + "name": "corporaId", "in": "path", "required": true, - "description": "Required. The resource name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", + "description": "Required. The resource name of the `Corpus`. Example: `corpora/my-corpus-123`", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+$" + "pattern": "^corpora/[^/]+$" } } ], @@ -1384,15 +1504,15 @@ } } }, - "/fileSearchStores": { + "/corpora": { "post": { - "description": "Creates an empty `FileSearchStore`.", - "operationId": "fileSearchStores.create", + "description": "Creates an empty `Corpus`.", + "operationId": "corpora.create", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FileSearchStore" + "$ref": "#/components/schemas/Corpus" } } } @@ -1403,7 +1523,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FileSearchStore" + "$ref": "#/components/schemas/Corpus" } } } @@ -1411,13 +1531,13 @@ } }, "get": { - "description": "Lists all `FileSearchStores` owned by the user.", - "operationId": "fileSearchStores.list", + "description": "Lists all `Corpora` owned by the user.", + "operationId": "corpora.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": "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" @@ -1426,7 +1546,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": "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" } @@ -1438,7 +1558,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListFileSearchStoresResponse" + "$ref": "#/components/schemas/ListCorporaResponse" } } } @@ -1446,19 +1566,36 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}:importFile": { - "post": { - "description": "Imports a `File` from File Service to a `FileSearchStore`.", - "operationId": "fileSearchStores.importFile", + "/corpora/{corporaId}/permissions/{permissionsId}": { + "patch": { + "description": "Updates the permission.", + "operationId": "corpora.permissions.patch", "parameters": [ { - "name": "fileSearchStoresId", + "name": "permissionsId", "in": "path", "required": true, - "description": "Required. Immutable. The name of the `FileSearchStore` to import the file into. Example: `fileSearchStores/my-file-search-store-123`", + "schema": { + "type": "string" + } + }, + { + "name": "corporaId", + "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": "^fileSearchStores/[^/]+$" + "pattern": "^corpora/[^/]+/permissions/[^/]+$" + } + }, + { + "name": "updateMask", + "in": "query", + "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)", + "schema": { + "type": "string", + "format": "google-fieldmask" } } ], @@ -1466,7 +1603,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ImportFileRequest" + "$ref": "#/components/schemas/Permission" } } } @@ -1477,21 +1614,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/Permission" } } } } } - } - }, - "/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", + }, + "delete": { + "description": "Deletes the permission.", + "operationId": "corpora.permissions.delete", "parameters": [ { - "name": "operationsId", + "name": "permissionsId", "in": "path", "required": true, "schema": { @@ -1499,13 +1634,13 @@ } }, { - "name": "fileSearchStoresId", + "name": "corporaId", "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": "^fileSearchStores/[^/]+/operations/[^/]+$" + "pattern": "^corpora/[^/]+/permissions/[^/]+$" } } ], @@ -1515,21 +1650,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/Empty" } } } } } - } - }, - "/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", + "description": "Gets information about a specific Permission.", + "operationId": "corpora.permissions.get", "parameters": [ { - "name": "operationsId", + "name": "permissionsId", "in": "path", "required": true, "schema": { @@ -1537,13 +1670,13 @@ } }, { - "name": "fileSearchStoresId", + "name": "corporaId", "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": "^fileSearchStores/[^/]+/upload/operations/[^/]+$" + "pattern": "^corpora/[^/]+/permissions/[^/]+$" } } ], @@ -1553,7 +1686,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/Permission" } } } @@ -1561,27 +1694,36 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}": { + "/corpora/{corporaId}/permissions": { "get": { - "description": "Gets information about a specific `Document`.", - "operationId": "fileSearchStores.documents.get", + "description": "Lists permissions for the specific resource.", + "operationId": "corpora.permissions.list", "parameters": [ { - "name": "fileSearchStoresId", - "in": "path", - "required": true, + "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", + "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": "documentsId", + "name": "corporaId", "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": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$" + "pattern": "^corpora/[^/]+$" } } ], @@ -1591,51 +1733,44 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Document" + "$ref": "#/components/schemas/ListPermissionsResponse" } } } } } }, - "delete": { - "description": "Deletes a `Document`.", - "operationId": "fileSearchStores.documents.delete", + "post": { + "description": "Create a permission to a specific resource.", + "operationId": "corpora.permissions.create", "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", + "name": "corporaId", "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`", + "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$" + "pattern": "^corpora/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Permission" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/Permission" } } } @@ -1643,36 +1778,27 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}/documents": { + "/corpora/{corporaId}/operations/{operationsId}": { "get": { - "description": "Lists all `Document`s in a `Corpus`.", - "operationId": "fileSearchStores.documents.list", + "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": "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.", + "name": "operationsId", + "in": "path", + "required": true, "schema": { "type": "string" } }, { - "name": "fileSearchStoresId", + "name": "corporaId", "in": "path", "required": true, - "description": "Required. The name of the `FileSearchStore` containing `Document`s. Example: `fileSearchStores/my-file-search-store-123`", + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+$" + "pattern": "^corpora/[^/]+/operations/[^/]+$" } } ], @@ -1682,7 +1808,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListDocumentsResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -1690,36 +1816,15 @@ } } }, - "/batches/{batchesId}:updateGenerateContentBatch": { - "patch": { - "description": "Updates a batch of GenerateContent requests for batch processing.", - "operationId": "batches.updateGenerateContentBatch", - "parameters": [ - { - "name": "batchesId", - "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.", - "schema": { - "type": "string", - "format": "google-fieldmask" - } - } - ], + "/fileSearchStores": { + "post": { + "description": "Creates an empty `FileSearchStore`.", + "operationId": "fileSearchStores.create", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentBatch" + "$ref": "#/components/schemas/FileSearchStore" } } } @@ -1730,55 +1835,42 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentBatch" + "$ref": "#/components/schemas/FileSearchStore" } } } } } - } - }, - "/batches/{batchesId}:updateEmbedContentBatch": { - "patch": { - "description": "Updates a batch of EmbedContent requests for batch processing.", - "operationId": "batches.updateEmbedContentBatch", - "parameters": [ + }, + "get": { + "description": "Lists all `FileSearchStores` owned by the user.", + "operationId": "fileSearchStores.list", + "parameters": [ { - "name": "batchesId", - "in": "path", - "required": true, - "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", + "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.", "schema": { - "type": "string", - "pattern": "^batches/[^/]+$" + "type": "integer", + "format": "int32" } }, { - "name": "updateMask", + "name": "pageToken", "in": "query", - "description": "Optional. The list of fields to update.", + "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", - "format": "google-fieldmask" + "type": "string" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EmbedContentBatch" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EmbedContentBatch" + "$ref": "#/components/schemas/ListFileSearchStoresResponse" } } } @@ -1786,19 +1878,19 @@ } } }, - "/batches/{batchesId}": { + "/fileSearchStores/{fileSearchStoresId}": { "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 `FileSearchStore`.", + "operationId": "fileSearchStores.get", "parameters": [ { - "name": "batchesId", + "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "description": "Required. The name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", "schema": { "type": "string", - "pattern": "^batches/[^/]+$" + "pattern": "^fileSearchStores/[^/]+$" } } ], @@ -1808,7 +1900,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/FileSearchStore" } } } @@ -1816,17 +1908,25 @@ } }, "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 `FileSearchStore`.", + "operationId": "fileSearchStores.delete", "parameters": [ { - "name": "batchesId", + "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": "boolean" + } + }, + { + "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "The name of the operation resource to be deleted.", + "description": "Required. The resource name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", "schema": { "type": "string", - "pattern": "^batches/[^/]+$" + "pattern": "^fileSearchStores/[^/]+$" } } ], @@ -1844,52 +1944,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", + "/fileSearchStores/{fileSearchStoresId}:importFile": { + "post": { + "description": "Imports a `File` from File Service to a `FileSearchStore`.", + "operationId": "fileSearchStores.importFile", "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": "fileSearchStoresId", + "in": "path", + "required": true, + "description": "Required. Immutable. The name of the `FileSearchStore` to import the file into. Example: `fileSearchStores/my-file-search-store-123`", "schema": { - "type": "boolean" + "type": "string", + "pattern": "^fileSearchStores/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImportFileRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListOperationsResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -1897,19 +1983,27 @@ } } }, - "/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", + "/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": "batchesId", + "name": "operationsId", "in": "path", "required": true, - "description": "The name of the operation resource to be cancelled.", + "schema": { + "type": "string" + } + }, + { + "name": "fileSearchStoresId", + "in": "path", + "required": true, + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^batches/[^/]+$" + "pattern": "^fileSearchStores/[^/]+/upload/operations/[^/]+$" } } ], @@ -1919,7 +2013,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/Operation" } } } @@ -1927,65 +2021,65 @@ } } }, - "/cachedContents/{cachedContentsId}": { - "patch": { - "description": "Updates CachedContent resource (only expiration is updatable).", - "operationId": "cachedContents.patch", + "/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": "cachedContentsId", + "name": "operationsId", "in": "path", "required": true, - "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`", "schema": { - "type": "string", - "pattern": "^cachedContents/[^/]+$" + "type": "string" } }, { - "name": "updateMask", - "in": "query", - "description": "The list of fields to update.", + "name": "fileSearchStoresId", + "in": "path", + "required": true, + "description": "The name of the operation resource.", "schema": { "type": "string", - "format": "google-fieldmask" + "pattern": "^fileSearchStores/[^/]+/operations/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CachedContent" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CachedContent" + "$ref": "#/components/schemas/Operation" } } } } } - }, - "delete": { - "description": "Deletes CachedContent resource.", - "operationId": "cachedContents.delete", + } + }, + "/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}": { + "get": { + "description": "Gets information about a specific `Document`.", + "operationId": "fileSearchStores.documents.get", "parameters": [ { - "name": "cachedContentsId", + "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "Required. The resource name referring to the content cache entry Format: `cachedContents/{id}`", + "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": "^cachedContents/[^/]+$" + "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$" } } ], @@ -1995,25 +2089,41 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/Document" } } } } } }, - "get": { - "description": "Reads CachedContent resource.", - "operationId": "cachedContents.get", + "delete": { + "description": "Deletes a `Document`.", + "operationId": "fileSearchStores.documents.delete", "parameters": [ { - "name": "cachedContentsId", + "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "Required. The resource name referring to the content cache entry. Format: `cachedContents/{id}`", + "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": "^cachedContents/[^/]+$" + "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$" } } ], @@ -2023,7 +2133,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CachedContent" + "$ref": "#/components/schemas/Empty" } } } @@ -2031,15 +2141,15 @@ } } }, - "/cachedContents": { + "/fileSearchStores/{fileSearchStoresId}/documents": { "get": { - "description": "Lists CachedContents.", - "operationId": "cachedContents.list", + "description": "Lists all `Document`s in a `Corpus`.", + "operationId": "fileSearchStores.documents.list", "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.", + "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" @@ -2048,10 +2158,20 @@ { "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.", + "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 name of the `FileSearchStore` containing `Document`s. Example: `fileSearchStores/my-file-search-store-123`", + "schema": { + "type": "string", + "pattern": "^fileSearchStores/[^/]+$" + } } ], "responses": { @@ -2060,21 +2180,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListCachedContentsResponse" + "$ref": "#/components/schemas/ListDocumentsResponse" } } } } } - }, + } + }, + "/auth_tokens": { "post": { - "description": "Creates CachedContent resource.", - "operationId": "cachedContents.create", + "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/CachedContent" + "$ref": "#/components/schemas/AuthToken" } } } @@ -2085,7 +2207,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CachedContent" + "$ref": "#/components/schemas/AuthToken" } } } @@ -2093,16 +2215,16 @@ } } }, - "/tunedModels/{tunedModelsId}:generateContent": { + "/tunedModels/{tunedModelsId}:transferOwnership": { "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", + "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": "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": "^tunedModels/[^/]+$" @@ -2113,7 +2235,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" + "$ref": "#/components/schemas/TransferOwnershipRequest" } } } @@ -2124,7 +2246,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/TransferOwnershipResponse" } } } @@ -2132,66 +2254,64 @@ } } }, - "/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", + "/tunedModels/{tunedModelsId}": { + "get": { + "description": "Gets information about a specific TunedModel.", + "operationId": "tunedModels.get", "parameters": [ { "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 model. Format: `tunedModels/my-model-id`", "schema": { "type": "string", "pattern": "^tunedModels/[^/]+$" } } ], - "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/TunedModel" } } } } } - } - }, - "/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", + }, + "patch": { + "description": "Updates a tuned model.", + "operationId": "tunedModels.patch", "parameters": [ { "name": "tunedModelsId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "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": "^tunedModels/[^/]+$" } + }, + { + "name": "updateMask", + "in": "query", + "description": "Optional. The list of fields to update.", + "schema": { + "type": "string", + "format": "google-fieldmask" + } } ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" + "$ref": "#/components/schemas/TunedModel" } } } @@ -2202,12 +2322,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/TunedModel" } - }, - "text/event-stream": { + } + } + } + } + }, + "delete": { + "description": "Deletes a tuned model.", + "operationId": "tunedModels.delete", + "parameters": [ + { + "name": "tunedModelsId", + "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/GenerateContentResponse" + "$ref": "#/components/schemas/Empty" } } } @@ -2295,16 +2438,16 @@ } } }, - "/tunedModels/{tunedModelsId}:transferOwnership": { + "/tunedModels/{tunedModelsId}:streamGenerateContent": { "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", + "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": "tunedModelsId", "in": "path", "required": true, - "description": "Required. The resource name of the tuned model to transfer ownership. Format: `tunedModels/my-model-id`", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", "pattern": "^tunedModels/[^/]+$" @@ -2315,7 +2458,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TransferOwnershipRequest" + "$ref": "#/components/schemas/GenerateContentRequest" } } } @@ -2326,72 +2469,40 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TransferOwnershipResponse" + "$ref": "#/components/schemas/GenerateContentResponse" } - } - } - } - } - } - }, - "/tunedModels/{tunedModelsId}": { - "get": { - "description": "Gets information about a specific TunedModel.", - "operationId": "tunedModels.get", - "parameters": [ - { - "name": "tunedModelsId", - "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": { + }, + "text/event-stream": { "schema": { - "$ref": "#/components/schemas/TunedModel" + "$ref": "#/components/schemas/GenerateContentResponse" } } } } } - }, - "patch": { - "description": "Updates a tuned model.", - "operationId": "tunedModels.patch", + } + }, + "/tunedModels/{tunedModelsId}:batchGenerateContent": { + "post": { + "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", + "operationId": "tunedModels.batchGenerateContent", "parameters": [ { "name": "tunedModelsId", "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": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", "pattern": "^tunedModels/[^/]+$" } - }, - { - "name": "updateMask", - "in": "query", - "description": "Optional. The list of fields to update.", - "schema": { - "type": "string", - "format": "google-fieldmask" - } } ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TunedModel" + "$ref": "#/components/schemas/BatchGenerateContentRequest" } } } @@ -2402,35 +2513,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TunedModel" + "$ref": "#/components/schemas/Operation" } } } } } - }, - "delete": { - "description": "Deletes a tuned model.", - "operationId": "tunedModels.delete", + } + }, + "/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": "tunedModelsId", "in": "path", "required": true, - "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", "pattern": "^tunedModels/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenerateContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -2438,10 +2560,10 @@ } } }, - "/tunedModels/{tunedModelsId}:batchGenerateContent": { + "/tunedModels/{tunedModelsId}:asyncBatchEmbedContent": { "post": { - "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", - "operationId": "tunedModels.batchGenerateContent", + "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", @@ -2458,7 +2580,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BatchGenerateContentRequest" + "$ref": "#/components/schemas/AsyncBatchEmbedContentRequest" } } } @@ -2579,6 +2701,43 @@ } }, "/tunedModels/{tunedModelsId}/permissions": { + "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/[^/]+$" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Permission" + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Permission" + } + } + } + } + } + }, "get": { "description": "Lists permissions for the specific resource.", "operationId": "tunedModels.permissions.list", @@ -2623,31 +2782,32 @@ } } } - }, - "post": { - "description": "Create a permission to a specific resource.", - "operationId": "tunedModels.permissions.create", + } + }, + "/tunedModels/{tunedModelsId}/permissions/{permissionsId}": { + "get": { + "description": "Gets information about a specific Permission.", + "operationId": "tunedModels.permissions.get", "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/[^/]+$" + "type": "string" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Permission" - } + }, + { + "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", @@ -2660,9 +2820,7 @@ } } } - } - }, - "/tunedModels/{tunedModelsId}/permissions/{permissionsId}": { + }, "patch": { "description": "Updates the permission.", "operationId": "tunedModels.permissions.patch", @@ -2717,42 +2875,6 @@ } } }, - "get": { - "description": "Gets information about a specific Permission.", - "operationId": "tunedModels.permissions.get", - "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", @@ -2789,323 +2911,68 @@ } } } - }, - "/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": "fileSearchStoresId", - "in": "path", - "required": true, - "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/[^/]+$" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UploadToFileSearchStoreRequest" - } - } - } - }, - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CustomLongRunningOperation" - } - } - } - } - } - } - }, - "/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": "dynamicId", - "in": "path", - "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", - "schema": { - "type": "string", - "pattern": "^dynamic/[^/]+$" - } - } - ], - "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" - } - } - } - } - } - } - }, - "/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": "dynamicId", - "in": "path", - "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", - "schema": { - "type": "string", - "pattern": "^dynamic/[^/]+$" - } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" - } - } - } - }, - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" - } - } - } - } - } - } } }, "components": { "schemas": { - "Model": { - "description": "Information about a Generative Language Model.", + "TextResponseFormat": { "type": "object", + "description": "Configuration for text output format.", "properties": { - "description": { - "description": "A short description of the model.", - "type": "string" - }, - "outputTokenLimit": { - "format": "int32", - "description": "Maximum number of output tokens available for this model.", - "type": "integer" + "mimeType": { + "enum": [ + "MIME_TYPE_UNSPECIFIED", + "APPLICATION_JSON", + "TEXT_PLAIN" + ], + "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." }, - "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" + "schema": { + "description": "Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON." + } + } + }, + "GenerateContentBatch": { + "type": "object", + "description": "A resource representing a batch of `GenerateContent` requests.", + "properties": { + "inputConfig": { + "description": "Required. Input configuration of the instances on which batch processing are performed.", + "$ref": "#/components/schemas/InputConfig" }, - "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" + "name": { + "readOnly": true, + "type": "string", + "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`." }, - "maxTemperature": { - "type": "number", - "format": "float", - "description": "The maximum temperature this model can use." + "batchStats": { + "readOnly": true, + "description": "Output only. Stats about the batch.", + "$ref": "#/components/schemas/BatchStats" }, - "temperature": { - "format": "float", - "type": "number", - "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." + "priority": { + "format": "int64", + "type": "string", + "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." }, - "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.", + "createTime": { + "description": "Output only. The time at which the batch was created.", + "format": "google-datetime", + "readOnly": true, "type": "string" }, - "thinking": { - "type": "boolean", - "description": "Whether the model supports thinking." - }, - "supportedGenerationMethods": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`." - }, - "inputTokenLimit": { - "format": "int32", - "description": "Maximum number of input tokens allowed for this model.", - "type": "integer" - }, - "version": { - "type": "string", - "description": "Required. The version number of the model. This represents the major version (`1.0` or `1.5`)" - }, - "baseModelId": { - "description": "Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash`", + "model": { + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "type": "string" }, - "name": { - "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`" - } - } - }, - "LanguageAuto": { - "deprecated": true, - "type": "object", - "properties": {}, - "description": "Indicates the language of the audio should be automatically detected." - }, - "Hyperparameters": { - "type": "object", - "properties": { - "learningRate": { - "type": "number", - "format": "float", - "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." - }, - "epochCount": { - "type": "integer", - "format": "int32", - "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." - }, - "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." - }, - "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." - } - }, - "description": "Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance" - }, - "CachedContentUsageMetadata": { - "description": "Metadata on the usage of the cached content.", - "properties": { - "totalTokenCount": { - "format": "int32", - "description": "Total number of tokens that the cached content consumes.", - "type": "integer" - } - }, - "type": "object" - }, - "Corpus": { - "type": "object", - "description": "A `Corpus` is a collection of `Document`s. A project can create up to 10 corpora.", - "properties": { - "createTime": { - "readOnly": true, - "format": "google-datetime", - "description": "Output only. The Timestamp of when the `Corpus` was created.", - "type": "string" - }, - "displayName": { - "type": "string", - "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\"" - }, - "name": { - "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`", - "readOnly": true, - "type": "string" - }, - "updateTime": { - "description": "Output only. The Timestamp of when the `Corpus` was last updated.", - "format": "google-datetime", - "type": "string", - "readOnly": true - } - } - }, - "GenerateContentBatch": { - "properties": { - "endTime": { - "type": "string", - "readOnly": true, - "format": "google-datetime", - "description": "Output only. The time at which the batch processing completed." - }, - "inputConfig": { - "$ref": "#/components/schemas/InputConfig", - "description": "Required. Input configuration of the instances on which batch processing are performed." - }, - "output": { - "$ref": "#/components/schemas/GenerateContentBatchOutput", - "readOnly": true, - "description": "Output only. The output of the batch request." - }, - "model": { - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", - "type": "string" - }, - "priority": { - "type": "string", - "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.", - "format": "int64" - }, - "displayName": { - "description": "Required. The user-defined name of this batch.", - "type": "string" - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`." - }, - "updateTime": { - "readOnly": true, - "description": "Output only. The time at which the batch was last updated.", - "type": "string", - "format": "google-datetime" - }, - "batchStats": { - "readOnly": true, - "$ref": "#/components/schemas/BatchStats", - "description": "Output only. Stats about the batch." - }, - "createTime": { - "readOnly": true, - "description": "Output only. The time at which the batch was created.", - "type": "string", - "format": "google-datetime" - }, "state": { - "description": "Output only. The state of the batch.", + "readOnly": true, "x-enum-descriptions": [ "The batch state is unspecified.", "The service is preparing to run the batch.", @@ -3115,8 +2982,6 @@ "The batch has been cancelled.", "The batch has expired." ], - "readOnly": true, - "type": "string", "enum": [ "BATCH_STATE_UNSPECIFIED", "BATCH_STATE_PENDING", @@ -3125,900 +2990,906 @@ "BATCH_STATE_FAILED", "BATCH_STATE_CANCELLED", "BATCH_STATE_EXPIRED" - ] + ], + "type": "string", + "description": "Output only. The state of the batch." + }, + "endTime": { + "readOnly": true, + "format": "google-datetime", + "type": "string", + "description": "Output only. The time at which the batch processing completed." + }, + "displayName": { + "description": "Required. The user-defined name of this batch.", + "type": "string" + }, + "output": { + "description": "Output only. The output of the batch request.", + "readOnly": true, + "$ref": "#/components/schemas/GenerateContentBatchOutput" + }, + "updateTime": { + "format": "google-datetime", + "type": "string", + "description": "Output only. The time at which the batch was last updated.", + "readOnly": true + } + } + }, + "FunctionResponsePart": { + "properties": { + "inlineData": { + "description": "Inline media bytes.", + "$ref": "#/components/schemas/FunctionResponseBlob" } }, - "description": "A resource representing a batch of `GenerateContent` requests.", + "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" }, - "GoogleAiGenerativelanguageV1betaGroundingSupport": { + "PlaceAnswerSources": { "type": "object", "properties": { - "confidenceScores": { + "reviewSnippets": { "type": "array", "items": { - "format": "float", - "type": "number" - }, - "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." - }, - "groundingChunkIndices": { - "items": { - "type": "integer", - "format": "int32" + "$ref": "#/components/schemas/ReviewSnippet" }, - "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).", - "type": "array" + "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." + }, + "RetrievalConfig": { + "properties": { + "latLng": { + "$ref": "#/components/schemas/LatLng", + "description": "Optional. The location of the user." }, - "renderedParts": { - "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.", - "readOnly": true, + "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" + } + }, + "type": "object", + "description": "Retrieval config." + }, + "ListPermissionsResponse": { + "properties": { + "permissions": { "type": "array", "items": { - "type": "integer", - "format": "int32" - } + "$ref": "#/components/schemas/Permission" + }, + "description": "Returned permissions." }, - "segment": { - "description": "Segment of the content this support belongs to.", - "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaSegment" + "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": "Grounding support." + "description": "Response from `ListPermissions` containing a paginated list of permissions.", + "type": "object" }, - "Schema": { - "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).", + "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": { - "propertyOrdering": { + "contents": { "type": "array", - "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.", + "description": "Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set.", "items": { - "type": "string" + "$ref": "#/components/schemas/Content" } }, - "minimum": { - "description": "Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER", - "type": "number", - "format": "double" - }, - "pattern": { - "description": "Optional. Pattern of the Type.STRING to restrict a string to a regular expression.", + "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." + } + } + }, + "GroundingPassageId": { + "properties": { + "passageId": { + "description": "Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.", + "readOnly": true, "type": "string" }, - "items": { - "$ref": "#/components/schemas/Schema", - "description": "Optional. Schema of the elements of Type.ARRAY." - }, - "example": { - "description": "Optional. Example of the object. Will only populated when the object is the root." - }, - "minProperties": { - "format": "int64", - "description": "Optional. Minimum number of the properties for Type.OBJECT.", - "type": "string" + "partIndex": { + "description": "Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "description": "Identifier for a part within a `GroundingPassage`.", + "type": "object" + }, + "FunctionDeclaration": { + "type": "object", + "properties": { + "parameters": { + "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.", + "$ref": "#/components/schemas/Schema" }, - "maxLength": { - "format": "int64", - "type": "string", - "description": "Optional. Maximum length of the Type.STRING" - }, - "title": { - "description": "Optional. The title of the schema.", - "type": "string" - }, - "nullable": { - "type": "boolean", - "description": "Optional. Indicates if the value may be null." - }, - "properties": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/Schema" - }, - "description": "Optional. Properties of Type.OBJECT." - }, - "required": { - "description": "Optional. Required properties of Type.OBJECT.", - "type": "array", - "items": { - "type": "string" - } - }, - "type": { - "type": "string", + "behavior": { "enum": [ - "TYPE_UNSPECIFIED", - "STRING", - "NUMBER", - "INTEGER", - "BOOLEAN", - "ARRAY", - "OBJECT", - "NULL" + "UNSPECIFIED", + "BLOCKING", + "NON_BLOCKING" ], - "description": "Required. Data type.", + "type": "string", + "description": "Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method.", "x-enum-descriptions": [ - "Not specified, should not be used.", - "String type.", - "Number type.", - "Integer type.", - "Boolean type.", - "Array type.", - "Object type.", - "Null type." + "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." ] }, - "format": { + "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`." + }, + "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" + }, + "name": { "type": "string", - "description": "Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality." + "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." }, - "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." + "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`." }, - "maxItems": { - "description": "Optional. Maximum number of the elements for Type.ARRAY.", - "format": "int64", + "description": { + "description": "Required. A brief description of the function.", "type": "string" + } + }, + "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." + }, + "EgressRule": { + "type": "object", + "description": "A single domain allowlist rule with optional header injection.", + "properties": { + "domain": { + "type": "string", + "description": "Domain to allow outbound requests to. Supports wildcards (e.g. '*.googleapis.com'). Use '*' to allow all domains." }, - "maximum": { - "description": "Optional. Maximum value of the Type.INTEGER and Type.NUMBER", - "type": "number", - "format": "double" + "transform": { + "description": "Headers to inject into requests matching this rule. Key: header name (e.g., \"Authorization\"). Value: header value (e.g., \"Bearer your-token\").", + "type": "object", + "additionalProperties": { + "type": "string" + } }, - "minLength": { - "description": "Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING", - "format": "int64", + "credential": { + "description": "Optional. Reference to a server-managed Credential resource by ID.", "type": "string" + } + } + }, + "EmbedContentResponse": { + "type": "object", + "description": "The response to an `EmbedContentRequest`.", + "properties": { + "usageMetadata": { + "$ref": "#/components/schemas/EmbeddingUsageMetadata", + "readOnly": true, + "description": "Output only. The usage metadata for the request." }, - "description": { - "type": "string", - "description": "Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown." - }, - "anyOf": { - "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list.", + "embedding": { + "readOnly": true, + "description": "Output only. The embedding generated from the input content.", + "$ref": "#/components/schemas/ContentEmbedding" + } + } + }, + "GroundingMetadata": { + "description": "Metadata returned to client when grounding is enabled.", + "properties": { + "groundingChunks": { "type": "array", "items": { - "$ref": "#/components/schemas/Schema" - } - }, - "maxProperties": { - "type": "string", - "description": "Optional. Maximum number of the properties for Type.OBJECT.", - "format": "int64" + "$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." }, - "enum": { + "imageSearchQueries": { "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\"]}", - "type": "array" + "type": "array", + "description": "Image search queries used for grounding." }, - "minItems": { - "description": "Optional. Minimum number of the elements for Type.ARRAY.", - "format": "int64", + "groundingSupports": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaGroundingSupport" + }, + "description": "List of grounding support." + }, + "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" - } - } - }, - "UploadEnvironmentFileResponse": { - "properties": { - "files": { - "description": "List of files created or extracted in the environment.", + }, + "retrievalMetadata": { + "$ref": "#/components/schemas/RetrievalMetadata", + "description": "Metadata related to retrieval in the grounding flow." + }, + "searchEntryPoint": { + "$ref": "#/components/schemas/SearchEntryPoint", + "description": "Optional. Google search entry for the following-up web searches." + }, + "webSearchQueries": { "items": { - "$ref": "#/components/schemas/EnvironmentFile" + "type": "string" }, + "description": "Web search queries for the following-up web search.", "type": "array" } }, - "description": "Response for `UploadEnvironmentFile`.", "type": "object" }, - "EnvironmentNetworkEgressAllowlist": { - "description": "Network egress configuration for the environment.", - "type": "object", - "properties": { - "allowlist": { - "description": "List of allowed domains and their configurations.", - "type": "array", - "items": { - "$ref": "#/components/schemas/EgressRule" - } - } - } - }, - "RegisterFilesResponse": { + "LogprobsResultCandidate": { + "description": "Candidate for the logprobs token and score.", "properties": { - "files": { - "type": "array", - "description": "The registered files to be used when calling GenerateContent.", - "items": { - "$ref": "#/components/schemas/File" - } + "logProbability": { + "type": "number", + "description": "The candidate's log probability.", + "format": "float" + }, + "tokenId": { + "type": "integer", + "description": "The candidate\u2019s token id value.", + "format": "int32" + }, + "token": { + "type": "string", + "description": "The candidate\u2019s token string value." } }, - "type": "object", - "description": "Response for `RegisterFiles`." + "type": "object" }, - "CreateEnvironmentRequest": { + "V1mainMediaResolution": { "properties": { - "networkMode": { - "type": "string", + "level": { "enum": [ - "NETWORK_MODE_UNSPECIFIED", - "DISABLED" + "MEDIA_RESOLUTION_UNSPECIFIED", + "MEDIA_RESOLUTION_LOW", + "MEDIA_RESOLUTION_MEDIUM", + "MEDIA_RESOLUTION_HIGH", + "MEDIA_RESOLUTION_ULTRA_HIGH" ], - "description": "Network egress mode.", + "type": "string", + "description": "The tokenization quality used for given media. for Gemini API support .", "x-enum-descriptions": [ - "Default value. Unused.", - "All network egress is blocked." + "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." ] - }, - "sources": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Source" - }, - "description": "Sources to be mounted into the environment." - }, - "fromEnvironment": { - "type": "string", - "description": "Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty." - }, - "networkAllowlist": { - "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist", - "description": "Allow only specific domains." } }, - "description": "Request for `CreateEnvironment`.", + "description": "Media resolution for tokenization.", "type": "object" }, - "InputEmbedContentConfig": { - "description": "Configures the input to the batch request.", - "type": "object", + "StringList": { "properties": { - "fileName": { - "description": "The name of the `File` containing the input requests.", - "type": "string" - }, - "requests": { - "description": "The requests to be processed in the batch.", - "$ref": "#/components/schemas/InlinedEmbedContentRequests" + "values": { + "items": { + "type": "string" + }, + "description": "The string values of the metadata to store.", + "type": "array" } - } + }, + "type": "object", + "description": "User provided string values assigned to a single metadata key." }, - "FunctionResponse": { + "AudioResponseFormat": { "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.", + "description": "Configuration for audio output format.", "properties": { - "id": { - "type": "string", - "description": "Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`." - }, - "parts": { - "type": "array", - "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.", - "items": { - "$ref": "#/components/schemas/FunctionResponsePart" - } - }, - "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", "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." + "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." ], "enum": [ - "SCHEDULING_UNSPECIFIED", - "SILENT", - "WHEN_IDLE", - "INTERRUPT" - ] + "MIME_TYPE_UNSPECIFIED", + "AUDIO_MP3", + "AUDIO_OGG_OPUS", + "AUDIO_L16", + "AUDIO_WAV", + "AUDIO_ALAW", + "AUDIO_MULAW" + ], + "description": "Optional. The MIME type of the audio output." }, - "response": { - "type": "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.", - "additionalProperties": { - "description": "Properties of the object." - } + "sampleRate": { + "type": "integer", + "format": "int32", + "description": "Optional. Sample rate in Hz." }, - "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`." + "bitRate": { + "format": "int32", + "type": "integer", + "description": "Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus)." }, - "name": { + "delivery": { + "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." + ], "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." + "enum": [ + "DELIVERY_UNSPECIFIED", + "INLINE", + "URI" + ] } } }, - "CountTokensResponse": { - "type": "object", + "VideoMetadata": { + "description": "Deprecated: Use `GenerateContentRequest.processing_options` instead. Metadata describes the input video content.", + "deprecated": true, "properties": { - "totalTokens": { - "format": "int32", - "description": "The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative.", - "type": "integer" - }, - "promptTokensDetails": { - "type": "array", - "description": "Output only. List of modalities that were processed in the request input.", - "readOnly": true, - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - } + "startOffset": { + "description": "Optional. The start offset of the video.", + "type": "string", + "format": "google-duration" }, - "cacheTokensDetails": { - "readOnly": true, - "type": "array", - "description": "Output only. List of modalities that were processed in the cached content.", - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - } + "fps": { + "format": "double", + "type": "number", + "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]." }, - "cachedContentTokenCount": { - "format": "int32", - "type": "integer", - "description": "Number of tokens in the cached part of the prompt (the cached content)." + "endOffset": { + "format": "google-duration", + "description": "Optional. The end offset of the video.", + "type": "string" } }, - "description": "A response from `CountTokens`. It returns the model's `token_count` for the `prompt`." + "type": "object" }, - "GenerateContentResponse": { + "Part": { + "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.", + "type": "object", "properties": { - "candidates": { - "description": "Candidate responses from the model.", - "items": { - "$ref": "#/components/schemas/Candidate" + "fileData": { + "description": "URI based data.", + "$ref": "#/components/schemas/FileData" + }, + "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." + }, + "inlineData": { + "$ref": "#/components/schemas/Blob", + "description": "Inline media bytes." + }, + "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" + }, + "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.", + "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." + ], + "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`." + }, + "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." + }, + "mediaResolution": { + "$ref": "#/components/schemas/V1mainMediaResolution", + "description": "Optional. Media resolution for the input media." + }, + "audioTranscription": { + "description": "Optional. Audio (input or output) transcription. This is only set when this Part contains audio data.", + "$ref": "#/components/schemas/AudioTranscription" + }, + "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." + }, + "executableCode": { + "$ref": "#/components/schemas/ExecutableCode", + "description": "Code generated by the model that is meant to be executed." + }, + "partMetadata": { + "type": "object", + "additionalProperties": { + "description": "Properties of the object." }, - "type": "array" + "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." }, - "modelStatus": { - "description": "Output only. The current model status of this model.", - "readOnly": true, - "$ref": "#/components/schemas/ModelStatus" + "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." }, - "usageMetadata": { - "description": "Output only. Metadata on the generation requests' token usage.", - "$ref": "#/components/schemas/UsageMetadata", - "readOnly": true + "thoughtSignature": { + "format": "byte", + "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.", + "type": "string" }, - "modelVersion": { - "type": "string", - "readOnly": true, - "description": "Output only. The model version used to generate the response." + "codeExecutionResult": { + "description": "Result of executing the `ExecutableCode`.", + "$ref": "#/components/schemas/CodeExecutionResult" }, - "promptFeedback": { - "$ref": "#/components/schemas/PromptFeedback", - "description": "Returns the prompt's feedback related to the content filters." + "thought": { + "type": "boolean", + "description": "Optional. Indicates if the part is thought from the model." }, - "responseId": { - "description": "Output only. response_id is used to identify each response.", - "type": "string", - "readOnly": true + "text": { + "description": "Inline text.", + "type": "string" } - }, - "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`." + } }, - "ListFilesResponse": { + "ListModelsResponse": { + "description": "Response from `ListModel` containing a paginated list of Models.", + "type": "object", "properties": { - "nextPageToken": { - "description": "A token that can be sent as a `page_token` into a subsequent `ListFiles` call.", - "type": "string" - }, - "files": { + "models": { + "description": "The returned Models.", "items": { - "$ref": "#/components/schemas/File" + "$ref": "#/components/schemas/Model" }, - "description": "The list of `File`s.", "type": "array" + }, + "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" } - }, - "type": "object", - "description": "Response for `ListFiles`." + } }, - "ListCachedContentsResponse": { - "description": "Response with CachedContents list.", + "BatchEmbedContentsRequest": { + "description": "Batch request to get embeddings from the model for a list of prompts.", "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 subsequent pages." - }, - "cachedContents": { - "description": "List of cached contents.", + "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/CachedContent" + "$ref": "#/components/schemas/EmbedContentRequest" } } }, "type": "object" }, - "VideoMetadata": { - "description": "Deprecated: Use `GenerateContentRequest.processing_options` instead. Metadata describes the input video content.", + "GoogleSearch": { + "type": "object", "properties": { - "endOffset": { - "format": "google-duration", - "type": "string", - "description": "Optional. The end offset of the video." - }, - "startOffset": { - "type": "string", - "description": "Optional. The start offset of the video.", - "format": "google-duration" + "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" }, - "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" + "searchTypes": { + "description": "Optional. The set of search types to enable. If not set, web search is enabled by default.", + "$ref": "#/components/schemas/SearchTypes" } }, - "type": "object", - "deprecated": true + "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google." }, - "Status": { - "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).", + "CitationSource": { + "type": "object", + "description": "A citation to a source for a portion of a specific response.", "properties": { - "message": { + "uri": { "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." + "description": "Optional. URI that is attributed as a source for a portion of the text." }, - "code": { + "startIndex": { "format": "int32", - "description": "The status code, which should be an enum value of google.rpc.Code.", - "type": "integer" + "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." }, - "details": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." - } - }, - "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use." + "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" + }, + "endIndex": { + "type": "integer", + "format": "int32", + "description": "Optional. End of the attributed segment, exclusive." } - }, - "type": "object" + } }, - "AudioTranscriptionConfig": { - "type": "object", - "description": "The audio transcription configuration.", + "EmbedContentBatchOutput": { "properties": { - "diarization": { - "type": "boolean", - "description": "Optional. Configures speaker diarization." - }, - "wordTimestamp": { - "type": "boolean", - "description": "Optional. Configures word-level timestamp generation." + "responsesFile": { + "readOnly": true, + "type": "string", + "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." }, - "languageCodes": { - "items": { - "type": "string" - }, + "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/InlinedEmbedContentResponses" + } + }, + "type": "object", + "description": "The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field." + }, + "BatchEmbedContentsResponse": { + "description": "The response to a `BatchEmbedContentsRequest`.", + "properties": { + "embeddings": { + "description": "Output only. The embeddings for each request, in the same order as provided in the batch request.", "type": "array", - "description": "Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection." - }, - "customVocabulary": { + "readOnly": true, "items": { - "type": "string" - }, - "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon).", - "type": "array" + "$ref": "#/components/schemas/ContentEmbedding" + } }, - "languageHints": { - "deprecated": true, - "description": "Optional. Specifies one or more languages in the audio.", - "$ref": "#/components/schemas/LanguageHints" + "usageMetadata": { + "description": "Output only. The usage metadata for the request.", + "readOnly": true, + "$ref": "#/components/schemas/EmbeddingUsageMetadata" + } + }, + "type": "object" + }, + "FunctionCall": { + "properties": { + "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" }, - "languageAuto": { - "description": "Optional. The model will detect the language automatically.", - "$ref": "#/components/schemas/LanguageAuto", - "deprecated": true + "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" }, - "adaptationPhrases": { - "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" + "args": { + "additionalProperties": { + "description": "Properties of the object." }, - "type": "array" - }, - "mode": { - "type": "string", - "enum": [ - "MODE_UNSPECIFIED", - "VERBATIM", - "SMART" - ], - "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`.", - "x-enum-descriptions": [ - "Unspecified transcription mode.", - "Verbatim transcription mode.", - "Smart transcription mode." - ] + "type": "object", + "description": "Optional. The function parameters and values in JSON object format." } - } + }, + "type": "object", + "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values." }, - "MultiSpeakerVoiceConfig": { + "InlinedEmbedContentResponses": { + "type": "object", + "description": "The responses to the requests in the batch.", "properties": { - "speakerVoiceConfigs": { - "description": "Required. All the enabled speaker voices.", + "inlinedResponses": { "items": { - "$ref": "#/components/schemas/SpeakerVoiceConfig" + "$ref": "#/components/schemas/InlinedEmbedContentResponse" }, - "type": "array" + "type": "array", + "readOnly": true, + "description": "Output only. The responses to the requests in the batch." } - }, + } + }, + "AsyncBatchEmbedContentRequest": { + "description": "Request for an `AsyncBatchEmbedContent` operation.", "type": "object", - "description": "The configuration for the multi-speaker setup." + "properties": { + "batch": { + "$ref": "#/components/schemas/EmbedContentBatch", + "description": "Required. The batch to create." + } + } }, - "AudioTranscription": { - "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.", + "ListOperationsResponse": { "properties": { - "text": { - "description": "Required. The transcription text of this audio segment.", + "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": { + "type": "string" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The standard List next-page token.", "type": "string" }, - "words": { + "operations": { "type": "array", "items": { - "$ref": "#/components/schemas/WordInfo" + "$ref": "#/components/schemas/Operation" }, - "description": "Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set." - }, - "speakerLabel": { - "type": "string", - "description": "Optional. A label identifying the speaker of this audio segment (e.g. \"spk_1\", \"spk_2\"). Present when diarization is set." + "description": "A list of operations that matches the specified filter in the request." } }, - "type": "object" + "type": "object", + "description": "The response message for Operations.ListOperations." }, - "EmbeddingUsageMetadata": { - "description": "Metadata on the usage of the embedding request.", + "InlinedEmbedContentRequests": { + "description": "The requests to be processed in the batch if provided as part of the batch creation request.", "type": "object", "properties": { - "promptTokenCount": { - "readOnly": true, - "type": "integer", - "description": "Output only. Number of tokens in the prompt.", - "format": "int32" - }, - "promptTokenDetails": { - "readOnly": true, + "requests": { + "type": "array", "items": { - "$ref": "#/components/schemas/ModalityTokenCount" + "$ref": "#/components/schemas/InlinedEmbedContentRequest" }, - "description": "Output only. List of modalities that were processed in the request input.", - "type": "array" + "description": "Required. The requests to be processed in the batch." } } }, - "SearchEntryPoint": { - "description": "Google search entry point.", + "SearchTypes": { + "description": "Different types of search that can be enabled on the GoogleSearch tool.", "properties": { - "sdkBlob": { - "description": "Optional. Base64 encoded JSON representing array of tuple.", - "format": "byte", - "type": "string" + "webSearch": { + "description": "Optional. Enables web search. Only text results are returned.", + "$ref": "#/components/schemas/WebSearch" }, - "renderedContent": { - "type": "string", - "description": "Optional. Web content snippet that can be embedded in a web page or an app webview." + "imageSearch": { + "$ref": "#/components/schemas/ImageSearch", + "description": "Optional. Enables image search. Image bytes are returned." } }, "type": "object" }, - "TopCandidates": { - "type": "object", - "description": "Candidates with top log probabilities at each decoding step.", + "RegisterFilesResponse": { + "description": "Response for `RegisterFiles`.", "properties": { - "candidates": { - "type": "array", + "files": { + "description": "The registered files to be used when calling GenerateContent.", "items": { - "$ref": "#/components/schemas/LogprobsResultCandidate" + "$ref": "#/components/schemas/File" }, - "description": "Sorted by log probability in descending order." + "type": "array" } - } + }, + "type": "object" }, - "FileData": { - "description": "URI based data.", + "GroundingChunkStringList": { + "type": "object", "properties": { - "fileUri": { - "description": "Required. URI.", - "type": "string" - }, - "mimeType": { - "description": "Optional. The IANA standard MIME type of the source data.", - "type": "string" - }, - "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`." + "values": { + "items": { + "type": "string" + }, + "description": "The string values of the list.", + "type": "array" } }, - "type": "object" + "description": "A list of string values." }, - "GeneratedFile": { - "description": "A file generated on behalf of a user.", + "LatLng": { "properties": { - "error": { - "$ref": "#/components/schemas/Status", - "description": "Error details if the GeneratedFile ends up in the STATE_FAILED state." - }, - "mimeType": { - "description": "MIME type of the generatedFile.", - "type": "string" - }, - "name": { - "type": "string", - "description": "Identifier. The name of the generated file. Example: `generatedFiles/abc-123`" + "longitude": { + "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].", + "format": "double", + "type": "number" }, - "state": { - "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." - ], - "type": "string", - "enum": [ - "STATE_UNSPECIFIED", - "GENERATING", - "GENERATED", - "FAILED" - ], - "description": "Output only. The state of the GeneratedFile.", - "readOnly": true + "latitude": { + "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].", + "type": "number", + "format": "double" } }, + "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.", "type": "object" }, - "Image": { + "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.", + "type": "object", "properties": { - "sourceUri": { - "type": "string", - "description": "The web page URI for attribution." - }, - "imageUri": { - "description": "The image asset URL.", - "type": "string" - }, - "title": { - "description": "The title of the web page that the image is from.", + "retirementTime": { + "description": "The time at which the model will be retired.", + "format": "google-datetime", "type": "string" }, - "domain": { - "type": "string", - "description": "The root domain of the web page that the image is from, e.g. \"example.com\"." - } - }, - "type": "object", - "description": "Chunk from image search." - }, - "ThinkingConfig": { - "properties": { - "thinkingBudget": { - "description": "The number of thoughts tokens that the model should generate.", - "format": "int32", - "type": "integer" - }, - "includeThoughts": { - "description": "Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.", - "type": "boolean" - }, - "thinkingLevel": { - "type": "string", + "modelStage": { "enum": [ - "THINKING_LEVEL_UNSPECIFIED", - "MINIMAL", - "LOW", - "MEDIUM", - "HIGH" + "MODEL_STAGE_UNSPECIFIED", + "UNSTABLE_EXPERIMENTAL", + "EXPERIMENTAL", + "PREVIEW", + "STABLE", + "LEGACY", + "DEPRECATED", + "RETIRED" ], - "x-enum-descriptions": [ - "Default value.", - "Little to no thinking.", - "Low thinking level.", - "Medium thinking level.", - "High thinking level." + "description": "The stage of the underlying model.", + "enumDeprecated": [ + false, + true, + false, + false, + false, + false, + true, + false ], - "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." + "type": "string", + "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." + ] + }, + "message": { + "description": "A message explaining the model status.", + "type": "string" } - }, - "description": "Config for thinking features.", - "type": "object" + } }, - "GoogleMaps": { + "InlinedRequest": { "properties": { - "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." + "request": { + "description": "Required. The request to be processed in the batch.", + "$ref": "#/components/schemas/GenerateContentRequest" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object." + }, + "type": "object", + "description": "Optional. The metadata to be associated with the request." } }, - "description": "The GoogleMaps Tool that provides geospatial context for the user's query.", - "type": "object" - }, - "ImageSearch": { - "description": "Image search for grounding and related configurations.", - "properties": {}, + "description": "The request to be processed in the batch.", "type": "object" }, - "BatchEmbedContentsResponse": { + "ContentEmbedding": { + "type": "object", "properties": { - "usageMetadata": { - "description": "Output only. The usage metadata for the request.", - "$ref": "#/components/schemas/EmbeddingUsageMetadata", - "readOnly": true + "values": { + "description": "The embedding values. This is for 3P users only and will not be populated for 1P calls.", + "items": { + "format": "float", + "type": "number" + }, + "type": "array" }, - "embeddings": { - "type": "array", - "readOnly": true, + "shape": { + "description": "This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048]).", "items": { - "$ref": "#/components/schemas/ContentEmbedding" + "type": "integer", + "format": "int32" }, - "description": "Output only. The embeddings for each request, in the same order as provided in the batch request." + "type": "array" } }, - "type": "object", - "description": "The response to a `BatchEmbedContentsRequest`." + "description": "A list of floats representing an embedding." }, - "ImageConfig": { + "ListGeneratedFilesResponse": { + "description": "Response for `ListGeneratedFiles`.", "type": "object", "properties": { - "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" + "nextPageToken": { + "type": "string", + "description": "A token that can be sent as a `page_token` into a subsequent `ListGeneratedFiles` call." }, - "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`.", - "type": "string" + "generatedFiles": { + "items": { + "$ref": "#/components/schemas/GeneratedFile" + }, + "type": "array", + "description": "The list of `GeneratedFile`s." } - }, - "description": "Config for image generation features." + } }, - "TuningExample": { + "TuningExamples": { + "description": "A set of tuning examples. Can be training or validation data.", "type": "object", - "description": "A single example for tuning.", "properties": { - "textInput": { - "description": "Optional. Text model input.", - "type": "string" - }, - "output": { - "type": "string", - "description": "Required. The expected model output." + "examples": { + "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.", + "items": { + "$ref": "#/components/schemas/TuningExample" + } } } }, - "CachedContent": { + "Tool": { "type": "object", "properties": { - "expireTime": { - "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": "string" - }, - "systemInstruction": { - "$ref": "#/components/schemas/Content", - "description": "Optional. Input only. Immutable. Developer set system instruction. Currently text only." - }, - "toolConfig": { - "$ref": "#/components/schemas/ToolConfig", - "description": "Optional. Input only. Immutable. Tool config. This config is shared for all tools." + "googleMaps": { + "$ref": "#/components/schemas/GoogleMaps", + "description": "Optional. Tool that allows grounding the model's response with geospatial context related to the user's query." }, - "usageMetadata": { - "readOnly": true, - "description": "Output only. Metadata on the usage of the cached content.", - "$ref": "#/components/schemas/CachedContentUsageMetadata" + "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" }, - "ttl": { - "format": "google-duration", - "type": "string", - "description": "Input only. New TTL for this resource, input only." + "googleSearchRetrieval": { + "$ref": "#/components/schemas/GoogleSearchRetrieval", + "description": "Optional. Retrieval tool that is powered by Google search." }, - "model": { - "type": "string", - "description": "Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`" + "fileSearch": { + "$ref": "#/components/schemas/FileSearch", + "description": "Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora." }, - "tools": { - "description": "Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response", - "type": "array", + "functionDeclarations": { "items": { - "$ref": "#/components/schemas/Tool" - } + "$ref": "#/components/schemas/FunctionDeclaration" + }, + "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" }, - "displayName": { - "description": "Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.", - "type": "string" + "urlContext": { + "description": "Optional. Tool to support URL context retrieval.", + "$ref": "#/components/schemas/UrlContext" }, - "updateTime": { - "description": "Output only. When the cache entry was last updated in UTC time.", - "readOnly": true, - "type": "string", - "format": "google-datetime" + "googleSearch": { + "description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.", + "$ref": "#/components/schemas/GoogleSearch" }, - "contents": { - "type": "array", + "codeExecution": { + "description": "Optional. Enables the model to execute code as part of generation.", + "$ref": "#/components/schemas/CodeExecution" + }, + "mcpServers": { + "description": "Optional. MCP Servers to connect to.", "items": { - "$ref": "#/components/schemas/Content" + "$ref": "#/components/schemas/McpServer" }, - "description": "Optional. Input only. Immutable. The content to cache." - }, - "name": { - "type": "string", + "type": "array" + } + }, + "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" + }, + "TuningSnapshot": { + "properties": { + "epoch": { "readOnly": true, - "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`" + "format": "int32", + "type": "integer", + "description": "Output only. The epoch this step was part of." }, - "createTime": { - "format": "google-datetime", + "meanLoss": { + "format": "float", + "type": "number", + "description": "Output only. The mean loss of the training examples for this step.", + "readOnly": true + }, + "computeTime": { "type": "string", + "description": "Output only. The timestamp when this metric was computed.", + "format": "google-datetime", + "readOnly": true + }, + "step": { + "format": "int32", "readOnly": true, - "description": "Output only. Creation time of the cache entry." + "type": "integer", + "description": "Output only. The tuning step." } }, - "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." - }, - "InlinedRequests": { - "description": "The requests to be processed in the batch if provided as part of the batch creation request.", "type": "object", - "properties": { - "requests": { - "description": "Required. The requests to be processed in the batch.", - "items": { - "$ref": "#/components/schemas/InlinedRequest" - }, - "type": "array" - } - } + "description": "Record for a single tuning step." }, - "ListCorporaResponse": { + "SafetyRating": { "properties": { - "corpora": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Corpus" - }, - "description": "The returned corpora." - }, - "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." - } - }, - "type": "object", - "description": "Response from `ListCorpora` containing a paginated list of `Corpora`. The results are sorted by ascending `corpus.create_time`." - }, - "SafetySetting": { - "description": "Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked.", - "properties": { - "threshold": { - "description": "Required. Controls the probability threshold at which harm is blocked.", - "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." - ] - }, "category": { + "type": "string", "x-enum-descriptions": [ "Category is unspecified.", "**PaLM** - Negative or harmful comments targeting identity and/or protected attribute.", @@ -4049,7 +3920,6 @@ true, false ], - "type": "string", "enum": [ "HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_DEROGATORY", @@ -4065,459 +3935,537 @@ "HARM_CATEGORY_CIVIC_INTEGRITY", "HARM_CATEGORY_JAILBREAK" ], - "description": "Required. The category for this setting." + "description": "Required. The category for this rating." + }, + "probability": { + "enum": [ + "HARM_PROBABILITY_UNSPECIFIED", + "NEGLIGIBLE", + "LOW", + "MEDIUM", + "HIGH" + ], + "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." + ], + "type": "string" + }, + "blocked": { + "type": "boolean", + "description": "Was this content blocked because of this rating?" } }, + "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.", "type": "object" }, - "PromptFeedback": { + "CreateEnvironmentRequest": { "type": "object", - "description": "A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`.", "properties": { - "blockReason": { + "networkAllowlist": { + "description": "Allow only specific domains.", + "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" + }, + "sources": { + "items": { + "$ref": "#/components/schemas/Source" + }, + "type": "array", + "description": "Sources to be mounted into the environment." + }, + "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": { + "enum": [ + "NETWORK_MODE_UNSPECIFIED", + "DISABLED" + ], + "description": "Network egress mode.", + "type": "string", + "x-enum-descriptions": [ + "Default value. Unused.", + "All network egress is blocked." + ] + } + }, + "description": "Request for `CreateEnvironment`." + }, + "InputEmbedContentConfig": { + "properties": { + "fileName": { + "description": "The name of the `File` containing the input requests.", + "type": "string" + }, + "requests": { + "$ref": "#/components/schemas/InlinedEmbedContentRequests", + "description": "The requests to be processed in the batch." + } + }, + "description": "Configures the input to the batch request.", + "type": "object" + }, + "Candidate": { + "type": "object", + "properties": { + "finishReason": { "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." + "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." ], - "description": "Optional. If set, the prompt was blocked and no candidates are returned. Rephrase the prompt.", + "description": "Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.", "type": "string", + "readOnly": true, "enum": [ - "BLOCK_REASON_UNSPECIFIED", + "FINISH_REASON_UNSPECIFIED", + "STOP", + "MAX_TOKENS", "SAFETY", + "RECITATION", + "LANGUAGE", "OTHER", "BLOCKLIST", "PROHIBITED_CONTENT", - "IMAGE_SAFETY" + "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" ] }, "safetyRatings": { + "description": "List of ratings for the safety of a response candidate. There is at most one rating per category.", "type": "array", "items": { "$ref": "#/components/schemas/SafetyRating" - }, - "description": "Ratings for safety of the prompt. There is at most one rating per category." - } - } - }, - "InlinedEmbedContentRequest": { - "properties": { - "metadata": { - "type": "object", - "additionalProperties": { - "description": "Properties of the object." - }, - "description": "Optional. The metadata to be associated with the request." + } }, - "request": { - "description": "Required. The request to be processed in the batch.", - "$ref": "#/components/schemas/EmbedContentRequest" - } - }, - "description": "The request to be processed in the batch.", - "type": "object" - }, - "LogprobsResult": { - "type": "object", - "description": "Logprobs Result", - "properties": { - "topCandidates": { - "type": "array", - "items": { - "$ref": "#/components/schemas/TopCandidates" - }, - "description": "Length = total number of decoding steps." + "index": { + "readOnly": true, + "format": "int32", + "description": "Output only. Index of the candidate in the list of response candidates.", + "type": "integer" }, - "chosenCandidates": { + "tokenCount": { + "format": "int32", + "type": "integer", + "description": "Output only. Token count for this candidate.", + "readOnly": true + }, + "groundingMetadata": { + "description": "Output only. Grounding metadata for the candidate. This field is populated for `GenerateContent` calls.", + "$ref": "#/components/schemas/GroundingMetadata", + "readOnly": true + }, + "citationMetadata": { + "readOnly": true, + "$ref": "#/components/schemas/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." + }, + "avgLogprobs": { + "description": "Output only. Average log probability score of the candidate.", + "readOnly": true, + "type": "number", + "format": "double" + }, + "content": { + "$ref": "#/components/schemas/Content", + "description": "Output only. Generated content returned from the model.", + "readOnly": true + }, + "groundingAttributions": { "items": { - "$ref": "#/components/schemas/LogprobsResultCandidate" + "$ref": "#/components/schemas/GroundingAttribution" }, - "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.", + "description": "Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.", + "readOnly": true, "type": "array" }, - "logProbabilitySum": { - "type": "number", - "format": "float", - "description": "Sum of log probabilities for all tokens." - } - } - }, - "SessionResumptionConfig": { - "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" + "finishMessage": { + "description": "Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set.", + "type": "string", + "readOnly": true + }, + "logprobsResult": { + "description": "Output only. Log-likelihood scores for the response tokens and top tokens", + "readOnly": true, + "$ref": "#/components/schemas/LogprobsResult" + }, + "urlContextMetadata": { + "description": "Output only. Metadata related to url context retrieval tool.", + "$ref": "#/components/schemas/UrlContextMetadata", + "readOnly": true } }, - "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." + "description": "A response candidate generated from the model." }, - "SpeechConfig": { + "TranslationConfig": { + "description": "Config for translation features.", "type": "object", - "description": "Config for speech generation and transcription.", "properties": { - "multiSpeakerVoiceConfig": { - "description": "Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field.", - "$ref": "#/components/schemas/MultiSpeakerVoiceConfig" - }, - "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" + "echoTargetLanguage": { + "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.", + "type": "boolean" }, - "voiceConfig": { - "description": "The configuration in case of single-voice output.", - "$ref": "#/components/schemas/VoiceConfig" + "targetLanguageCode": { + "type": "string", + "description": "Required. The target language for translation. Supported values are BCP-47 language codes (e.g. \"en\", \"es\", \"fr\")." } } }, - "EmbedContentConfig": { - "description": "Configurations for the EmbedContent request.", - "type": "object", + "GenerateContentResponse": { "properties": { - "outputDimensionality": { - "format": "int32", - "type": "integer", - "description": "Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end." + "candidates": { + "items": { + "$ref": "#/components/schemas/Candidate" + }, + "description": "Candidate responses from the model.", + "type": "array" }, - "audioTrackExtraction": { - "type": "boolean", - "description": "Optional. Whether to extract audio from video content." + "usageMetadata": { + "$ref": "#/components/schemas/UsageMetadata", + "readOnly": true, + "description": "Output only. Metadata on the generation requests' token usage." }, - "taskType": { - "type": "string", - "enum": [ - "TASK_TYPE_UNSPECIFIED", - "RETRIEVAL_QUERY", - "RETRIEVAL_DOCUMENT", - "SEMANTIC_SIMILARITY", - "CLASSIFICATION", - "CLUSTERING", - "QUESTION_ANSWERING", - "FACT_VERIFICATION", - "CODE_RETRIEVAL_QUERY" - ], - "description": "Optional. The task type of the embedding.", - "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." - ] + "modelVersion": { + "readOnly": true, + "description": "Output only. The model version used to generate the response.", + "type": "string" }, - "autoTruncate": { - "type": "boolean", - "description": "Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length." + "responseId": { + "type": "string", + "description": "Output only. response_id is used to identify each response.", + "readOnly": true }, - "title": { - "description": "Optional. The title for the text.", - "type": "string" + "modelStatus": { + "readOnly": true, + "description": "Output only. The current model status of this model.", + "$ref": "#/components/schemas/ModelStatus" }, - "documentOcr": { - "description": "Optional. Whether to enable OCR for document content.", - "type": "boolean" + "promptFeedback": { + "description": "Returns the prompt's feedback related to the content filters.", + "$ref": "#/components/schemas/PromptFeedback" } - } + }, + "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`.", + "type": "object" }, - "TunedModelSource": { - "description": "Tuned model as a source for training a new model.", + "CodeExecution": { "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": {} + }, + "CreateFileResponse": { "properties": { - "baseModel": { - "description": "Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/gemini-1.5-flash-001`", + "file": { + "description": "Metadata for the created file.", + "$ref": "#/components/schemas/File" + } + }, + "type": "object", + "description": "Response for `CreateFile`." + }, + "TuningTask": { + "description": "Tuning tasks that create tuned models.", + "type": "object", + "properties": { + "completeTime": { + "description": "Output only. The timestamp when tuning this model completed.", "type": "string", + "format": "google-datetime", "readOnly": true }, - "tunedModel": { + "hyperparameters": { + "$ref": "#/components/schemas/Hyperparameters", + "description": "Immutable. Hyperparameters controlling the tuning process. If not provided, default values will be used." + }, + "startTime": { + "description": "Output only. The timestamp when tuning this model started.", "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`" + "readOnly": true, + "format": "google-datetime" + }, + "trainingData": { + "$ref": "#/components/schemas/Dataset", + "description": "Required. Input only. Immutable. The model training data." + }, + "snapshots": { + "readOnly": true, + "type": "array", + "description": "Output only. Metrics collected during tuning.", + "items": { + "$ref": "#/components/schemas/TuningSnapshot" + } } } }, - "EgressRule": { + "ToolCall": { + "type": "object", "properties": { - "domain": { - "type": "string", - "description": "Domain to allow outbound requests to. Supports wildcards (e.g. '*.googleapis.com'). Use '*' to allow all domains." + "toolName": { + "description": "Optional. The name of the tool that was called.", + "type": "string" }, - "transform": { - "description": "Headers to inject into requests matching this rule. Key: header name (e.g., \"Authorization\"). Value: header value (e.g., \"Bearer your-token\").", + "args": { "additionalProperties": { - "type": "string" + "description": "Properties of the object." }, + "description": "Optional. The tool call arguments. Example: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}", "type": "object" }, - "credential": { - "description": "Optional. Reference to a server-managed Credential resource by ID.", - "type": "string" + "toolType": { + "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." + ], + "type": "string", + "description": "Required. The type of tool that was called." + }, + "id": { + "type": "string", + "description": "Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`." } }, - "description": "A single domain allowlist rule with optional header injection.", - "type": "object" + "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`." }, - "CustomLongRunningOperation": { + "Source": { "type": "object", "properties": { - "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." + "target": { + "description": "Where the source should appear in the environment.", + "type": "string" }, - "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}`." + "encoding": { + "description": "Optional encoding for inline content (e.g. `base64`).", + "type": "string" }, - "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" + "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://)." + ], + "enum": [ + "TYPE_UNSPECIFIED", + "GCS", + "INLINE", + "REPOSITORY" + ], + "type": "string" }, - "error": { - "description": "The error result of the operation in case of failure or cancellation.", - "$ref": "#/components/schemas/Status" + "source": { + "description": "The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path.", + "type": "string" }, - "metadata": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." - }, - "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" + "content": { + "type": "string", + "description": "The inline content if `type` is `INLINE`." } - } + }, + "description": "A source to be mounted into the environment." }, - "CountTokensRequest": { - "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`.", - "type": "object", + "RetrievedContext": { "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." + "fileSearchStore": { + "type": "string", + "description": "Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`" }, - "contents": { - "description": "Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set.", + "customMetadata": { + "description": "Optional. User-provided metadata about the retrieved context.", "items": { - "$ref": "#/components/schemas/Content" + "$ref": "#/components/schemas/GroundingChunkCustomMetadata" }, "type": "array" - } - } - }, - "Tool": { - "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", - "type": "object", - "properties": { - "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." - }, - "codeExecution": { - "description": "Optional. Enables the model to execute code as part of generation.", - "$ref": "#/components/schemas/CodeExecution" - }, - "googleSearchRetrieval": { - "description": "Optional. Retrieval tool that is powered by Google search.", - "$ref": "#/components/schemas/GoogleSearchRetrieval" }, - "googleSearch": { - "$ref": "#/components/schemas/GoogleSearch", - "description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google." - }, - "fileSearch": { - "description": "Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora.", - "$ref": "#/components/schemas/FileSearch" + "pageNumber": { + "type": "integer", + "description": "Optional. Page number of the retrieved context, if applicable.", + "format": "int32" }, - "googleMaps": { - "$ref": "#/components/schemas/GoogleMaps", - "description": "Optional. Tool that allows grounding the model's response with geospatial context related to the user's query." + "mediaId": { + "description": "Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id}", + "type": "string" }, - "urlContext": { - "description": "Optional. Tool to support URL context retrieval.", - "$ref": "#/components/schemas/UrlContext" + "text": { + "description": "Optional. Text of the chunk.", + "type": "string" }, - "mcpServers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/McpServer" - }, - "description": "Optional. MCP Servers to connect to." + "uri": { + "type": "string", + "description": "Optional. URI reference of the semantic retrieval document." }, - "functionDeclarations": { - "items": { - "$ref": "#/components/schemas/FunctionDeclaration" - }, - "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" - } - } - }, - "StringList": { - "description": "User provided string values assigned to a single metadata key.", - "properties": { - "values": { - "description": "The string values of the metadata to store.", - "type": "array", - "items": { - "type": "string" - } + "title": { + "description": "Optional. Title of the document.", + "type": "string" } }, + "description": "Chunk from context retrieved by the file search tool.", "type": "object" }, - "ListTunedModelsResponse": { - "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." - }, - "tunedModels": { - "items": { - "$ref": "#/components/schemas/TunedModel" - }, - "description": "The returned Models.", - "type": "array" - } - }, - "type": "object", - "description": "Response from `ListTunedModels` containing a paginated list of Models." - }, - "ContextWindowCompressionConfig": { - "description": "Enables context window compression \u2014 a mechanism for managing the model's context window so that it does not exceed a given length.", + "BatchGenerateContentRequest": { + "description": "Request for a `BatchGenerateContent` operation.", "type": "object", "properties": { - "slidingWindow": { - "description": "A sliding-window mechanism.", - "$ref": "#/components/schemas/SlidingWindow" - }, - "triggerTokens": { - "type": "string", - "format": "int64", - "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." + "batch": { + "description": "Required. The batch to create.", + "$ref": "#/components/schemas/GenerateContentBatch" } } }, - "GroundingPassageId": { - "type": "object", - "description": "Identifier for a part within a `GroundingPassage`.", + "CountTokensResponse": { "properties": { - "partIndex": { - "description": "Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.", + "promptTokensDetails": { + "type": "array", + "description": "Output only. List of modalities that were processed in the request input.", + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + }, + "readOnly": true + }, + "cachedContentTokenCount": { + "description": "Number of tokens in the cached part of the prompt (the cached content).", "type": "integer", - "readOnly": true, "format": "int32" }, - "passageId": { - "readOnly": true, - "type": "string", - "description": "Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`." - } - } - }, - "UploadToFileSearchStoreRequest": { - "description": "Request for `UploadToFileSearchStore`.", - "properties": { - "displayName": { - "description": "Optional. Display name of the created document.", - "type": "string" + "totalTokens": { + "description": "The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative.", + "format": "int32", + "type": "integer" }, - "customMetadata": { - "description": "Custom metadata to be associated with the data.", + "cacheTokensDetails": { + "description": "Output only. List of modalities that were processed in the cached content.", + "readOnly": true, "type": "array", "items": { - "$ref": "#/components/schemas/CustomMetadata" + "$ref": "#/components/schemas/ModalityTokenCount" } - }, - "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." - }, - "mimeType": { - "type": "string", - "description": "Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content." } }, + "description": "A response from `CountTokens`. It returns the model's `token_count` for the `prompt`.", "type": "object" }, - "GetEnvironmentFilesResponse": { - "description": "Response for `GetEnvironmentFiles`.", + "ListCachedContentsResponse": { + "type": "object", "properties": { - "files": { - "type": "array", + "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" + }, + "cachedContents": { "items": { - "$ref": "#/components/schemas/EnvironmentFile" + "$ref": "#/components/schemas/CachedContent" }, - "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`)." - }, - "next_page_token": { - "description": "Pagination token for directory listing. NOLINT", - "type": "string" + "description": "List of cached contents.", + "type": "array" } }, - "type": "object" + "description": "Response with CachedContents list." }, - "ToolResponse": { + "PromptFeedback": { + "description": "A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`.", "type": "object", "properties": { - "toolType": { + "blockReason": { "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." + "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." ], - "description": "Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`." - }, - "response": { - "description": "Optional. The tool response.", - "type": "object", - "additionalProperties": { - "description": "Properties of the object." - } + "enum": [ + "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." }, - "id": { - "description": "Optional. The identifier of the tool call this response is for.", - "type": "string" + "safetyRatings": { + "items": { + "$ref": "#/components/schemas/SafetyRating" + }, + "description": "Ratings for safety of the prompt. There is at most one rating per category.", + "type": "array" } - }, - "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`." + } }, "ComputerUse": { + "type": "object", "description": "Computer Use tool type.", "properties": { - "excludedPredefinedFunctions": { - "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.", - "items": { - "type": "string" - }, - "type": "array" + "environment": { + "x-enum-descriptions": [ + "Defaults to browser.", + "Operates in a web browser.", + "Operates in a mobile environment.", + "Operates in a desktop environment." + ], + "description": "Required. The environment being operated.", + "enum": [ + "ENVIRONMENT_UNSPECIFIED", + "ENVIRONMENT_BROWSER", + "ENVIRONMENT_MOBILE", + "ENVIRONMENT_DESKTOP" + ], + "type": "string" }, "enablePromptInjectionDetection": { - "type": "boolean", - "description": "Optional. Whether enable the prompt injection detection check on computer-use request." + "description": "Optional. Whether enable the prompt injection detection check on computer-use request.", + "type": "boolean" }, "disabledSafetyPolicies": { - "description": "Optional. Disabled safety policies for computer use.", - "type": "array", "items": { - "type": "string", "enum": [ "SAFETY_POLICY_UNSPECIFIED", "FINANCIAL_TRANSACTIONS", @@ -4537,1651 +4485,1269 @@ "Safety policy for data modification.", "Safety policy for user consent management.", "Safety policy for legal terms and agreements." - ] + ], + "type": "string" + }, + "description": "Optional. Disabled safety policies for computer use.", + "type": "array" + }, + "excludedPredefinedFunctions": { + "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.", + "type": "array", + "items": { + "type": "string" } + } + } + }, + "TunedModelSource": { + "type": "object", + "description": "Tuned model as a source for training a new model.", + "properties": { + "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`" }, - "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." - ], + "baseModel": { + "description": "Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/gemini-1.5-flash-001`", "type": "string", - "enum": [ - "ENVIRONMENT_UNSPECIFIED", - "ENVIRONMENT_BROWSER", - "ENVIRONMENT_MOBILE", - "ENVIRONMENT_DESKTOP" - ] + "readOnly": true } - }, - "type": "object" + } }, - "ModalityTokenCount": { + "GenerateContentRequest": { + "description": "Request to generate a completion from the model.", "properties": { - "tokenCount": { - "type": "integer", - "format": "int32", - "description": "Number of tokens." - }, - "modality": { + "serviceTier": { "x-enum-descriptions": [ - "Unspecified modality.", - "Plain text.", - "Image.", - "Video.", - "Audio.", - "Document, e.g. PDF." + "Default service tier, which is standard.", + "Standard service tier.", + "Flex service tier.", + "Priority service tier." ], - "description": "The modality associated with this token count.", "type": "string", "enum": [ - "MODALITY_UNSPECIFIED", - "TEXT", - "IMAGE", - "VIDEO", - "AUDIO", - "DOCUMENT" - ] - } - }, - "description": "Represents token counting info for a single modality.", - "type": "object" - }, - "Interval": { - "type": "object", - "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": { - "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" + "unspecified", + "standard", + "flex", + "priority" + ], + "description": "Optional. The service tier of the request." }, - "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.", - "type": "string", - "format": "google-datetime" - } - } - }, - "TranslationConfig": { - "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." + "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.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Tool" + } }, - "targetLanguageCode": { - "description": "Required. The target language for translation. Supported values are BCP-47 language codes (e.g. \"en\", \"es\", \"fr\").", - "type": "string" - } - }, - "description": "Config for translation features.", - "type": "object" - }, - "StreamableHttpTransport": { - "description": "A transport that can stream HTTP requests and responses. Next ID: 6", - "type": "object", - "properties": { - "headers": { + "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" - }, - "type": "object", - "description": "Optional: Fields for authentication headers, timeouts, etc., if needed." - }, - "terminateOnClose": { - "description": "Whether to close the client session when the transport closes.", - "type": "boolean" - }, - "timeout": { - "type": "string", - "format": "google-duration", - "description": "HTTP timeout for regular operations." - }, - "sseReadTimeout": { - "description": "Timeout for SSE read operations.", - "type": "string", - "format": "google-duration" - }, - "url": { - "description": "The full URL for the MCPServer endpoint. Example: \"https://api.example.com/mcp\"", - "type": "string" - } - } - }, - "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.", - "properties": { - "inlineData": { - "description": "Inline media bytes.", - "$ref": "#/components/schemas/FunctionResponseBlob" - } - }, - "type": "object" - }, - "FileSearchStore": { - "type": "object", - "description": "A `FileSearchStore` is a collection of `Document`s.", - "properties": { - "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" + } }, - "sizeBytes": { - "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`.", - "readOnly": true, - "type": "string" + "store": { + "type": "boolean", + "description": "Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config." }, - "activeDocumentsCount": { - "readOnly": true, - "type": "string", - "description": "Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.", - "format": "int64" + "contents": { + "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.", + "type": "array" }, - "pendingDocumentsCount": { - "readOnly": true, + "cachedContent": { "type": "string", - "format": "int64", - "description": "Output only. The number of documents in the `FileSearchStore` that are being processed." + "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}`" }, - "updateTime": { - "format": "google-datetime", - "description": "Output only. The Timestamp of when the `FileSearchStore` was last updated.", + "model": { "type": "string", - "readOnly": true + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`." }, - "failedDocumentsCount": { - "type": "string", - "description": "Output only. The number of documents in the `FileSearchStore` that have failed processing.", - "format": "int64", - "readOnly": true + "safetySettings": { + "items": { + "$ref": "#/components/schemas/SafetySetting" + }, + "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." }, - "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." + "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" }, - "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.", - "type": "string", - "readOnly": true + "generationConfig": { + "description": "Optional. Configuration options for model generation and outputs.", + "$ref": "#/components/schemas/GenerationConfig" }, - "createTime": { - "readOnly": true, - "format": "google-datetime", - "description": "Output only. The Timestamp of when the `FileSearchStore` was created.", - "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." } - } + }, + "type": "object" }, - "V1mainMediaResolution": { + "WebSearch": { "type": "object", - "description": "Media resolution for tokenization.", - "properties": { - "level": { - "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." - ], - "description": "The tokenization quality used for given media. for Gemini API support .", - "type": "string", - "enum": [ - "MEDIA_RESOLUTION_UNSPECIFIED", - "MEDIA_RESOLUTION_LOW", - "MEDIA_RESOLUTION_MEDIUM", - "MEDIA_RESOLUTION_HIGH", - "MEDIA_RESOLUTION_ULTRA_HIGH" - ] - } - } + "description": "Standard web search for grounding and related configurations.", + "properties": {} }, - "Permission": { + "WordInfo": { "type": "object", "properties": { - "name": { + "startOffset": { "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." + "description": "Optional. Start offset in time of the word relative to the start of the audio.", + "format": "google-duration" }, - "granteeType": { - "description": "Optional. Immutable. The type of the grantee.", - "type": "string", - "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." - ] + "endOffset": { + "format": "google-duration", + "description": "Optional. End offset in time of the word relative to the start of the audio.", + "type": "string" }, - "role": { - "description": "Required. The role granted by this permission.", - "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." - ], + "word": { "type": "string", - "enum": [ - "ROLE_UNSPECIFIED", - "OWNER", - "WRITER", - "READER" - ] - }, - "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" + "description": "Required. Transcript of the word." } }, - "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" + "description": "Information about a single recognized word." }, - "ImportFileRequest": { + "AudioTranscription": { "type": "object", - "description": "Request for `ImportFile` to import a File API file with a `FileSearchStore`.", + "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.", "properties": { - "fileName": { - "description": "Required. The name of the `File` to import. Example: `files/abc-123`", + "text": { + "description": "Required. The transcription text of this audio segment.", "type": "string" }, - "customMetadata": { - "type": "array", + "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" + }, + "words": { + "description": "Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set.", "items": { - "$ref": "#/components/schemas/CustomMetadata" + "$ref": "#/components/schemas/WordInfo" }, - "description": "Custom metadata to be associated with the file." - }, - "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" + "type": "array" } } }, - "EnvironmentFile": { - "type": "object", + "Corpus": { + "description": "A `Corpus` is a collection of `Document`s. A project can create up to 10 corpora.", "properties": { - "created": { - "format": "google-datetime", - "readOnly": true, - "type": "string", - "description": "Output only. The creation time of the file/directory." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Output only. The name of the file or directory (e.g., \"main.py\" or \"src\")." - }, - "size_bytes": { + "updateTime": { "type": "string", - "format": "int64", - "description": "Output only. The size of the file/directory in bytes. NOLINT", + "format": "google-datetime", + "description": "Output only. The Timestamp of when the `Corpus` was last updated.", "readOnly": true }, - "path": { - "description": "Output only. The full relative path within the environment (e.g., \"workspace/src/main.py\").", + "displayName": { "type": "string", - "readOnly": true + "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": { + "createTime": { + "type": "string", "readOnly": true, - "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" - ] - }, - "modified": { - "description": "Output only. The modification time of the file/directory.", - "readOnly": true, - "format": "google-datetime", - "type": "string" + "description": "Output only. The Timestamp of when the `Corpus` was created.", + "format": "google-datetime" }, - "mime_type": { - "type": "string", + "name": { "readOnly": true, - "description": "Output only. The MIME type of the file (e.g., \"text/python\", \"image/png\"). Empty for directories. NOLINT" - } - }, - "description": "Metadata for a file or directory within an environment." - }, - "VoiceConfig": { - "description": "The configuration for the voice to use.", - "properties": { - "voice": { - "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`).", + "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": "string" - }, - "prebuiltVoiceConfig": { - "description": "The configuration for the prebuilt voice to use.", - "$ref": "#/components/schemas/PrebuiltVoiceConfig" - } - }, - "type": "object" - }, - "Content": { - "properties": { - "role": { - "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." - }, - "parts": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Part" - }, - "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types." } }, - "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" }, - "GroundingMetadata": { - "description": "Metadata returned to client when grounding is enabled.", - "type": "object", + "Schema": { "properties": { - "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/GroundingChunk" - }, - "type": "array" - }, - "webSearchQueries": { - "description": "Web search queries for the following-up web search.", - "items": { - "type": "string" - }, - "type": "array" + "type": { + "description": "Required. Data type.", + "enum": [ + "TYPE_UNSPECIFIED", + "STRING", + "NUMBER", + "INTEGER", + "BOOLEAN", + "ARRAY", + "OBJECT", + "NULL" + ], + "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" }, - "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.", + "minItems": { + "format": "int64", + "description": "Optional. Minimum number of the elements for Type.ARRAY.", "type": "string" }, - "retrievalMetadata": { - "description": "Metadata related to retrieval in the grounding flow.", - "$ref": "#/components/schemas/RetrievalMetadata" + "minimum": { + "type": "number", + "description": "Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER", + "format": "double" }, - "searchEntryPoint": { - "description": "Optional. Google search entry for the following-up web searches.", - "$ref": "#/components/schemas/SearchEntryPoint" + "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." }, - "imageSearchQueries": { - "type": "array", - "description": "Image search queries used for grounding.", - "items": { - "type": "string" - } + "nullable": { + "description": "Optional. Indicates if the value may be null.", + "type": "boolean" }, - "groundingSupports": { - "items": { - "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaGroundingSupport" - }, - "description": "List of grounding support.", - "type": "array" - } - } - }, - "Part": { - "type": "object", - "properties": { - "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." + "example": { + "description": "Optional. Example of the object. Will only populated when the object is the root." }, - "thoughtSignature": { - "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.", + "pattern": { "type": "string", - "format": "byte" + "description": "Optional. Pattern of the Type.STRING to restrict a string to a regular expression." }, - "inlineData": { - "$ref": "#/components/schemas/Blob", - "description": "Inline media bytes." + "minProperties": { + "description": "Optional. Minimum number of the properties for Type.OBJECT.", + "format": "int64", + "type": "string" }, - "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.", - "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." - ], + "maxProperties": { "type": "string", - "enum": [ - "MEDIA_PROCESSING_UNSPECIFIED", - "STATIC", - "AGENTIC" - ] - }, - "thought": { - "description": "Optional. Indicates if the part is thought from the model.", - "type": "boolean" + "description": "Optional. Maximum number of the properties for Type.OBJECT.", + "format": "int64" }, - "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" + "maxLength": { + "description": "Optional. Maximum length of the Type.STRING", + "type": "string", + "format": "int64" }, - "audioTranscription": { - "description": "Optional. Audio (input or output) transcription. This is only set when this Part contains audio data.", - "$ref": "#/components/schemas/AudioTranscription" + "properties": { + "description": "Optional. Properties of Type.OBJECT.", + "additionalProperties": { + "$ref": "#/components/schemas/Schema" + }, + "type": "object" }, - "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.", - "$ref": "#/components/schemas/ToolCall" + "title": { + "description": "Optional. The title of the schema.", + "type": "string" }, - "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." + "format": { + "description": "Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality.", + "type": "string" }, - "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`.", - "$ref": "#/components/schemas/ToolResponse" + "items": { + "$ref": "#/components/schemas/Schema", + "description": "Optional. Schema of the elements of Type.ARRAY." }, - "mediaResolution": { - "$ref": "#/components/schemas/V1mainMediaResolution", - "description": "Optional. Media resolution for the input media." + "propertyOrdering": { + "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.", + "items": { + "type": "string" + }, + "type": "array" }, - "codeExecutionResult": { - "description": "Result of executing the `ExecutableCode`.", - "$ref": "#/components/schemas/CodeExecutionResult" + "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" + } }, - "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" + "required": { + "items": { + "type": "string" + }, + "type": "array", + "description": "Optional. Required properties of Type.OBJECT." }, - "fileData": { - "$ref": "#/components/schemas/FileData", - "description": "URI based data." + "maxItems": { + "type": "string", + "format": "int64", + "description": "Optional. Maximum number of the elements for Type.ARRAY." }, - "text": { - "description": "Inline text.", + "description": { + "description": "Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown.", "type": "string" }, - "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" + "maximum": { + "format": "double", + "description": "Optional. Maximum value of the Type.INTEGER and Type.NUMBER", + "type": "number" }, - "executableCode": { - "description": "Code generated by the model that is meant to be executed.", - "$ref": "#/components/schemas/ExecutableCode" + "minLength": { + "description": "Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING", + "type": "string", + "format": "int64" + }, + "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\"]}", + "items": { + "type": "string" + }, + "type": "array" } }, - "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": "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).", + "type": "object" }, - "GroundingAttribution": { + "AttributionSourceId": { "type": "object", - "description": "Attribution for a source that contributed to an answer.", "properties": { - "sourceId": { - "description": "Output only. Identifier for the source contributing to this attribution.", - "readOnly": true, - "$ref": "#/components/schemas/AttributionSourceId" + "semanticRetrieverChunk": { + "description": "Identifier for a `Chunk` fetched via Semantic Retriever.", + "$ref": "#/components/schemas/SemanticRetrieverChunk" }, - "content": { - "$ref": "#/components/schemas/Content", - "description": "Grounding source content that makes up this attribution." + "groundingPassage": { + "description": "Identifier for an inline passage.", + "$ref": "#/components/schemas/GroundingPassageId" } - } + }, + "description": "Identifier for the source contributing to this attribution." }, - "InlinedEmbedContentRequests": { - "description": "The requests to be processed in the batch if provided as part of the batch creation request.", + "UploadToFileSearchStoreRequest": { "type": "object", + "description": "Request for `UploadToFileSearchStore`.", "properties": { - "requests": { + "customMetadata": { + "type": "array", "items": { - "$ref": "#/components/schemas/InlinedEmbedContentRequest" + "$ref": "#/components/schemas/CustomMetadata" }, - "type": "array", - "description": "Required. The requests to be processed in the batch." - } - } - }, - "McpServer": { - "properties": { - "streamableHttpTransport": { - "description": "A transport that can stream HTTP requests and responses.", - "$ref": "#/components/schemas/StreamableHttpTransport" + "description": "Custom metadata to be associated with the data." }, - "name": { - "type": "string", - "description": "The name of the 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" - }, - "ListGeneratedFilesResponse": { - "type": "object", - "properties": { - "nextPageToken": { - "type": "string", - "description": "A token that can be sent as a `page_token` into a subsequent `ListGeneratedFiles` call." + "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" }, - "generatedFiles": { - "type": "array", - "description": "The list of `GeneratedFile`s.", - "items": { - "$ref": "#/components/schemas/GeneratedFile" - } - } - }, - "description": "Response for `ListGeneratedFiles`." - }, - "InputConfig": { - "description": "Configures the input to the batch request.", - "type": "object", - "properties": { - "fileName": { - "description": "The name of the `File` containing the input requests.", + "displayName": { + "description": "Optional. Display name of the created document.", "type": "string" }, - "requests": { - "$ref": "#/components/schemas/InlinedRequests", - "description": "The requests to be processed in the batch." + "mimeType": { + "description": "Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.", + "type": "string" } } }, - "AttributionSourceId": { + "UploadEnvironmentFileRequest": { + "description": "Request for `UploadEnvironmentFile`.", "properties": { - "groundingPassage": { - "$ref": "#/components/schemas/GroundingPassageId", - "description": "Identifier for an inline passage." + "overwrite": { + "description": "Optional. Whether to overwrite the destination file if it already exists.", + "type": "boolean" }, - "semanticRetrieverChunk": { - "description": "Identifier for a `Chunk` fetched via Semantic Retriever.", - "$ref": "#/components/schemas/SemanticRetrieverChunk" + "extract": { + "type": "boolean", + "description": "Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`." } }, - "description": "Identifier for the source contributing to this attribution.", "type": "object" }, - "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`.", + "EmbedContentConfig": { + "description": "Configurations for the EmbedContent request.", "type": "object", "properties": { - "args": { - "description": "Optional. The tool call arguments. Example: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}", - "type": "object", - "additionalProperties": { - "description": "Properties of the object." - } + "documentOcr": { + "type": "boolean", + "description": "Optional. Whether to enable OCR for document content." }, - "toolType": { - "description": "Required. The type of tool that was called.", + "autoTruncate": { + "description": "Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length.", + "type": "boolean" + }, + "outputDimensionality": { + "description": "Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.", + "type": "integer", + "format": "int32" + }, + "title": { + "description": "Optional. The title for the text.", + "type": "string" + }, + "taskType": { "type": "string", - "enum": [ - "TOOL_TYPE_UNSPECIFIED", - "GOOGLE_SEARCH_WEB", - "GOOGLE_SEARCH_IMAGE", - "URL_CONTEXT", - "GOOGLE_MAPS", - "FILE_SEARCH" - ], + "description": "Optional. The task type of the embedding.", "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." + "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." + ], + "enum": [ + "TASK_TYPE_UNSPECIFIED", + "RETRIEVAL_QUERY", + "RETRIEVAL_DOCUMENT", + "SEMANTIC_SIMILARITY", + "CLASSIFICATION", + "CLUSTERING", + "QUESTION_ANSWERING", + "FACT_VERIFICATION", + "CODE_RETRIEVAL_QUERY" ] }, - "toolName": { - "description": "Optional. The name of the tool that was called.", - "type": "string" - }, - "id": { - "description": "Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`.", - "type": "string" + "audioTrackExtraction": { + "type": "boolean", + "description": "Optional. Whether to extract audio from video content." } } }, - "TunedModel": { - "description": "A fine-tuned model created using ModelService.CreateTunedModel.", - "type": "object", + "BatchStats": { "properties": { - "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`", + "pendingRequestCount": { "readOnly": true, + "description": "Output only. The number of requests that are still pending processing.", + "format": "int64", "type": "string" }, - "state": { - "type": "string", - "enum": [ - "STATE_UNSPECIFIED", - "CREATING", - "ACTIVE", - "FAILED" - ], + "failedRequestCount": { "readOnly": true, - "description": "Output only. The state of the tuned model.", - "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." - ] + "format": "int64", + "type": "string", + "description": "Output only. The number of requests that failed to be processed." }, - "tunedModelSource": { - "description": "Optional. TunedModel to use as the starting point for training the new model.", - "$ref": "#/components/schemas/TunedModelSource" + "successfulRequestCount": { + "readOnly": true, + "description": "Output only. The number of requests that were successfully processed.", + "format": "int64", + "type": "string" }, - "updateTime": { + "requestCount": { + "format": "int64", + "description": "Output only. The number of requests in the batch.", "type": "string", - "format": "google-datetime", - "description": "Output only. The timestamp when this model was updated.", "readOnly": true + } + }, + "type": "object", + "description": "Stats about the batch." + }, + "EnvironmentFile": { + "type": "object", + "description": "Metadata for a file or directory within an environment.", + "properties": { + "size_bytes": { + "description": "Output only. The size of the file/directory in bytes. NOLINT", + "type": "string", + "readOnly": true, + "format": "int64" }, - "topK": { - "type": "integer", - "format": "int32", - "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." + "mime_type": { + "type": "string", + "description": "Output only. The MIME type of the file (e.g., \"text/python\", \"image/png\"). Empty for directories. NOLINT", + "readOnly": true }, - "temperature": { - "format": "float", - "type": "number", - "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." + "name": { + "description": "Output only. The name of the file or directory (e.g., \"main.py\" or \"src\").", + "type": "string", + "readOnly": true }, - "displayName": { - "description": "Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.", + "modified": { + "format": "google-datetime", + "description": "Output only. The modification time of the file/directory.", + "readOnly": true, "type": "string" }, - "readerProjectNumbers": { - "items": { - "format": "int64", - "type": "string" - }, - "description": "Optional. List of project numbers that have read access to the tuned model.", - "type": "array" - }, - "tuningTask": { - "description": "Required. The tuning task that creates the tuned model.", - "$ref": "#/components/schemas/TuningTask" - }, - "createTime": { - "type": "string", - "format": "google-datetime", + "path": { + "description": "Output only. The full relative path within the environment (e.g., \"workspace/src/main.py\").", "readOnly": true, - "description": "Output only. The timestamp when this model was created." + "type": "string" }, - "description": { + "type": { + "description": "Output only. The type of the entry.", + "enum": [ + "TYPE_UNSPECIFIED", + "FILE", + "DIRECTORY" + ], "type": "string", - "description": "Optional. A short description of this model." + "x-enum-descriptions": [ + "Unspecified type.", + "A regular file.", + "A directory." + ], + "readOnly": true }, - "baseModel": { + "created": { + "readOnly": true, "type": "string", - "description": "Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`" - }, - "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." + "description": "Output only. The creation time of the file/directory.", + "format": "google-datetime" } } }, - "Candidate": { + "FunctionResponse": { + "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", - "description": "A response candidate generated from the model.", "properties": { - "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 - }, - "groundingMetadata": { - "$ref": "#/components/schemas/GroundingMetadata", - "readOnly": true, - "description": "Output only. Grounding metadata for the candidate. This field is populated for `GenerateContent` calls." + "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" }, - "groundingAttributions": { - "type": "array", - "description": "Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.", - "readOnly": true, - "items": { - "$ref": "#/components/schemas/GroundingAttribution" - } + "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" }, - "avgLogprobs": { - "format": "double", - "type": "number", - "readOnly": true, - "description": "Output only. Average log probability score of the candidate." - }, - "logprobsResult": { - "readOnly": true, - "$ref": "#/components/schemas/LogprobsResult", - "description": "Output only. Log-likelihood scores for the response tokens and top tokens" + "scheduling": { + "enum": [ + "SCHEDULING_UNSPECIFIED", + "SILENT", + "WHEN_IDLE", + "INTERRUPT" + ], + "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." + ], + "type": "string" }, - "content": { - "description": "Output only. Generated content returned from the model.", - "$ref": "#/components/schemas/Content", - "readOnly": true + "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" }, - "tokenCount": { - "format": "int32", - "type": "integer", - "description": "Output only. Token count for this candidate.", - "readOnly": true + "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." }, - "safetyRatings": { - "description": "List of ratings for the safety of a response candidate. There is at most one rating per category.", - "type": "array", + "parts": { + "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.", "items": { - "$ref": "#/components/schemas/SafetyRating" - } - }, - "citationMetadata": { - "readOnly": true, - "$ref": "#/components/schemas/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." - }, - "index": { - "readOnly": true, - "format": "int32", - "description": "Output only. Index of the candidate in the list of response candidates.", - "type": "integer" - }, - "urlContextMetadata": { - "description": "Output only. Metadata related to url context retrieval tool.", - "$ref": "#/components/schemas/UrlContextMetadata", - "readOnly": true - }, - "finishReason": { - "description": "Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.", - "readOnly": true, - "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" - ], - "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." - ] + "$ref": "#/components/schemas/FunctionResponsePart" + }, + "type": "array" } } }, - "VideoFileMetadata": { - "description": "Metadata for a video `File`.", + "GoogleSearchRetrieval": { + "description": "Tool to retrieve public web data for grounding, powered by Google.", "type": "object", "properties": { - "videoDuration": { - "description": "Duration of the video.", - "type": "string", - "format": "google-duration" + "dynamicRetrievalConfig": { + "description": "Specifies the dynamic retrieval configuration for the given source.", + "$ref": "#/components/schemas/DynamicRetrievalConfig" } } }, - "GoogleAiGenerativelanguageV1betaSegment": { + "GenerateContentBatchOutput": { + "description": "The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.", "properties": { - "startIndex": { - "type": "integer", - "format": "int32", - "description": "Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero." - }, - "text": { + "responsesFile": { + "readOnly": true, "type": "string", - "description": "The text corresponding to the segment from the response." + "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." }, - "partIndex": { - "format": "int32", - "type": "integer", - "description": "The index of a Part object within its parent Content object." - }, - "endIndex": { - "type": "integer", - "description": "End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.", - "format": "int32" + "inlinedResponses": { + "readOnly": true, + "$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." } }, - "type": "object", - "description": "Segment of the content." + "type": "object" }, - "FunctionResponseBlob": { + "ExecutableCode": { "type": "object", - "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field.", "properties": { - "data": { - "format": "byte", - "description": "Raw bytes for media formats.", + "language": { + "enum": [ + "LANGUAGE_UNSPECIFIED", + "PYTHON" + ], + "x-enum-descriptions": [ + "Unspecified language. This value should not be used.", + "Python >= 3.10, with numpy and simpy available. Python is the default language." + ], + "type": "string", + "description": "Required. Programming language of the `code`." + }, + "code": { + "description": "Required. The code to be executed.", "type": "string" }, - "mimeType": { + "id": { "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": "Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`." } - } + }, + "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." }, - "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.", - "type": "object", + "ListDocumentsResponse": { "properties": { - "targetTokens": { - "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.", + "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" - } - } - }, - "InlinedResponse": { - "type": "object", - "properties": { - "error": { - "readOnly": true, - "description": "Output only. The error encountered while processing the request.", - "$ref": "#/components/schemas/Status" - }, - "response": { - "readOnly": true, - "$ref": "#/components/schemas/GenerateContentResponse", - "description": "Output only. The response to the request." }, - "metadata": { - "additionalProperties": { - "description": "Properties of the object." + "documents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Document" }, - "type": "object", - "description": "Output only. The metadata associated with the request.", - "readOnly": true + "description": "The returned `Document`s." } }, - "description": "The response to a single request in the batch." + "description": "Response from `ListDocuments` containing a paginated list of `Document`s. The `Document`s are sorted by ascending `document.create_time`.", + "type": "object" }, - "RetrievalConfig": { - "description": "Retrieval config.", + "MultiSpeakerVoiceConfig": { + "description": "The configuration for the multi-speaker setup.", "type": "object", "properties": { - "latLng": { - "description": "Optional. The location of the user.", - "$ref": "#/components/schemas/LatLng" - }, - "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" + "speakerVoiceConfigs": { + "items": { + "$ref": "#/components/schemas/SpeakerVoiceConfig" + }, + "type": "array", + "description": "Required. All the enabled speaker voices." } } }, - "FileSearch": { + "GetEnvironmentFilesResponse": { + "type": "object", "properties": { - "metadataFilter": { - "description": "Optional. Metadata filter to apply to the semantic retrieval documents and chunks.", - "type": "string" - }, - "fileSearchStoreNames": { + "files": { + "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": { - "type": "string" + "$ref": "#/components/schemas/EnvironmentFile" }, - "type": "array", - "description": "Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`" + "type": "array" }, - "topK": { - "type": "integer", - "format": "int32", - "description": "Optional. The number of semantic retrieval chunks to retrieve." + "next_page_token": { + "type": "string", + "description": "Pagination token for directory listing. NOLINT" } }, - "description": "The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API.", - "type": "object" + "description": "Response for `GetEnvironmentFiles`." }, - "AudioResponseFormat": { - "description": "Configuration for audio output format.", + "CodeExecutionResult": { + "description": "Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.", "type": "object", "properties": { - "mimeType": { - "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." - ], - "type": "string", + "outcome": { "enum": [ - "MIME_TYPE_UNSPECIFIED", - "AUDIO_MP3", - "AUDIO_OGG_OPUS", - "AUDIO_L16", - "AUDIO_WAV", - "AUDIO_ALAW", - "AUDIO_MULAW" - ], - "description": "Optional. The MIME type of the audio output." - }, - "sampleRate": { - "type": "integer", - "description": "Optional. Sample rate in Hz.", - "format": "int32" - }, - "delivery": { - "x-enum-descriptions": [ - "Default value. This value is unused.", - "Audio data is returned inline in the response.", - "Audio data is returned as a URI." + "OUTCOME_UNSPECIFIED", + "OUTCOME_OK", + "OUTCOME_FAILED", + "OUTCOME_DEADLINE_EXCEEDED" ], - "description": "Optional. The delivery mode for the audio output.", + "description": "Required. Outcome of the code execution.", "type": "string", - "enum": [ - "DELIVERY_UNSPECIFIED", - "INLINE", - "URI" + "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." ] }, - "bitRate": { - "format": "int32", - "description": "Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).", - "type": "integer" + "output": { + "type": "string", + "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise." + }, + "id": { + "type": "string", + "description": "Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id." } } }, - "FunctionCall": { - "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.", + "ListFileSearchStoresResponse": { "properties": { - "args": { - "type": "object", - "description": "Optional. The function parameters and values in JSON object format.", - "additionalProperties": { - "description": "Properties of the object." - } - }, - "name": { + "nextPageToken": { "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." + "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." }, - "id": { - "type": "string", - "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`." + "fileSearchStores": { + "description": "The returned rag_stores.", + "items": { + "$ref": "#/components/schemas/FileSearchStore" + }, + "type": "array" } }, + "description": "Response from `ListFileSearchStores` containing a paginated list of `FileSearchStores`. The results are sorted by ascending `file_search_store.create_time`.", "type": "object" }, - "BatchEmbedContentsRequest": { - "type": "object", - "description": "Batch request to get embeddings from the model for a list of prompts.", + "UrlContextMetadata": { + "description": "Metadata related to url context retrieval tool.", "properties": { - "requests": { + "urlMetadata": { + "description": "List of url context.", "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/EmbedContentRequest" + "$ref": "#/components/schemas/UrlMetadata" } } - } + }, + "type": "object" }, - "AutomaticActivityDetection": { + "ToolResponse": { + "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", "properties": { - "endOfSpeechSensitivity": { - "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" - ], - "description": "Optional. Determines how likely detected speech is ended." + "response": { + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + }, + "description": "Optional. The tool response." }, - "startOfSpeechSensitivity": { + "id": { + "description": "Optional. The identifier of the tool call this response is for.", + "type": "string" + }, + "toolType": { "type": "string", - "enum": [ - "START_SENSITIVITY_UNSPECIFIED", - "START_SENSITIVITY_HIGH", - "START_SENSITIVITY_LOW" - ], "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." + "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": "Optional. Determines how likely speech is to be detected." - }, - "silenceDurationMs": { - "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.", - "format": "int32" - }, - "prefixPaddingMs": { - "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.", - "format": "int32", - "type": "integer" - }, - "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" + "description": "Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`.", + "enum": [ + "TOOL_TYPE_UNSPECIFIED", + "GOOGLE_SEARCH_WEB", + "GOOGLE_SEARCH_IMAGE", + "URL_CONTEXT", + "GOOGLE_MAPS", + "FILE_SEARCH" + ] } - }, - "description": "Configures automatic detection of activity.", - "type": "object" + } }, - "PrebuiltVoiceConfig": { + "InlinedResponses": { + "type": "object", + "description": "The responses to the requests in the batch.", "properties": { - "voiceName": { - "type": "string", - "description": "Optional. The name of the preset voice to use." + "inlinedResponses": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InlinedResponse" + }, + "readOnly": true, + "description": "Output only. The responses to the requests in the batch." } - }, - "type": "object", - "description": "The configuration for the prebuilt speaker to use." + } }, - "TuningTask": { + "EmbedContentBatch": { "type": "object", - "description": "Tuning tasks that create tuned models.", "properties": { - "trainingData": { - "$ref": "#/components/schemas/Dataset", - "description": "Required. Input only. Immutable. The model training data." + "inputConfig": { + "$ref": "#/components/schemas/InputEmbedContentConfig", + "description": "Required. Input configuration of the instances on which batch processing are performed." }, - "startTime": { - "readOnly": true, - "format": "google-datetime", - "description": "Output only. The timestamp when tuning this model started.", + "batchStats": { + "description": "Output only. Stats about the batch.", + "$ref": "#/components/schemas/EmbedContentBatchStats", + "readOnly": true + }, + "model": { + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "type": "string" }, - "completeTime": { + "state": { + "description": "Output only. The state of the batch.", "type": "string", - "description": "Output only. The timestamp when tuning this model completed.", - "format": "google-datetime", + "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." + ], + "enum": [ + "BATCH_STATE_UNSPECIFIED", + "BATCH_STATE_PENDING", + "BATCH_STATE_RUNNING", + "BATCH_STATE_SUCCEEDED", + "BATCH_STATE_FAILED", + "BATCH_STATE_CANCELLED", + "BATCH_STATE_EXPIRED" + ], "readOnly": true }, - "hyperparameters": { - "description": "Immutable. Hyperparameters controlling the tuning process. If not provided, default values will be used.", - "$ref": "#/components/schemas/Hyperparameters" + "output": { + "$ref": "#/components/schemas/EmbedContentBatchOutput", + "description": "Output only. The output of the batch request.", + "readOnly": true }, - "snapshots": { - "type": "array", + "endTime": { + "format": "google-datetime", + "description": "Output only. The time at which the batch processing completed.", "readOnly": true, - "items": { - "$ref": "#/components/schemas/TuningSnapshot" - }, - "description": "Output only. Metrics collected during tuning." - } - } - }, - "LogprobsResultCandidate": { - "properties": { - "logProbability": { - "type": "number", - "format": "float", - "description": "The candidate's log probability." + "type": "string" }, - "token": { - "description": "The candidate\u2019s token string value.", + "createTime": { + "type": "string", + "format": "google-datetime", + "readOnly": true, + "description": "Output only. The time at which the batch was created." + }, + "priority": { + "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.", + "format": "int64", "type": "string" }, - "tokenId": { - "description": "The candidate\u2019s token id value.", - "format": "int32", - "type": "integer" + "displayName": { + "type": "string", + "description": "Required. The user-defined name of this batch." + }, + "name": { + "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "readOnly": true, + "description": "Output only. The time at which the batch was last updated.", + "format": "google-datetime", + "type": "string" } }, - "description": "Candidate for the logprobs token and score.", - "type": "object" + "description": "A resource representing a batch of `EmbedContent` requests." }, - "CodeExecution": { - "properties": {}, + "SlidingWindow": { "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." - }, - "RealtimeInputConfig": { - "description": "Configures the realtime input behavior in `BidiGenerateContent`.", "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." - }, - "activityHandling": { - "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", - "enum": [ - "ACTIVITY_HANDLING_UNSPECIFIED", - "START_OF_ACTIVITY_INTERRUPTS", - "NO_INTERRUPTION" - ] - }, - "turnCoverage": { - "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" - ], - "description": "Optional. Defines which input is included in the user's turn." + "targetTokens": { + "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.", + "type": "string" } }, - "type": "object" - }, - "RetrievalMetadata": { - "type": "object", - "description": "Metadata related to retrieval in the grounding flow.", - "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" - } - } + "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." }, - "GoogleSearch": { + "SearchEntryPoint": { "properties": { - "searchTypes": { - "$ref": "#/components/schemas/SearchTypes", - "description": "Optional. The set of search types to enable. If not set, web search is enabled by default." + "renderedContent": { + "type": "string", + "description": "Optional. Web content snippet that can be embedded in a web page or an app webview." }, - "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" + "sdkBlob": { + "format": "byte", + "description": "Optional. Base64 encoded JSON representing array of tuple.", + "type": "string" } }, - "type": "object", - "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google." + "description": "Google search entry point.", + "type": "object" }, - "Maps": { + "TuningExample": { "properties": { - "uri": { - "type": "string", - "description": "URI reference of the place." - }, - "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.", + "output": { + "description": "Required. The expected model output.", "type": "string" }, - "text": { - "description": "Text description of the place answer.", + "textInput": { + "description": "Optional. Text model input.", "type": "string" - }, - "placeAnswerSources": { - "$ref": "#/components/schemas/PlaceAnswerSources", - "description": "Sources that provide answers about the features of a given place in Google Maps." } }, "type": "object", - "description": "A grounding chunk from Google Maps. A Maps chunk corresponds to a single place." - }, - "ToolConfig": { - "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" - }, - "functionCallingConfig": { - "description": "Optional. Function calling config.", - "$ref": "#/components/schemas/FunctionCallingConfig" - } - }, - "description": "The Tool configuration containing parameters for specifying `Tool` use in the request.", - "type": "object" + "description": "A single example for tuning." }, - "ImageResponseFormat": { - "description": "Configuration for image output format.", + "Environment": { + "description": "An execution environment for an agent.", + "type": "object", "properties": { - "delivery": { + "networkMode": { + "description": "Network egress mode.", + "enum": [ + "NETWORK_MODE_UNSPECIFIED", + "DISABLED" + ], "x-enum-descriptions": [ - "Default value. This value is unused.", - "Image data is returned inline in the response.", - "Image data is returned as a URI." + "Default value. Unused.", + "All network egress is blocked." ], - "description": "Optional. The delivery mode for the image output.", - "type": "string", - "enum": [ - "DELIVERY_UNSPECIFIED", - "INLINE", - "URI" - ] + "type": "string" }, - "aspectRatio": { + "status": { "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." + "", + "", + "" ], - "description": "Optional. The aspect ratio for the image output.", "type": "string", + "readOnly": true, + "description": "Output only. The status of the environment container.", "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" + "STATUS_UNSPECIFIED", + "ACTIVE", + "EXPIRED" ] }, - "mimeType": { - "description": "Optional. The MIME type of the image output.", + "networkAllowlist": { + "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist", + "description": "Allow only specific domains." + }, + "created": { "type": "string", - "enum": [ - "MIME_TYPE_UNSPECIFIED", - "IMAGE_JPEG" - ], - "x-enum-descriptions": [ - "Default value. This value is unused.", - "JPEG image format." - ] + "readOnly": true, + "description": "Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)." }, - "imageSize": { - "x-enum-descriptions": [ - "Default value. This value is unused.", - "512px image size.", - "1K image size.", - "2K image size.", - "4K image size." - ], - "description": "Optional. The size of the image output.", + "updated": { + "readOnly": true, + "description": "Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).", + "type": "string" + }, + "lastAccessed": { + "description": "Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).", "type": "string", - "enum": [ - "IMAGE_SIZE_UNSPECIFIED", - "IMAGE_SIZE_FIVE_TWELVE", - "IMAGE_SIZE_ONE_K", - "IMAGE_SIZE_TWO_K", - "IMAGE_SIZE_FOUR_K" - ] - } - }, - "type": "object" - }, - "ContentEmbedding": { - "description": "A list of floats representing an embedding.", - "properties": { - "shape": { - "type": "array", - "description": "This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048]).", - "items": { - "format": "int32", - "type": "integer" - } + "readOnly": true }, - "values": { + "sources": { "type": "array", + "description": "Sources to be mounted into the environment.", "items": { - "format": "float", - "type": "number" - }, - "description": "The embedding values. This is for 3P users only and will not be populated for 1P calls." - } - }, - "type": "object" - }, - "CustomMetadata": { - "description": "User provided metadata stored as key-value pairs.", - "properties": { - "numericValue": { - "type": "number", - "format": "float", - "description": "The numeric value of the metadata to store." + "$ref": "#/components/schemas/Source" + } }, - "stringValue": { + "fileCount": { + "description": "Output only. The number of files in the environment, output only.", "type": "string", - "description": "The string value of the metadata to store." + "readOnly": true, + "format": "int64" }, - "stringListValue": { - "$ref": "#/components/schemas/StringList", - "description": "The StringList value of the metadata to store." + "sizeBytes": { + "readOnly": true, + "format": "int64", + "description": "Output only. The total size of the environment files in bytes, output only.", + "type": "string" }, - "key": { - "description": "Required. The key of the metadata to store.", + "id": { + "description": "Required. Output only. The ID of the environment.", + "readOnly": true, "type": "string" } - }, - "type": "object" + } }, - "UsageMetadata": { - "type": "object", - "description": "Metadata on the generation request's token usage.", + "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": { - "candidatesTokensDetails": { - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - }, - "description": "Output only. List of modalities that were returned in the response.", - "type": "array", - "readOnly": true + "model": { + "description": "Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`", + "type": "string" }, - "cachedContentTokenCount": { - "description": "Number of tokens in the cached part of the prompt (the cached content)", - "type": "integer", - "format": "int32" + "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`" }, - "promptTokensDetails": { - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - }, - "readOnly": true, - "type": "array", - "description": "Output only. List of modalities that were processed in the request input." + "contextWindowCompression": { + "$ref": "#/components/schemas/ContextWindowCompressionConfig", + "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." }, - "toolUsePromptTokensDetails": { - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" + "labels": { + "additionalProperties": { + "type": "string" }, - "description": "Output only. List of modalities that were processed for tool-use request inputs.", - "type": "array", - "readOnly": true + "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" }, - "toolUsePromptTokenCount": { - "format": "int32", - "readOnly": true, - "type": "integer", - "description": "Output only. Number of tokens present in tool-use prompt(s)." + "inputAudioTranscription": { + "$ref": "#/components/schemas/AudioTranscriptionConfig", + "description": "Optional. If set, enables transcription of voice input. The transcription aligns with the input audio language, if configured." }, - "promptTokenCount": { - "format": "int32", - "type": "integer", - "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." + "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" }, - "thoughtsTokenCount": { - "description": "Output only. Number of tokens of thoughts for thinking models.", - "format": "int32", - "type": "integer", - "readOnly": true + "systemInstruction": { + "$ref": "#/components/schemas/Content", + "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." }, - "candidatesTokenCount": { - "type": "integer", - "format": "int32", - "description": "Total number of tokens across all the generated response candidates." + "realtimeInputConfig": { + "$ref": "#/components/schemas/RealtimeInputConfig", + "description": "Optional. Configures the handling of realtime input." }, - "cacheTokensDetails": { - "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.", "type": "array", - "description": "Output only. List of modalities of the cached content in the request input.", "items": { - "$ref": "#/components/schemas/ModalityTokenCount" + "$ref": "#/components/schemas/Tool" } }, - "totalTokenCount": { - "description": "Total token count for the generation request (prompt + tool-use prompt + thoughts + response candidates).", - "format": "int32", - "type": "integer" + "historyConfig": { + "$ref": "#/components/schemas/HistoryConfig", + "description": "Optional. Configures the exchange of history between the client and the server." }, - "serviceTier": { + "sessionResumption": { + "$ref": "#/components/schemas/SessionResumptionConfig", + "description": "Optional. Configures session resumption mechanism. If included, the server will send `SessionResumptionUpdate` messages." + } + }, + "type": "object" + }, + "AudioTranscriptionConfig": { + "type": "object", + "description": "The audio transcription configuration.", + "properties": { + "languageAuto": { + "description": "Optional. The model will detect the language automatically.", + "$ref": "#/components/schemas/LanguageAuto", + "deprecated": true + }, + "adaptationPhrases": { + "items": { + "type": "string" + }, + "deprecated": true, + "description": "Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms.", + "type": "array" + }, + "customVocabulary": { + "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).", + "items": { + "type": "string" + } + }, + "languageCodes": { + "items": { + "type": "string" + }, + "type": "array", + "description": "Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection." + }, + "mode": { "x-enum-descriptions": [ - "Default service tier, which is standard.", - "Standard service tier.", - "Flex service tier.", - "Priority service tier." + "Unspecified transcription mode.", + "Verbatim transcription mode.", + "Smart transcription mode." ], - "description": "Output only. Service tier of the request.", - "readOnly": true, "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" + "MODE_UNSPECIFIED", + "VERBATIM", + "SMART" ] }, - "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 + "wordTimestamp": { + "type": "boolean", + "description": "Optional. Configures word-level timestamp generation." }, - "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" - } + "languageHints": { + "deprecated": true, + "$ref": "#/components/schemas/LanguageHints", + "description": "Optional. Specifies one or more languages in the audio." + }, + "diarization": { + "type": "boolean", + "description": "Optional. Configures speaker diarization." } } }, - "SearchTypes": { + "Model": { "type": "object", - "description": "Different types of search that can be enabled on the GoogleSearch tool.", + "description": "Information about a Generative Language Model.", "properties": { - "imageSearch": { - "$ref": "#/components/schemas/ImageSearch", - "description": "Optional. Enables image search. Image bytes are returned." + "version": { + "description": "Required. The version number of the model. This represents the major version (`1.0` or `1.5`)", + "type": "string" }, - "webSearch": { - "description": "Optional. Enables web search. Only text results are returned.", - "$ref": "#/components/schemas/WebSearch" + "temperature": { + "type": "number", + "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.", + "format": "float" + }, + "name": { + "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`" + }, + "maxTemperature": { + "type": "number", + "description": "The maximum temperature this model can use.", + "format": "float" + }, + "baseModelId": { + "description": "Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash`", + "type": "string" + }, + "outputTokenLimit": { + "type": "integer", + "description": "Maximum number of output tokens available for this model.", + "format": "int32" + }, + "supportedGenerationMethods": { + "items": { + "type": "string" + }, + "description": "The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`.", + "type": "array" + }, + "inputTokenLimit": { + "type": "integer", + "format": "int32", + "description": "Maximum number of input tokens allowed for this model." + }, + "thinking": { + "description": "Whether the model supports thinking.", + "type": "boolean" + }, + "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" + }, + "topP": { + "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", + "format": "float" + }, + "displayName": { + "type": "string", + "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." + }, + "description": { + "type": "string", + "description": "A short description of the model." } } }, - "UrlContext": { - "description": "Tool to support URL context retrieval.", - "type": "object", - "properties": {} - }, - "HistoryConfig": { - "type": "object", + "GoogleMaps": { "properties": { - "initialHistoryInClientContent": { + "enableWidget": { "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": "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." } }, - "description": "History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages." + "description": "The GoogleMaps Tool that provides geospatial context for the user's query.", + "type": "object" }, - "ListDocumentsResponse": { - "description": "Response from `ListDocuments` containing a paginated list of `Document`s. The `Document`s are sorted by ascending `document.create_time`.", + "Blob": { "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.", + "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" }, - "documents": { - "description": "The returned `Document`s.", - "items": { - "$ref": "#/components/schemas/Document" - }, - "type": "array" + "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" + }, + "data": { + "type": "string", + "description": "Raw bytes for media formats.", + "format": "byte" } }, - "type": "object" + "type": "object", + "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field." }, - "Document": { + "SemanticRetrieverChunk": { + "type": "object", "properties": { - "createTime": { - "type": "string", - "description": "Output only. The Timestamp of when the `Document` was created.", + "chunk": { + "description": "Output only. Name of the `Chunk` containing the attributed text. Example: `corpora/123/documents/abc/chunks/xyz`", "readOnly": true, - "format": "google-datetime" + "type": "string" }, - "sizeBytes": { - "description": "Output only. The size of raw bytes ingested into the Document.", - "format": "int64", + "source": { "readOnly": true, + "description": "Output only. Name of the source matching the request's `SemanticRetrieverConfig.source`. Example: `corpora/123` or `corpora/123/documents/abc`", "type": "string" - }, - "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" - }, - "customMetadata": { - "items": { - "$ref": "#/components/schemas/CustomMetadata" - }, - "description": "Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`.", - "type": "array" - }, + } + }, + "description": "Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`." + }, + "FileData": { + "type": "object", + "description": "URI based data.", + "properties": { "mimeType": { "type": "string", - "readOnly": true, - "description": "Output only. The mime type of the Document." + "description": "Optional. The IANA standard MIME type of the source data." }, - "updateTime": { - "type": "string", - "description": "Output only. The Timestamp of when the `Document` was last updated.", - "format": "google-datetime", - "readOnly": true + "fileUri": { + "description": "Required. URI.", + "type": "string" }, "displayName": { "type": "string", - "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\"" - }, - "state": { - "description": "Output only. Current state of the `Document`.", - "type": "string", - "enum": [ - "STATE_UNSPECIFIED", - "STATE_PENDING", - "STATE_ACTIVE", - "STATE_FAILED" - ], - "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": "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`." } - }, - "type": "object", - "description": "A `Document` is a collection of `Chunk`s." + } }, - "EmbedContentBatchOutput": { + "PrebuiltVoiceConfig": { + "description": "The configuration for the prebuilt speaker to use.", "type": "object", - "description": "The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.", "properties": { - "inlinedResponses": { - "$ref": "#/components/schemas/InlinedEmbedContentResponses", - "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 - }, - "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.", - "readOnly": true, - "type": "string" + "voiceName": { + "type": "string", + "description": "Optional. The name of the preset voice to use." } } }, - "EmbedContentRequest": { + "GoogleAiGenerativelanguageV1betaSegment": { "properties": { - "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" + "partIndex": { + "type": "integer", + "format": "int32", + "description": "The index of a Part object within its parent Content object." + }, + "endIndex": { + "description": "End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.", + "format": "int32", + "type": "integer" }, + "text": { + "type": "string", + "description": "The text corresponding to the segment from the response." + }, + "startIndex": { + "format": "int32", + "type": "integer", + "description": "Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero." + } + }, + "type": "object", + "description": "Segment of the content." + }, + "EmbedContentRequest": { + "properties": { "title": { "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." }, + "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}`" + }, "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`).", "format": "int32", - "deprecated": true, - "type": "integer" + "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 + }, + "content": { + "$ref": "#/components/schemas/Content", + "description": "Required. The content to embed. Only the `parts.text` fields will be counted." + }, + "embedContentConfig": { + "description": "Optional. Configuration for the EmbedContent request.", + "$ref": "#/components/schemas/EmbedContentConfig" }, "taskType": { - "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`).", - "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." - ], - "type": "string", + "deprecated": true, "enum": [ "TASK_TYPE_UNSPECIFIED", "RETRIEVAL_QUERY", @@ -6193,1741 +5759,2175 @@ "FACT_VERIFICATION", "CODE_RETRIEVAL_QUERY" ], - "deprecated": true - }, - "embedContentConfig": { - "description": "Optional. Configuration for the EmbedContent request.", - "$ref": "#/components/schemas/EmbedContentConfig" - }, - "content": { - "description": "Required. The content to embed. Only the `parts.text` fields will be counted.", - "$ref": "#/components/schemas/Content" + "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`).", + "type": "string", + "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": "Request containing the `Content` for the model to embed.", "type": "object" }, - "CreateFileRequest": { + "Dataset": { "properties": { - "file": { - "description": "Optional. Metadata for the file to create.", - "$ref": "#/components/schemas/File" + "examples": { + "$ref": "#/components/schemas/TuningExamples", + "description": "Optional. Inline examples with simple input/output text." } }, - "description": "Request for `CreateFile`.", + "description": "Dataset for training or validation.", "type": "object" }, - "DynamicRetrievalConfig": { + "Status": { "type": "object", "properties": { - "mode": { - "x-enum-descriptions": [ - "Always trigger retrieval.", - "Run retrieval only when system decides it is necessary." - ], - "description": "The mode of the predictor to be used in dynamic retrieval.", - "type": "string", - "enum": [ - "MODE_UNSPECIFIED", - "MODE_DYNAMIC" - ] + "details": { + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." + }, + "type": "object" + }, + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "type": "array" }, - "dynamicThreshold": { - "type": "number", - "description": "The threshold to be used in dynamic retrieval. If not set, a system default value is used.", - "format": "float" + "message": { + "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": "string" + }, + "code": { + "type": "integer", + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32" } }, - "description": "Describes the options to customize dynamic retrieval." + "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)." }, - "BatchStats": { + "LanguageAuto": { + "deprecated": true, + "description": "Indicates the language of the audio should be automatically detected.", + "type": "object", + "properties": {} + }, + "ThinkingConfig": { + "description": "Config for thinking features.", + "type": "object", "properties": { - "pendingRequestCount": { - "type": "string", - "description": "Output only. The number of requests that are still pending processing.", - "format": "int64", - "readOnly": true + "includeThoughts": { + "type": "boolean", + "description": "Indicates whether to include thoughts in the response. If true, thoughts are returned only when available." }, - "requestCount": { - "description": "Output only. The number of requests in the batch.", - "type": "string", - "format": "int64", - "readOnly": true + "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.", + "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." + ], + "type": "string" }, - "failedRequestCount": { - "format": "int64", - "description": "Output only. The number of requests that failed to be processed.", - "type": "string", + "thinkingBudget": { + "description": "The number of thoughts tokens that the model should generate.", + "format": "int32", + "type": "integer" + } + } + }, + "EmbeddingUsageMetadata": { + "type": "object", + "properties": { + "promptTokenDetails": { + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + }, + "description": "Output only. List of modalities that were processed in the request input.", + "type": "array", "readOnly": true }, - "successfulRequestCount": { - "description": "Output only. The number of requests that were successfully processed.", + "promptTokenCount": { "readOnly": true, - "format": "int64", - "type": "string" + "type": "integer", + "description": "Output only. Number of tokens in the prompt.", + "format": "int32" } }, - "description": "Stats about the batch.", - "type": "object" + "description": "Metadata on the usage of the embedding request." }, - "ExecutableCode": { - "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.", + "ListFilesResponse": { + "type": "object", + "description": "Response for `ListFiles`.", "properties": { - "id": { - "type": "string", - "description": "Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`." - }, - "code": { - "type": "string", - "description": "Required. The code to be executed." - }, - "language": { - "x-enum-descriptions": [ - "Unspecified language. This value should not be used.", - "Python >= 3.10, with numpy and simpy available. Python is the default language." - ], + "files": { + "description": "The list of `File`s.", + "items": { + "$ref": "#/components/schemas/File" + }, + "type": "array" + }, + "nextPageToken": { "type": "string", - "enum": [ - "LANGUAGE_UNSPECIFIED", - "PYTHON" - ], - "description": "Required. Programming language of the `code`." + "description": "A token that can be sent as a `page_token` into a subsequent `ListFiles` call." } - }, - "type": "object" + } }, - "TuningSnapshot": { + "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": { - "meanLoss": { - "readOnly": true, - "type": "number", - "description": "Output only. The mean loss of the training examples for this step.", - "format": "float" - }, - "epoch": { - "format": "int32", - "type": "integer", - "description": "Output only. The epoch this step was part of.", - "readOnly": true - }, - "step": { - "description": "Output only. The tuning step.", - "readOnly": true, - "type": "integer", - "format": "int32" + "endTime": { + "format": "google-datetime", + "type": "string", + "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end." }, - "computeTime": { - "description": "Output only. The timestamp when this metric was computed.", - "readOnly": true, + "startTime": { "type": "string", - "format": "google-datetime" + "format": "google-datetime", + "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start." } - }, - "description": "Record for a single tuning step." + } }, - "InlinedRequest": { - "description": "The request to be processed in the batch.", - "type": "object", + "UrlMetadata": { "properties": { - "request": { - "description": "Required. The request to be processed in the batch.", - "$ref": "#/components/schemas/GenerateContentRequest" + "retrievedUrl": { + "type": "string", + "description": "Retrieved url by the tool." }, - "metadata": { - "description": "Optional. The metadata to be associated with the request.", - "additionalProperties": { - "description": "Properties of the object." - }, - "type": "object" + "urlRetrievalStatus": { + "type": "string", + "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." } - } + }, + "description": "Context of the a single url retrieval.", + "type": "object" }, - "UrlContextMetadata": { + "RegisterFilesRequest": { "properties": { - "urlMetadata": { - "description": "List of url context.", + "uris": { + "type": "array", "items": { - "$ref": "#/components/schemas/UrlMetadata" + "type": "string" }, - "type": "array" + "description": "Required. The Google Cloud Storage URIs to register. Example: `gs://bucket/object`." } }, - "type": "object", - "description": "Metadata related to url context retrieval tool." + "description": "Request for `RegisterFiles`.", + "type": "object" }, - "RetrievedContext": { + "StreamableHttpTransport": { "type": "object", - "description": "Chunk from context retrieved by the file search tool.", "properties": { - "mediaId": { - "type": "string", - "description": "Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id}" - }, - "customMetadata": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GroundingChunkCustomMetadata" + "headers": { + "additionalProperties": { + "type": "string" }, - "description": "Optional. User-provided metadata about the retrieved context." + "description": "Optional: Fields for authentication headers, timeouts, etc., if needed.", + "type": "object" }, - "text": { - "description": "Optional. Text of the chunk.", - "type": "string" + "terminateOnClose": { + "description": "Whether to close the client session when the transport closes.", + "type": "boolean" }, - "fileSearchStore": { + "sseReadTimeout": { + "description": "Timeout for SSE read operations.", "type": "string", - "description": "Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`" + "format": "google-duration" }, - "title": { - "description": "Optional. Title of the document.", + "url": { + "description": "The full URL for the MCPServer endpoint. Example: \"https://api.example.com/mcp\"", "type": "string" }, - "uri": { - "description": "Optional. URI reference of the semantic retrieval document.", - "type": "string" + "timeout": { + "description": "HTTP timeout for regular operations.", + "type": "string", + "format": "google-duration" + } + }, + "description": "A transport that can stream HTTP requests and responses. Next ID: 6" + }, + "GroundingAttribution": { + "description": "Attribution for a source that contributed to an answer.", + "type": "object", + "properties": { + "sourceId": { + "description": "Output only. Identifier for the source contributing to this attribution.", + "$ref": "#/components/schemas/AttributionSourceId", + "readOnly": true }, - "pageNumber": { - "format": "int32", - "type": "integer", - "description": "Optional. Page number of the retrieved context, if applicable." + "content": { + "$ref": "#/components/schemas/Content", + "description": "Grounding source content that makes up this attribution." } } }, - "Web": { - "description": "Chunk from the web.", + "SafetySetting": { "properties": { - "uri": { - "type": "string", - "description": "Output only. URI reference of the chunk.", - "readOnly": true + "threshold": { + "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." + ], + "enum": [ + "HARM_BLOCK_THRESHOLD_UNSPECIFIED", + "BLOCK_LOW_AND_ABOVE", + "BLOCK_MEDIUM_AND_ABOVE", + "BLOCK_ONLY_HIGH", + "BLOCK_NONE", + "OFF" + ], + "description": "Required. Controls the probability threshold at which harm is blocked.", + "type": "string" }, - "title": { + "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)." + ], + "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" + ], + "description": "Required. The category for this setting.", "type": "string", - "readOnly": true, - "description": "Output only. Title of the chunk." + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false + ] } }, + "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" }, - "InlinedEmbedContentResponses": { - "type": "object", + "InlinedEmbedContentResponse": { "properties": { - "inlinedResponses": { - "items": { - "$ref": "#/components/schemas/InlinedEmbedContentResponse" + "response": { + "$ref": "#/components/schemas/EmbedContentResponse", + "description": "Output only. The response to the request.", + "readOnly": true + }, + "metadata": { + "description": "Output only. The metadata associated with the request.", + "additionalProperties": { + "description": "Properties of the object." }, - "readOnly": true, - "type": "array", - "description": "Output only. The responses to the requests in the batch." + "type": "object", + "readOnly": true + }, + "error": { + "$ref": "#/components/schemas/Status", + "description": "Output only. The error encountered while processing the request.", + "readOnly": true } }, - "description": "The responses to the requests in the batch." + "description": "The response to a single request in the batch.", + "type": "object" }, - "InlinedResponses": { + "SpeakerVoiceConfig": { + "type": "object", + "description": "The configuration for a single speaker in a multi speaker setup.", "properties": { - "inlinedResponses": { - "type": "array", - "description": "Output only. The responses to the requests in the batch.", - "readOnly": true, - "items": { - "$ref": "#/components/schemas/InlinedResponse" - } - } - }, - "description": "The responses to the requests in the batch.", - "type": "object" - }, - "LanguageHints": { - "deprecated": true, - "type": "object", - "description": "Provides hints to the model about possible languages present in the audio.", - "properties": { - "languageCodes": { - "type": "array", - "description": "Required. BCP-47 language codes.", - "items": { - "type": "string" - }, - "deprecated": true + "speaker": { + "type": "string", + "description": "Required. The name of the speaker to use. Should be the same as in the prompt." + }, + "voiceConfig": { + "$ref": "#/components/schemas/VoiceConfig", + "description": "Required. The configuration for the voice to use." } } }, - "EmbedContentBatch": { - "description": "A resource representing a batch of `EmbedContent` requests.", - "type": "object", + "FileSearchStore": { "properties": { - "displayName": { + "name": { "type": "string", - "description": "Required. The user-defined name of this batch." + "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 }, "updateTime": { - "type": "string", "format": "google-datetime", - "readOnly": true, - "description": "Output only. The time at which the batch was last updated." - }, - "output": { - "description": "Output only. The output of the batch request.", - "$ref": "#/components/schemas/EmbedContentBatchOutput", + "type": "string", + "description": "Output only. The Timestamp of when the `FileSearchStore` was last updated.", "readOnly": true }, - "model": { - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", - "type": "string" - }, - "batchStats": { - "$ref": "#/components/schemas/EmbedContentBatchStats", + "pendingDocumentsCount": { "readOnly": true, - "description": "Output only. Stats about the batch." + "format": "int64", + "description": "Output only. The number of documents in the `FileSearchStore` that are being processed.", + "type": "string" }, "createTime": { + "format": "google-datetime", + "description": "Output only. The Timestamp of when the `FileSearchStore` was created.", "type": "string", - "description": "Output only. The time at which the batch was created.", - "readOnly": true, - "format": "google-datetime" + "readOnly": true }, - "name": { - "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", + "activeDocumentsCount": { "type": "string", + "format": "int64", + "description": "Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.", "readOnly": true }, - "state": { - "readOnly": true, - "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." - ], - "description": "Output only. The state of the batch.", + "failedDocumentsCount": { "type": "string", - "enum": [ - "BATCH_STATE_UNSPECIFIED", - "BATCH_STATE_PENDING", - "BATCH_STATE_RUNNING", - "BATCH_STATE_SUCCEEDED", - "BATCH_STATE_FAILED", - "BATCH_STATE_CANCELLED", - "BATCH_STATE_EXPIRED" - ] - }, - "inputConfig": { - "description": "Required. Input configuration of the instances on which batch processing are performed.", - "$ref": "#/components/schemas/InputEmbedContentConfig" + "description": "Output only. The number of documents in the `FileSearchStore` that have failed processing.", + "format": "int64", + "readOnly": true }, - "priority": { - "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.", + "displayName": { "type": "string", - "format": "int64" + "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\"" }, - "endTime": { + "sizeBytes": { + "format": "int64", "type": "string", "readOnly": true, - "description": "Output only. The time at which the batch processing completed.", - "format": "google-datetime" + "description": "Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`." + }, + "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" } - } + }, + "type": "object", + "description": "A `FileSearchStore` is a collection of `Document`s." }, - "CodeExecutionResult": { + "ResponseFormatConfig": { + "type": "object", "properties": { - "outcome": { - "type": "string", - "enum": [ - "OUTCOME_UNSPECIFIED", - "OUTCOME_OK", - "OUTCOME_FAILED", - "OUTCOME_DEADLINE_EXCEEDED" - ], - "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." - ], - "description": "Required. Outcome of the code execution." + "audio": { + "description": "Optional. Audio output format configuration.", + "$ref": "#/components/schemas/AudioResponseFormat" }, - "output": { - "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise.", - "type": "string" + "image": { + "description": "Optional. Image output format configuration.", + "$ref": "#/components/schemas/ImageResponseFormat" }, - "id": { - "type": "string", - "description": "Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id." + "text": { + "$ref": "#/components/schemas/TextResponseFormat", + "description": "Optional. Text output format configuration." } }, - "description": "Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.", - "type": "object" + "description": "Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality." }, - "GenerateContentBatchOutput": { - "type": "object", + "VoiceConfig": { "properties": { - "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.", - "$ref": "#/components/schemas/InlinedResponses", - "readOnly": true - }, - "responsesFile": { - "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.", + "voice": { + "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`).", "type": "string" + }, + "prebuiltVoiceConfig": { + "description": "The configuration for the prebuilt voice to use.", + "$ref": "#/components/schemas/PrebuiltVoiceConfig" } }, - "description": "The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field." + "description": "The configuration for the voice to use.", + "type": "object" }, - "SafetyRating": { + "ListEnvironmentsResponse": { + "type": "object", "properties": { - "category": { - "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" - ], - "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 rating.", - "enumDeprecated": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false - ] - }, - "blocked": { - "type": "boolean", - "description": "Was this content blocked because of this rating?" + "environments": { + "items": { + "$ref": "#/components/schemas/Environment" + }, + "type": "array", + "description": "Environments belonging to the provided project." }, - "probability": { + "nextPageToken": { "type": "string", - "enum": [ - "HARM_PROBABILITY_UNSPECIFIED", - "NEGLIGIBLE", - "LOW", - "MEDIUM", - "HIGH" - ], - "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." - ] + "description": "Pagination token." } }, - "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.", - "type": "object" + "description": "Response for `ListEnvironments`." }, - "WebSearch": { + "TopCandidates": { + "description": "Candidates with top log probabilities at each decoding step.", "type": "object", - "properties": {}, - "description": "Standard web search for grounding and related configurations." + "properties": { + "candidates": { + "type": "array", + "description": "Sorted by log probability in descending order.", + "items": { + "$ref": "#/components/schemas/LogprobsResultCandidate" + } + } + } }, - "Blob": { - "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.", - "type": "object", + "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.", "properties": { - "data": { - "format": "byte", - "description": "Raw bytes for media formats.", - "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). //", + "model": { + "description": "Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`", "type": "string" }, "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" - } - } - }, - "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.", - "type": "object", - "properties": { - "message": { "type": "string", - "description": "A message explaining the model status." + "description": "Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters." }, - "retirementTime": { - "description": "The time at which the model will be retired.", + "name": { + "readOnly": true, + "type": "string", + "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`" + }, + "usageMetadata": { + "readOnly": true, + "$ref": "#/components/schemas/CachedContentUsageMetadata", + "description": "Output only. Metadata on the usage of the cached content." + }, + "tools": { + "items": { + "$ref": "#/components/schemas/Tool" + }, + "type": "array", + "description": "Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response" + }, + "expireTime": { "format": "google-datetime", - "type": "string" + "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." }, - "modelStage": { - "description": "The stage of the underlying model.", + "updateTime": { + "readOnly": true, "type": "string", - "enum": [ - "MODEL_STAGE_UNSPECIFIED", - "UNSTABLE_EXPERIMENTAL", - "EXPERIMENTAL", - "PREVIEW", - "STABLE", - "LEGACY", - "DEPRECATED", - "RETIRED" - ], - "enumDeprecated": [ - false, - true, - false, - false, - false, - false, - true, - false - ], - "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." - ] - } - } - }, - "GroundingChunkStringList": { - "properties": { - "values": { + "format": "google-datetime", + "description": "Output only. When the cache entry was last updated in UTC time." + }, + "systemInstruction": { + "description": "Optional. Input only. Immutable. Developer set system instruction. Currently text only.", + "$ref": "#/components/schemas/Content" + }, + "ttl": { + "description": "Input only. New TTL for this resource, input only.", + "type": "string", + "format": "google-duration" + }, + "toolConfig": { + "$ref": "#/components/schemas/ToolConfig", + "description": "Optional. Input only. Immutable. Tool config. This config is shared for all tools." + }, + "createTime": { + "description": "Output only. Creation time of the cache entry.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "contents": { + "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/Content" }, - "description": "The string values of the list.", - "type": "array" + "description": "Optional. Input only. Immutable. The content to cache." } }, - "description": "A list of string values.", "type": "object" }, - "ListModelsResponse": { - "description": "Response from `ListModel` containing a paginated list of Models.", + "RealtimeInputConfig": { + "type": "object", + "description": "Configures the realtime input behavior in `BidiGenerateContent`.", "properties": { - "nextPageToken": { + "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." + }, + "activityHandling": { + "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." + ], "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": "Optional. Defines what effect activity has.", + "enum": [ + "ACTIVITY_HANDLING_UNSPECIFIED", + "START_OF_ACTIVITY_INTERRUPTS", + "NO_INTERRUPTION" + ] }, - "models": { - "items": { - "$ref": "#/components/schemas/Model" - }, - "description": "The returned Models.", - "type": "array" + "turnCoverage": { + "description": "Optional. Defines which input is included in the user's turn.", + "type": "string", + "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." + ], + "enum": [ + "TURN_COVERAGE_UNSPECIFIED", + "TURN_INCLUDES_ONLY_ACTIVITY", + "TURN_INCLUDES_ALL_INPUT", + "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO" + ] } - }, - "type": "object" + } }, - "LatLng": { + "VideoFileMetadata": { "properties": { - "longitude": { - "type": "number", - "format": "double", - "description": "The longitude in degrees. It must be in the range [-180.0, +180.0]." - }, - "latitude": { - "format": "double", - "type": "number", - "description": "The latitude in degrees. It must be in the range [-90.0, +90.0]." + "videoDuration": { + "format": "google-duration", + "description": "Duration of the video.", + "type": "string" } }, - "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 for a video `File`.", "type": "object" }, - "BatchGenerateContentRequest": { - "description": "Request for a `BatchGenerateContent` operation.", + "RetrievalMetadata": { "type": "object", + "description": "Metadata related to retrieval in the grounding flow.", "properties": { - "batch": { - "description": "Required. The batch to create.", - "$ref": "#/components/schemas/GenerateContentBatch" + "googleSearchDynamicRetrievalScore": { + "format": "float", + "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": "number" } } }, - "BidiGenerateContentSetup": { + "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": { - "sessionResumption": { - "$ref": "#/components/schemas/SessionResumptionConfig", - "description": "Optional. Configures session resumption mechanism. If included, the server will send `SessionResumptionUpdate` messages." - }, - "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." - }, - "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`" + "streamableHttpTransport": { + "description": "A transport that can stream HTTP requests and responses.", + "$ref": "#/components/schemas/StreamableHttpTransport" }, - "model": { - "description": "Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`", + "name": { + "description": "The name of the MCPServer.", "type": "string" - }, - "tools": { - "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.", - "items": { - "$ref": "#/components/schemas/Tool" - } - }, - "historyConfig": { - "$ref": "#/components/schemas/HistoryConfig", - "description": "Optional. Configures the exchange of history between the client and the server." - }, - "realtimeInputConfig": { - "description": "Optional. Configures the handling of realtime input.", - "$ref": "#/components/schemas/RealtimeInputConfig" - }, - "contextWindowCompression": { - "$ref": "#/components/schemas/ContextWindowCompressionConfig", - "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." - }, - "inputAudioTranscription": { - "$ref": "#/components/schemas/AudioTranscriptionConfig", - "description": "Optional. If set, enables transcription of voice input. The transcription aligns with the input audio language, if configured." - }, - "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" - }, - "labels": { + } + } + }, + "TransferOwnershipResponse": { + "properties": {}, + "type": "object", + "description": "Response from `TransferOwnership`." + }, + "InlinedEmbedContentRequest": { + "properties": { + "metadata": { + "type": "object", "additionalProperties": { - "type": "string" + "description": "Properties of the object." }, - "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\"}`)" + "description": "Optional. The metadata to be associated with the request." + }, + "request": { + "description": "Required. The request to be processed in the batch.", + "$ref": "#/components/schemas/EmbedContentRequest" } }, "type": "object", - "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." + "description": "The request to be processed in the batch." }, - "CitationMetadata": { + "Hyperparameters": { + "description": "Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance", "type": "object", - "description": "A collection of source attributions for a piece of content.", "properties": { - "citationSources": { - "type": "array", - "description": "Citations to sources for a specific response.", - "items": { - "$ref": "#/components/schemas/CitationSource" - } + "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." + }, + "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" + }, + "batchSize": { + "type": "integer", + "format": "int32", + "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." + }, + "learningRate": { + "type": "number", + "format": "float", + "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." } } }, - "File": { - "description": "A file uploaded to the API. Next ID: 15", - "type": "object", + "GoogleAiGenerativelanguageV1betaGroundingSupport": { "properties": { - "state": { - "description": "Output only. Processing state of the File.", - "readOnly": true, - "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." - ], - "type": "string", - "enum": [ - "STATE_UNSPECIFIED", - "PROCESSING", - "ACTIVE", - "FAILED" - ] + "confidenceScores": { + "items": { + "type": "number", + "format": "float" + }, + "type": "array", + "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." }, - "sha256Hash": { - "readOnly": true, - "format": "byte", - "description": "Output only. SHA-256 hash of the uploaded bytes.", - "type": "string" + "segment": { + "description": "Segment of the content this support belongs to.", + "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaSegment" }, - "uri": { - "description": "Output only. The uri of the `File`.", + "renderedParts": { + "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.", + "type": "array", "readOnly": true, - "type": "string" + "items": { + "format": "int32", + "type": "integer" + } }, - "updateTime": { - "readOnly": true, - "format": "google-datetime", - "type": "string", - "description": "Output only. The timestamp of when the `File` was last updated." + "groundingChunkIndices": { + "type": "array", + "items": { + "format": "int32", + "type": "integer" + }, + "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)." + } + }, + "description": "Grounding support.", + "type": "object" + }, + "GroundingChunk": { + "type": "object", + "properties": { + "retrievedContext": { + "$ref": "#/components/schemas/RetrievedContext", + "description": "Optional. Grounding chunk from context retrieved by the file search tool." }, - "mimeType": { - "description": "Output only. MIME type of the file.", - "readOnly": true, - "type": "string" + "image": { + "description": "Optional. Grounding chunk from image search.", + "$ref": "#/components/schemas/Image" }, - "error": { - "$ref": "#/components/schemas/Status", - "readOnly": true, - "description": "Output only. Error status if File processing failed." + "maps": { + "description": "Optional. Grounding chunk from Google Maps.", + "$ref": "#/components/schemas/Maps" }, - "sizeBytes": { - "readOnly": true, - "format": "int64", - "description": "Output only. Size of the file in bytes.", + "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." + }, + "TransferOwnershipRequest": { + "properties": { + "emailAddress": { + "description": "Required. The email address of the user to whom the tuned model is being transferred to.", "type": "string" - }, - "downloadUri": { - "description": "Output only. The download uri of the `File`.", - "readOnly": true, + } + }, + "type": "object", + "description": "Request to transfer the ownership of the tuned model." + }, + "Document": { + "description": "A `Document` is a collection of `Chunk`s.", + "properties": { + "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" }, - "videoMetadata": { - "readOnly": true, - "description": "Output only. Metadata for a video.", - "$ref": "#/components/schemas/VideoFileMetadata" + "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" }, - "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." + "state": { + "enum": [ + "STATE_UNSPECIFIED", + "STATE_PENDING", + "STATE_ACTIVE", + "STATE_FAILED" ], + "readOnly": true, "type": "string", - "enum": [ - "SOURCE_UNSPECIFIED", - "UPLOADED", - "GENERATED", - "REGISTERED" + "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": "Source of the File." + "description": "Output only. Current state of the `Document`." }, - "expirationTime": { + "createTime": { "readOnly": true, - "format": "google-datetime", "type": "string", - "description": "Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire." - }, - "displayName": { - "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\"", - "type": "string" + "description": "Output only. The Timestamp of when the `Document` was created.", + "format": "google-datetime" }, - "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" + "sizeBytes": { + "format": "int64", + "type": "string", + "readOnly": true, + "description": "Output only. The size of raw bytes ingested into the Document." }, - "createTime": { + "updateTime": { + "format": "google-datetime", + "description": "Output only. The Timestamp of when the `Document` was last updated.", "type": "string", + "readOnly": true + }, + "mimeType": { + "description": "Output only. The mime type of the Document.", "readOnly": true, - "description": "Output only. The timestamp of when the `File` was created.", - "format": "google-datetime" - } - } - }, - "ListEnvironmentsResponse": { - "properties": { - "nextPageToken": { - "description": "Pagination token.", "type": "string" }, - "environments": { + "customMetadata": { + "type": "array", "items": { - "$ref": "#/components/schemas/Environment" + "$ref": "#/components/schemas/CustomMetadata" }, - "description": "Environments belonging to the provided project.", - "type": "array" + "description": "Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`." } }, - "type": "object", - "description": "Response for `ListEnvironments`." + "type": "object" }, - "EmbedContentResponse": { - "description": "The response to an `EmbedContentRequest`.", + "ListCorporaResponse": { + "type": "object", "properties": { - "usageMetadata": { - "description": "Output only. The usage metadata for the request.", - "$ref": "#/components/schemas/EmbeddingUsageMetadata", - "readOnly": true + "corpora": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Corpus" + }, + "description": "The returned corpora." }, - "embedding": { - "$ref": "#/components/schemas/ContentEmbedding", - "description": "Output only. The embedding generated from the input content.", - "readOnly": true + "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." } }, - "type": "object" + "description": "Response from `ListCorpora` containing a paginated list of `Corpora`. The results are sorted by ascending `corpus.create_time`." }, - "CitationSource": { - "description": "A citation to a source for a portion of a specific response.", + "CachedContentUsageMetadata": { "type": "object", "properties": { - "startIndex": { - "description": "Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.", + "totalTokenCount": { "format": "int32", - "type": "integer" + "type": "integer", + "description": "Total number of tokens that the cached content consumes." + } + }, + "description": "Metadata on the usage of the cached content." + }, + "Maps": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "description": "URI reference of the place." }, - "endIndex": { - "description": "Optional. End of the attributed segment, exclusive.", - "format": "int32", - "type": "integer" + "placeAnswerSources": { + "description": "Sources that provide answers about the features of a given place in Google Maps.", + "$ref": "#/components/schemas/PlaceAnswerSources" }, - "uri": { - "description": "Optional. URI that is attributed as a source for a portion of the text.", + "text": { + "description": "Text description of the place answer.", "type": "string" }, - "license": { - "description": "Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations.", + "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" + }, + "title": { + "description": "Title of the place.", "type": "string" } - } + }, + "description": "A grounding chunk from Google Maps. A Maps chunk corresponds to a single place." }, - "GenerateContentRequest": { - "type": "object", + "GenerationConfig": { + "description": "Configuration options for model generation and outputs. Not all parameters are configurable for every model.", "properties": { - "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}`" + "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" }, - "contents": { - "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.", - "items": { - "$ref": "#/components/schemas/Content" - }, - "type": "array" + "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.", + "$ref": "#/components/schemas/ImageConfig" }, - "serviceTier": { - "description": "Optional. The service tier of the request.", - "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" - ] + "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." }, - "store": { - "description": "Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.", - "type": "boolean" + "seed": { + "type": "integer", + "description": "Optional. Seed used in decoding. If not set, the request uses a randomly generated seed.", + "format": "int32" }, - "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" + "logprobs": { + "format": "int32", + "type": "integer", + "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]." }, - "generationConfig": { - "description": "Optional. Configuration options for model generation and outputs.", - "$ref": "#/components/schemas/GenerationConfig" + "speechConfig": { + "$ref": "#/components/schemas/SpeechConfig", + "description": "Optional. The speech generation config." }, - "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" + "responseJsonSchema": { + "description": "Optional. An internal detail. Use `responseJsonSchema` rather than this field." }, - "systemInstruction": { - "$ref": "#/components/schemas/Content", - "description": "Optional. Developer set [system instruction(s)](https://ai.google.dev/gemini-api/docs/system-instructions). Currently, text only." + "mediaResolution": { + "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.", + "type": "string" }, - "safetySettings": { - "type": "array", + "maxOutputTokens": { + "type": "integer", + "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" + }, + "frequencyPenalty": { + "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", + "type": "number" + }, + "responseLogprobs": { + "type": "boolean", + "description": "Optional. If true, export the logprobs results in response." + }, + "responseModalities": { "items": { - "$ref": "#/components/schemas/SafetySetting" + "enum": [ + "MODALITY_UNSPECIFIED", + "TEXT", + "IMAGE", + "AUDIO", + "VIDEO" + ], + "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" }, - "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." + "type": "array", + "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." }, - "model": { - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", - "type": "string" + "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.", + "format": "float", + "type": "number" }, - "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.", + "temperature": { + "format": "float", + "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].", + "type": "number" + }, + "enableEnhancedCivicAnswers": { + "type": "boolean", + "description": "Optional. Enables enhanced civic answers. It may not be available for all models." + }, + "translationConfig": { + "$ref": "#/components/schemas/TranslationConfig", + "description": "Optional. Config for translation." + }, + "candidateCount": { + "type": "integer", + "format": "int32", + "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)" + }, + "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" + }, + "audioTranscriptionConfig": { + "$ref": "#/components/schemas/AudioTranscriptionConfig", + "description": "Optional. Config for audio transcription (speech recognition)." + }, + "responseMimeType": { + "type": "string", + "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." + }, + "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.", + "type": "integer", + "format": "int32" + }, + "stopSequences": { "type": "array", + "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.", "items": { - "$ref": "#/components/schemas/Tool" + "type": "string" } + }, + "presencePenalty": { + "type": "number", + "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" + }, + "enableAffectiveDialog": { + "description": "Optional. If enabled, the model will detect emotions and adapt its responses accordingly.", + "type": "boolean" } }, - "description": "Request to generate a completion from the model." + "type": "object" }, - "SpeakerVoiceConfig": { - "description": "The configuration for a single speaker in a multi speaker setup.", - "type": "object", + "GeneratedFile": { "properties": { - "speaker": { - "description": "Required. The name of the speaker to use. Should be the same as in the prompt.", - "type": "string" + "mimeType": { + "type": "string", + "description": "MIME type of the generatedFile." }, - "voiceConfig": { - "description": "Required. The configuration for the voice to use.", - "$ref": "#/components/schemas/VoiceConfig" - } - } - }, - "UploadEnvironmentFileRequest": { - "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" + "state": { + "enum": [ + "STATE_UNSPECIFIED", + "GENERATING", + "GENERATED", + "FAILED" + ], + "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." + ], + "type": "string", + "description": "Output only. The state of the GeneratedFile.", + "readOnly": true }, - "overwrite": { - "type": "boolean", - "description": "Optional. Whether to overwrite the destination file if it already exists." + "error": { + "$ref": "#/components/schemas/Status", + "description": "Error details if the GeneratedFile ends up in the STATE_FAILED state." + }, + "name": { + "description": "Identifier. The name of the generated file. Example: `generatedFiles/abc-123`", + "type": "string" } }, - "description": "Request for `UploadEnvironmentFile`." + "description": "A file generated on behalf of a user.", + "type": "object" }, - "ReviewSnippet": { + "ImageSearch": { + "properties": {}, + "type": "object", + "description": "Image search for grounding and related configurations." + }, + "ImportFileRequest": { + "description": "Request for `ImportFile` to import a File API file with a `FileSearchStore`.", "properties": { - "googleMapsUri": { - "description": "A link that corresponds to the user review on Google Maps.", - "type": "string" + "customMetadata": { + "items": { + "$ref": "#/components/schemas/CustomMetadata" + }, + "description": "Custom metadata to be associated with the file.", + "type": "array" }, - "title": { - "description": "Title of the review.", - "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" }, - "reviewId": { + "fileName": { "type": "string", - "description": "The ID of the review snippet." + "description": "Required. The name of the `File` to import. Example: `files/abc-123`" } }, - "type": "object", - "description": "Encapsulates a snippet of a user review that answers a question about the features of a specific place in Google Maps." + "type": "object" }, - "Environment": { + "GroundingChunkCustomMetadata": { "type": "object", + "description": "User provided metadata about the GroundingFact.", "properties": { - "created": { - "description": "Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).", - "readOnly": true, - "type": "string" + "stringListValue": { + "description": "Optional. A list of string values for the metadata.", + "$ref": "#/components/schemas/GroundingChunkStringList" }, - "updated": { + "stringValue": { "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 + "description": "Optional. The string value of the metadata." }, - "lastAccessed": { - "description": "Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).", - "readOnly": true, + "key": { + "description": "The key of the metadata.", "type": "string" }, - "id": { - "description": "Required. Output only. The ID of the environment.", - "type": "string", - "readOnly": true + "numericValue": { + "type": "number", + "format": "float", + "description": "Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used." + } + } + }, + "ContextWindowCompressionConfig": { + "type": "object", + "properties": { + "slidingWindow": { + "description": "A sliding-window mechanism.", + "$ref": "#/components/schemas/SlidingWindow" }, - "networkAllowlist": { - "description": "Allow only specific domains.", - "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" + "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", + "type": "string" + } + }, + "description": "Enables context window compression \u2014 a mechanism for managing the model's context window so that it does not exceed a given length." + }, + "SpeechMetadata": { + "type": "object", + "description": "Speech metadata for `text` parts.", + "properties": { + "style": { + "type": "string", + "description": "Optional. Optional style instruction for the speech synthesis." }, - "status": { - "x-enum-descriptions": [ - "", - "", - "" - ], + "speaker": { "type": "string", - "enum": [ - "STATUS_UNSPECIFIED", - "ACTIVE", - "EXPIRED" - ], - "readOnly": true, - "description": "Output only. The status of the environment container." - }, - "sizeBytes": { - "type": "string", - "description": "Output only. The total size of the environment files in bytes, output only.", - "format": "int64", - "readOnly": true - }, - "networkMode": { - "description": "Network egress mode.", + "description": "Optional. Optional speaker name for multi-speaker synthesis." + } + } + }, + "AutomaticActivityDetection": { + "type": "object", + "description": "Configures automatic detection of activity.", + "properties": { + "startOfSpeechSensitivity": { "type": "string", + "description": "Optional. Determines how likely speech is to be detected.", "enum": [ - "NETWORK_MODE_UNSPECIFIED", - "DISABLED" + "START_SENSITIVITY_UNSPECIFIED", + "START_SENSITIVITY_HIGH", + "START_SENSITIVITY_LOW" ], "x-enum-descriptions": [ - "Default value. Unused.", - "All network egress is blocked." + "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." ] }, - "sources": { - "description": "Sources to be mounted into the environment.", - "items": { - "$ref": "#/components/schemas/Source" - }, - "type": "array" + "prefixPaddingMs": { + "type": "integer", + "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.", + "format": "int32" }, - "fileCount": { - "readOnly": true, - "format": "int64", - "type": "string", - "description": "Output only. The number of files in the environment, output only." + "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." + }, + "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" + }, + "endOfSpeechSensitivity": { + "enum": [ + "END_SENSITIVITY_UNSPECIFIED", + "END_SENSITIVITY_HIGH", + "END_SENSITIVITY_LOW" + ], + "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" } - }, - "description": "An execution environment for an agent." + } }, - "CreateFileResponse": { - "description": "Response for `CreateFile`.", - "type": "object", + "HistoryConfig": { "properties": { - "file": { - "description": "Metadata for the created file.", - "$ref": "#/components/schemas/File" + "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" }, - "ListOperationsResponse": { + "AuthToken": { + "description": "A request to create an ephemeral authentication token.", "type": "object", - "description": "The response message for Operations.ListOperations.", "properties": { - "nextPageToken": { - "description": "The standard List next-page token.", + "bidiGenerateContentSetup": { + "$ref": "#/components/schemas/BidiGenerateContentSetup", + "description": "Optional. Input only. Immutable. Configuration specific to `BidiGenerateContent`." + }, + "fieldMask": { + "type": "string", + "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" + }, + "name": { + "readOnly": true, + "description": "Output only. Identifier. The token itself.", "type": "string" }, - "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": { - "type": "string" - }, - "type": "array" + "uses": { + "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.", + "format": "int32", + "type": "integer" }, - "operations": { - "items": { - "$ref": "#/components/schemas/Operation" - }, - "type": "array", - "description": "A list of operations that matches the specified filter in the request." - } - } - }, - "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": { - "nextPageToken": { + "expireTime": { + "format": "google-datetime", "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": "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." }, - "fileSearchStores": { - "items": { - "$ref": "#/components/schemas/FileSearchStore" - }, - "type": "array", - "description": "The returned rag_stores." + "newSessionExpireTime": { + "type": "string", + "format": "google-datetime", + "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." } } }, "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", "properties": { "whiteSpaceConfig": { - "description": "White space chunking configuration.", - "$ref": "#/components/schemas/WhiteSpaceConfig" - } - } - }, - "TuningExamples": { - "description": "A set of tuning examples. Can be training or validation data.", - "properties": { - "examples": { - "description": "The examples. Example input can be for text or discuss, but all examples in a set must be of the same type.", - "items": { - "$ref": "#/components/schemas/TuningExample" - }, - "type": "array" + "$ref": "#/components/schemas/WhiteSpaceConfig", + "description": "White space chunking configuration." } }, + "description": "Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto", "type": "object" }, - "ListPermissionsResponse": { - "description": "Response from `ListPermissions` containing a paginated list of permissions.", - "type": "object", + "ModalityTokenCount": { + "description": "Represents token counting info for a single modality.", "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.", + "modality": { + "enum": [ + "MODALITY_UNSPECIFIED", + "TEXT", + "IMAGE", + "VIDEO", + "AUDIO", + "DOCUMENT" + ], + "x-enum-descriptions": [ + "Unspecified modality.", + "Plain text.", + "Image.", + "Video.", + "Audio.", + "Document, e.g. PDF." + ], + "description": "The modality associated with this token count.", "type": "string" }, - "permissions": { - "items": { - "$ref": "#/components/schemas/Permission" - }, - "description": "Returned permissions.", - "type": "array" + "tokenCount": { + "format": "int32", + "type": "integer", + "description": "Number of tokens." } - } + }, + "type": "object" }, - "FunctionDeclaration": { + "Operation": { "properties": { - "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`." + "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" }, - "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`." + "error": { + "$ref": "#/components/schemas/Status", + "description": "The error result of the operation in case of failure or cancellation." }, - "response": { - "$ref": "#/components/schemas/Schema", - "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." + "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.", + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." + }, + "type": "object" }, "name": { - "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.", - "type": "string" - }, - "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" - ] - }, - "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." + "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": { - "description": "Required. A brief description of the function.", - "type": "string" + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." + }, + "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" } }, "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." + "description": "This resource represents a long-running operation that is the result of a network API call." }, - "TransferOwnershipResponse": { + "SpeechConfig": { "type": "object", - "description": "Response from `TransferOwnership`.", - "properties": {} - }, - "TextResponseFormat": { "properties": { - "mimeType": { - "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.", - "type": "string", - "enum": [ - "MIME_TYPE_UNSPECIFIED", - "APPLICATION_JSON", - "TEXT_PLAIN" - ] + "multiSpeakerVoiceConfig": { + "$ref": "#/components/schemas/MultiSpeakerVoiceConfig", + "description": "Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field." }, - "schema": { - "description": "Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON." + "voiceConfig": { + "description": "The configuration in case of single-voice output.", + "$ref": "#/components/schemas/VoiceConfig" + }, + "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`." } }, - "description": "Configuration for text output format.", - "type": "object" + "description": "Config for speech generation and transcription." }, - "UrlMetadata": { + "InlinedResponse": { "type": "object", - "description": "Context of the a single url retrieval.", - "properties": { - "retrievedUrl": { - "type": "string", - "description": "Retrieved url by the tool." - }, - "urlRetrievalStatus": { - "type": "string", - "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.", - "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." - ] - } - } - }, - "EmbedContentBatchStats": { "properties": { - "requestCount": { - "format": "int64", + "response": { "readOnly": true, - "description": "Output only. The number of requests in the batch.", - "type": "string" - }, - "pendingRequestCount": { - "type": "string", - "description": "Output only. The number of requests that are still pending processing.", - "format": "int64", - "readOnly": true + "description": "Output only. The response to the request.", + "$ref": "#/components/schemas/GenerateContentResponse" }, - "failedRequestCount": { - "format": "int64", - "type": "string", + "metadata": { + "additionalProperties": { + "description": "Properties of the object." + }, + "description": "Output only. The metadata associated with the request.", "readOnly": true, - "description": "Output only. The number of requests that failed to be processed." + "type": "object" }, - "successfulRequestCount": { + "error": { "readOnly": true, - "type": "string", - "format": "int64", - "description": "Output only. The number of requests that were successfully processed." + "$ref": "#/components/schemas/Status", + "description": "Output only. The error encountered while processing the request." } }, - "description": "Stats about the batch.", - "type": "object" + "description": "The response to a single request in the batch." }, - "GroundingChunk": { - "type": "object", - "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.", + "Permission": { + "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", "properties": { - "image": { - "$ref": "#/components/schemas/Image", - "description": "Optional. Grounding chunk from image search." + "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" }, - "web": { - "$ref": "#/components/schemas/Web", - "description": "Grounding chunk from the web." + "granteeType": { + "enum": [ + "GRANTEE_TYPE_UNSPECIFIED", + "USER", + "GROUP", + "EVERYONE" + ], + "description": "Optional. Immutable. The type of the grantee.", + "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" }, - "maps": { - "description": "Optional. Grounding chunk from Google Maps.", - "$ref": "#/components/schemas/Maps" + "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." + ], + "type": "string", + "description": "Required. The role granted by this permission." }, - "retrievedContext": { - "$ref": "#/components/schemas/RetrievedContext", - "description": "Optional. Grounding chunk from context retrieved by the file search tool." - } - } - }, - "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.", - "properties": { - "reviewSnippets": { - "description": "Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.", - "items": { - "$ref": "#/components/schemas/ReviewSnippet" - }, - "type": "array" + "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.", + "readOnly": true, + "type": "string" } }, "type": "object" }, - "InlinedEmbedContentResponse": { + "EnvironmentNetworkEgressAllowlist": { "type": "object", + "description": "Network egress configuration for the environment.", "properties": { - "response": { - "description": "Output only. The response to the request.", - "$ref": "#/components/schemas/EmbedContentResponse", - "readOnly": true - }, - "error": { - "$ref": "#/components/schemas/Status", - "description": "Output only. The error encountered while processing the request.", - "readOnly": true - }, - "metadata": { - "description": "Output only. The metadata associated with the request.", - "readOnly": true, - "type": "object", - "additionalProperties": { - "description": "Properties of the object." + "allowlist": { + "type": "array", + "description": "List of allowed domains and their configurations.", + "items": { + "$ref": "#/components/schemas/EgressRule" } } - }, - "description": "The response to a single request in the batch." + } }, - "SpeechMetadata": { + "ReviewSnippet": { "properties": { - "speaker": { - "description": "Optional. Optional speaker name for multi-speaker synthesis.", + "googleMapsUri": { + "description": "A link that corresponds to the user review on Google Maps.", "type": "string" }, - "style": { + "title": { "type": "string", - "description": "Optional. Optional style instruction for the speech synthesis." + "description": "Title of the review." + }, + "reviewId": { + "description": "The ID of the review snippet.", + "type": "string" } }, - "description": "Speech metadata for `text` parts.", - "type": "object" + "type": "object", + "description": "Encapsulates a snippet of a user review that answers a question about the features of a specific place in Google Maps." }, - "GroundingChunkCustomMetadata": { - "description": "User provided metadata about the GroundingFact.", + "InlinedRequests": { "type": "object", + "description": "The requests to be processed in the batch if provided as part of the batch creation request.", "properties": { - "stringListValue": { - "description": "Optional. A list of string values for the metadata.", - "$ref": "#/components/schemas/GroundingChunkStringList" - }, - "numericValue": { - "format": "float", - "type": "number", - "description": "Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used." - }, - "key": { - "description": "The key of the metadata.", - "type": "string" - }, - "stringValue": { - "type": "string", - "description": "Optional. The string value of the metadata." + "requests": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InlinedRequest" + }, + "description": "Required. The requests to be processed in the batch." } } }, - "Dataset": { - "properties": { - "examples": { - "$ref": "#/components/schemas/TuningExamples", - "description": "Optional. Inline examples with simple input/output text." - } - }, + "LogprobsResult": { "type": "object", - "description": "Dataset for training or validation." - }, - "RegisterFilesRequest": { - "description": "Request for `RegisterFiles`.", "properties": { - "uris": { + "logProbabilitySum": { + "description": "Sum of log probabilities for all tokens.", + "type": "number", + "format": "float" + }, + "chosenCandidates": { + "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.", "items": { - "type": "string" + "$ref": "#/components/schemas/LogprobsResultCandidate" }, - "description": "Required. The Google Cloud Storage URIs to register. Example: `gs://bucket/object`.", "type": "array" + }, + "topCandidates": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TopCandidates" + }, + "description": "Length = total number of decoding steps." } }, - "type": "object" + "description": "Logprobs Result" }, - "GenerationConfig": { + "TunedModel": { + "description": "A fine-tuned model created using ModelService.CreateTunedModel.", + "type": "object", "properties": { - "responseLogprobs": { - "type": "boolean", - "description": "Optional. If true, export the logprobs results in response." + "createTime": { + "description": "Output only. The timestamp when this model was created.", + "type": "string", + "readOnly": true, + "format": "google-datetime" }, - "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" + "topP": { + "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", + "format": "float" }, - "stopSequences": { - "items": { - "type": "string" - }, + "displayName": { + "type": "string", + "description": "Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces." + }, + "readerProjectNumbers": { + "description": "Optional. List of project numbers that have read access to the tuned model.", "type": "array", - "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." + "items": { + "type": "string", + "format": "int64" + } }, - "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." + "updateTime": { + "format": "google-datetime", + "type": "string", + "readOnly": true, + "description": "Output only. The timestamp when this model was updated." + }, + "tuningTask": { + "description": "Required. The tuning task that creates the tuned model.", + "$ref": "#/components/schemas/TuningTask" + }, + "description": { + "description": "Optional. A short description of this model.", + "type": "string" + }, + "tunedModelSource": { + "$ref": "#/components/schemas/TunedModelSource", + "description": "Optional. TunedModel to use as the starting point for training the new model." }, "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", - "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]." + "format": "float" }, - "frequencyPenalty": { - "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", - "type": "number" + "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 }, - "translationConfig": { - "description": "Optional. Config for translation.", - "$ref": "#/components/schemas/TranslationConfig" + "state": { + "type": "string", + "description": "Output only. The state of the tuned model.", + "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." + ], + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "FAILED" + ], + "readOnly": true }, - "speechConfig": { - "description": "Optional. The speech generation config.", - "$ref": "#/components/schemas/SpeechConfig" + "baseModel": { + "type": "string", + "description": "Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`" }, - "topP": { - "format": "float", - "type": "number", - "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." + "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" + } + } + }, + "CustomMetadata": { + "properties": { + "stringListValue": { + "$ref": "#/components/schemas/StringList", + "description": "The StringList value of the metadata to store." }, - "enableAffectiveDialog": { - "type": "boolean", - "description": "Optional. If enabled, the model will detect emotions and adapt its responses accordingly." + "key": { + "type": "string", + "description": "Required. The key of the metadata to store." }, - "audioTranscriptionConfig": { - "description": "Optional. Config for audio transcription (speech recognition).", - "$ref": "#/components/schemas/AudioTranscriptionConfig" + "stringValue": { + "description": "The string value of the metadata to store.", + "type": "string" }, - "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.", + "numericValue": { + "description": "The numeric value of the metadata to store.", + "format": "float", + "type": "number" + } + }, + "description": "User provided metadata stored as key-value pairs.", + "type": "object" + }, + "ImageConfig": { + "type": "object", + "properties": { + "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`.", "type": "string" }, - "responseJsonSchema": { - "description": "Optional. An internal detail. Use `responseJsonSchema` rather than this field." + "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" + } + }, + "description": "Config for image generation features." + }, + "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" + }, + "Content": { + "properties": { + "parts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Part" + }, + "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types." }, - "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." + "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" + } + }, + "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." + }, + "Image": { + "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." + "domain": { + "description": "The root domain of the web page that the image is from, e.g. \"example.com\".", + "type": "string" }, - "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" + "title": { + "description": "The title of the web page that the image is from.", + "type": "string" }, - "logprobs": { - "format": "int32", + "sourceUri": { + "type": "string", + "description": "The web page URI for attribution." + } + }, + "type": "object" + }, + "WhiteSpaceConfig": { + "properties": { + "maxTokensPerChunk": { "type": "integer", - "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]." + "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.", + "format": "int32" }, - "responseModalities": { + "maxOverlapTokens": { + "format": "int32", + "type": "integer", + "description": "Maximum number of overlapping tokens between two adjacent chunks." + } + }, + "description": "Configuration for a white space chunking algorithm [white space delimited].", + "type": "object" + }, + "FileSearch": { + "description": "The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API.", + "properties": { + "fileSearchStoreNames": { + "description": "Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`", "type": "array", - "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": { - "type": "string", - "enum": [ - "MODALITY_UNSPECIFIED", - "TEXT", - "IMAGE", - "AUDIO", - "VIDEO" - ], - "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" } }, - "seed": { - "description": "Optional. Seed used in decoding. If not set, the request uses a randomly generated seed.", - "format": "int32", - "type": "integer" - }, - "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)" - }, - "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.", - "format": "int32", - "type": "integer" - }, - "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.", - "type": "number", - "format": "float" - }, - "mediaResolution": { - "description": "Optional. If specified, the media resolution specified will be used.", + "metadataFilter": { "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. Metadata filter to apply to the semantic retrieval documents and chunks." }, - "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.", + "topK": { "type": "integer", + "description": "Optional. The number of semantic retrieval chunks to retrieve.", "format": "int32" } }, - "description": "Configuration options for model generation and outputs. Not all parameters are configurable for every model.", "type": "object" }, - "SemanticRetrieverChunk": { + "ToolConfig": { + "description": "The Tool configuration containing parameters for specifying `Tool` use in the request.", "properties": { - "chunk": { - "description": "Output only. Name of the `Chunk` containing the attributed text. Example: `corpora/123/documents/abc/chunks/xyz`", - "type": "string", - "readOnly": true + "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" }, - "source": { - "type": "string", - "readOnly": true, - "description": "Output only. Name of the source matching the request's `SemanticRetrieverConfig.source`. Example: `corpora/123` or `corpora/123/documents/abc`" + "functionCallingConfig": { + "description": "Optional. Function calling config.", + "$ref": "#/components/schemas/FunctionCallingConfig" + }, + "retrievalConfig": { + "$ref": "#/components/schemas/RetrievalConfig", + "description": "Optional. Retrieval config." } }, - "type": "object", - "description": "Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`." + "type": "object" }, - "WordInfo": { + "CustomLongRunningOperation": { "type": "object", - "description": "Information about a single recognized word.", "properties": { - "word": { - "description": "Required. Transcript of the word.", - "type": "string" + "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" }, - "endOffset": { - "format": "google-duration", - "description": "Optional. End offset in time of the word relative to the start of the audio.", - "type": "string" + "error": { + "description": "The error result of the operation in case of failure or cancellation.", + "$ref": "#/components/schemas/Status" }, - "startOffset": { - "description": "Optional. Start offset in time of the word relative to the start of the audio.", - "format": "google-duration", - "type": "string" + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." + }, + "type": "object", + "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." + }, + "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}`." + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." + }, + "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" } } }, - "ResponseFormatConfig": { - "description": "Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality.", + "DynamicRetrievalConfig": { "properties": { - "text": { - "$ref": "#/components/schemas/TextResponseFormat", - "description": "Optional. Text output format configuration." + "mode": { + "type": "string", + "x-enum-descriptions": [ + "Always trigger retrieval.", + "Run retrieval only when system decides it is necessary." + ], + "description": "The mode of the predictor to be used in dynamic retrieval.", + "enum": [ + "MODE_UNSPECIFIED", + "MODE_DYNAMIC" + ] + }, + "dynamicThreshold": { + "type": "number", + "description": "The threshold to be used in dynamic retrieval. If not set, a system default value is used.", + "format": "float" + } + }, + "type": "object", + "description": "Describes the options to customize dynamic retrieval." + }, + "CreateFileRequest": { + "description": "Request for `CreateFile`.", + "properties": { + "file": { + "$ref": "#/components/schemas/File", + "description": "Optional. Metadata for the file to create." + } + }, + "type": "object" + }, + "UsageMetadata": { + "type": "object", + "properties": { + "cachedContentTokenCount": { + "type": "integer", + "format": "int32", + "description": "Number of tokens in the cached part of the prompt (the cached content)" + }, + "thoughtsTokenCount": { + "type": "integer", + "description": "Output only. Number of tokens of thoughts for thinking models.", + "format": "int32", + "readOnly": true + }, + "promptTokenCount": { + "format": "int32", + "type": "integer", + "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." + }, + "cacheTokensDetails": { + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + }, + "readOnly": true, + "type": "array", + "description": "Output only. List of modalities of the cached content in the request input." + }, + "toolUsePromptTokenCount": { + "format": "int32", + "type": "integer", + "readOnly": true, + "description": "Output only. Number of tokens present in tool-use prompt(s)." + }, + "candidatesTokensDetails": { + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + }, + "description": "Output only. List of modalities that were returned in the response.", + "readOnly": true, + "type": "array" + }, + "serviceTier": { + "x-enum-descriptions": [ + "Default service tier, which is standard.", + "Standard service tier.", + "Flex service tier.", + "Priority service tier." + ], + "readOnly": true, + "type": "string", + "enum": [ + "unspecified", + "standard", + "flex", + "priority" + ], + "description": "Output only. Service tier of the request." + }, + "toolUsePromptTokensDetails": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + }, + "readOnly": true, + "description": "Output only. List of modalities that were processed for tool-use request inputs." + }, + "promptTokensDetails": { + "readOnly": true, + "type": "array", + "description": "Output only. List of modalities that were processed in the request input.", + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + } + }, + "candidatesTokenCount": { + "description": "Total number of tokens across all the generated response candidates.", + "format": "int32", + "type": "integer" + }, + "totalTokenCount": { + "description": "Total token count for the generation request (prompt + tool-use prompt + thoughts + response candidates).", + "type": "integer", + "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", + "format": "int32", + "readOnly": true + }, + "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" + } + } + }, + "description": "Metadata on the generation request's token usage." + }, + "ImageResponseFormat": { + "properties": { + "mimeType": { + "type": "string", + "x-enum-descriptions": [ + "Default value. This value is unused.", + "JPEG image format." + ], + "enum": [ + "MIME_TYPE_UNSPECIFIED", + "IMAGE_JPEG" + ], + "description": "Optional. The MIME type of the image output." + }, + "aspectRatio": { + "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" + ], + "type": "string", + "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." + ], + "description": "Optional. The aspect ratio for the image output." + }, + "imageSize": { + "enum": [ + "IMAGE_SIZE_UNSPECIFIED", + "IMAGE_SIZE_FIVE_TWELVE", + "IMAGE_SIZE_ONE_K", + "IMAGE_SIZE_TWO_K", + "IMAGE_SIZE_FOUR_K" + ], + "x-enum-descriptions": [ + "Default value. This value is unused.", + "512px image size.", + "1K image size.", + "2K image size.", + "4K image size." + ], + "description": "Optional. The size of the image output.", + "type": "string" + }, + "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." + ], + "type": "string", + "description": "Optional. The delivery mode for the image output.", + "enum": [ + "DELIVERY_UNSPECIFIED", + "INLINE", + "URI" + ] + } + }, + "type": "object", + "description": "Configuration for image output format." + }, + "InputConfig": { + "type": "object", + "description": "Configures the input to the batch request.", + "properties": { + "fileName": { + "description": "The name of the `File` containing the input requests.", + "type": "string" + }, + "requests": { + "description": "The requests to be processed in the batch.", + "$ref": "#/components/schemas/InlinedRequests" + } + } + }, + "UploadEnvironmentFileResponse": { + "properties": { + "files": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EnvironmentFile" + }, + "description": "List of files created or extracted in the environment." + } + }, + "description": "Response for `UploadEnvironmentFile`.", + "type": "object" + }, + "LanguageHints": { + "description": "Provides hints to the model about possible languages present in the audio.", + "properties": { + "languageCodes": { + "deprecated": true, + "type": "array", + "description": "Required. BCP-47 language codes.", + "items": { + "type": "string" + } + } + }, + "type": "object", + "deprecated": true + }, + "FunctionCallingConfig": { + "type": "object", + "properties": { + "allowedFunctionNames": { + "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.", + "items": { + "type": "string" + } + }, + "mode": { + "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.", + "type": "string", + "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\"." + ] + } + }, + "description": "Configuration for specifying function calling behavior." + }, + "EmbedContentBatchStats": { + "properties": { + "successfulRequestCount": { + "description": "Output only. The number of requests that were successfully processed.", + "type": "string", + "readOnly": true, + "format": "int64" }, - "image": { - "description": "Optional. Image output format configuration.", - "$ref": "#/components/schemas/ImageResponseFormat" + "failedRequestCount": { + "format": "int64", + "description": "Output only. The number of requests that failed to be processed.", + "type": "string", + "readOnly": true }, - "audio": { - "description": "Optional. Audio output format configuration.", - "$ref": "#/components/schemas/AudioResponseFormat" + "pendingRequestCount": { + "format": "int64", + "readOnly": true, + "type": "string", + "description": "Output only. The number of requests that are still pending processing." + }, + "requestCount": { + "readOnly": true, + "format": "int64", + "type": "string", + "description": "Output only. The number of requests in the batch." } }, + "description": "Stats about the batch.", "type": "object" }, - "AsyncBatchEmbedContentRequest": { - "description": "Request for an `AsyncBatchEmbedContent` operation.", + "Web": { + "type": "object", "properties": { - "batch": { - "$ref": "#/components/schemas/EmbedContentBatch", - "description": "Required. The batch to create." + "uri": { + "description": "Output only. URI reference of the chunk.", + "type": "string", + "readOnly": true + }, + "title": { + "description": "Output only. Title of the chunk.", + "type": "string", + "readOnly": true } }, - "type": "object" + "description": "Chunk from the web." }, - "Operation": { + "File": { + "description": "A file uploaded to the API. Next ID: 15", "properties": { - "response": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." - }, - "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" + "videoMetadata": { + "readOnly": true, + "$ref": "#/components/schemas/VideoFileMetadata", + "description": "Output only. Metadata for a video." }, - "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.", - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." - }, - "type": "object" + "sizeBytes": { + "description": "Output only. Size of the file in bytes.", + "type": "string", + "readOnly": true, + "format": "int64" }, - "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." + "sha256Hash": { + "description": "Output only. SHA-256 hash of the uploaded bytes.", + "format": "byte", + "readOnly": true, + "type": "string" }, "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}`.", + "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" }, "error": { - "description": "The error result of the operation in case of failure or cancellation.", + "description": "Output only. Error status if File processing failed.", + "readOnly": true, "$ref": "#/components/schemas/Status" - } - }, - "type": "object", - "description": "This resource represents a long-running operation that is the result of a network API call." - }, - "AuthToken": { - "description": "A request to create an ephemeral authentication token.", - "type": "object", - "properties": { - "newSessionExpireTime": { - "type": "string", - "format": "google-datetime", - "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." }, - "name": { + "uri": { "readOnly": true, "type": "string", - "description": "Output only. Identifier. The token itself." + "description": "Output only. The uri of the `File`." }, - "expireTime": { - "type": "string", + "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." + ], + "description": "Source of the File.", + "enum": [ + "SOURCE_UNSPECIFIED", + "UPLOADED", + "GENERATED", + "REGISTERED" + ], + "type": "string" + }, + "mimeType": { + "readOnly": true, + "description": "Output only. MIME type of the file.", + "type": "string" + }, + "expirationTime": { "format": "google-datetime", - "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": "Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.", + "readOnly": true }, - "bidiGenerateContentSetup": { - "description": "Optional. Input only. Immutable. Configuration specific to `BidiGenerateContent`.", - "$ref": "#/components/schemas/BidiGenerateContentSetup" + "updateTime": { + "format": "google-datetime", + "type": "string", + "description": "Output only. The timestamp of when the `File` was last updated.", + "readOnly": true }, - "uses": { - "type": "integer", - "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.", - "format": "int32" + "displayName": { + "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\"", + "type": "string" }, - "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.", + "createTime": { + "format": "google-datetime", + "description": "Output only. The timestamp of when the `File` was created.", + "readOnly": true, "type": "string" - } - } - }, - "TransferOwnershipRequest": { - "type": "object", - "properties": { - "emailAddress": { - "description": "Required. The email address of the user to whom the tuned model is being transferred to.", + }, + "downloadUri": { + "description": "Output only. The download uri of the `File`.", + "readOnly": true, "type": "string" + }, + "state": { + "type": "string", + "description": "Output only. Processing state of the File.", + "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." + ], + "readOnly": true, + "enum": [ + "STATE_UNSPECIFIED", + "PROCESSING", + "ACTIVE", + "FAILED" + ] } }, - "description": "Request to transfer the ownership of the tuned model." + "type": "object" }, - "WhiteSpaceConfig": { - "description": "Configuration for a white space chunking algorithm [white space delimited].", + "CitationMetadata": { "type": "object", + "description": "A collection of source attributions for a piece of content.", "properties": { - "maxOverlapTokens": { - "format": "int32", - "description": "Maximum number of overlapping tokens between two adjacent chunks.", - "type": "integer" - }, - "maxTokensPerChunk": { - "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", - "format": "int32" + "citationSources": { + "type": "array", + "description": "Citations to sources for a specific response.", + "items": { + "$ref": "#/components/schemas/CitationSource" + } } } }, - "GoogleSearchRetrieval": { - "description": "Tool to retrieve public web data for grounding, powered by Google.", - "properties": { - "dynamicRetrievalConfig": { - "$ref": "#/components/schemas/DynamicRetrievalConfig", - "description": "Specifies the dynamic retrieval configuration for the given source." - } - }, - "type": "object" - }, "Empty": { - "type": "object", "properties": {}, - "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); }" + "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" }, - "FunctionCallingConfig": { + "UrlContext": { + "properties": {}, "type": "object", - "description": "Configuration for specifying function calling behavior.", + "description": "Tool to support URL context retrieval." + }, + "ListTunedModelsResponse": { + "description": "Response from `ListTunedModels` containing a paginated list of Models.", "properties": { - "mode": { + "nextPageToken": { "type": "string", - "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\"." - ], - "description": "Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO." + "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." }, - "allowedFunctionNames": { + "tunedModels": { + "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/TunedModel" }, - "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" + "description": "The returned Models." } - } + }, + "type": "object" }, - "Source": { + "FunctionResponseBlob": { + "type": "object", + "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field.", "properties": { - "content": { - "type": "string", - "description": "The inline content if `type` is `INLINE`." - }, - "source": { - "description": "The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path.", + "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).", "type": "string" }, - "target": { - "type": "string", - "description": "Where the source should appear in the environment." - }, - "encoding": { - "type": "string", - "description": "Optional encoding for inline content (e.g. `base64`)." - }, - "type": { + "data": { "type": "string", - "enum": [ - "TYPE_UNSPECIFIED", - "GCS", - "INLINE", - "REPOSITORY" - ], - "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://)." - ] + "format": "byte", + "description": "Raw bytes for media formats." } - }, - "description": "A source to be mounted into the environment.", - "type": "object" + } } } }