From 6ccf506bffae49d594379438d13c91cf0394416d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 22 Oct 2026 21:11:51 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ....NextGen.Agents.JsonSerializerContext.g.cs | 8 +- ...le.Gemini.NextGen.AgentsClient.Create.g.cs | 20 +- ...Gen.Credentials.JsonSerializerContext.g.cs | 32 +- ....EnvironmentsClient.CreateEnvironment.g.cs | 14 +- ...e.Gemini.NextGen.IAgentsClient.Create.g.cs | 16 +- ...IEnvironmentsClient.CreateEnvironment.g.cs | 12 +- ...Gemini.NextGen.ITriggersClient.Create.g.cs | 28 +- ...Gemini.NextGen.ITriggersClient.Update.g.cs | 8 +- ...e.Gemini.NextGen.IVoicesClient.Create.g.cs | 8 +- ...Gemini.NextGen.IWebhooksClient.Create.g.cs | 10 +- ...Gemini.NextGen.IWebhooksClient.Update.g.cs | 12 +- ....Gemini.NextGen.JsonSerializerContext.g.cs | 166 +- ...ni.NextGen.JsonSerializerContextTypes.g.cs | 146 +- .../Google.Gemini.NextGen.Models.Agent.g.cs | 44 +- ....Gemini.NextGen.Models.AllowlistEntry.g.cs | 24 +- ...NextGen.Models.AntigravityAgentConfig.g.cs | 28 +- ....Gemini.NextGen.Models.ArgumentsDelta.g.cs | 12 +- ...le.Gemini.NextGen.Models.AudioContent.g.cs | 62 +- ...oogle.Gemini.NextGen.Models.AudioData.g.cs | 26 +- ...ogle.Gemini.NextGen.Models.AudioDelta.g.cs | 44 +- ...ni.NextGen.Models.AudioResponseFormat.g.cs | 54 +- ...Gen.Models.CodeExecutionCallArguments.g.cs | 24 +- ...en.Models.CodeExecutionCallArguments2.g.cs | 24 +- ...ls.CodeExecutionCallArgumentsLanguage.g.cs | 6 + ...s.CodeExecutionCallArgumentsLanguage2.g.cs | 6 + ...NextGen.Models.CodeExecutionCallDelta.g.cs | 14 +- ....NextGen.Models.CodeExecutionCallStep.g.cs | 14 +- ...xtGen.Models.CodeExecutionResultDelta.g.cs | 26 +- ...extGen.Models.CodeExecutionResultStep.g.cs | 40 +- ....NextGen.Models.CodeMenderAgentConfig.g.cs | 52 +- ...gle.Gemini.NextGen.Models.ComputerUse.g.cs | 54 +- ...NextGen.Models.CreateAgentInteraction.g.cs | 180 +- ...xtGen.Models.CreateEnvironmentRequest.g.cs | 32 +- ...NextGen.Models.CreateModelInteraction.g.cs | 284 +- ...ini.NextGen.Models.CreateVoiceRequest.g.cs | 18 +- ...ogle.Gemini.NextGen.Models.Credential.g.cs | 43 +- ...extGen.Models.DeepResearchAgentConfig.g.cs | 58 +- ...Gemini.NextGen.Models.DocumentContent.g.cs | 40 +- ...e.Gemini.NextGen.Models.DocumentDelta.g.cs | 30 +- .../Google.Gemini.NextGen.Models.EnvVar.g.cs | 24 +- ...le.Gemini.NextGen.Models.Environment2.g.cs | 116 +- ...le.Gemini.NextGen.Models.Environment3.g.cs | 50 +- ...Gemini.NextGen.Models.EnvironmentFile.g.cs | 100 +- ...tGen.Models.EnvironmentVariableConfig.g.cs | 48 +- ...odels.EnvironmentVariableUpdateConfig.g.cs | 56 +- ...ogle.Gemini.NextGen.Models.ErrorEvent.g.cs | 16 +- ...le.Gemini.NextGen.Models.FileCitation.g.cs | 78 +- ...gle.Gemini.NextGen.Models.FileContent.g.cs | 24 +- ...ogle.Gemini.NextGen.Models.FileSearch.g.cs | 34 +- ...ni.NextGen.Models.FileSearchCallDelta.g.cs | 14 +- ...ini.NextGen.Models.FileSearchCallStep.g.cs | 14 +- ....NextGen.Models.FileSearchResultDelta.g.cs | 14 +- ...i.NextGen.Models.FileSearchResultStep.g.cs | 14 +- .../Google.Gemini.NextGen.Models.Filter.g.cs | 24 +- ...gle.Gemini.NextGen.Models.FindRequest.g.cs | 42 +- ...ogle.Gemini.NextGen.Models.FixRequest.g.cs | 36 +- ...Google.Gemini.NextGen.Models.Function.g.cs | 40 +- ...emini.NextGen.Models.FunctionCallStep.g.cs | 24 +- ...ini.NextGen.Models.FunctionParameters.g.cs | 5 +- ...ni.NextGen.Models.FunctionResultDelta.g.cs | 32 +- ...ini.NextGen.Models.FunctionResultStep.g.cs | 54 +- ...emini.NextGen.Models.GenerationConfig.g.cs | 94 +- ....NextGen.Models.GetInteractionRequest.g.cs | 40 +- ...ogle.Gemini.NextGen.Models.GoogleMaps.g.cs | 16 +- ...ni.NextGen.Models.GoogleMapsCallDelta.g.cs | 16 +- ...ini.NextGen.Models.GoogleMapsCallStep.g.cs | 28 +- ....NextGen.Models.GoogleMapsResultDelta.g.cs | 16 +- ...NextGen.Models.GoogleMapsResultPlaces.g.cs | 30 +- ...i.NextGen.Models.GoogleMapsResultStep.g.cs | 26 +- ...le.Gemini.NextGen.Models.GoogleSearch.g.cs | 14 +- ....NextGen.Models.GoogleSearchCallDelta.g.cs | 14 +- ...i.NextGen.Models.GoogleSearchCallStep.g.cs | 16 +- ...extGen.Models.GoogleSearchResultDelta.g.cs | 26 +- ...NextGen.Models.GoogleSearchResultStep.g.cs | 40 +- ...ini.NextGen.Models.GroundingToolCount.g.cs | 24 +- ...emini.NextGen.Models.HttpBearerConfig.g.cs | 50 +- ...NextGen.Models.HttpBearerUpdateConfig.g.cs | 44 +- ...le.Gemini.NextGen.Models.ImageContent.g.cs | 46 +- ...ogle.Gemini.NextGen.Models.ImageDelta.g.cs | 36 +- ...ni.NextGen.Models.ImageResponseFormat.g.cs | 58 +- ...gle.Gemini.NextGen.Models.Interaction.g.cs | 386 +- ...tGen.Models.InteractionCompletedEvent.g.cs | 28 +- ...extGen.Models.InteractionCreatedEvent.g.cs | 28 +- ...Models.InteractionSseEventInteraction.g.cs | 122 +- ...extGen.Models.InteractionStatusUpdate.g.cs | 62 +- ....Models.ListTriggerExecutionsResponse.g.cs | 24 +- ...i.NextGen.Models.ListTriggersResponse.g.cs | 24 +- ...ini.NextGen.Models.ListVoicesResponse.g.cs | 24 +- ...oogle.Gemini.NextGen.Models.MCPServer.g.cs | 56 +- ...NextGen.Models.MCPServerToolCallDelta.g.cs | 18 +- ....NextGen.Models.MCPServerToolCallStep.g.cs | 44 +- ...xtGen.Models.MCPServerToolResultDelta.g.cs | 24 +- ...extGen.Models.MCPServerToolResultStep.g.cs | 42 +- ...Gemini.NextGen.Models.ModelOutputStep.g.cs | 16 +- ...le.Gemini.NextGen.Models.OAuth2Config.g.cs | 34 +- ...ini.NextGen.Models.OAuth2UpdateConfig.g.cs | 34 +- ...e.Gemini.NextGen.Models.PlaceCitation.g.cs | 58 +- .../Google.Gemini.NextGen.Models.Places.g.cs | 38 +- ...ni.NextGen.Models.ProcessingCallDelta.g.cs | 14 +- ...ini.NextGen.Models.ProcessingCallStep.g.cs | 14 +- ....NextGen.Models.ProcessingResultDelta.g.cs | 14 +- ...i.NextGen.Models.ProcessingResultStep.g.cs | 14 +- ...e.Gemini.NextGen.Models.PromptedVoice.g.cs | 18 +- ...ini.NextGen.Models.RagRetrievalConfig.g.cs | 38 +- ....Gemini.NextGen.Models.RagStoreConfig.g.cs | 12 +- .../Google.Gemini.NextGen.Models.Ranking.g.cs | 28 +- ...Gemini.NextGen.Models.ReplicatedVoice.g.cs | 18 +- ...oogle.Gemini.NextGen.Models.Retrieval.g.cs | 62 +- ...ini.NextGen.Models.RetrievalCallDelta.g.cs | 16 +- ...mini.NextGen.Models.RetrievalCallStep.g.cs | 16 +- ...i.NextGen.Models.RetrievalResultDelta.g.cs | 16 +- ...ni.NextGen.Models.RetrievalResultStep.g.cs | 16 +- ...e.Gemini.NextGen.Models.ReviewSnippet.g.cs | 24 +- ...e.Gemini.NextGen.Models.SafetySetting.g.cs | 28 +- ...e.Gemini.NextGen.Models.SigningSecret.g.cs | 26 +- .../Google.Gemini.NextGen.Models.Source.g.cs | 52 +- ...emini.NextGen.Models.SpeechAnnotation.g.cs | 46 +- ...e.Gemini.NextGen.Models.SpeechConfig2.g.cs | 24 +- ....NextGen.Models.StaticMediaProcessing.g.cs | 44 +- .../Google.Gemini.NextGen.Models.Status.g.cs | 28 +- ...oogle.Gemini.NextGen.Models.StepDelta.g.cs | 30 +- ...oogle.Gemini.NextGen.Models.StepStart.g.cs | 36 +- ...Google.Gemini.NextGen.Models.StepStop.g.cs | 50 +- ...ni.NextGen.Models.TextAnnotationDelta.g.cs | 14 +- ...gle.Gemini.NextGen.Models.TextContent.g.cs | 14 +- ...ini.NextGen.Models.TextResponseFormat.g.cs | 32 +- ...xtGen.Models.TextResponseFormatSchema.g.cs | 8 +- ....NextGen.Models.ThoughtSignatureDelta.g.cs | 14 +- ...gle.Gemini.NextGen.Models.ThoughtStep.g.cs | 16 +- ...ni.NextGen.Models.ThoughtSummaryDelta.g.cs | 16 +- ...ni.NextGen.Models.TranscriptionConfig.g.cs | 64 +- .../Google.Gemini.NextGen.Models.Trigger.g.cs | 188 +- ...ni.NextGen.Models.TriggerCreateParams.g.cs | 74 +- ...emini.NextGen.Models.TriggerExecution.g.cs | 102 +- ...e.Gemini.NextGen.Models.TriggerUpdate.g.cs | 24 +- ...gle.Gemini.NextGen.Models.URLCitation.g.cs | 54 +- ...ni.NextGen.Models.URLContextCallDelta.g.cs | 14 +- ...ini.NextGen.Models.URLContextCallStep.g.cs | 14 +- ...emini.NextGen.Models.URLContextResult.g.cs | 24 +- ....NextGen.Models.URLContextResultDelta.g.cs | 26 +- ...i.NextGen.Models.URLContextResultStep.g.cs | 40 +- ...i.NextGen.Models.UpdateTriggerRequest.g.cs | 22 +- ...i.NextGen.Models.UpdateWebhookRequest.g.cs | 20 +- ...n.Models.UploadEnvironmentFileRequest.g.cs | 24 +- ...i.NextGen.Models.UrlContextResultItem.g.cs | 24 +- .../Google.Gemini.NextGen.Models.Usage.g.cs | 108 +- ...e.Gemini.NextGen.Models.UserInputStep.g.cs | 12 +- ...tGen.Models.VerbatimTranscriptionMode.g.cs | 28 +- ...i.NextGen.Models.VertexAISearchConfig.g.cs | 24 +- ...le.Gemini.NextGen.Models.VideoContent.g.cs | 66 +- ...ogle.Gemini.NextGen.Models.VideoDelta.g.cs | 36 +- ...ni.NextGen.Models.VideoResponseFormat.g.cs | 56 +- .../Google.Gemini.NextGen.Models.Voice.g.cs | 292 +- .../Google.Gemini.NextGen.Models.Webhook.g.cs | 114 +- ...ni.NextGen.Models.WebhookListResponse.g.cs | 24 +- ...e.Gemini.NextGen.Models.WebhookUpdate.g.cs | 30 +- ...Google.Gemini.NextGen.Models.WordInfo.g.cs | 70 +- ....Gemini.NextGen.TriggersClient.Create.g.cs | 36 +- ....Gemini.NextGen.TriggersClient.Update.g.cs | 10 +- ....NextGen.Voices.JsonSerializerContext.g.cs | 6 +- ...le.Gemini.NextGen.VoicesClient.Create.g.cs | 10 +- ...extGen.Webhooks.JsonSerializerContext.g.cs | 54 +- ....Gemini.NextGen.WebhooksClient.Create.g.cs | 14 +- ....Gemini.NextGen.WebhooksClient.Update.g.cs | 16 +- .../Generated/autosdk.generated-examples.json | 4 +- src/libs/Google.Gemini/nextgen.openapi.json | 3139 +++++++++-------- 166 files changed, 4994 insertions(+), 4941 deletions(-) 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 42aad0a45..d25649799 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 @@ -15,9 +15,9 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Agent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AntigravityAgentConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironment3String2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Environment3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AgentTool), TypeInfoPropertyName = "AgentTool2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CodeExecution))] @@ -38,9 +38,9 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Empty))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvVar))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvVarString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetwork2), TypeInfoPropertyName = "EnvironmentNetwork22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvVarString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>), TypeInfoPropertyName = "OneOfIListAllowlistEntryEnvironmentNetworkEgressAllowlistAllowlist2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist), TypeInfoPropertyName = "EnvironmentNetworkEgressAllowlistAllowlist2")] @@ -55,9 +55,9 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AllowedToolsMode?), TypeInfoPropertyName = "NullableAllowedToolsMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>?), TypeInfoPropertyName = "NullableOneOfIListDictionaryStringStringDictionaryStringString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf?), TypeInfoPropertyName = "NullableOneOfEnvVarString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf?), TypeInfoPropertyName = "NullableOneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetwork2?), TypeInfoPropertyName = "NullableEnvironmentNetwork22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf?), TypeInfoPropertyName = "NullableOneOfEnvVarString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>?), TypeInfoPropertyName = "NullableOneOfIListAllowlistEntryEnvironmentNetworkEgressAllowlistAllowlist2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?), TypeInfoPropertyName = "NullableEnvironmentNetworkEgressAllowlistAllowlist2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GoogleSearchSearchType?), TypeInfoPropertyName = "NullableGoogleSearchSearchType2")] @@ -123,8 +123,8 @@ public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); 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 cc56d5e8e..8c08962d5 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 @@ -500,21 +500,21 @@ partial void ProcessCreateResponseContent( /// /// Configuration parameters for the agent. /// - /// - /// The base agent to extend. - /// /// /// The environment configuration for the agent. /// - /// - /// Agent description for developers to quickly read and understand. - /// /// /// The unique identifier for the agent. /// + /// + /// The base agent to extend. + /// /// /// System instruction for the agent. /// + /// + /// Agent description for developers to quickly read and understand. + /// /// /// The tools available to the agent. /// @@ -523,11 +523,11 @@ partial void ProcessCreateResponseContent( /// public async global::System.Threading.Tasks.Task CreateAsync( global::Google.Gemini.NextGen.AntigravityAgentConfig? agentConfig = default, - string? baseAgent = default, global::Google.Gemini.NextGen.OneOf? baseEnvironment = default, - string? description = default, string? id = default, + string? baseAgent = default, string? systemInstruction = default, + string? description = default, global::System.Collections.Generic.IList? tools = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -535,11 +535,11 @@ partial void ProcessCreateResponseContent( var __request = new global::Google.Gemini.NextGen.Agent { AgentConfig = agentConfig, - BaseAgent = baseAgent, BaseEnvironment = baseEnvironment, - Description = description, Id = id, + BaseAgent = baseAgent, SystemInstruction = systemInstruction, + Description = description, Tools = tools, }; 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 1fadaf83c..3ff2088c8 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 @@ -18,9 +18,9 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Credential))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialStatus), TypeInfoPropertyName = "CredentialStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialType), TypeInfoPropertyName = "CredentialType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialStatus), TypeInfoPropertyName = "CredentialStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialCreateParams), TypeInfoPropertyName = "CredentialCreateParams2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentVariableConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.HttpBearerConfig))] @@ -36,9 +36,9 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialListResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialStatus?), TypeInfoPropertyName = "NullableCredentialStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialType?), TypeInfoPropertyName = "NullableCredentialType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialStatus?), TypeInfoPropertyName = "NullableCredentialStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialCreateParams?), TypeInfoPropertyName = "NullableCredentialCreateParams2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialUpdate?), TypeInfoPropertyName = "NullableCredentialUpdate2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>?), TypeInfoPropertyName = "NullableOneOfInjectionLocation3IListInjectionLocation32")] @@ -121,13 +121,13 @@ private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Ser public override bool CanConvert(global::System.Type typeToConvert) { return - typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus) + typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType) - || typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus?) + || typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType?) - || typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType) + || typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus) - || typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType?) + || typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus?) || typeToConvert == typeof(global::Google.Gemini.NextGen.InjectionLocation3) @@ -138,24 +138,24 @@ public override bool CanConvert(global::System.Type typeToConvert) global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType)) { - return new global::Google.Gemini.NextGen.JsonConverters.CredentialStatusJsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.CredentialTypeJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus?)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType?)) { - return new global::Google.Gemini.NextGen.JsonConverters.CredentialStatusNullableJsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.CredentialTypeNullableJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus)) { - return new global::Google.Gemini.NextGen.JsonConverters.CredentialTypeJsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.CredentialStatusJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialType?)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.CredentialStatus?)) { - return new global::Google.Gemini.NextGen.JsonConverters.CredentialTypeNullableJsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.CredentialStatusNullableJsonConverter(); } if (typeToConvert == typeof(global::Google.Gemini.NextGen.InjectionLocation3)) 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 72cfedf22..0f94f0bd0 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 @@ -495,32 +495,32 @@ partial void ProcessCreateEnvironmentResponseContent( /// /// Creates an environment. /// - /// - /// Optional. The source environment to copy/fork from.
- /// Format: `environments/{environment_id}` or `{environment_id}`.
- /// When specified, `sources` and `env` must be empty. - /// /// /// Network configuration for the environment. /// /// /// Sources to be mounted into the environment. /// + /// + /// Optional. The source environment to copy/fork from.
+ /// Format: `environments/{environment_id}` or `{environment_id}`.
+ /// When specified, `sources` and `env` must be empty. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateEnvironmentAsync( - string? fromEnvironment = default, global::Google.Gemini.NextGen.OneOf? network = default, global::System.Collections.Generic.IList? sources = default, + string? fromEnvironment = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.NextGen.CreateEnvironmentRequest { - FromEnvironment = fromEnvironment, Network = network, Sources = sources, + FromEnvironment = fromEnvironment, }; return await CreateEnvironmentAsync( diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.Create.g.cs index fa35823f5..6b5b2eae7 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.Create.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IAgentsClient.Create.g.cs @@ -60,21 +60,21 @@ public partial interface IAgentsClient /// /// Configuration parameters for the agent. /// - /// - /// The base agent to extend. - /// /// /// The environment configuration for the agent. /// - /// - /// Agent description for developers to quickly read and understand. - /// /// /// The unique identifier for the agent. /// + /// + /// The base agent to extend. + /// /// /// System instruction for the agent. /// + /// + /// Agent description for developers to quickly read and understand. + /// /// /// The tools available to the agent. /// @@ -83,11 +83,11 @@ public partial interface IAgentsClient /// global::System.Threading.Tasks.Task CreateAsync( global::Google.Gemini.NextGen.AntigravityAgentConfig? agentConfig = default, - string? baseAgent = default, global::Google.Gemini.NextGen.OneOf? baseEnvironment = default, - string? description = default, string? id = default, + string? baseAgent = default, string? systemInstruction = default, + string? description = default, global::System.Collections.Generic.IList? tools = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsClient.CreateEnvironment.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsClient.CreateEnvironment.g.cs index c2afb59ff..df025e453 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsClient.CreateEnvironment.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IEnvironmentsClient.CreateEnvironment.g.cs @@ -55,24 +55,24 @@ public partial interface IEnvironmentsClient /// /// Creates an environment. /// - /// - /// Optional. The source environment to copy/fork from.
- /// Format: `environments/{environment_id}` or `{environment_id}`.
- /// When specified, `sources` and `env` must be empty. - /// /// /// Network configuration for the environment. /// /// /// Sources to be mounted into the environment. /// + /// + /// Optional. The source environment to copy/fork from.
+ /// Format: `environments/{environment_id}` or `{environment_id}`.
+ /// When specified, `sources` and `env` must be empty. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateEnvironmentAsync( - string? fromEnvironment = default, global::Google.Gemini.NextGen.OneOf? network = default, global::System.Collections.Generic.IList? sources = default, + string? fromEnvironment = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Create.g.cs index 0834eee9c..76d146d57 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 @@ -62,40 +62,40 @@ public partial interface ITriggersClient /// Creates a new trigger that will invoke the specified agent on the given
/// cron schedule. /// + /// + /// Required. The cron schedule on which the trigger should run.
+ /// Standard cron format. + /// + /// + /// Required. Time zone in which the schedule should be interpreted. + /// + /// + /// Interaction for generating the completion using agents. + /// /// /// Optional. The display name of the trigger. /// /// /// Optional. The environment ID for the trigger execution. /// - /// - /// Optional. The execution timeout for the triggered interaction. - /// - /// - /// Interaction for generating the completion using agents. - /// /// /// Optional. The maximum number of consecutive failures allowed before
/// the trigger is automatically paused (status becomes ERROR). /// - /// - /// Required. The cron schedule on which the trigger should run.
- /// Standard cron format. - /// - /// - /// Required. Time zone in which the schedule should be interpreted. + /// + /// Optional. The execution timeout for the triggered interaction. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateAsync( - global::Google.Gemini.NextGen.CreateAgentInteraction createAgentInteraction, string schedule, string timeZone, + global::Google.Gemini.NextGen.CreateAgentInteraction createAgentInteraction, string? displayName = default, string? environmentId = default, - int? executionTimeoutSeconds = default, int? maxConsecutiveFailures = default, + int? executionTimeoutSeconds = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Update.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Update.g.cs index f40ea7510..484e3f3e6 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Update.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.ITriggersClient.Update.g.cs @@ -36,19 +36,19 @@ public partial interface ITriggersClient /// Updates a trigger. /// /// - /// - /// Optional. The display name of the trigger. - /// /// /// Optional. The status of the trigger. /// + /// + /// Optional. The display name of the trigger. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task UpdateAsync( string id, - string? displayName = default, global::Google.Gemini.NextGen.TriggerUpdateStatus? status = default, + string? displayName = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IVoicesClient.Create.g.cs index 3b433b4aa..bbb72fceb 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 @@ -69,6 +69,10 @@ public partial interface IVoicesClient /// (`VOICE_TYPE_PROMPTED`) or from reference and consent audio recordings
/// (`VOICE_TYPE_REPLICATED`). /// + /// + /// A voice resource representing either a custom voice (created via
+ /// `CreateVoice`) or a prebuilt system voice (returned by `ListVoices`). + /// /// /// Optional. Whether the created voice is persisted and managed by Google.
/// * When `true`, Google stores the voice and returns `Voice.id` (for example,
@@ -85,10 +89,6 @@ public partial interface IVoicesClient /// * Required to be `true` when `voice.type` is `"prompted"`
/// (otherwise fails with `INVALID_ARGUMENT`). /// - /// - /// A voice resource representing either a custom voice (created via
- /// `CreateVoice`) or a prebuilt system voice (returned by `ListVoices`). - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Create.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Create.g.cs index 3af40c966..71a1f651f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Create.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Create.g.cs @@ -31,8 +31,8 @@ public partial interface IWebhooksClient /// /// Creates a new Webhook. /// - /// - /// Optional. The user-provided name of the webhook. + /// + /// Required. The URI to which webhook events will be sent. /// /// /// Required. The events that the webhook is subscribed to.
@@ -45,15 +45,15 @@ public partial interface IWebhooksClient /// - interaction.failed
/// - video.generated /// - /// - /// Required. The URI to which webhook events will be sent. + /// + /// Optional. The user-provided name of the webhook. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateAsync( - global::System.Collections.Generic.IList subscribedEvents, string uri, + global::System.Collections.Generic.IList subscribedEvents, string? name = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Update.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Update.g.cs index e32c5dba9..a0da659c9 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Update.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.IWebhooksClient.Update.g.cs @@ -44,8 +44,8 @@ public partial interface IWebhooksClient /// /// Optional. The user-provided name of the webhook. /// - /// - /// Optional. The state of the webhook. + /// + /// Optional. The URI to which webhook events will be sent. /// /// /// Optional. The events that the webhook is subscribed to.
@@ -58,8 +58,8 @@ public partial interface IWebhooksClient /// - interaction.failed
/// - video.generated /// - /// - /// Optional. The URI to which webhook events will be sent. + /// + /// Optional. The state of the webhook. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -68,9 +68,9 @@ public partial interface IWebhooksClient string id, string? updateMask = default, string? name = default, - global::Google.Gemini.NextGen.WebhookUpdateState? state = default, - global::System.Collections.Generic.IList? subscribedEvents = default, string? uri = default, + global::System.Collections.Generic.IList? subscribedEvents = default, + global::Google.Gemini.NextGen.WebhookUpdateState? state = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } 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 3206d21a0..19fd1cca0 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 @@ -27,14 +27,14 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.AudioDeltaMimeTypeNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.AudioResponseFormatDeliveryJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.AudioResponseFormatDeliveryNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.AudioResponseFormatMimeTypeJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.AudioResponseFormatMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.AudioResponseFormatDeliveryJsonConverter), + + typeof(global::Google.Gemini.NextGen.JsonConverters.AudioResponseFormatDeliveryNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.CodeExecutionCallArgumentsLanguageJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.CodeExecutionCallArgumentsLanguageNullableJsonConverter), @@ -43,26 +43,26 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.CodeExecutionCallArgumentsLanguage2NullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.ComputerUseDisabledSafetyPolicieJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.ComputerUseDisabledSafetyPolicieNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.ComputerUseEnvironmentJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.ComputerUseEnvironmentNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.CreateEnvironmentRequestNetworkJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.ComputerUseDisabledSafetyPolicieJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.CreateEnvironmentRequestNetworkNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.ComputerUseDisabledSafetyPolicieNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.CredentialStatusJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.CreateEnvironmentRequestNetworkJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.CredentialStatusNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.CreateEnvironmentRequestNetworkNullableJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.CredentialTypeJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.CredentialTypeNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.CredentialStatusJsonConverter), + + typeof(global::Google.Gemini.NextGen.JsonConverters.CredentialStatusNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.DeepResearchAgentConfigVisualizationJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.DeepResearchAgentConfigVisualizationNullableJsonConverter), @@ -135,21 +135,21 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.ImageDeltaMimeTypeNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatAspectRatioJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatMimeTypeJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatAspectRatioNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatMimeTypeNullableJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatDeliveryJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatDeliveryNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatImageSizeJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatAspectRatioJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatImageSizeNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatAspectRatioNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatMimeTypeJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatImageSizeJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatImageSizeNullableJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.InjectionLocation3JsonConverter), @@ -203,14 +203,14 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.RotateSigningSecretRequestRevocationBehaviorNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.SafetySettingMethodJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.SafetySettingMethodNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.SafetySettingThresholdJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.SafetySettingThresholdNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.SafetySettingMethodJsonConverter), + + typeof(global::Google.Gemini.NextGen.JsonConverters.SafetySettingMethodNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.ServiceTierJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.ServiceTierNullableJsonConverter), @@ -259,26 +259,26 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.VideoConfigTaskNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.VideoContentMimeTypeJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.VideoContentMimeTypeNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.VideoContentProcessingJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.VideoContentProcessingNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.VideoDeltaMimeTypeJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.VideoContentMimeTypeJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.VideoDeltaMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.VideoContentMimeTypeNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.VideoResponseFormatAspectRatioJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.VideoDeltaMimeTypeJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.VideoResponseFormatAspectRatioNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.VideoDeltaMimeTypeNullableJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.VideoResponseFormatDeliveryJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.VideoResponseFormatDeliveryNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.VideoResponseFormatAspectRatioJsonConverter), + + typeof(global::Google.Gemini.NextGen.JsonConverters.VideoResponseFormatAspectRatioNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.VideoResponseFormatResolutionJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.VideoResponseFormatResolutionNullableJsonConverter), @@ -287,22 +287,22 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.VoiceTypeNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookStateJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookStateNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEventJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEventNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateStateJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookStateJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateStateNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookStateNullableJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateSubscribedEventJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateSubscribedEventNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateStateJsonConverter), + + typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateStateNullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.AgentToolJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.AnnotationJsonConverter), @@ -335,20 +335,20 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), @@ -363,15 +363,15 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), + + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, object, string>), @@ -381,10 +381,10 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), @@ -398,9 +398,9 @@ namespace Google.Gemini.NextGen [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))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AntigravityAgentConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironment3String2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Environment3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AgentTool), TypeInfoPropertyName = "AgentTool2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateAgentInteraction))] @@ -409,22 +409,22 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CodeMenderAgentConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.DeepResearchAgentConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.DynamicAgentConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionsInput), TypeInfoPropertyName = "InteractionsInput2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>), TypeInfoPropertyName = "OneOfResponseFormat4IListResponseFormat42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ResponseFormat4), TypeInfoPropertyName = "ResponseFormat42")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Tool), TypeInfoPropertyName = "Tool2")] #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] #pragma warning restore CS0618 [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ResponseModality), TypeInfoPropertyName = "ResponseModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::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::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))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SafetySetting))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CodeExecution))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Function))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GoogleSearch))] @@ -442,15 +442,15 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ArgumentsDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AudioContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AudioContentMimeType), TypeInfoPropertyName = "AudioContentMimeType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AudioData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AudioDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AudioDeltaMimeType), TypeInfoPropertyName = "AudioDeltaMimeType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AudioResponseFormat))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AudioResponseFormatDelivery), TypeInfoPropertyName = "AudioResponseFormatDelivery2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AudioResponseFormatMimeType), TypeInfoPropertyName = "AudioResponseFormatMimeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AudioResponseFormatDelivery), TypeInfoPropertyName = "AudioResponseFormatDelivery2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CodeExecutionCallArguments))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage), TypeInfoPropertyName = "CodeExecutionCallArgumentsLanguage2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CodeExecutionCallDelta))] @@ -463,9 +463,9 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FixRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SessionConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ComputerUse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ComputerUseEnvironment), TypeInfoPropertyName = "ComputerUseEnvironment2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ComputerUseDisabledSafetyPolicie), TypeInfoPropertyName = "ComputerUseDisabledSafetyPolicie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ComputerUseEnvironment), TypeInfoPropertyName = "ComputerUseEnvironment2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Content), TypeInfoPropertyName = "Content2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.DocumentContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ImageContent))] @@ -482,9 +482,9 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateWebhookRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Webhook))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Credential))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialStatus), TypeInfoPropertyName = "CredentialStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialType), TypeInfoPropertyName = "CredentialType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialStatus), TypeInfoPropertyName = "CredentialStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CredentialCreateParams), TypeInfoPropertyName = "CredentialCreateParams2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentVariableConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.HttpBearerConfig))] @@ -508,9 +508,9 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetwork), TypeInfoPropertyName = "EnvironmentNetwork2_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentStatus), TypeInfoPropertyName = "EnvironmentStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvVarString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetwork2), TypeInfoPropertyName = "EnvironmentNetwork22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvVarString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentFile))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentFileType), TypeInfoPropertyName = "EnvironmentFileType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>), TypeInfoPropertyName = "OneOfIListAllowlistEntryEnvironmentNetworkEgressAllowlistAllowlist2")] @@ -532,8 +532,8 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FileSearchResultStep))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Filter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FindRequestMode), TypeInfoPropertyName = "FindRequestMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FindRequestMode), TypeInfoPropertyName = "FindRequestMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FunctionCallStep))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FunctionResultDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, object, string>), TypeInfoPropertyName = "OneOfIListOneOfImageContentTextContentObjectString2")] @@ -541,22 +541,22 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfImageContentTextContent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FunctionResultStep))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GenerationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfToolChoiceConfigGenerationConfigToolChoice2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ToolChoiceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GenerationConfigToolChoice), TypeInfoPropertyName = "GenerationConfigToolChoice2")] + #pragma warning disable CS0618 // This registration names a deprecated API model. + [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] + #pragma warning restore CS0618 + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ThinkingLevel), TypeInfoPropertyName = "ThinkingLevel2")] #pragma warning disable CS0618 // This registration names a deprecated API model. [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ImageConfig))] #pragma warning restore CS0618 + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TranscriptionConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>), TypeInfoPropertyName = "OneOfSpeakerConfigIListSpeechConfig22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.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))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GenerationConfigToolChoice), TypeInfoPropertyName = "GenerationConfigToolChoice2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TranscriptionConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GetEnvironmentFilesResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GetInteractionRequest))] @@ -602,22 +602,22 @@ namespace Google.Gemini.NextGen #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.ImageContentMimeType), TypeInfoPropertyName = "ImageContentMimeType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ImageDelta))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ImageDeltaMimeType), TypeInfoPropertyName = "ImageDeltaMimeType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ImageResponseFormat))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ImageResponseFormatAspectRatio), TypeInfoPropertyName = "ImageResponseFormatAspectRatio2")] + [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.ImageResponseFormatDelivery), TypeInfoPropertyName = "ImageResponseFormatDelivery2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ImageResponseFormatAspectRatio), TypeInfoPropertyName = "ImageResponseFormatAspectRatio2")] [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::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")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Step), TypeInfoPropertyName = "Step2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Model), TypeInfoPropertyName = "Model2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Usage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionCompletedEvent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionSseEventInteraction))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InteractionCreatedEvent))] @@ -691,8 +691,8 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior), TypeInfoPropertyName = "RotateSigningSecretRequestRevocationBehavior2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RunTriggerRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SafetySettingMethod), TypeInfoPropertyName = "SafetySettingMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SafetySettingThreshold), TypeInfoPropertyName = "SafetySettingThreshold2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SafetySettingMethod), TypeInfoPropertyName = "SafetySettingMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SigningSecret))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SmartTranscriptionMode))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SourceType), TypeInfoPropertyName = "SourceType2")] @@ -737,21 +737,21 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoConfigTask), TypeInfoPropertyName = "VideoConfigTask2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoContentMimeType), TypeInfoPropertyName = "VideoContentMimeType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfMediaProcessingVideoContentProcessing2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoContentProcessing), TypeInfoPropertyName = "VideoContentProcessing2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoContentMimeType), TypeInfoPropertyName = "VideoContentMimeType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoDeltaMimeType), TypeInfoPropertyName = "VideoDeltaMimeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoResponseFormatAspectRatio), TypeInfoPropertyName = "VideoResponseFormatAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoResponseFormatDelivery), TypeInfoPropertyName = "VideoResponseFormatDelivery2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoResponseFormatAspectRatio), TypeInfoPropertyName = "VideoResponseFormatAspectRatio2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoResponseFormatResolution), TypeInfoPropertyName = "VideoResponseFormatResolution2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VoiceType), TypeInfoPropertyName = "VoiceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookState), TypeInfoPropertyName = "WebhookState2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookSubscribedEvent), TypeInfoPropertyName = "WebhookSubscribedEvent2")] - [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.WebhookState), TypeInfoPropertyName = "WebhookState2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent), TypeInfoPropertyName = "WebhookUpdateSubscribedEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdateState), TypeInfoPropertyName = "WebhookUpdateState2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfCreateAgentInteractionCreateModelInteraction2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateInteractionResponse))] @@ -765,9 +765,9 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::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))] @@ -792,8 +792,8 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -810,8 +810,8 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] public sealed partial class NextGenSourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonSerializerContextTypes.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonSerializerContextTypes.g.cs index 28e91ae98..73ddea227 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 @@ -41,15 +41,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public string? Type2 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type2 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type3 { get; set; } + public global::Google.Gemini.NextGen.Environment3? Type3 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Environment3? Type4 { get; set; } + public string? Type4 { get; set; } /// /// /// @@ -85,27 +85,27 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public bool? Type13 { get; set; } + public global::Google.Gemini.NextGen.InteractionsInput? Type13 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionsInput? Type14 { get; set; } + public global::Google.Gemini.NextGen.OneOf>? Type14 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type15 { get; set; } + public global::Google.Gemini.NextGen.ResponseFormat4? Type15 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf>? Type16 { get; set; } + public global::System.Collections.Generic.IList? Type16 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ResponseFormat4? Type17 { get; set; } + public global::System.Collections.Generic.IList? Type17 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type18 { get; set; } + public global::Google.Gemini.NextGen.Tool? Type18 { get; set; } /// /// /// @@ -117,27 +117,27 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type21 { get; set; } + public global::Google.Gemini.NextGen.ServiceTier? Type21 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SafetySetting? Type22 { get; set; } + public global::Google.Gemini.NextGen.WebhookConfig? Type22 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ServiceTier? Type23 { get; set; } + public global::System.Collections.Generic.IList? Type23 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type24 { get; set; } + public global::Google.Gemini.NextGen.SafetySetting? Type24 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Tool? Type25 { get; set; } + public global::System.Collections.Generic.Dictionary? Type25 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookConfig? Type26 { get; set; } + public bool? Type26 { get; set; } /// /// /// @@ -209,11 +209,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public int? Type44 { get; set; } + public byte[]? Type44 { get; set; } /// /// /// - public byte[]? Type45 { get; set; } + public int? Type45 { get; set; } /// /// /// @@ -237,11 +237,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.AudioResponseFormatDelivery? Type51 { get; set; } + public global::Google.Gemini.NextGen.AudioResponseFormatMimeType? Type51 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.AudioResponseFormatMimeType? Type52 { get; set; } + public global::Google.Gemini.NextGen.AudioResponseFormatDelivery? Type52 { get; set; } /// /// /// @@ -293,15 +293,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type65 { get; set; } + public global::Google.Gemini.NextGen.ComputerUseEnvironment? Type65 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ComputerUseDisabledSafetyPolicie? Type66 { get; set; } + public global::System.Collections.Generic.IList? Type66 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ComputerUseEnvironment? Type67 { get; set; } + public global::Google.Gemini.NextGen.ComputerUseDisabledSafetyPolicie? Type67 { get; set; } /// /// /// @@ -369,7 +369,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.DateTime? Type84 { get; set; } + public global::Google.Gemini.NextGen.CredentialType? Type84 { get; set; } /// /// /// @@ -377,7 +377,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.CredentialType? Type86 { get; set; } + public global::System.DateTime? Type86 { get; set; } /// /// /// @@ -473,15 +473,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type110 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type110 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type111 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentNetwork2? Type111 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.EnvironmentNetwork2? Type112 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type112 { get; set; } /// /// /// @@ -569,11 +569,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.FindRequestMode? Type134 { get; set; } + public global::System.Collections.Generic.IList? Type134 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type135 { get; set; } + public global::Google.Gemini.NextGen.FindRequestMode? Type135 { get; set; } /// /// /// @@ -605,51 +605,51 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.ImageConfig? Type143 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type143 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf>? Type144 { get; set; } + public global::Google.Gemini.NextGen.ToolChoiceConfig? Type144 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SpeakerConfig? Type145 { get; set; } + public global::Google.Gemini.NextGen.GenerationConfigToolChoice? Type145 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type146 { get; set; } + public float? Type146 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SpeechConfig2? Type147 { get; set; } + public global::Google.Gemini.NextGen.ThinkingLevel? Type147 { get; set; } /// /// /// - public float? Type148 { get; set; } + public global::Google.Gemini.NextGen.ImageConfig? Type148 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ThinkingLevel? Type149 { get; set; } + public global::Google.Gemini.NextGen.VideoConfig? Type149 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type150 { get; set; } + public global::Google.Gemini.NextGen.TranscriptionConfig? Type150 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ToolChoiceConfig? Type151 { get; set; } + public global::Google.Gemini.NextGen.OneOf>? Type151 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.GenerationConfigToolChoice? Type152 { get; set; } + public global::Google.Gemini.NextGen.SpeakerConfig? Type152 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.TranscriptionConfig? Type153 { get; set; } + public global::System.Collections.Generic.IList? Type153 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoConfig? Type154 { get; set; } + public global::Google.Gemini.NextGen.SpeechConfig2? Type154 { get; set; } /// /// /// @@ -817,11 +817,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.ImageContentMimeType? Type196 { get; set; } + public global::Google.Gemini.NextGen.MediaResolution? Type196 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.MediaResolution? Type197 { get; set; } + public global::Google.Gemini.NextGen.ImageContentMimeType? Type197 { get; set; } /// /// /// @@ -837,7 +837,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.ImageResponseFormatAspectRatio? Type201 { get; set; } + public global::Google.Gemini.NextGen.ImageResponseFormatMimeType? Type201 { get; set; } /// /// /// @@ -845,11 +845,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.ImageResponseFormatImageSize? Type203 { get; set; } + public global::Google.Gemini.NextGen.ImageResponseFormatAspectRatio? Type203 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.ImageResponseFormatMimeType? Type204 { get; set; } + public global::Google.Gemini.NextGen.ImageResponseFormatImageSize? Type204 { get; set; } /// /// /// @@ -857,27 +857,27 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type206 { get; set; } + public global::Google.Gemini.NextGen.InteractionStatus? Type206 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Model? Type207 { get; set; } + public global::System.Collections.Generic.IList? Type207 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.InteractionStatus? Type208 { get; set; } + public global::Google.Gemini.NextGen.Step? Type208 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type209 { get; set; } + public global::Google.Gemini.NextGen.Model? Type209 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Step? Type210 { get; set; } + public global::Google.Gemini.NextGen.Usage? Type210 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.Usage? Type211 { get; set; } + public global::System.Collections.Generic.IList? Type211 { get; set; } /// /// /// @@ -1173,11 +1173,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.SafetySettingMethod? Type285 { get; set; } + public global::Google.Gemini.NextGen.SafetySettingThreshold? Type285 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.SafetySettingThreshold? Type286 { get; set; } + public global::Google.Gemini.NextGen.SafetySettingMethod? Type286 { get; set; } /// /// /// @@ -1357,15 +1357,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.VideoContentMimeType? Type331 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type331 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type332 { get; set; } + public global::Google.Gemini.NextGen.VideoContentProcessing? Type332 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoContentProcessing? Type333 { get; set; } + public global::Google.Gemini.NextGen.VideoContentMimeType? Type333 { get; set; } /// /// /// @@ -1373,11 +1373,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.VideoResponseFormatAspectRatio? Type335 { get; set; } + public global::Google.Gemini.NextGen.VideoResponseFormatDelivery? Type335 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.VideoResponseFormatDelivery? Type336 { get; set; } + public global::Google.Gemini.NextGen.VideoResponseFormatAspectRatio? Type336 { get; set; } /// /// /// @@ -1389,31 +1389,31 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type339 { get; set; } + public global::System.Collections.Generic.IList? Type339 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookState? Type340 { get; set; } + public global::Google.Gemini.NextGen.WebhookSubscribedEvent? Type340 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type341 { get; set; } + public global::System.Collections.Generic.IList? Type341 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookSubscribedEvent? Type342 { get; set; } + public global::Google.Gemini.NextGen.WebhookState? Type342 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookUpdateState? Type343 { get; set; } + public global::System.Collections.Generic.IList? Type343 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type344 { get; set; } + public global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent? Type344 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent? Type345 { get; set; } + public global::Google.Gemini.NextGen.WebhookUpdateState? Type345 { get; set; } /// /// /// @@ -1470,15 +1470,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - 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; } /// /// /// @@ -1582,11 +1582,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - 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; } /// /// /// @@ -1654,11 +1654,11 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - 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; } /// /// /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Agent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Agent.g.cs index 4f718dd76..ebf4301d8 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Agent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Agent.g.cs @@ -23,12 +23,6 @@ public sealed partial class Agent [global::System.Text.Json.Serialization.JsonPropertyName("agent_config")] public global::Google.Gemini.NextGen.AntigravityAgentConfig? AgentConfig { get; set; } - /// - /// The base agent to extend. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("base_agent")] - public string? BaseAgent { get; set; } - /// /// The environment configuration for the agent. /// @@ -36,24 +30,30 @@ public sealed partial class Agent [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] public global::Google.Gemini.NextGen.OneOf? BaseEnvironment { get; set; } - /// - /// Agent description for developers to quickly read and understand. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - /// /// The unique identifier for the agent. /// [global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } + /// + /// The base agent to extend. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("base_agent")] + public string? BaseAgent { get; set; } + /// /// System instruction for the agent. /// [global::System.Text.Json.Serialization.JsonPropertyName("system_instruction")] public string? SystemInstruction { get; set; } + /// + /// Agent description for developers to quickly read and understand. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + /// /// The tools available to the agent. /// @@ -72,21 +72,21 @@ public sealed partial class Agent /// /// Configuration parameters for the agent. /// - /// - /// The base agent to extend. - /// /// /// The environment configuration for the agent. /// - /// - /// Agent description for developers to quickly read and understand. - /// /// /// The unique identifier for the agent. /// + /// + /// The base agent to extend. + /// /// /// System instruction for the agent. /// + /// + /// Agent description for developers to quickly read and understand. + /// /// /// The tools available to the agent. /// @@ -95,19 +95,19 @@ public sealed partial class Agent #endif public Agent( global::Google.Gemini.NextGen.AntigravityAgentConfig? agentConfig, - string? baseAgent, global::Google.Gemini.NextGen.OneOf? baseEnvironment, - string? description, string? id, + string? baseAgent, string? systemInstruction, + string? description, global::System.Collections.Generic.IList? tools) { this.AgentConfig = agentConfig; - this.BaseAgent = baseAgent; this.BaseEnvironment = baseEnvironment; - this.Description = description; this.Id = id; + this.BaseAgent = baseAgent; this.SystemInstruction = systemInstruction; + this.Description = description; this.Tools = tools; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntry.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntry.g.cs index b84edc191..61794efb4 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntry.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AllowlistEntry.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class AllowlistEntry { - /// - /// Optional. Reference to a server-managed Credential resource by ID. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("credential")] - public string? Credential { get; set; } - /// /// Domain to allow outbound requests to. Supports wildcards (e.g.
/// '*.googleapis.com'). Use '*' to allow all domains. @@ -29,6 +23,12 @@ public sealed partial class AllowlistEntry [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>))] public global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>? Transform { get; set; } + /// + /// Optional. Reference to a server-managed Credential resource by ID. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("credential")] + public string? Credential { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -42,23 +42,23 @@ public sealed partial class AllowlistEntry /// Domain to allow outbound requests to. Supports wildcards (e.g.
/// '*.googleapis.com'). Use '*' to allow all domains. /// - /// - /// Optional. Reference to a server-managed Credential resource by ID. - /// /// /// Headers to inject on all outbound requests matching this domain. Accepts a single dict or a list of dicts. The egress proxy injects these automatically. /// + /// + /// Optional. Reference to a server-managed Credential resource by ID. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AllowlistEntry( string domain, - string? credential, - global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>? transform) + global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>? transform, + string? credential) { - this.Credential = credential; this.Domain = domain ?? throw new global::System.ArgumentNullException(nameof(domain)); this.Transform = transform; + this.Credential = credential; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AntigravityAgentConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AntigravityAgentConfig.g.cs index 0670b150c..6107584bd 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AntigravityAgentConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AntigravityAgentConfig.g.cs @@ -11,10 +11,11 @@ namespace Google.Gemini.NextGen public sealed partial class AntigravityAgentConfig { /// - /// Max total tokens for the agent run. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_total_tokens")] - public string? MaxTotalTokens { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// The model to use for agent reasoning. @@ -23,11 +24,10 @@ public sealed partial class AntigravityAgentConfig public string? Model { get; set; } /// - /// + /// Max total tokens for the agent run. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("max_total_tokens")] + public string? MaxTotalTokens { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -39,23 +39,23 @@ public sealed partial class AntigravityAgentConfig /// Initializes a new instance of the class. /// /// - /// - /// Max total tokens for the agent run. - /// /// /// The model to use for agent reasoning. /// + /// + /// Max total tokens for the agent run. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AntigravityAgentConfig( object type, - string? maxTotalTokens, - string? model) + string? model, + string? maxTotalTokens) { - this.MaxTotalTokens = maxTotalTokens; - this.Model = model; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Model = model; + this.MaxTotalTokens = maxTotalTokens; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ArgumentsDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ArgumentsDelta.g.cs index 63de67230..ef504d3cb 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ArgumentsDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ArgumentsDelta.g.cs @@ -11,15 +11,15 @@ public sealed partial class ArgumentsDelta /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] - public string? Arguments { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] + public string? Arguments { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -39,8 +39,8 @@ public ArgumentsDelta( object type, string? arguments) { - this.Arguments = arguments; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Arguments = arguments; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioContent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioContent.g.cs index e92f17f2d..3292b160d 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioContent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioContent.g.cs @@ -10,10 +10,11 @@ namespace Google.Gemini.NextGen public sealed partial class AudioContent { /// - /// The number of audio channels. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("channels")] - public int? Channels { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// The audio content. @@ -22,30 +23,29 @@ public sealed partial class AudioContent public byte[]? Data { get; set; } /// - /// The mime type of the audio. + /// The URI of the audio. /// - [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.AudioContentMimeTypeJsonConverter))] - public global::Google.Gemini.NextGen.AudioContentMimeType? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// - /// The sample rate of the audio. + /// The number of audio channels. /// - [global::System.Text.Json.Serialization.JsonPropertyName("sample_rate")] - public int? SampleRate { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("channels")] + public int? Channels { get; set; } /// - /// + /// The sample rate of the audio. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sample_rate")] + public int? SampleRate { get; set; } /// - /// The URI of the audio. + /// The mime type of the audio. /// - [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.AudioContentMimeTypeJsonConverter))] + public global::Google.Gemini.NextGen.AudioContentMimeType? MimeType { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -57,38 +57,38 @@ public sealed partial class AudioContent /// Initializes a new instance of the class. /// /// - /// - /// The number of audio channels. - /// /// /// The audio content. /// - /// - /// The mime type of the audio. + /// + /// The URI of the audio. + /// + /// + /// The number of audio channels. /// /// /// The sample rate of the audio. /// - /// - /// The URI of the audio. + /// + /// The mime type of the audio. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AudioContent( object type, - int? channels, byte[]? data, - global::Google.Gemini.NextGen.AudioContentMimeType? mimeType, + string? uri, + int? channels, int? sampleRate, - string? uri) + global::Google.Gemini.NextGen.AudioContentMimeType? mimeType) { - this.Channels = channels; - this.Data = data; - this.MimeType = mimeType; - this.SampleRate = sampleRate; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Data = data; this.Uri = uri; + this.Channels = channels; + this.SampleRate = sampleRate; + this.MimeType = mimeType; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioData.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioData.g.cs index f92a04a55..d97eb196e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioData.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioData.g.cs @@ -8,13 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class AudioData { - /// - /// Required. The raw audio bytes. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - [global::System.Text.Json.Serialization.JsonRequired] - public required byte[] Data { get; set; } - /// /// Required. The IANA MIME type of the audio data (for example, `audio/wav` or
/// `audio/mpeg`). @@ -23,6 +16,13 @@ public sealed partial class AudioData [global::System.Text.Json.Serialization.JsonRequired] public required string MimeType { get; set; } + /// + /// Required. The raw audio bytes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required byte[] Data { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -32,22 +32,22 @@ public sealed partial class AudioData /// /// Initializes a new instance of the class. /// - /// - /// Required. The raw audio bytes. - /// /// /// Required. The IANA MIME type of the audio data (for example, `audio/wav` or
/// `audio/mpeg`). /// + /// + /// Required. The raw audio bytes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AudioData( - byte[] data, - string mimeType) + string mimeType, + byte[] data) { - this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); this.MimeType = mimeType ?? throw new global::System.ArgumentNullException(nameof(mimeType)); + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioDelta.g.cs index 84046c3f6..a7ca6dbbf 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioDelta.g.cs @@ -11,10 +11,11 @@ namespace Google.Gemini.NextGen public sealed partial class AudioDelta { /// - /// The number of audio channels. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("channels")] - public int? Channels { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// @@ -22,6 +23,12 @@ public sealed partial class AudioDelta [global::System.Text.Json.Serialization.JsonPropertyName("data")] public byte[]? Data { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } + /// /// /// @@ -43,17 +50,10 @@ public sealed partial class AudioDelta public int? SampleRate { get; set; } /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - - /// - /// + /// The number of audio channels. /// - [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("channels")] + public int? Channels { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -65,32 +65,32 @@ public sealed partial class AudioDelta /// Initializes a new instance of the class. /// /// - /// - /// The number of audio channels. - /// /// + /// /// /// /// The sample rate of the audio. /// - /// + /// + /// The number of audio channels. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AudioDelta( object type, - int? channels, byte[]? data, + string? uri, global::Google.Gemini.NextGen.AudioDeltaMimeType? mimeType, int? sampleRate, - string? uri) + int? channels) { - this.Channels = channels; + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Data = data; + this.Uri = uri; this.MimeType = mimeType; this.SampleRate = sampleRate; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.Uri = uri; + this.Channels = channels; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioResponseFormat.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioResponseFormat.g.cs index d197b9b4d..1dd3cd822 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioResponseFormat.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.AudioResponseFormat.g.cs @@ -10,18 +10,11 @@ namespace Google.Gemini.NextGen public sealed partial class AudioResponseFormat { /// - /// Bit rate in bits per second (bps). Only applicable for compressed formats
- /// (MP3, Opus). - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("bit_rate")] - public int? BitRate { get; set; } - - /// - /// The delivery mode for the audio output. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("delivery")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.AudioResponseFormatDeliveryJsonConverter))] - public global::Google.Gemini.NextGen.AudioResponseFormatDelivery? Delivery { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// The MIME type of the audio output. @@ -30,6 +23,13 @@ public sealed partial class AudioResponseFormat [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.AudioResponseFormatMimeTypeJsonConverter))] public global::Google.Gemini.NextGen.AudioResponseFormatMimeType? MimeType { get; set; } + /// + /// The delivery mode for the audio output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("delivery")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.AudioResponseFormatDeliveryJsonConverter))] + public global::Google.Gemini.NextGen.AudioResponseFormatDelivery? Delivery { get; set; } + /// /// Sample rate in Hz. /// @@ -37,11 +37,11 @@ public sealed partial class AudioResponseFormat public int? SampleRate { get; set; } /// - /// + /// Bit rate in bits per second (bps). Only applicable for compressed formats
+ /// (MP3, Opus). ///
- [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("bit_rate")] + public int? BitRate { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -53,34 +53,34 @@ public sealed partial class AudioResponseFormat /// Initializes a new instance of the class. /// /// - /// - /// Bit rate in bits per second (bps). Only applicable for compressed formats
- /// (MP3, Opus). + /// + /// The MIME type of the audio output. /// /// /// The delivery mode for the audio output. /// - /// - /// The MIME type of the audio output. - /// /// /// Sample rate in Hz. /// + /// + /// Bit rate in bits per second (bps). Only applicable for compressed formats
+ /// (MP3, Opus). + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AudioResponseFormat( object type, - int? bitRate, - global::Google.Gemini.NextGen.AudioResponseFormatDelivery? delivery, global::Google.Gemini.NextGen.AudioResponseFormatMimeType? mimeType, - int? sampleRate) + global::Google.Gemini.NextGen.AudioResponseFormatDelivery? delivery, + int? sampleRate, + int? bitRate) { - this.BitRate = bitRate; - this.Delivery = delivery; + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.MimeType = mimeType; + this.Delivery = delivery; this.SampleRate = sampleRate; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.BitRate = bitRate; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArguments.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArguments.g.cs index e3a312980..1cda04989 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArguments.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArguments.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class CodeExecutionCallArguments { - /// - /// The code to be executed. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("code")] - public string? Code { get; set; } - /// /// Programming language of the `code`. /// @@ -21,6 +15,12 @@ public sealed partial class CodeExecutionCallArguments [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.CodeExecutionCallArgumentsLanguageJsonConverter))] public global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage? Language { get; set; } + /// + /// The code to be executed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + public string? Code { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,21 +30,21 @@ public sealed partial class CodeExecutionCallArguments /// /// Initializes a new instance of the class. /// - /// - /// The code to be executed. - /// /// /// Programming language of the `code`. /// + /// + /// The code to be executed. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CodeExecutionCallArguments( - string? code, - global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage? language) + global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage? language, + string? code) { - this.Code = code; this.Language = language; + this.Code = code; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArguments2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArguments2.g.cs index 5b6e2a17d..632a9af74 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArguments2.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArguments2.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class CodeExecutionCallArguments2 { - /// - /// The code to be executed. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("code")] - public string? Code { get; set; } - /// /// Programming language of the `code`. /// @@ -21,6 +15,12 @@ public sealed partial class CodeExecutionCallArguments2 [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.CodeExecutionCallArgumentsLanguage2JsonConverter))] public global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage2? Language { get; set; } + /// + /// The code to be executed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + public string? Code { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,21 +30,21 @@ public sealed partial class CodeExecutionCallArguments2 /// /// Initializes a new instance of the class. /// - /// - /// The code to be executed. - /// /// /// Programming language of the `code`. /// + /// + /// The code to be executed. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CodeExecutionCallArguments2( - string? code, - global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage2? language) + global::Google.Gemini.NextGen.CodeExecutionCallArgumentsLanguage2? language, + string? code) { - this.Code = code; this.Language = language; + this.Code = code; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArgumentsLanguage.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArgumentsLanguage.g.cs index 010482e88..9947ba140 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArgumentsLanguage.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArgumentsLanguage.g.cs @@ -8,6 +8,10 @@ namespace Google.Gemini.NextGen /// public enum CodeExecutionCallArgumentsLanguage { + /// + /// + /// + Bash, /// /// /// @@ -26,6 +30,7 @@ public static string ToValueString(this CodeExecutionCallArgumentsLanguage value { return value switch { + CodeExecutionCallArgumentsLanguage.Bash => "bash", CodeExecutionCallArgumentsLanguage.Python => "python", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -37,6 +42,7 @@ public static string ToValueString(this CodeExecutionCallArgumentsLanguage value { return value switch { + "bash" => CodeExecutionCallArgumentsLanguage.Bash, "python" => CodeExecutionCallArgumentsLanguage.Python, _ => null, }; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArgumentsLanguage2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArgumentsLanguage2.g.cs index 35c22ce7f..1de82a9bb 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArgumentsLanguage2.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallArgumentsLanguage2.g.cs @@ -8,6 +8,10 @@ namespace Google.Gemini.NextGen ///
public enum CodeExecutionCallArgumentsLanguage2 { + /// + /// + /// + Bash, /// /// /// @@ -26,6 +30,7 @@ public static string ToValueString(this CodeExecutionCallArgumentsLanguage2 valu { return value switch { + CodeExecutionCallArgumentsLanguage2.Bash => "bash", CodeExecutionCallArgumentsLanguage2.Python => "python", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; @@ -37,6 +42,7 @@ public static string ToValueString(this CodeExecutionCallArgumentsLanguage2 valu { return value switch { + "bash" => CodeExecutionCallArgumentsLanguage2.Bash, "python" => CodeExecutionCallArgumentsLanguage2.Python, _ => null, }; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallDelta.g.cs index 7a794135c..7946c856c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallDelta.g.cs @@ -15,12 +15,6 @@ public sealed partial class CodeExecutionCallDelta [global::System.Text.Json.Serialization.JsonRequired] public required global::Google.Gemini.NextGen.CodeExecutionCallArguments Arguments { get; set; } - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - /// /// /// @@ -28,6 +22,12 @@ public sealed partial class CodeExecutionCallDelta [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// A signature hash for backend validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -53,8 +53,8 @@ public CodeExecutionCallDelta( byte[]? signature) { this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallStep.g.cs index 7af66884f..8f5612475 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionCallStep.g.cs @@ -23,12 +23,6 @@ public sealed partial class CodeExecutionCallStep [global::System.Text.Json.Serialization.JsonRequired] public required string Id { get; set; } - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - /// /// /// @@ -36,6 +30,12 @@ public sealed partial class CodeExecutionCallStep [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// A signature hash for backend validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -66,8 +66,8 @@ public CodeExecutionCallStep( { this.CodeExecutionCallArguments = codeExecutionCallArguments ?? throw new global::System.ArgumentNullException(nameof(codeExecutionCallArguments)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionResultDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionResultDelta.g.cs index a09c717ea..b04300eea 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionResultDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionResultDelta.g.cs @@ -11,28 +11,28 @@ public sealed partial class CodeExecutionResultDelta /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] - public bool? IsError { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Result { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Result { get; set; } + public required object Type { get; set; } /// - /// A signature hash for backend validation. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] + public bool? IsError { get; set; } /// - /// + /// A signature hash for backend validation. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -58,10 +58,10 @@ public CodeExecutionResultDelta( bool? isError, byte[]? signature) { - this.IsError = isError; this.Result = result ?? throw new global::System.ArgumentNullException(nameof(result)); - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.IsError = isError; + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionResultStep.g.cs index a3f6ed923..eaa231243 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeExecutionResultStep.g.cs @@ -9,6 +9,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class CodeExecutionResultStep { + /// + /// Required. The output of the code execution. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Result { get; set; } + /// /// Required. ID to match the ID from the function call block. /// @@ -17,17 +24,17 @@ public sealed partial class CodeExecutionResultStep public required string CallId { get; set; } /// - /// Whether the code execution resulted in an error. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] - public bool? IsError { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// - /// Required. The output of the code execution. + /// Whether the code execution resulted in an error. /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Result { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] + public bool? IsError { get; set; } /// /// A signature hash for backend validation. @@ -35,13 +42,6 @@ public sealed partial class CodeExecutionResultStep [global::System.Text.Json.Serialization.JsonPropertyName("signature")] public byte[]? Signature { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -51,12 +51,12 @@ public sealed partial class CodeExecutionResultStep /// /// Initializes a new instance of the class. /// - /// - /// Required. ID to match the ID from the function call block. - /// /// /// Required. The output of the code execution. /// + /// + /// Required. ID to match the ID from the function call block. + /// /// /// /// Whether the code execution resulted in an error. @@ -68,17 +68,17 @@ public sealed partial class CodeExecutionResultStep [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CodeExecutionResultStep( - string callId, string result, + string callId, object type, bool? isError, byte[]? signature) { + this.Result = result ?? throw new global::System.ArgumentNullException(nameof(result)); this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.IsError = isError; - this.Result = result ?? throw new global::System.ArgumentNullException(nameof(result)); this.Signature = signature; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfig.g.cs index 14ddf7d84..e43e3940c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CodeMenderAgentConfig.g.cs @@ -8,6 +8,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class CodeMenderAgentConfig { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + /// /// Request parameters specific to FIND sessions, used for discovering
/// vulnerabilities in a codebase. @@ -23,11 +30,11 @@ public sealed partial class CodeMenderAgentConfig public global::Google.Gemini.NextGen.FixRequest? FixRequest { get; set; } /// - /// The name of the model to use for the CodeMender agent. One
- /// CodeMender session will only use one model. + /// Parameter for grouping multiple interactions that belong to
+ /// the same CodeMender session. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("session_id")] + public string? SessionId { get; set; } /// /// The configuration of CodeMender sessions. @@ -36,18 +43,11 @@ public sealed partial class CodeMenderAgentConfig public global::Google.Gemini.NextGen.SessionConfig? SessionConfig { get; set; } /// - /// Parameter for grouping multiple interactions that belong to
- /// the same CodeMender session. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("session_id")] - public string? SessionId { get; set; } - - /// - /// + /// The name of the model to use for the CodeMender agent. One
+ /// CodeMender session will only use one model. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -67,16 +67,16 @@ public sealed partial class CodeMenderAgentConfig /// Request parameters specific to FIX sessions, used for generating and
/// validating security patches. /// - /// - /// The name of the model to use for the CodeMender agent. One
- /// CodeMender session will only use one model. + /// + /// Parameter for grouping multiple interactions that belong to
+ /// the same CodeMender session. /// /// /// The configuration of CodeMender sessions. /// - /// - /// Parameter for grouping multiple interactions that belong to
- /// the same CodeMender session. + /// + /// The name of the model to use for the CodeMender agent. One
+ /// CodeMender session will only use one model. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -85,16 +85,16 @@ public CodeMenderAgentConfig( object type, global::Google.Gemini.NextGen.FindRequest? findRequest, global::Google.Gemini.NextGen.FixRequest? fixRequest, - string? model, + string? sessionId, global::Google.Gemini.NextGen.SessionConfig? sessionConfig, - string? sessionId) + string? model) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.FindRequest = findRequest; this.FixRequest = fixRequest; - this.Model = model; - this.SessionConfig = sessionConfig; this.SessionId = sessionId; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.SessionConfig = sessionConfig; + this.Model = model; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ComputerUse.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ComputerUse.g.cs index 8f3c609f9..e6904f911 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ComputerUse.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ComputerUse.g.cs @@ -9,17 +9,11 @@ namespace Google.Gemini.NextGen public sealed partial class ComputerUse { /// - /// Optional. Disabled safety policies for computer use. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("disabled_safety_policies")] - public global::System.Collections.Generic.IList? DisabledSafetyPolicies { get; set; } - - /// - /// Whether enable the prompt injection detection check on computer-use
- /// request. + /// ///
- [global::System.Text.Json.Serialization.JsonPropertyName("enable_prompt_injection_detection")] - public bool? EnablePromptInjectionDetection { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// The environment being operated. @@ -35,11 +29,17 @@ public sealed partial class ComputerUse public global::System.Collections.Generic.IList? ExcludedPredefinedFunctions { get; set; } /// - /// + /// Whether enable the prompt injection detection check on computer-use
+ /// request. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enable_prompt_injection_detection")] + public bool? EnablePromptInjectionDetection { get; set; } + + /// + /// Optional. Disabled safety policies for computer use. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("disabled_safety_policies")] + public global::System.Collections.Generic.IList? DisabledSafetyPolicies { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -51,34 +51,34 @@ public sealed partial class ComputerUse /// Initializes a new instance of the class. /// /// - /// - /// Optional. Disabled safety policies for computer use. - /// - /// - /// Whether enable the prompt injection detection check on computer-use
- /// request. - /// /// /// The environment being operated. /// /// /// The list of predefined functions that are excluded from the model call. /// + /// + /// Whether enable the prompt injection detection check on computer-use
+ /// request. + /// + /// + /// Optional. Disabled safety policies for computer use. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ComputerUse( object type, - global::System.Collections.Generic.IList? disabledSafetyPolicies, - bool? enablePromptInjectionDetection, global::Google.Gemini.NextGen.ComputerUseEnvironment? environment, - global::System.Collections.Generic.IList? excludedPredefinedFunctions) + global::System.Collections.Generic.IList? excludedPredefinedFunctions, + bool? enablePromptInjectionDetection, + global::System.Collections.Generic.IList? disabledSafetyPolicies) { - this.DisabledSafetyPolicies = disabledSafetyPolicies; - this.EnablePromptInjectionDetection = enablePromptInjectionDetection; + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Environment = environment; this.ExcludedPredefinedFunctions = excludedPredefinedFunctions; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.EnablePromptInjectionDetection = enablePromptInjectionDetection; + this.DisabledSafetyPolicies = disabledSafetyPolicies; } /// 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 075cf1173..5c136dcb9 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,10 +26,19 @@ 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. + /// The input for the interaction. /// - [global::System.Text.Json.Serialization.JsonPropertyName("background")] - public bool? Background { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("input")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionsInputJsonConverter))] + public global::Google.Gemini.NextGen.InteractionsInput? Input { get; set; } + + /// + /// Enforces that the generated response is a JSON object that complies with
+ /// the JSON schema specified in this field. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] + public global::Google.Gemini.NextGen.OneOf>? ResponseFormat { get; set; } /// /// The environment configuration for the interaction. Can be an object
@@ -41,35 +50,23 @@ public sealed partial class CreateAgentInteraction public global::Google.Gemini.NextGen.OneOf? Environment { get; set; } /// - /// The input for the interaction. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionsInputJsonConverter))] - public global::Google.Gemini.NextGen.InteractionsInput? Input { get; set; } - - /// - /// The labels with user-defined metadata for the request.
- /// 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.
- /// Label values are optional. Label keys must start with a letter. + /// System instruction for the interaction. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("labels")] - public global::System.Collections.Generic.Dictionary? Labels { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("system_instruction")] + public string? SystemInstruction { get; set; } /// - /// The ID of the previous interaction, if any. + /// A list of tool declarations the model may call during interaction. /// - [global::System.Text.Json.Serialization.JsonPropertyName("previous_interaction_id")] - public string? PreviousInteractionId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } /// - /// Enforces that the generated response is a JSON object that complies with
- /// the JSON schema specified in this field. + /// The requested modalities of the response (TEXT, IMAGE, AUDIO). ///
- [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] - public global::Google.Gemini.NextGen.OneOf>? ResponseFormat { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("response_modalities")] + [global::System.Obsolete("This property marked as deprecated.")] + public global::System.Collections.Generic.IList? ResponseModalities { get; set; } /// /// The mime type of the response. This is required if response_format is set. @@ -79,17 +76,10 @@ public sealed partial class CreateAgentInteraction public string? ResponseMimeType { get; set; } /// - /// The requested modalities of the response (TEXT, IMAGE, AUDIO). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("response_modalities")] - [global::System.Obsolete("This property marked as deprecated.")] - public global::System.Collections.Generic.IList? ResponseModalities { get; set; } - - /// - /// Safety settings for the interaction. + /// The ID of the previous interaction, if any. /// - [global::System.Text.Json.Serialization.JsonPropertyName("safety_settings")] - public global::System.Collections.Generic.IList? SafetySettings { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("previous_interaction_id")] + public string? PreviousInteractionId { get; set; } /// /// @@ -99,34 +89,44 @@ public sealed partial class CreateAgentInteraction public global::Google.Gemini.NextGen.ServiceTier? ServiceTier { get; set; } /// - /// Input only. Whether to store the response and request for later retrieval. + /// Message for configuring webhook events for a request. /// - [global::System.Text.Json.Serialization.JsonPropertyName("store")] - public bool? Store { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("webhook_config")] + public global::Google.Gemini.NextGen.WebhookConfig? WebhookConfig { get; set; } /// - /// Input only. Whether the interaction will be streamed. + /// Safety settings for the interaction. /// - [global::System.Text.Json.Serialization.JsonPropertyName("stream")] - public bool? Stream { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("safety_settings")] + public global::System.Collections.Generic.IList? SafetySettings { get; set; } /// - /// System instruction for the interaction. + /// The labels with user-defined metadata for the request.
+ /// 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.
+ /// Label values are optional. Label keys must start with a letter. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("system_instruction")] - public string? SystemInstruction { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("labels")] + public global::System.Collections.Generic.Dictionary? Labels { get; set; } /// - /// A list of tool declarations the model may call during interaction. + /// Input only. Whether the interaction will be streamed. /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("stream")] + public bool? Stream { get; set; } /// - /// Message for configuring webhook events for a request. + /// Input only. Whether to store the response and request for later retrieval. /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhook_config")] - public global::Google.Gemini.NextGen.WebhookConfig? WebhookConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("store")] + public bool? Store { get; set; } + + /// + /// Input only. Whether to run the model interaction in the background. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("background")] + public bool? Background { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -143,49 +143,49 @@ public sealed partial class CreateAgentInteraction /// /// Configuration parameters for the agent interaction. /// - /// - /// Input only. Whether to run the model interaction in the background. + /// + /// The input for the interaction. + /// + /// + /// Enforces that the generated response is a JSON object that complies with
+ /// the JSON schema specified in this field. /// /// /// The environment configuration for the interaction. Can be an object
/// specifying remote environment sources or a string referencing an existing
/// environment ID. /// - /// - /// The input for the interaction. + /// + /// System instruction for the interaction. /// - /// - /// The labels with user-defined metadata for the request.
- /// 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.
- /// Label values are optional. Label keys must start with a letter. + /// + /// A list of tool declarations the model may call during interaction. /// /// /// The ID of the previous interaction, if any. /// - /// - /// Enforces that the generated response is a JSON object that complies with
- /// the JSON schema specified in this field. + /// + /// + /// Message for configuring webhook events for a request. /// /// /// Safety settings for the interaction. /// - /// - /// - /// Input only. Whether to store the response and request for later retrieval. + /// + /// The labels with user-defined metadata for the request.
+ /// 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.
+ /// Label values are optional. Label keys must start with a letter. /// /// /// Input only. Whether the interaction will be streamed. /// - /// - /// System instruction for the interaction. - /// - /// - /// A list of tool declarations the model may call during interaction. + /// + /// Input only. Whether to store the response and request for later retrieval. /// - /// - /// Message for configuring webhook events for a request. + /// + /// Input only. Whether to run the model interaction in the background. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -193,35 +193,35 @@ public sealed partial class CreateAgentInteraction public CreateAgentInteraction( global::Google.Gemini.NextGen.AgentOption agent, global::Google.Gemini.NextGen.OneOf? agentConfig, - bool? background, - global::Google.Gemini.NextGen.OneOf? environment, global::Google.Gemini.NextGen.InteractionsInput? input, - global::System.Collections.Generic.Dictionary? labels, - string? previousInteractionId, global::Google.Gemini.NextGen.OneOf>? responseFormat, - global::System.Collections.Generic.IList? safetySettings, - global::Google.Gemini.NextGen.ServiceTier? serviceTier, - bool? store, - bool? stream, + global::Google.Gemini.NextGen.OneOf? environment, string? systemInstruction, global::System.Collections.Generic.IList? tools, - global::Google.Gemini.NextGen.WebhookConfig? webhookConfig) + string? previousInteractionId, + global::Google.Gemini.NextGen.ServiceTier? serviceTier, + global::Google.Gemini.NextGen.WebhookConfig? webhookConfig, + global::System.Collections.Generic.IList? safetySettings, + global::System.Collections.Generic.Dictionary? labels, + bool? stream, + bool? store, + bool? background) { this.Agent = agent; this.AgentConfig = agentConfig; - this.Background = background; - this.Environment = environment; this.Input = input; - this.Labels = labels; - this.PreviousInteractionId = previousInteractionId; this.ResponseFormat = responseFormat; - this.SafetySettings = safetySettings; - this.ServiceTier = serviceTier; - this.Store = store; - this.Stream = stream; + this.Environment = environment; this.SystemInstruction = systemInstruction; this.Tools = tools; + this.PreviousInteractionId = previousInteractionId; + this.ServiceTier = serviceTier; this.WebhookConfig = webhookConfig; + this.SafetySettings = safetySettings; + this.Labels = labels; + this.Stream = stream; + this.Store = store; + this.Background = background; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateEnvironmentRequest.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateEnvironmentRequest.g.cs index 1d6be58d1..93c0ffbac 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateEnvironmentRequest.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateEnvironmentRequest.g.cs @@ -8,14 +8,6 @@ namespace Google.Gemini.NextGen /// 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. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("from_environment")] - public string? FromEnvironment { get; set; } - /// /// Network configuration for the environment. /// @@ -29,6 +21,14 @@ public sealed partial class CreateEnvironmentRequest [global::System.Text.Json.Serialization.JsonPropertyName("sources")] public global::System.Collections.Generic.IList? Sources { get; set; } + /// + /// Optional. The source environment to copy/fork from.
+ /// Format: `environments/{environment_id}` or `{environment_id}`.
+ /// When specified, `sources` and `env` must be empty. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("from_environment")] + public string? FromEnvironment { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -38,28 +38,28 @@ public sealed partial class CreateEnvironmentRequest /// /// Initializes a new instance of the class. /// - /// - /// Optional. The source environment to copy/fork from.
- /// Format: `environments/{environment_id}` or `{environment_id}`.
- /// When specified, `sources` and `env` must be empty. - /// /// /// Network configuration for the environment. /// /// /// Sources to be mounted into the environment. /// + /// + /// Optional. The source environment to copy/fork from.
+ /// Format: `environments/{environment_id}` or `{environment_id}`.
+ /// When specified, `sources` and `env` must be empty. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateEnvironmentRequest( - string? fromEnvironment, global::Google.Gemini.NextGen.OneOf? network, - global::System.Collections.Generic.IList? sources) + global::System.Collections.Generic.IList? sources, + string? fromEnvironment) { - this.FromEnvironment = fromEnvironment; this.Network = network; this.Sources = sources; + this.FromEnvironment = fromEnvironment; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateModelInteraction.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateModelInteraction.g.cs index a1e2ec2b2..76ca2c002 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateModelInteraction.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.CreateModelInteraction.g.cs @@ -11,27 +11,33 @@ namespace Google.Gemini.NextGen public sealed partial class CreateModelInteraction { /// - /// Input only. Whether to run the model interaction in the background.
- /// Included only in requests + /// The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("background")] - public bool? Background { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ModelJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Google.Gemini.NextGen.Model Model { get; set; } /// - /// The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent} + /// Configuration parameters for model interactions. /// - [global::System.Text.Json.Serialization.JsonPropertyName("cached_content")] - [global::System.Obsolete("This property marked as deprecated.")] - public string? CachedContent { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("generation_config")] + public global::Google.Gemini.NextGen.GenerationConfig? GenerationConfig { 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 + /// The input for the interaction. ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("created")] - public string Created { get; set; } = default!; + [global::System.Text.Json.Serialization.JsonPropertyName("input")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionsInputJsonConverter))] + public global::Google.Gemini.NextGen.InteractionsInput? Input { get; set; } + + /// + /// Enforces that the generated response is a JSON object that complies with
+ /// the JSON schema specified in this field. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] + public global::Google.Gemini.NextGen.OneOf>? ResponseFormat { get; set; } /// /// The environment configuration for the interaction. Can be an object
@@ -43,65 +49,58 @@ public sealed partial class CreateModelInteraction 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.
+ /// Required. Output only. A unique identifier for the interaction completion.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("environment_id")] - public string? EnvironmentId { get; set; } - - /// - /// Configuration parameters for model interactions. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("generation_config")] - public global::Google.Gemini.NextGen.GenerationConfig? GenerationConfig { get; set; } + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string Id { get; set; } = default!; /// - /// Required. Output only. A unique identifier for the interaction completion.
+ /// Required. Output only. The status of the interaction.
/// Included only in responses ///
/// default! - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string Id { get; set; } = default!; + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.CreateModelInteractionStatusJsonConverter))] + public global::Google.Gemini.NextGen.CreateModelInteractionStatus Status { get; set; } = default!; /// - /// The input for the interaction. + /// Required. Output only. The time at which the response was created in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionsInputJsonConverter))] - public global::Google.Gemini.NextGen.InteractionsInput? Input { get; set; } + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("created")] + public string Created { get; set; } = default!; /// - /// The labels with user-defined metadata for the request.
- /// 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.
- /// Label values are optional. Label keys must start with a letter. + /// Required. Output only. The time at which the response was last updated in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("labels")] - public global::System.Collections.Generic.Dictionary? Labels { get; set; } + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("updated")] + public string Updated { get; set; } = default!; /// - /// The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details. + /// System instruction for the interaction. /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ModelJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.Model Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("system_instruction")] + public string? SystemInstruction { get; set; } /// - /// The ID of the previous interaction, if any. + /// A list of tool declarations the model may call during interaction. /// - [global::System.Text.Json.Serialization.JsonPropertyName("previous_interaction_id")] - public string? PreviousInteractionId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } /// - /// Enforces that the generated response is a JSON object that complies with
- /// the JSON schema specified in this field. + /// The requested modalities of the response (TEXT, IMAGE, AUDIO). ///
- [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] - public global::Google.Gemini.NextGen.OneOf>? ResponseFormat { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("response_modalities")] + [global::System.Obsolete("This property marked as deprecated.")] + public global::System.Collections.Generic.IList? ResponseModalities { get; set; } /// /// The mime type of the response. This is required if response_format is set. @@ -111,17 +110,18 @@ public sealed partial class CreateModelInteraction public string? ResponseMimeType { get; set; } /// - /// The requested modalities of the response (TEXT, IMAGE, AUDIO). + /// The ID of the previous interaction, if any. /// - [global::System.Text.Json.Serialization.JsonPropertyName("response_modalities")] - [global::System.Obsolete("This property marked as deprecated.")] - public global::System.Collections.Generic.IList? ResponseModalities { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("previous_interaction_id")] + public string? PreviousInteractionId { get; set; } /// - /// Safety settings for the interaction. + /// 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("safety_settings")] - public global::System.Collections.Generic.IList? SafetySettings { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("environment_id")] + public string? EnvironmentId { get; set; } /// /// @@ -131,20 +131,26 @@ public sealed partial class CreateModelInteraction public global::Google.Gemini.NextGen.ServiceTier? ServiceTier { get; set; } /// - /// Required. Output only. The status of the interaction.
- /// Included only in responses + /// Message for configuring webhook events for a request. ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.CreateModelInteractionStatusJsonConverter))] - public global::Google.Gemini.NextGen.CreateModelInteractionStatus Status { get; set; } = default!; + [global::System.Text.Json.Serialization.JsonPropertyName("webhook_config")] + public global::Google.Gemini.NextGen.WebhookConfig? WebhookConfig { get; set; } /// - /// Input only. Whether to store the response and request for later retrieval.
- /// Included only in requests + /// Safety settings for the interaction. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("store")] - public bool? Store { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("safety_settings")] + public global::System.Collections.Generic.IList? SafetySettings { get; set; } + + /// + /// The labels with user-defined metadata for the request.
+ /// 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.
+ /// Label values are optional. Label keys must start with a letter. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("labels")] + public global::System.Collections.Generic.Dictionary? Labels { get; set; } /// /// Input only. Whether the interaction will be streamed.
@@ -154,31 +160,25 @@ public sealed partial class CreateModelInteraction public bool? Stream { get; set; } /// - /// System instruction for the interaction. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("system_instruction")] - public string? SystemInstruction { get; set; } - - /// - /// A list of tool declarations the model may call during interaction. + /// Input only. Whether to store the response and request for later retrieval.
+ /// Included only in requests ///
- [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("store")] + public bool? Store { 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 + /// Input only. Whether to run the model interaction in the background.
+ /// Included only in requests ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("updated")] - public string Updated { get; set; } = default!; + [global::System.Text.Json.Serialization.JsonPropertyName("background")] + public bool? Background { get; set; } /// - /// Message for configuring webhook events for a request. + /// The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent} /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhook_config")] - public global::Google.Gemini.NextGen.WebhookConfig? WebhookConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("cached_content")] + [global::System.Obsolete("This property marked as deprecated.")] + public string? CachedContent { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -192,25 +192,41 @@ public sealed partial class CreateModelInteraction /// /// The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details. /// - /// - /// Input only. Whether to run the model interaction in the background.
- /// Included only in requests + /// + /// Configuration parameters for model interactions. + /// + /// + /// The input for the interaction. + /// + /// + /// Enforces that the generated response is a JSON object that complies with
+ /// the JSON schema specified in this field. /// /// /// The environment configuration for the interaction. Can be an object
/// specifying remote environment sources or a string referencing an existing
/// environment ID. /// + /// + /// System instruction for the interaction. + /// + /// + /// A list of tool declarations the model may call during interaction. + /// + /// + /// The ID of the previous interaction, if any. + /// /// /// Output only. The environment ID for the interaction. Only populated if environment
/// config is set in the request.
/// Included only in responses /// - /// - /// Configuration parameters for model interactions. + /// + /// + /// Message for configuring webhook events for a request. /// - /// - /// The input for the interaction. + /// + /// Safety settings for the interaction. /// /// /// The labels with user-defined metadata for the request.
@@ -219,39 +235,18 @@ public sealed partial class CreateModelInteraction /// characters, underscores, and dashes. International characters are allowed.
/// Label values are optional. Label keys must start with a letter. /// - /// - /// The ID of the previous interaction, if any. - /// - /// - /// Enforces that the generated response is a JSON object that complies with
- /// the JSON schema specified in this field. - /// - /// - /// Safety settings for the interaction. + /// + /// Input only. Whether the interaction will be streamed.
+ /// Included only in requests /// - /// /// /// Input only. Whether to store the response and request for later retrieval.
/// Included only in requests /// - /// - /// Input only. Whether the interaction will be streamed.
+ /// + /// Input only. Whether to run the model interaction in the background.
/// Included only in requests /// - /// - /// System instruction for the interaction. - /// - /// - /// A list of tool declarations the model may call during interaction. - /// - /// - /// 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 @@ -260,6 +255,11 @@ public sealed partial class CreateModelInteraction /// Required. Output only. The status of the interaction.
/// Included only in responses /// + /// + /// Required. Output only. The time at which the response was created in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses + /// /// /// Required. Output only. The time at which the response was last updated in ISO 8601 format
/// (YYYY-MM-DDThh:mm:ssZ).
@@ -270,46 +270,46 @@ public sealed partial class CreateModelInteraction #endif public CreateModelInteraction( global::Google.Gemini.NextGen.Model model, - bool? background, - global::Google.Gemini.NextGen.OneOf? environment, - string? environmentId, global::Google.Gemini.NextGen.GenerationConfig? generationConfig, global::Google.Gemini.NextGen.InteractionsInput? input, - global::System.Collections.Generic.Dictionary? labels, - string? previousInteractionId, global::Google.Gemini.NextGen.OneOf>? responseFormat, - global::System.Collections.Generic.IList? safetySettings, - global::Google.Gemini.NextGen.ServiceTier? serviceTier, - bool? store, - bool? stream, + global::Google.Gemini.NextGen.OneOf? environment, string? systemInstruction, global::System.Collections.Generic.IList? tools, + string? previousInteractionId, + string? environmentId, + global::Google.Gemini.NextGen.ServiceTier? serviceTier, global::Google.Gemini.NextGen.WebhookConfig? webhookConfig, - string created = default!, + global::System.Collections.Generic.IList? safetySettings, + global::System.Collections.Generic.Dictionary? labels, + bool? stream, + bool? store, + bool? background, string id = default!, global::Google.Gemini.NextGen.CreateModelInteractionStatus status = default!, + string created = default!, string updated = default!) { - this.Background = background; - this.Created = created; - this.Environment = environment; - this.EnvironmentId = environmentId; + this.Model = model; this.GenerationConfig = generationConfig; - this.Id = id; this.Input = input; - this.Labels = labels; - this.Model = model; - this.PreviousInteractionId = previousInteractionId; this.ResponseFormat = responseFormat; - this.SafetySettings = safetySettings; - this.ServiceTier = serviceTier; + this.Environment = environment; + this.Id = id; this.Status = status; - this.Store = store; - this.Stream = stream; + this.Created = created; + this.Updated = updated; this.SystemInstruction = systemInstruction; this.Tools = tools; - this.Updated = updated; + this.PreviousInteractionId = previousInteractionId; + this.EnvironmentId = environmentId; + this.ServiceTier = serviceTier; this.WebhookConfig = webhookConfig; + this.SafetySettings = safetySettings; + this.Labels = labels; + this.Stream = stream; + this.Store = store; + this.Background = background; } /// 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 07a789db6..66a053464 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 @@ -8,6 +8,14 @@ namespace Google.Gemini.NextGen /// public sealed partial class CreateVoiceRequest { + /// + /// A voice resource representing either a custom voice (created via
+ /// `CreateVoice`) or a prebuilt system voice (returned by `ListVoices`). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("voice")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Google.Gemini.NextGen.Voice Voice { get; set; } + /// /// Optional. Whether the created voice is persisted and managed by Google.
/// * When `true`, Google stores the voice and returns `Voice.id` (for example,
@@ -27,14 +35,6 @@ public sealed partial class CreateVoiceRequest [global::System.Text.Json.Serialization.JsonPropertyName("store")] public bool? Store { get; set; } - /// - /// A voice resource representing either a custom voice (created via
- /// `CreateVoice`) or a prebuilt system voice (returned by `ListVoices`). - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.Voice Voice { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -71,8 +71,8 @@ public CreateVoiceRequest( global::Google.Gemini.NextGen.Voice voice, bool? store) { - this.Store = store; this.Voice = voice ?? throw new global::System.ArgumentNullException(nameof(voice)); + this.Store = store; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Credential.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Credential.g.cs index d4a065fc5..1c010af27 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Credential.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Credential.g.cs @@ -9,19 +9,21 @@ namespace Google.Gemini.NextGen public sealed partial class Credential { /// - /// Output only. The timestamp when the credential was created.
+ /// Required. Output only. Identifier. Unique identifier for the credential.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("create_time")] - public global::System.DateTime? CreateTime { get; set; } + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string Id { get; set; } = default!; /// - /// Required. Output only. Identifier. Unique identifier for the credential.
+ /// Required. Output only. The type of credential.
/// Included only in responses ///
/// default! - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string Id { get; set; } = default!; + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.CredentialTypeJsonConverter))] + public global::Google.Gemini.NextGen.CredentialType Type { get; set; } = default!; /// /// Output only. Current status of the credential.
@@ -32,12 +34,11 @@ public sealed partial class Credential public global::Google.Gemini.NextGen.CredentialStatus? Status { get; set; } /// - /// Required. Output only. The type of credential.
+ /// Output only. The timestamp when the credential was created.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.CredentialTypeJsonConverter))] - public global::Google.Gemini.NextGen.CredentialType? Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("create_time")] + public global::System.DateTime? CreateTime { get; set; } /// /// Output only. The timestamp when the credential was last updated.
@@ -55,16 +56,12 @@ public sealed partial class Credential /// /// Initializes a new instance of the class. /// - /// - /// Output only. The timestamp when the credential was created.
- /// Included only in responses - /// /// /// Output only. Current status of the credential.
/// Included only in responses /// - /// - /// Required. Output only. The type of credential.
+ /// + /// Output only. The timestamp when the credential was created.
/// Included only in responses /// /// @@ -75,20 +72,24 @@ public sealed partial class Credential /// Required. Output only. Identifier. Unique identifier for the credential.
/// Included only in responses /// + /// + /// Required. Output only. The type of credential.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Credential( - global::System.DateTime? createTime, global::Google.Gemini.NextGen.CredentialStatus? status, - global::Google.Gemini.NextGen.CredentialType? type, + global::System.DateTime? createTime, global::System.DateTime? updateTime, - string id = default!) + string id = default!, + global::Google.Gemini.NextGen.CredentialType type = default!) { - this.CreateTime = createTime; this.Id = id; - this.Status = status; this.Type = type; + this.Status = status; + this.CreateTime = createTime; this.UpdateTime = updateTime; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DeepResearchAgentConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DeepResearchAgentConfig.g.cs index 66ffeaac4..3dfac5e80 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DeepResearchAgentConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DeepResearchAgentConfig.g.cs @@ -9,19 +9,11 @@ namespace Google.Gemini.NextGen public sealed partial class DeepResearchAgentConfig { /// - /// Enables human-in-the-loop planning for the Deep Research agent. If set to
- /// true, the Deep Research agent will provide a research plan in its response.
- /// The agent will then proceed only if the user confirms the plan in the next
- /// turn. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("collaborative_planning")] - public bool? CollaborativePlanning { get; set; } - - /// - /// Enables bigquery tool for the Deep Research agent. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("enable_bigquery_tool")] - public bool? EnableBigqueryTool { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// @@ -30,13 +22,6 @@ public sealed partial class DeepResearchAgentConfig [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ThinkingSummariesJsonConverter))] public global::Google.Gemini.NextGen.ThinkingSummaries? ThinkingSummaries { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Whether to include visualizations in the response. /// @@ -44,6 +29,21 @@ public sealed partial class DeepResearchAgentConfig [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.DeepResearchAgentConfigVisualizationJsonConverter))] public global::Google.Gemini.NextGen.DeepResearchAgentConfigVisualization? Visualization { get; set; } + /// + /// Enables human-in-the-loop planning for the Deep Research agent. If set to
+ /// true, the Deep Research agent will provide a research plan in its response.
+ /// The agent will then proceed only if the user confirms the plan in the next
+ /// turn. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("collaborative_planning")] + public bool? CollaborativePlanning { get; set; } + + /// + /// Enables bigquery tool for the Deep Research agent. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enable_bigquery_tool")] + public bool? EnableBigqueryTool { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -54,6 +54,10 @@ public sealed partial class DeepResearchAgentConfig /// Initializes a new instance of the class. ///
/// + /// + /// + /// Whether to include visualizations in the response. + /// /// /// Enables human-in-the-loop planning for the Deep Research agent. If set to
/// true, the Deep Research agent will provide a research plan in its response.
@@ -63,25 +67,21 @@ public sealed partial class DeepResearchAgentConfig /// /// Enables bigquery tool for the Deep Research agent. /// - /// - /// - /// Whether to include visualizations in the response. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public DeepResearchAgentConfig( object type, - bool? collaborativePlanning, - bool? enableBigqueryTool, global::Google.Gemini.NextGen.ThinkingSummaries? thinkingSummaries, - global::Google.Gemini.NextGen.DeepResearchAgentConfigVisualization? visualization) + global::Google.Gemini.NextGen.DeepResearchAgentConfigVisualization? visualization, + bool? collaborativePlanning, + bool? enableBigqueryTool) { - this.CollaborativePlanning = collaborativePlanning; - this.EnableBigqueryTool = enableBigqueryTool; - this.ThinkingSummaries = thinkingSummaries; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.ThinkingSummaries = thinkingSummaries; this.Visualization = visualization; + this.CollaborativePlanning = collaborativePlanning; + this.EnableBigqueryTool = enableBigqueryTool; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentContent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentContent.g.cs index 405364950..563c62909 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentContent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentContent.g.cs @@ -9,19 +9,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class DocumentContent { - /// - /// The document content. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public byte[]? Data { get; set; } - - /// - /// The mime type of the document. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.DocumentContentMimeTypeJsonConverter))] - public global::Google.Gemini.NextGen.DocumentContentMimeType? MimeType { get; set; } - /// /// /// @@ -29,12 +16,25 @@ public sealed partial class DocumentContent [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// The document content. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + public byte[]? Data { get; set; } + /// /// The URI of the document. /// [global::System.Text.Json.Serialization.JsonPropertyName("uri")] public string? Uri { get; set; } + /// + /// The mime type of the document. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.DocumentContentMimeTypeJsonConverter))] + public global::Google.Gemini.NextGen.DocumentContentMimeType? MimeType { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -48,25 +48,25 @@ public sealed partial class DocumentContent /// /// The document content. /// - /// - /// The mime type of the document. - /// /// /// The URI of the document. /// + /// + /// The mime type of the document. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public DocumentContent( object type, byte[]? data, - global::Google.Gemini.NextGen.DocumentContentMimeType? mimeType, - string? uri) + string? uri, + global::Google.Gemini.NextGen.DocumentContentMimeType? mimeType) { - this.Data = data; - this.MimeType = mimeType; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Data = data; this.Uri = uri; + this.MimeType = mimeType; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentDelta.g.cs index 47f4f2891..0f7a4f332 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.DocumentDelta.g.cs @@ -11,28 +11,28 @@ public sealed partial class DocumentDelta /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public byte[]? Data { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.DocumentDeltaMimeTypeJsonConverter))] - public global::Google.Gemini.NextGen.DocumentDeltaMimeType? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + public byte[]? Data { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.DocumentDeltaMimeTypeJsonConverter))] + public global::Google.Gemini.NextGen.DocumentDeltaMimeType? MimeType { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -45,21 +45,21 @@ public sealed partial class DocumentDelta /// /// /// - /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public DocumentDelta( object type, byte[]? data, - global::Google.Gemini.NextGen.DocumentDeltaMimeType? mimeType, - string? uri) + string? uri, + global::Google.Gemini.NextGen.DocumentDeltaMimeType? mimeType) { - this.Data = data; - this.MimeType = mimeType; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Data = data; this.Uri = uri; + this.MimeType = mimeType; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvVar.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvVar.g.cs index 377139a30..4dd435bba 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvVar.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvVar.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini.NextGen /// public sealed partial class EnvVar { - /// - /// Optional reference to a server-managed Credential resource by ID. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("credential")] - public string? Credential { get; set; } - /// /// Direct string value for plain environment variables. /// [global::System.Text.Json.Serialization.JsonPropertyName("value")] public string? Value { get; set; } + /// + /// Optional reference to a server-managed Credential resource by ID. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("credential")] + public string? Credential { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class EnvVar /// /// Initializes a new instance of the class. /// - /// - /// Optional reference to a server-managed Credential resource by ID. - /// /// /// Direct string value for plain environment variables. /// + /// + /// Optional reference to a server-managed Credential resource by ID. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EnvVar( - string? credential, - string? value) + string? value, + string? credential) { - this.Credential = credential; this.Value = value; + this.Credential = credential; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment2.g.cs index 61030cb56..2c00a8ffc 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment2.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment2.g.cs @@ -8,21 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class Environment2 { - /// - /// Output only. The time at which the environment was created in ISO 8601 format
- /// (YYYY-MM-DDThh:mm:ssZ).
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("created")] - public string? Created { get; set; } - - /// - /// Output only. The number of files in the environment, output only.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("file_count")] - public string? FileCount { get; set; } - /// /// Required. Output only. The ID of the environment.
/// Included only in responses @@ -31,14 +16,6 @@ public sealed partial class Environment2 [global::System.Text.Json.Serialization.JsonPropertyName("id")] public string Id { get; set; } = default!; - /// - /// Output only. The time at which the environment was last accessed in ISO 8601 format
- /// (YYYY-MM-DDThh:mm:ssZ).
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("last_accessed")] - public string? LastAccessed { get; set; } - /// /// Network configuration for the environment. /// @@ -47,17 +24,34 @@ public sealed partial class Environment2 public global::Google.Gemini.NextGen.OneOf? Network { get; set; } /// - /// Output only. The total size of the environment files in bytes, output only.
+ /// Sources to be mounted into the environment. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sources")] + public global::System.Collections.Generic.IList? Sources { get; set; } + + /// + /// Output only. The time at which the environment was created in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("size_bytes")] - public string? SizeBytes { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("created")] + public string? Created { get; set; } /// - /// Sources to be mounted into the environment. + /// Output only. The time at which the environment was last updated in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sources")] - public global::System.Collections.Generic.IList? Sources { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updated")] + public string? Updated { get; set; } + + /// + /// Output only. The time at which the environment was last accessed in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("last_accessed")] + public string? LastAccessed { get; set; } /// /// Output only. The status of the environment container.
@@ -68,12 +62,18 @@ public sealed partial class Environment2 public global::Google.Gemini.NextGen.EnvironmentStatus? Status { get; set; } /// - /// Output only. The time at which the environment was last updated in ISO 8601 format
- /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Output only. The number of files in the environment, output only.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updated")] - public string? Updated { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("file_count")] + public string? FileCount { get; set; } + + /// + /// Output only. The total size of the environment files in bytes, output only.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("size_bytes")] + public string? SizeBytes { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -84,13 +84,20 @@ public sealed partial class Environment2 /// /// Initializes a new instance of the class. /// + /// + /// Network configuration for the environment. + /// + /// + /// Sources to be mounted into the environment. + /// /// /// Output only. The time at which the environment was created in ISO 8601 format
/// (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses /// - /// - /// Output only. The number of files in the environment, output only.
+ /// + /// Output only. The time at which the environment was last updated in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses /// /// @@ -98,23 +105,16 @@ public sealed partial class Environment2 /// (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses /// - /// - /// Network configuration for the environment. - /// - /// - /// Output only. The total size of the environment files in bytes, output only.
- /// Included only in responses - /// - /// - /// Sources to be mounted into the environment. - /// /// /// Output only. The status of the environment container.
/// Included only in responses /// - /// - /// Output only. The time at which the environment was last updated in ISO 8601 format
- /// (YYYY-MM-DDThh:mm:ssZ).
+ /// + /// 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 /// /// @@ -125,25 +125,25 @@ public sealed partial class Environment2 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Environment2( - string? created, - string? fileCount, - string? lastAccessed, global::Google.Gemini.NextGen.OneOf? network, - string? sizeBytes, global::System.Collections.Generic.IList? sources, - global::Google.Gemini.NextGen.EnvironmentStatus? status, + string? created, string? updated, + string? lastAccessed, + global::Google.Gemini.NextGen.EnvironmentStatus? status, + string? fileCount, + string? sizeBytes, string id = default!) { - this.Created = created; - this.FileCount = fileCount; this.Id = id; - this.LastAccessed = lastAccessed; this.Network = network; - this.SizeBytes = sizeBytes; this.Sources = sources; - this.Status = status; + this.Created = created; this.Updated = updated; + this.LastAccessed = lastAccessed; + this.Status = status; + this.FileCount = fileCount; + this.SizeBytes = sizeBytes; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment3.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment3.g.cs index 5ed323626..1e5c98c90 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment3.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Environment3.g.cs @@ -9,17 +9,11 @@ namespace Google.Gemini.NextGen public sealed partial class Environment3 { /// - /// Environment variables to set in the sandbox environment. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("env")] - public object? Env { get; set; } - - /// - /// Optional. The environment ID for the interaction. If specified, the request will
- /// update the existing environment instead of creating a new one. + /// ///
- [global::System.Text.Json.Serialization.JsonPropertyName("environment_id")] - public string? EnvironmentId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// Network configuration for the environment. @@ -35,11 +29,17 @@ public sealed partial class Environment3 public global::System.Collections.Generic.IList? Sources { get; set; } /// - /// + /// Optional. The environment ID for the interaction. If specified, the request will
+ /// update the existing environment instead of creating a new one. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("environment_id")] + public string? EnvironmentId { get; set; } + + /// + /// Environment variables to set in the sandbox environment. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("env")] + public object? Env { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -51,32 +51,32 @@ public sealed partial class Environment3 /// Initializes a new instance of the class. /// /// - /// - /// Environment variables to set in the sandbox environment. + /// + /// Network configuration for the environment. /// + /// /// /// Optional. The environment ID for the interaction. If specified, the request will
/// update the existing environment instead of creating a new one. /// - /// - /// Network configuration for the environment. + /// + /// Environment variables to set in the sandbox environment. /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Environment3( object type, - object? env, - string? environmentId, global::Google.Gemini.NextGen.OneOf? network, - global::System.Collections.Generic.IList? sources) + global::System.Collections.Generic.IList? sources, + string? environmentId, + object? env) { - this.Env = env; - this.EnvironmentId = environmentId; + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Network = network; this.Sources = sources; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.EnvironmentId = environmentId; + this.Env = env; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentFile.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentFile.g.cs index ffd5dd93e..594b2ee4a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentFile.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentFile.g.cs @@ -9,58 +9,58 @@ namespace Google.Gemini.NextGen public sealed partial class EnvironmentFile { /// - /// Output only. The creation time of the file/directory.
+ /// Output only. The name of the file or directory (e.g., "main.py" or "src").
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("created")] - public global::System.DateTime? Created { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// - /// Output only. The MIME type of the file (e.g., "text/python", "image/png").
- /// Empty for directories.
- /// NOLINT
+ /// Output only. The full relative path within the environment
+ /// (e.g., "workspace/src/main.py").
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] - public string? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("path")] + public string? Path { get; set; } /// - /// Output only. The modification time of the file/directory.
+ /// Output only. The type of the entry.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("modified")] - public global::System.DateTime? Modified { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentFileTypeJsonConverter))] + public global::Google.Gemini.NextGen.EnvironmentFileType? Type { get; set; } /// - /// Output only. The name of the file or directory (e.g., "main.py" or "src").
+ /// Output only. The size of the file/directory in bytes.
+ /// NOLINT
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("size_bytes")] + public string? SizeBytes { get; set; } /// - /// Output only. The full relative path within the environment
- /// (e.g., "workspace/src/main.py").
+ /// 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("path")] - public string? Path { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + public string? MimeType { get; set; } /// - /// Output only. The size of the file/directory in bytes.
- /// NOLINT
+ /// Output only. The creation 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("created")] + public global::System.DateTime? Created { get; set; } /// - /// Output only. The type of the entry.
+ /// Output only. The modification time of the file/directory.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentFileTypeJsonConverter))] - public global::Google.Gemini.NextGen.EnvironmentFileType? Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("modified")] + public global::System.DateTime? Modified { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -71,20 +71,6 @@ public sealed partial class EnvironmentFile /// /// Initializes a new instance of the class. /// - /// - /// Output only. The creation time of the file/directory.
- /// Included only in responses - /// - /// - /// Output only. The MIME type of the file (e.g., "text/python", "image/png").
- /// Empty for directories.
- /// NOLINT
- /// Included only in responses - /// - /// - /// Output only. The modification time of the file/directory.
- /// Included only in responses - /// /// /// Output only. The name of the file or directory (e.g., "main.py" or "src").
/// Included only in responses @@ -94,34 +80,48 @@ public sealed partial class EnvironmentFile /// (e.g., "workspace/src/main.py").
/// Included only in responses /// + /// + /// Output only. The type of the entry.
+ /// Included only in responses + /// /// /// Output only. The size of the file/directory in bytes.
/// NOLINT
/// Included only in responses /// - /// - /// Output only. The type of the entry.
+ /// + /// 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 creation time of the file/directory.
+ /// Included only in responses + /// + /// + /// Output only. The modification time of the file/directory.
/// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EnvironmentFile( - global::System.DateTime? created, - string? mimeType, - global::System.DateTime? modified, string? name, string? path, + global::Google.Gemini.NextGen.EnvironmentFileType? type, string? sizeBytes, - global::Google.Gemini.NextGen.EnvironmentFileType? type) + string? mimeType, + global::System.DateTime? created, + global::System.DateTime? modified) { - this.Created = created; - this.MimeType = mimeType; - this.Modified = modified; this.Name = name; this.Path = path; - this.SizeBytes = sizeBytes; this.Type = type; + this.SizeBytes = sizeBytes; + this.MimeType = mimeType; + this.Created = created; + this.Modified = modified; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentVariableConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentVariableConfig.g.cs index 809b1daee..9c7cd0ded 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentVariableConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentVariableConfig.g.cs @@ -9,11 +9,12 @@ namespace Google.Gemini.NextGen public sealed partial class EnvironmentVariableConfig { /// - /// + /// Required. Input only. Secret value of the environment variable. Write-only; never
+ /// returned in responses.
+ /// Included only in requests ///
- [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + public string? Value { get; set; } /// /// Required. Locations where the environment variable can be injected in
@@ -26,11 +27,11 @@ public sealed partial class EnvironmentVariableConfig public required global::Google.Gemini.NextGen.OneOf> InjectionLocation { get; set; } /// - /// Optional. List of domains allowed to receive this environment variable
- /// value in HTTP requests. + /// ///
- [global::System.Text.Json.Serialization.JsonPropertyName("trusted_domains")] - public global::System.Collections.Generic.IList? TrustedDomains { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } /// /// @@ -40,12 +41,11 @@ public sealed partial class EnvironmentVariableConfig public required object Type { get; set; } /// - /// Required. Input only. Secret value of the environment variable. Write-only; never
- /// returned in responses.
- /// Included only in requests + /// Optional. List of domains allowed to receive this environment variable
+ /// value in HTTP requests. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("value")] - public string? Value { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("trusted_domains")] + public global::System.Collections.Generic.IList? TrustedDomains { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -56,37 +56,37 @@ public sealed partial class EnvironmentVariableConfig /// /// Initializes a new instance of the class. /// - /// /// /// Required. Locations where the environment variable can be injected in
/// outgoing HTTP requests. Must contain at least one location.
/// Accepts either a single location (e.g. "header") or an array of locations. /// + /// /// - /// - /// Optional. List of domains allowed to receive this environment variable
- /// value in HTTP requests. - /// /// /// Required. Input only. Secret value of the environment variable. Write-only; never
/// returned in responses.
/// Included only in requests /// + /// + /// Optional. List of domains allowed to receive this environment variable
+ /// value in HTTP requests. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EnvironmentVariableConfig( - string id, global::Google.Gemini.NextGen.OneOf> injectionLocation, + string id, object type, - global::System.Collections.Generic.IList? trustedDomains, - string? value) + string? value, + global::System.Collections.Generic.IList? trustedDomains) { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Value = value; this.InjectionLocation = injectionLocation; - this.TrustedDomains = trustedDomains; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.Value = value; + this.TrustedDomains = trustedDomains; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentVariableUpdateConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentVariableUpdateConfig.g.cs index e283b0ae0..cadb761ae 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentVariableUpdateConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentVariableUpdateConfig.g.cs @@ -8,22 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class EnvironmentVariableUpdateConfig { - /// - /// Optional. Locations where the environment variable can be injected in
- /// outgoing HTTP requests.
- /// Accepts either a single location (e.g. "header") or an array of locations. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("injection_location")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] - public global::Google.Gemini.NextGen.OneOf>? InjectionLocation { get; set; } - - /// - /// Optional. List of domains allowed to receive this environment variable
- /// value in HTTP requests. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("trusted_domains")] - public global::System.Collections.Generic.IList? TrustedDomains { get; set; } - /// /// /// @@ -39,6 +23,22 @@ public sealed partial class EnvironmentVariableUpdateConfig [global::System.Text.Json.Serialization.JsonPropertyName("value")] public string? Value { get; set; } + /// + /// Optional. List of domains allowed to receive this environment variable
+ /// value in HTTP requests. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("trusted_domains")] + public global::System.Collections.Generic.IList? TrustedDomains { get; set; } + + /// + /// Optional. Locations where the environment variable can be injected in
+ /// outgoing HTTP requests.
+ /// Accepts either a single location (e.g. "header") or an array of locations. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("injection_location")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] + public global::Google.Gemini.NextGen.OneOf>? InjectionLocation { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -49,33 +49,33 @@ public sealed partial class EnvironmentVariableUpdateConfig /// Initializes a new instance of the class. ///
/// - /// - /// Optional. Locations where the environment variable can be injected in
- /// outgoing HTTP requests.
- /// Accepts either a single location (e.g. "header") or an array of locations. + /// + /// Optional. Input only. Secret value of the environment variable. Write-only; never
+ /// returned in responses.
+ /// Included only in requests /// /// /// Optional. List of domains allowed to receive this environment variable
/// value in HTTP requests. /// - /// - /// Optional. Input only. Secret value of the environment variable. Write-only; never
- /// returned in responses.
- /// Included only in requests + /// + /// Optional. Locations where the environment variable can be injected in
+ /// outgoing HTTP requests.
+ /// Accepts either a single location (e.g. "header") or an array of locations. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EnvironmentVariableUpdateConfig( object type, - global::Google.Gemini.NextGen.OneOf>? injectionLocation, + string? value, global::System.Collections.Generic.IList? trustedDomains, - string? value) + global::Google.Gemini.NextGen.OneOf>? injectionLocation) { - this.InjectionLocation = injectionLocation; - this.TrustedDomains = trustedDomains; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Value = value; + this.TrustedDomains = trustedDomains; + this.InjectionLocation = injectionLocation; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ErrorEvent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ErrorEvent.g.cs index 1081d5da1..dc8fc359c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ErrorEvent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ErrorEvent.g.cs @@ -8,6 +8,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class ErrorEvent { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object EventType { get; set; } + /// /// Error message from an interaction. /// @@ -21,13 +28,6 @@ public sealed partial class ErrorEvent [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] public string? EventId { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("event_type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object EventType { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -53,9 +53,9 @@ public ErrorEvent( global::Google.Gemini.NextGen.Error? error, string? eventId) { + this.EventType = eventType ?? throw new global::System.ArgumentNullException(nameof(eventType)); this.Error = error; this.EventId = eventId; - this.EventType = eventType ?? throw new global::System.ArgumentNullException(nameof(eventType)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileCitation.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileCitation.g.cs index 34c64db85..59e372984 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileCitation.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileCitation.g.cs @@ -9,10 +9,11 @@ namespace Google.Gemini.NextGen public sealed partial class FileCitation { /// - /// User provided metadata about the retrieved context. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("custom_metadata")] - public object? CustomMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// The URI of the file. @@ -20,12 +21,6 @@ public sealed partial class FileCitation [global::System.Text.Json.Serialization.JsonPropertyName("document_uri")] public string? DocumentUri { get; set; } - /// - /// End of the attributed segment, exclusive. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("end_index")] - public int? EndIndex { get; set; } - /// /// The name of the file. /// @@ -33,10 +28,16 @@ public sealed partial class FileCitation public string? FileName { get; set; } /// - /// Media ID in-case of image citations, if applicable. + /// Source attributed for a portion of the text. /// - [global::System.Text.Json.Serialization.JsonPropertyName("media_id")] - public string? MediaId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + public string? Source { get; set; } + + /// + /// User provided metadata about the retrieved context. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("custom_metadata")] + public object? CustomMetadata { get; set; } /// /// Page number of the cited document, if applicable. @@ -45,10 +46,10 @@ public sealed partial class FileCitation public int? PageNumber { get; set; } /// - /// Source attributed for a portion of the text. + /// Media ID in-case of image citations, if applicable. /// - [global::System.Text.Json.Serialization.JsonPropertyName("source")] - public string? Source { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("media_id")] + public string? MediaId { get; set; } /// /// Start of segment of the response that is attributed to this source.
@@ -58,11 +59,10 @@ public sealed partial class FileCitation public int? StartIndex { get; set; } /// - /// + /// End of the attributed segment, exclusive. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("end_index")] + public int? EndIndex { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -74,54 +74,54 @@ public sealed partial class FileCitation /// Initializes a new instance of the class. /// /// - /// - /// User provided metadata about the retrieved context. - /// /// /// The URI of the file. /// - /// - /// End of the attributed segment, exclusive. - /// /// /// The name of the file. /// - /// - /// Media ID in-case of image citations, if applicable. + /// + /// Source attributed for a portion of the text. + /// + /// + /// User provided metadata about the retrieved context. /// /// /// Page number of the cited document, if applicable. /// - /// - /// Source attributed for a portion of the text. + /// + /// Media ID in-case of image citations, if applicable. /// /// /// Start of segment of the response that is attributed to this source.
/// Index indicates the start of the segment, measured in bytes. /// + /// + /// End of the attributed segment, exclusive. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FileCitation( object type, - object? customMetadata, string? documentUri, - int? endIndex, string? fileName, - string? mediaId, - int? pageNumber, string? source, - int? startIndex) + object? customMetadata, + int? pageNumber, + string? mediaId, + int? startIndex, + int? endIndex) { - this.CustomMetadata = customMetadata; + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.DocumentUri = documentUri; - this.EndIndex = endIndex; this.FileName = fileName; - this.MediaId = mediaId; - this.PageNumber = pageNumber; this.Source = source; + this.CustomMetadata = customMetadata; + this.PageNumber = pageNumber; + this.MediaId = mediaId; this.StartIndex = startIndex; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.EndIndex = endIndex; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileContent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileContent.g.cs index d91bef318..5fab2a83e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileContent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileContent.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini.NextGen /// public sealed partial class FileContent { - /// - /// The UTF-8 encoded text content of the file. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public string? Content { get; set; } - /// /// The relative path of the file from the project root. /// [global::System.Text.Json.Serialization.JsonPropertyName("path")] public string? Path { get; set; } + /// + /// The UTF-8 encoded text content of the file. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public string? Content { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class FileContent /// /// Initializes a new instance of the class. /// - /// - /// The UTF-8 encoded text content of the file. - /// /// /// The relative path of the file from the project root. /// + /// + /// The UTF-8 encoded text content of the file. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FileContent( - string? content, - string? path) + string? path, + string? content) { - this.Content = content; this.Path = path; + this.Content = content; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearch.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearch.g.cs index 4d45cc82d..980e085bf 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearch.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearch.g.cs @@ -9,16 +9,17 @@ namespace Google.Gemini.NextGen public sealed partial class FileSearch { /// - /// The file search store names to search. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("file_search_store_names")] - public global::System.Collections.Generic.IList? FileSearchStoreNames { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// - /// Metadata filter to apply to the semantic retrieval documents and chunks. + /// The file search store names to search. /// - [global::System.Text.Json.Serialization.JsonPropertyName("metadata_filter")] - public string? MetadataFilter { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("file_search_store_names")] + public global::System.Collections.Generic.IList? FileSearchStoreNames { get; set; } /// /// The number of semantic retrieval chunks to retrieve. @@ -27,11 +28,10 @@ public sealed partial class FileSearch public int? TopK { get; set; } /// - /// + /// Metadata filter to apply to the semantic retrieval documents and chunks. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("metadata_filter")] + public string? MetadataFilter { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -46,25 +46,25 @@ public sealed partial class FileSearch /// /// The file search store names to search. /// - /// - /// Metadata filter to apply to the semantic retrieval documents and chunks. - /// /// /// The number of semantic retrieval chunks to retrieve. /// + /// + /// Metadata filter to apply to the semantic retrieval documents and chunks. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FileSearch( object type, global::System.Collections.Generic.IList? fileSearchStoreNames, - string? metadataFilter, - int? topK) + int? topK, + string? metadataFilter) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.FileSearchStoreNames = fileSearchStoreNames; - this.MetadataFilter = metadataFilter; this.TopK = topK; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.MetadataFilter = metadataFilter; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchCallDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchCallDelta.g.cs index 4f67ca78d..44da2019a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchCallDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchCallDelta.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class FileSearchCallDelta { - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - /// /// /// @@ -21,6 +15,12 @@ public sealed partial class FileSearchCallDelta [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// A signature hash for backend validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,8 +41,8 @@ public FileSearchCallDelta( object type, byte[]? signature) { - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchCallStep.g.cs index 967f967ab..cb1ff5e99 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchCallStep.g.cs @@ -16,12 +16,6 @@ public sealed partial class FileSearchCallStep [global::System.Text.Json.Serialization.JsonRequired] public required string Id { get; set; } - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - /// /// /// @@ -29,6 +23,12 @@ public sealed partial class FileSearchCallStep [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// A signature hash for backend validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -54,8 +54,8 @@ public FileSearchCallStep( byte[]? signature) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchResultDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchResultDelta.g.cs index 27e059c0a..2eeee5c60 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchResultDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchResultDelta.g.cs @@ -15,12 +15,6 @@ public sealed partial class FileSearchResultDelta [global::System.Text.Json.Serialization.JsonRequired] public required global::System.Collections.Generic.IList Result { get; set; } - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - /// /// /// @@ -28,6 +22,12 @@ public sealed partial class FileSearchResultDelta [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// A signature hash for backend validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -51,8 +51,8 @@ public FileSearchResultDelta( byte[]? signature) { this.Result = result ?? throw new global::System.ArgumentNullException(nameof(result)); - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchResultStep.g.cs index 125a15838..4a3799f0d 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FileSearchResultStep.g.cs @@ -16,12 +16,6 @@ public sealed partial class FileSearchResultStep [global::System.Text.Json.Serialization.JsonRequired] public required string CallId { get; set; } - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - /// /// /// @@ -29,6 +23,12 @@ public sealed partial class FileSearchResultStep [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// A signature hash for backend validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -54,8 +54,8 @@ public FileSearchResultStep( byte[]? signature) { this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Filter.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Filter.g.cs index bca60e862..0369f2faf 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Filter.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Filter.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class Filter { - /// - /// Optional. String for metadata filtering. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("metadata_filter")] - public string? MetadataFilter { get; set; } - /// /// Optional. Only returns contexts with vector distance smaller than the
/// threshold. @@ -28,6 +22,12 @@ public sealed partial class Filter [global::System.Text.Json.Serialization.JsonPropertyName("vector_similarity_threshold")] public double? VectorSimilarityThreshold { get; set; } + /// + /// Optional. String for metadata filtering. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata_filter")] + public string? MetadataFilter { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -37,9 +37,6 @@ public sealed partial class Filter /// /// Initializes a new instance of the class. /// - /// - /// Optional. String for metadata filtering. - /// /// /// Optional. Only returns contexts with vector distance smaller than the
/// threshold. @@ -48,17 +45,20 @@ public sealed partial class Filter /// Optional. Only returns contexts with vector similarity larger than the
/// threshold. /// + /// + /// Optional. String for metadata filtering. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Filter( - string? metadataFilter, double? vectorDistanceThreshold, - double? vectorSimilarityThreshold) + double? vectorSimilarityThreshold, + string? metadataFilter) { - this.MetadataFilter = metadataFilter; this.VectorDistanceThreshold = vectorDistanceThreshold; this.VectorSimilarityThreshold = vectorSimilarityThreshold; + this.MetadataFilter = metadataFilter; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequest.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequest.g.cs index 445ba084b..4b4344b7c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequest.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FindRequest.g.cs @@ -10,11 +10,10 @@ namespace Google.Gemini.NextGen public sealed partial class FindRequest { /// - /// Additional context or custom instructions provided by the user to guide
- /// the vulnerability analysis. + /// A list of source files to provide as context for the scan. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("source_files")] + public global::System.Collections.Generic.IList? SourceFiles { get; set; } /// /// The identifier of a specific finding to verify. This is primarily used in
@@ -24,6 +23,13 @@ public sealed partial class FindRequest [global::System.Text.Json.Serialization.JsonPropertyName("finding_id")] public string? FindingId { get; set; } + /// + /// Additional context or custom instructions provided by the user to guide
+ /// the vulnerability analysis. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } + /// /// The mode of the find session. /// @@ -31,12 +37,6 @@ public sealed partial class FindRequest [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.FindRequestModeJsonConverter))] public global::Google.Gemini.NextGen.FindRequestMode? Mode { get; set; } - /// - /// A list of source files to provide as context for the scan. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("source_files")] - public global::System.Collections.Generic.IList? SourceFiles { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -46,34 +46,34 @@ public sealed partial class FindRequest /// /// Initializes a new instance of the class. /// - /// - /// Additional context or custom instructions provided by the user to guide
- /// the vulnerability analysis. + /// + /// A list of source files to provide as context for the scan. /// /// /// The identifier of a specific finding to verify. This is primarily used in
/// VERIFY mode to focus the agent's execution-based validation on a single
/// vulnerability. /// + /// + /// Additional context or custom instructions provided by the user to guide
+ /// the vulnerability analysis. + /// /// /// The mode of the find session. /// - /// - /// A list of source files to provide as context for the scan. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FindRequest( - string? description, + global::System.Collections.Generic.IList? sourceFiles, string? findingId, - global::Google.Gemini.NextGen.FindRequestMode? mode, - global::System.Collections.Generic.IList? sourceFiles) + string? description, + global::Google.Gemini.NextGen.FindRequestMode? mode) { - this.Description = description; + this.SourceFiles = sourceFiles; this.FindingId = findingId; + this.Description = description; this.Mode = mode; - this.SourceFiles = sourceFiles; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FixRequest.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FixRequest.g.cs index 63cbc6300..9ffedb85b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FixRequest.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FixRequest.g.cs @@ -10,11 +10,11 @@ namespace Google.Gemini.NextGen public sealed partial class FixRequest { /// - /// Additional context or custom instructions provided by the user to guide
- /// the patch generation process. + /// A list of source files providing context for the remediation. These files
+ /// are typically the ones containing the identified vulnerability. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("source_files")] + public global::System.Collections.Generic.IList? SourceFiles { get; set; } /// /// The identifier of the specific security finding to be remediated. This ID
@@ -24,11 +24,11 @@ public sealed partial class FixRequest public string? FindingId { get; set; } /// - /// A list of source files providing context for the remediation. These files
- /// are typically the ones containing the identified vulnerability. + /// Additional context or custom instructions provided by the user to guide
+ /// the patch generation process. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("source_files")] - public global::System.Collections.Generic.IList? SourceFiles { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -39,29 +39,29 @@ public sealed partial class FixRequest /// /// Initializes a new instance of the class. /// - /// - /// Additional context or custom instructions provided by the user to guide
- /// the patch generation process. + /// + /// A list of source files providing context for the remediation. These files
+ /// are typically the ones containing the identified vulnerability. /// /// /// The identifier of the specific security finding to be remediated. This ID
/// maps to a previously discovered vulnerability. /// - /// - /// A list of source files providing context for the remediation. These files
- /// are typically the ones containing the identified vulnerability. + /// + /// Additional context or custom instructions provided by the user to guide
+ /// the patch generation process. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FixRequest( - string? description, + global::System.Collections.Generic.IList? sourceFiles, string? findingId, - global::System.Collections.Generic.IList? sourceFiles) + string? description) { - this.Description = description; - this.FindingId = findingId; this.SourceFiles = sourceFiles; + this.FindingId = findingId; + this.Description = description; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Function.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Function.g.cs index ff8e0a78f..e6de8c377 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Function.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Function.g.cs @@ -9,10 +9,11 @@ namespace Google.Gemini.NextGen public sealed partial class Function { /// - /// A description of the function. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// The name of the function. @@ -21,17 +22,19 @@ public sealed partial class Function public string? Name { get; set; } /// - /// The JSON Schema for the function's parameters. + /// A description of the function. /// - [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] - public object? Parameters { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } /// - /// + /// The JSON Schema for the function's parameters.
+ /// Supports a subset of JSON Schema. `minLength`, `maxLength`,
+ /// `minProperties`, `maxProperties`, `uniqueItems`, `contains`,
+ /// `minContains`, and `maxContains` are ignored and not enforced. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] + public object? Parameters { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -43,28 +46,31 @@ public sealed partial class Function /// Initializes a new instance of the class. /// /// - /// - /// A description of the function. - /// /// /// The name of the function. /// + /// + /// A description of the function. + /// /// - /// The JSON Schema for the function's parameters. + /// The JSON Schema for the function's parameters.
+ /// Supports a subset of JSON Schema. `minLength`, `maxLength`,
+ /// `minProperties`, `maxProperties`, `uniqueItems`, `contains`,
+ /// `minContains`, and `maxContains` are ignored and not enforced. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Function( object type, - string? description, string? name, + string? description, object? parameters) { - this.Description = description; + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Name = name; + this.Description = description; this.Parameters = parameters; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionCallStep.g.cs index 8adf3b60e..e475f795d 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionCallStep.g.cs @@ -9,6 +9,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class FunctionCallStep { + /// + /// Required. The name of the tool to call. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + /// /// Required. The arguments to pass to the function. /// @@ -23,13 +30,6 @@ public sealed partial class FunctionCallStep [global::System.Text.Json.Serialization.JsonRequired] public required string Id { get; set; } - /// - /// Required. The name of the tool to call. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } - /// /// /// @@ -46,28 +46,28 @@ public sealed partial class FunctionCallStep /// /// Initializes a new instance of the class. /// + /// + /// Required. The name of the tool to call. + /// /// /// Required. The arguments to pass to the function. /// /// /// Required. A unique ID for this specific tool call. /// - /// - /// Required. The name of the tool to call. - /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionCallStep( + string name, object arguments, string id, - string name, object type) { + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionParameters.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionParameters.g.cs index 72a6be95d..64252961e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionParameters.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionParameters.g.cs @@ -4,7 +4,10 @@ namespace Google.Gemini.NextGen { /// - /// The JSON Schema for the function's parameters. + /// The JSON Schema for the function's parameters.
+ /// Supports a subset of JSON Schema. `minLength`, `maxLength`,
+ /// `minProperties`, `maxProperties`, `uniqueItems`, `contains`,
+ /// `minContains`, and `maxContains` are ignored and not enforced. ///
public sealed partial class FunctionParameters { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultDelta.g.cs index cb20b1013..270e2932a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultDelta.g.cs @@ -11,29 +11,29 @@ public sealed partial class FunctionResultDelta /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] - public bool? IsError { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, object, string>))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Google.Gemini.NextGen.OneOf>, object, string> Result { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, object, string>))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.OneOf>, object, string> Result { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] + public bool? IsError { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -46,21 +46,21 @@ public sealed partial class FunctionResultDelta /// /// /// - /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionResultDelta( global::Google.Gemini.NextGen.OneOf>, object, string> result, object type, - bool? isError, - string? name) + string? name, + bool? isError) { - this.IsError = isError; - this.Name = name; this.Result = result; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Name = name; + this.IsError = isError; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultStep.g.cs index 11615148a..4ddb1bf91 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultStep.g.cs @@ -9,6 +9,14 @@ namespace Google.Gemini.NextGen /// public sealed partial class FunctionResultStep { + /// + /// Required. The result of the tool call. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, object, string>))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Google.Gemini.NextGen.OneOf>, object, string> Result { get; set; } + /// /// Required. ID to match the ID from the function call block. /// @@ -17,10 +25,11 @@ public sealed partial class FunctionResultStep public required string CallId { get; set; } /// - /// Whether the tool call resulted in an error. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] - public bool? IsError { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// The name of the tool that was called. @@ -29,19 +38,10 @@ public sealed partial class FunctionResultStep public string? Name { get; set; } /// - /// Required. The result of the tool call. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, object, string>))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.OneOf>, object, string> Result { get; set; } - - /// - /// + /// Whether the tool call resulted in an error. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] + public bool? IsError { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -52,34 +52,34 @@ public sealed partial class FunctionResultStep /// /// Initializes a new instance of the class. /// - /// - /// Required. ID to match the ID from the function call block. - /// /// /// Required. The result of the tool call. /// - /// - /// - /// Whether the tool call resulted in an error. + /// + /// Required. ID to match the ID from the function call block. /// + /// /// /// The name of the tool that was called. /// + /// + /// Whether the tool call resulted in an error. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionResultStep( - string callId, global::Google.Gemini.NextGen.OneOf>, object, string> result, + string callId, object type, - bool? isError, - string? name) + string? name, + bool? isError) { - this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); - this.IsError = isError; - this.Name = name; this.Result = result; + this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Name = name; + this.IsError = isError; } /// 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 7edacbe35..0db3dfc4c 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 @@ -11,17 +11,25 @@ namespace Google.Gemini.NextGen public sealed partial class GenerationConfig { /// - /// The configuration for image interaction. + /// The tool choice configuration. /// - [global::System.Text.Json.Serialization.JsonPropertyName("image_config")] + [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? ToolChoice { get; set; } + + /// + /// Controls the randomness of the output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] [global::System.Obsolete("This property marked as deprecated.")] - public global::Google.Gemini.NextGen.ImageConfig? ImageConfig { get; set; } + public float? Temperature { get; set; } /// - /// The maximum number of tokens to include in the response. + /// The maximum cumulative probability of tokens to consider when sampling. /// - [global::System.Text.Json.Serialization.JsonPropertyName("max_output_tokens")] - public int? MaxOutputTokens { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("top_p")] + [global::System.Obsolete("This property marked as deprecated.")] + public float? TopP { get; set; } /// /// Seed used in decoding for reproducibility. @@ -29,26 +37,12 @@ public sealed partial class GenerationConfig [global::System.Text.Json.Serialization.JsonPropertyName("seed")] public int? Seed { get; set; } - /// - /// Optional. Speech and multi-speaker configuration. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("speech_config")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] - public global::Google.Gemini.NextGen.OneOf>? SpeechConfig { get; set; } - /// /// A list of character sequences that will stop output interaction. /// [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; } - /// /// /// @@ -64,18 +58,23 @@ public sealed partial class GenerationConfig public global::Google.Gemini.NextGen.ThinkingSummaries? ThinkingSummaries { get; set; } /// - /// The tool choice configuration. + /// The maximum number of tokens to include in the response. /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? ToolChoice { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("max_output_tokens")] + public int? MaxOutputTokens { get; set; } /// - /// The maximum cumulative probability of tokens to consider when sampling. + /// The configuration for image interaction. /// - [global::System.Text.Json.Serialization.JsonPropertyName("top_p")] + [global::System.Text.Json.Serialization.JsonPropertyName("image_config")] [global::System.Obsolete("This property marked as deprecated.")] - public float? TopP { get; set; } + public global::Google.Gemini.NextGen.ImageConfig? ImageConfig { get; set; } + + /// + /// Configuration options for video generation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("video_config")] + public global::Google.Gemini.NextGen.VideoConfig? VideoConfig { get; set; } /// /// Configuration for speech recognition (transcription). @@ -84,10 +83,11 @@ public sealed partial class GenerationConfig public global::Google.Gemini.NextGen.TranscriptionConfig? TranscriptionConfig { get; set; } /// - /// Configuration options for video generation. + /// Optional. Speech and multi-speaker configuration. /// - [global::System.Text.Json.Serialization.JsonPropertyName("video_config")] - public global::Google.Gemini.NextGen.VideoConfig? VideoConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("speech_config")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] + public global::Google.Gemini.NextGen.OneOf>? SpeechConfig { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -98,52 +98,52 @@ public sealed partial class GenerationConfig /// /// Initializes a new instance of the class. /// - /// - /// The maximum number of tokens to include in the response. + /// + /// The tool choice configuration. /// /// /// Seed used in decoding for reproducibility. /// - /// - /// Optional. Speech and multi-speaker configuration. - /// /// /// A list of character sequences that will stop output interaction. /// /// /// - /// - /// The tool choice configuration. + /// + /// The maximum number of tokens to include in the response. + /// + /// + /// Configuration options for video generation. /// /// /// Configuration for speech recognition (transcription). /// - /// - /// Configuration options for video generation. + /// + /// Optional. Speech and multi-speaker configuration. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerationConfig( - int? maxOutputTokens, + global::Google.Gemini.NextGen.OneOf? toolChoice, int? seed, - global::Google.Gemini.NextGen.OneOf>? speechConfig, global::System.Collections.Generic.IList? stopSequences, global::Google.Gemini.NextGen.ThinkingLevel? thinkingLevel, global::Google.Gemini.NextGen.ThinkingSummaries? thinkingSummaries, - global::Google.Gemini.NextGen.OneOf? toolChoice, + int? maxOutputTokens, + global::Google.Gemini.NextGen.VideoConfig? videoConfig, global::Google.Gemini.NextGen.TranscriptionConfig? transcriptionConfig, - global::Google.Gemini.NextGen.VideoConfig? videoConfig) + global::Google.Gemini.NextGen.OneOf>? speechConfig) { - this.MaxOutputTokens = maxOutputTokens; + this.ToolChoice = toolChoice; this.Seed = seed; - this.SpeechConfig = speechConfig; this.StopSequences = stopSequences; this.ThinkingLevel = thinkingLevel; this.ThinkingSummaries = thinkingSummaries; - this.ToolChoice = toolChoice; - this.TranscriptionConfig = transcriptionConfig; + this.MaxOutputTokens = maxOutputTokens; this.VideoConfig = videoConfig; + this.TranscriptionConfig = transcriptionConfig; + this.SpeechConfig = speechConfig; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GetInteractionRequest.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GetInteractionRequest.g.cs index 9101c7c91..73d96744d 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GetInteractionRequest.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GetInteractionRequest.g.cs @@ -10,20 +10,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class GetInteractionRequest { - /// - /// If true, includes the input in the response. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("include_input")] - [global::System.Obsolete("This property marked as deprecated.")] - public bool? IncludeInput { get; set; } - - /// - /// If set, resumes the interaction stream from the chunk after the event
- /// marked by the event id. Can only be used if `stream` is true. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("last_event_id")] - public string? LastEventId { get; set; } - /// /// Required. The name of the interaction to retrieve.
/// Format: interactions/{interaction} @@ -38,6 +24,20 @@ public sealed partial class GetInteractionRequest [global::System.Text.Json.Serialization.JsonPropertyName("stream")] public bool? Stream { get; set; } + /// + /// If set, resumes the interaction stream from the chunk after the event
+ /// marked by the event id. Can only be used if `stream` is true. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("last_event_id")] + public string? LastEventId { get; set; } + + /// + /// If true, includes the input in the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("include_input")] + [global::System.Obsolete("This property marked as deprecated.")] + public bool? IncludeInput { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -51,24 +51,24 @@ public sealed partial class GetInteractionRequest /// Required. The name of the interaction to retrieve.
/// Format: interactions/{interaction} /// + /// + /// If true, streams the interaction events as Server-Sent Events. + /// /// /// If set, resumes the interaction stream from the chunk after the event
/// marked by the event id. Can only be used if `stream` is true. /// - /// - /// If true, streams the interaction events as Server-Sent Events. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetInteractionRequest( string name, - string? lastEventId, - bool? stream) + bool? stream, + string? lastEventId) { - this.LastEventId = lastEventId; this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.Stream = stream; + this.LastEventId = lastEventId; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMaps.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMaps.g.cs index 1605cd133..c046b239d 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMaps.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMaps.g.cs @@ -8,6 +8,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class GoogleMaps { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + /// /// Whether to return a widget context token in the tool call result of the
/// response. @@ -27,13 +34,6 @@ public sealed partial class GoogleMaps [global::System.Text.Json.Serialization.JsonPropertyName("longitude")] public double? Longitude { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -63,10 +63,10 @@ public GoogleMaps( double? latitude, double? longitude) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.EnableWidget = enableWidget; this.Latitude = latitude; this.Longitude = longitude; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsCallDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsCallDelta.g.cs index 3e59ac470..7b0f81fbb 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsCallDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsCallDelta.g.cs @@ -8,6 +8,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class GoogleMapsCallDelta { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + /// /// The arguments to pass to the Google Maps tool. /// @@ -20,13 +27,6 @@ public sealed partial class GoogleMapsCallDelta [global::System.Text.Json.Serialization.JsonPropertyName("signature")] public byte[]? Signature { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -51,9 +51,9 @@ public GoogleMapsCallDelta( global::Google.Gemini.NextGen.GoogleMapsCallArguments? arguments, byte[]? signature) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Arguments = arguments; this.Signature = signature; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsCallStep.g.cs index ed3fc2ae7..65ada2262 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsCallStep.g.cs @@ -9,12 +9,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class GoogleMapsCallStep { - /// - /// The arguments to pass to the Google Maps tool. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] - public global::Google.Gemini.NextGen.GoogleMapsCallArguments2? GoogleMapsCallArguments { get; set; } - /// /// Required. A unique ID for this specific tool call. /// @@ -22,12 +16,6 @@ public sealed partial class GoogleMapsCallStep [global::System.Text.Json.Serialization.JsonRequired] public required string Id { get; set; } - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - /// /// /// @@ -35,6 +23,18 @@ public sealed partial class GoogleMapsCallStep [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// The arguments to pass to the Google Maps tool. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] + public global::Google.Gemini.NextGen.GoogleMapsCallArguments2? GoogleMapsCallArguments { get; set; } + + /// + /// A signature hash for backend validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -63,10 +63,10 @@ public GoogleMapsCallStep( global::Google.Gemini.NextGen.GoogleMapsCallArguments2? googleMapsCallArguments, byte[]? signature) { - this.GoogleMapsCallArguments = googleMapsCallArguments; this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.GoogleMapsCallArguments = googleMapsCallArguments; + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultDelta.g.cs index 53b796e05..5b8363419 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultDelta.g.cs @@ -8,6 +8,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class GoogleMapsResultDelta { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + /// /// The results of the Google Maps. /// @@ -20,13 +27,6 @@ public sealed partial class GoogleMapsResultDelta [global::System.Text.Json.Serialization.JsonPropertyName("signature")] public byte[]? Signature { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -51,9 +51,9 @@ public GoogleMapsResultDelta( global::System.Collections.Generic.IList? result, byte[]? signature) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Result = result; this.Signature = signature; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultPlaces.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultPlaces.g.cs index ed7a2b12f..370497dca 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultPlaces.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultPlaces.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class GoogleMapsResultPlaces { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - /// /// /// @@ -23,8 +17,8 @@ public sealed partial class GoogleMapsResultPlaces /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("review_snippets")] - public global::System.Collections.Generic.IList? ReviewSnippets { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// @@ -32,6 +26,12 @@ public sealed partial class GoogleMapsResultPlaces [global::System.Text.Json.Serialization.JsonPropertyName("url")] public string? Url { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("review_snippets")] + public global::System.Collections.Generic.IList? ReviewSnippets { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,23 +41,23 @@ public sealed partial class GoogleMapsResultPlaces /// /// Initializes a new instance of the class. /// - /// /// - /// + /// /// + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GoogleMapsResultPlaces( - string? name, string? placeId, - global::System.Collections.Generic.IList? reviewSnippets, - string? url) + string? name, + string? url, + global::System.Collections.Generic.IList? reviewSnippets) { - this.Name = name; this.PlaceId = placeId; - this.ReviewSnippets = reviewSnippets; + this.Name = name; this.Url = url; + this.ReviewSnippets = reviewSnippets; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultStep.g.cs index d4bf940ef..3513335b7 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleMapsResultStep.g.cs @@ -9,6 +9,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class GoogleMapsResultStep { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Result { get; set; } + /// /// Required. ID to match the ID from the function call block. /// @@ -19,9 +26,9 @@ public sealed partial class GoogleMapsResultStep /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Result { get; set; } + public required object Type { get; set; } /// /// A signature hash for backend validation. @@ -29,13 +36,6 @@ public sealed partial class GoogleMapsResultStep [global::System.Text.Json.Serialization.JsonPropertyName("signature")] public byte[]? Signature { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,10 +45,10 @@ public sealed partial class GoogleMapsResultStep /// /// Initializes a new instance of the class. /// + /// /// /// Required. ID to match the ID from the function call block. /// - /// /// /// /// A signature hash for backend validation. @@ -57,15 +57,15 @@ public sealed partial class GoogleMapsResultStep [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GoogleMapsResultStep( - string callId, global::System.Collections.Generic.IList result, + string callId, object type, byte[]? signature) { - this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); this.Result = result ?? throw new global::System.ArgumentNullException(nameof(result)); - this.Signature = signature; + this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearch.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearch.g.cs index 07049133c..94ec5f4a2 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearch.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearch.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class GoogleSearch { - /// - /// The types of search grounding to enable. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("search_types")] - public global::System.Collections.Generic.IList? SearchTypes { get; set; } - /// /// /// @@ -21,6 +15,12 @@ public sealed partial class GoogleSearch [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// The types of search grounding to enable. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("search_types")] + public global::System.Collections.Generic.IList? SearchTypes { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,8 +41,8 @@ public GoogleSearch( object type, global::System.Collections.Generic.IList? searchTypes) { - this.SearchTypes = searchTypes; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.SearchTypes = searchTypes; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallDelta.g.cs index b02d5200a..8f092ef2b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallDelta.g.cs @@ -15,12 +15,6 @@ public sealed partial class GoogleSearchCallDelta [global::System.Text.Json.Serialization.JsonRequired] public required global::Google.Gemini.NextGen.GoogleSearchCallArguments Arguments { get; set; } - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - /// /// /// @@ -28,6 +22,12 @@ public sealed partial class GoogleSearchCallDelta [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// A signature hash for backend validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -53,8 +53,8 @@ public GoogleSearchCallDelta( byte[]? signature) { this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallStep.g.cs index 53245ef92..8e8de8e69 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchCallStep.g.cs @@ -23,6 +23,13 @@ public sealed partial class GoogleSearchCallStep [global::System.Text.Json.Serialization.JsonRequired] public required string Id { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + /// /// The type of search grounding enabled. /// @@ -36,13 +43,6 @@ public sealed partial class GoogleSearchCallStep [global::System.Text.Json.Serialization.JsonPropertyName("signature")] public byte[]? Signature { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -77,9 +77,9 @@ public GoogleSearchCallStep( { this.GoogleSearchCallArguments = googleSearchCallArguments ?? throw new global::System.ArgumentNullException(nameof(googleSearchCallArguments)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.SearchType = searchType; this.Signature = signature; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchResultDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchResultDelta.g.cs index a1ef59528..ea61be15c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchResultDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchResultDelta.g.cs @@ -11,28 +11,28 @@ public sealed partial class GoogleSearchResultDelta /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] - public bool? IsError { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Result { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Result { get; set; } + public required object Type { get; set; } /// - /// A signature hash for backend validation. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] + public bool? IsError { get; set; } /// - /// + /// A signature hash for backend validation. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -58,10 +58,10 @@ public GoogleSearchResultDelta( bool? isError, byte[]? signature) { - this.IsError = isError; this.Result = result ?? throw new global::System.ArgumentNullException(nameof(result)); - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.IsError = isError; + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchResultStep.g.cs index 78b611575..9aff8259c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GoogleSearchResultStep.g.cs @@ -9,6 +9,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class GoogleSearchResultStep { + /// + /// Required. The results of the Google Search. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Result { get; set; } + /// /// Required. ID to match the ID from the function call block. /// @@ -17,17 +24,17 @@ public sealed partial class GoogleSearchResultStep public required string CallId { get; set; } /// - /// Whether the Google Search resulted in an error. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] - public bool? IsError { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// - /// Required. The results of the Google Search. + /// Whether the Google Search resulted in an error. /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Result { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] + public bool? IsError { get; set; } /// /// A signature hash for backend validation. @@ -35,13 +42,6 @@ public sealed partial class GoogleSearchResultStep [global::System.Text.Json.Serialization.JsonPropertyName("signature")] public byte[]? Signature { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -51,12 +51,12 @@ public sealed partial class GoogleSearchResultStep /// /// Initializes a new instance of the class. /// - /// - /// Required. ID to match the ID from the function call block. - /// /// /// Required. The results of the Google Search. /// + /// + /// Required. ID to match the ID from the function call block. + /// /// /// /// Whether the Google Search resulted in an error. @@ -68,17 +68,17 @@ public sealed partial class GoogleSearchResultStep [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GoogleSearchResultStep( - string callId, global::System.Collections.Generic.IList result, + string callId, object type, bool? isError, byte[]? signature) { + this.Result = result ?? throw new global::System.ArgumentNullException(nameof(result)); this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.IsError = isError; - this.Result = result ?? throw new global::System.ArgumentNullException(nameof(result)); this.Signature = signature; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GroundingToolCount.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GroundingToolCount.g.cs index 73c3c41ed..e7354e67c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GroundingToolCount.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.GroundingToolCount.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class GroundingToolCount { - /// - /// The number of grounding tool counts. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("count")] - public int? Count { get; set; } - /// /// The grounding tool type associated with the count. /// @@ -21,6 +15,12 @@ public sealed partial class GroundingToolCount [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.GroundingToolCountTypeJsonConverter))] public global::Google.Gemini.NextGen.GroundingToolCountType? Type { get; set; } + /// + /// The number of grounding tool counts. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("count")] + public int? Count { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,21 +30,21 @@ public sealed partial class GroundingToolCount /// /// Initializes a new instance of the class. /// - /// - /// The number of grounding tool counts. - /// /// /// The grounding tool type associated with the count. /// + /// + /// The number of grounding tool counts. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GroundingToolCount( - int? count, - global::Google.Gemini.NextGen.GroundingToolCountType? type) + global::Google.Gemini.NextGen.GroundingToolCountType? type, + int? count) { - this.Count = count; this.Type = type; + this.Count = count; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HttpBearerConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HttpBearerConfig.g.cs index a9cf80fab..5cae71543 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HttpBearerConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HttpBearerConfig.g.cs @@ -9,11 +9,11 @@ namespace Google.Gemini.NextGen public sealed partial class HttpBearerConfig { /// - /// Optional. Header name to inject the token into. Defaults to
- /// 'Authorization'. + /// Required. Input only. The static bearer token. Write-only; never returned in responses.
+ /// Included only in requests ///
- [global::System.Text.Json.Serialization.JsonPropertyName("header_name")] - public string? HeaderName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("token")] + public string? Token { get; set; } /// /// @@ -23,25 +23,25 @@ public sealed partial class HttpBearerConfig public required string Id { get; set; } /// - /// Optional. Prefix to prepend to the token. Defaults to 'Bearer'. Set to ''
- /// for no prefix. + /// ///
- [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] - public string? Prefix { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// - /// Required. Input only. The static bearer token. Write-only; never returned in responses.
- /// Included only in requests + /// Optional. Header name to inject the token into. Defaults to
+ /// 'Authorization'. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("token")] - public string? Token { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("header_name")] + public string? HeaderName { get; set; } /// - /// + /// Optional. Prefix to prepend to the token. Defaults to 'Bearer'. Set to ''
+ /// for no prefix. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] + public string? Prefix { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -54,6 +54,10 @@ public sealed partial class HttpBearerConfig /// /// /// + /// + /// Required. Input only. The static bearer token. Write-only; never returned in responses.
+ /// Included only in requests + /// /// /// Optional. Header name to inject the token into. Defaults to
/// 'Authorization'. @@ -62,25 +66,21 @@ public sealed partial class HttpBearerConfig /// Optional. Prefix to prepend to the token. Defaults to 'Bearer'. Set to ''
/// for no prefix. /// - /// - /// Required. Input only. The static bearer token. Write-only; never returned in responses.
- /// Included only in requests - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public HttpBearerConfig( string id, object type, + string? token, string? headerName, - string? prefix, - string? token) + string? prefix) { - this.HeaderName = headerName; - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Prefix = prefix; this.Token = token; + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.HeaderName = headerName; + this.Prefix = prefix; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HttpBearerUpdateConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HttpBearerUpdateConfig.g.cs index 27f4ba2b1..69f0bccae 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HttpBearerUpdateConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.HttpBearerUpdateConfig.g.cs @@ -8,6 +8,20 @@ namespace Google.Gemini.NextGen /// public sealed partial class HttpBearerUpdateConfig { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + + /// + /// Optional. Input only. The static bearer token. Write-only; never returned in responses.
+ /// Included only in requests + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("token")] + public string? Token { get; set; } + /// /// Optional. Header name to inject the token into. Defaults to
/// 'Authorization'. @@ -22,20 +36,6 @@ public sealed partial class HttpBearerUpdateConfig [global::System.Text.Json.Serialization.JsonPropertyName("prefix")] public string? Prefix { get; set; } - /// - /// Optional. Input only. The static bearer token. Write-only; never returned in responses.
- /// Included only in requests - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("token")] - public string? Token { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -46,6 +46,10 @@ public sealed partial class HttpBearerUpdateConfig /// Initializes a new instance of the class. ///
/// + /// + /// Optional. Input only. The static bearer token. Write-only; never returned in responses.
+ /// Included only in requests + /// /// /// Optional. Header name to inject the token into. Defaults to
/// 'Authorization'. @@ -54,23 +58,19 @@ public sealed partial class HttpBearerUpdateConfig /// Optional. Prefix to prepend to the token. Defaults to 'Bearer'. Set to ''
/// for no prefix. /// - /// - /// Optional. Input only. The static bearer token. Write-only; never returned in responses.
- /// Included only in requests - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public HttpBearerUpdateConfig( object type, + string? token, string? headerName, - string? prefix, - string? token) + string? prefix) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Token = token; this.HeaderName = headerName; this.Prefix = prefix; - this.Token = token; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageContent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageContent.g.cs index bbf29b8ba..3cd36d625 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageContent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageContent.g.cs @@ -9,6 +9,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class ImageContent { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + /// /// The image content. /// @@ -16,11 +23,10 @@ public sealed partial class ImageContent public byte[]? Data { get; set; } /// - /// The mime type of the image. + /// The URI of the image. /// - [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ImageContentMimeTypeJsonConverter))] - public global::Google.Gemini.NextGen.ImageContentMimeType? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// /// @@ -30,17 +36,11 @@ public sealed partial class ImageContent public global::Google.Gemini.NextGen.MediaResolution? Resolution { get; set; } /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - - /// - /// The URI of the image. + /// The mime type of the image. /// - [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ImageContentMimeTypeJsonConverter))] + public global::Google.Gemini.NextGen.ImageContentMimeType? MimeType { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -55,28 +55,28 @@ public sealed partial class ImageContent /// /// The image content. /// - /// - /// The mime type of the image. - /// - /// /// /// The URI of the image. /// + /// + /// + /// The mime type of the image. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ImageContent( object type, byte[]? data, - global::Google.Gemini.NextGen.ImageContentMimeType? mimeType, + string? uri, global::Google.Gemini.NextGen.MediaResolution? resolution, - string? uri) + global::Google.Gemini.NextGen.ImageContentMimeType? mimeType) { - this.Data = data; - this.MimeType = mimeType; - this.Resolution = resolution; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Data = data; this.Uri = uri; + this.Resolution = resolution; + this.MimeType = mimeType; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageDelta.g.cs index 26c9729cb..39c213b13 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageDelta.g.cs @@ -11,35 +11,35 @@ public sealed partial class ImageDelta /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public byte[]? Data { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ImageDeltaMimeTypeJsonConverter))] - public global::Google.Gemini.NextGen.ImageDeltaMimeType? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + public byte[]? Data { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.MediaResolutionJsonConverter))] - public global::Google.Gemini.NextGen.MediaResolution? Resolution { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ImageDeltaMimeTypeJsonConverter))] + public global::Google.Gemini.NextGen.ImageDeltaMimeType? MimeType { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.MediaResolutionJsonConverter))] + public global::Google.Gemini.NextGen.MediaResolution? Resolution { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -52,24 +52,24 @@ public sealed partial class ImageDelta /// /// /// + /// /// /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ImageDelta( object type, byte[]? data, + string? uri, global::Google.Gemini.NextGen.ImageDeltaMimeType? mimeType, - global::Google.Gemini.NextGen.MediaResolution? resolution, - string? uri) + global::Google.Gemini.NextGen.MediaResolution? resolution) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Data = data; + this.Uri = uri; this.MimeType = mimeType; this.Resolution = resolution; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.Uri = uri; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageResponseFormat.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageResponseFormat.g.cs index fbb15edcd..d26152d6f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageResponseFormat.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ImageResponseFormat.g.cs @@ -10,11 +10,18 @@ namespace Google.Gemini.NextGen public sealed partial class ImageResponseFormat { /// - /// The aspect ratio for the image output. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("aspect_ratio")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatAspectRatioJsonConverter))] - public global::Google.Gemini.NextGen.ImageResponseFormatAspectRatio? AspectRatio { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + + /// + /// The MIME type of the image output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatMimeTypeJsonConverter))] + public global::Google.Gemini.NextGen.ImageResponseFormatMimeType? MimeType { get; set; } /// /// The delivery mode for the image output. @@ -23,6 +30,13 @@ public sealed partial class ImageResponseFormat [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatDeliveryJsonConverter))] public global::Google.Gemini.NextGen.ImageResponseFormatDelivery? Delivery { get; set; } + /// + /// The aspect ratio for the image output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aspect_ratio")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatAspectRatioJsonConverter))] + public global::Google.Gemini.NextGen.ImageResponseFormatAspectRatio? AspectRatio { get; set; } + /// /// The size of the image output. /// @@ -30,20 +44,6 @@ public sealed partial class ImageResponseFormat [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatImageSizeJsonConverter))] public global::Google.Gemini.NextGen.ImageResponseFormatImageSize? ImageSize { get; set; } - /// - /// The MIME type of the image output. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ImageResponseFormatMimeTypeJsonConverter))] - public global::Google.Gemini.NextGen.ImageResponseFormatMimeType? MimeType { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -54,33 +54,33 @@ public sealed partial class ImageResponseFormat /// Initializes a new instance of the class. /// /// - /// - /// The aspect ratio for the image output. + /// + /// The MIME type of the image output. /// /// /// The delivery mode for the image output. /// + /// + /// The aspect ratio for the image output. + /// /// /// The size of the image output. /// - /// - /// The MIME type of the image output. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ImageResponseFormat( object type, - global::Google.Gemini.NextGen.ImageResponseFormatAspectRatio? aspectRatio, + global::Google.Gemini.NextGen.ImageResponseFormatMimeType? mimeType, global::Google.Gemini.NextGen.ImageResponseFormatDelivery? delivery, - global::Google.Gemini.NextGen.ImageResponseFormatImageSize? imageSize, - global::Google.Gemini.NextGen.ImageResponseFormatMimeType? mimeType) + global::Google.Gemini.NextGen.ImageResponseFormatAspectRatio? aspectRatio, + global::Google.Gemini.NextGen.ImageResponseFormatImageSize? imageSize) { - this.AspectRatio = aspectRatio; + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.MimeType = mimeType; this.Delivery = delivery; + this.AspectRatio = aspectRatio; this.ImageSize = imageSize; - this.MimeType = mimeType; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// 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 4f242c692..d20c29cc3 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 @@ -12,64 +12,54 @@ namespace Google.Gemini.NextGen public sealed partial class Interaction { /// - /// The agent to interact with. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agent")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.AgentOptionJsonConverter))] - public global::Google.Gemini.NextGen.AgentOption? Agent { get; set; } - - /// - /// Configuration parameters for the agent interaction. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("agent_config")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? AgentConfig { get; set; } - - /// - /// Input only. Whether to run the model interaction in the background.
- /// Included only in requests + /// Required. Output only. A unique identifier for the interaction completion.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("background")] - public bool? Background { get; set; } + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string Id { get; set; } = default!; /// - /// The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent} + /// Required. Output only. The status of the interaction.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("cached_content")] - [global::System.Obsolete("This property marked as deprecated.")] - public string? CachedContent { get; set; } + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionStatusJsonConverter))] + public global::Google.Gemini.NextGen.InteractionStatus Status { get; set; } = default!; /// /// 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; } + 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
- /// environment ID. + /// Required. Output only. The time at which the response was last updated in ISO 8601 format
+ /// (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("environment")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? Environment { get; set; } + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("updated")] + public string Updated { get; set; } = default!; /// - /// Output only. The environment ID for the interaction. Only populated if environment
- /// config is set in the request.
+ /// Required. Output only. The steps that make up the interaction, when included in the response.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("environment_id")] - public string? EnvironmentId { get; set; } + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("steps")] + public global::System.Collections.Generic.IList Steps { get; set; } = default!; /// - /// Output only. Diagnostic faults / platform errors recorded on the interaction.
- /// Included only in responses + /// The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("errors")] - public global::System.Collections.Generic.IList? Errors { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ModelJsonConverter))] + public global::Google.Gemini.NextGen.Model? Model { get; set; } /// /// Configuration parameters for model interactions. @@ -77,13 +67,6 @@ public sealed partial class Interaction [global::System.Text.Json.Serialization.JsonPropertyName("generation_config")] public global::Google.Gemini.NextGen.GenerationConfig? GenerationConfig { get; set; } - /// - /// Required. Output only. A unique identifier for the interaction completion.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } - /// /// The input for the interaction. /// @@ -92,42 +75,40 @@ public sealed partial class Interaction public global::Google.Gemini.NextGen.InteractionsInput? Input { get; set; } /// - /// The labels with user-defined metadata for the request.
- /// 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.
- /// Label values are optional. Label keys must start with a letter. + /// Enforces that the generated response is a JSON object that complies with
+ /// the JSON schema specified in this field. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("labels")] - public global::System.Collections.Generic.Dictionary? Labels { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] + public global::Google.Gemini.NextGen.OneOf>? ResponseFormat { get; set; } /// - /// The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details. + /// The environment configuration for the interaction. Can be an object
+ /// specifying remote environment sources or a string referencing an existing
+ /// environment ID. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ModelJsonConverter))] - public global::Google.Gemini.NextGen.Model? Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("environment")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? Environment { get; set; } /// - /// The ID of the previous interaction, if any. + /// System instruction for the interaction. /// - [global::System.Text.Json.Serialization.JsonPropertyName("previous_interaction_id")] - public string? PreviousInteractionId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("system_instruction")] + public string? SystemInstruction { get; set; } /// - /// Enforces that the generated response is a JSON object that complies with
- /// the JSON schema specified in this field. + /// A list of tool declarations the model may call during interaction. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("response_format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>))] - public global::Google.Gemini.NextGen.OneOf>? ResponseFormat { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } /// - /// The mime type of the response. This is required if response_format is set. + /// Statistics on the interaction request's token usage.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("response_mime_type")] - [global::System.Obsolete("This property marked as deprecated.")] - public string? ResponseMimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("usage")] + public global::Google.Gemini.NextGen.Usage? Usage { get; set; } /// /// The requested modalities of the response (TEXT, IMAGE, AUDIO). @@ -137,10 +118,25 @@ public sealed partial class Interaction public global::System.Collections.Generic.IList? ResponseModalities { get; set; } /// - /// Safety settings for the interaction. + /// The mime type of the response. This is required if response_format is set. /// - [global::System.Text.Json.Serialization.JsonPropertyName("safety_settings")] - public global::System.Collections.Generic.IList? SafetySettings { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("response_mime_type")] + [global::System.Obsolete("This property marked as deprecated.")] + public string? ResponseMimeType { get; set; } + + /// + /// The ID of the previous interaction, if any. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("previous_interaction_id")] + public string? PreviousInteractionId { 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; } /// /// @@ -150,27 +146,33 @@ public sealed partial class Interaction public global::Google.Gemini.NextGen.ServiceTier? ServiceTier { get; set; } /// - /// Required. Output only. The status of the interaction.
- /// Included only in responses + /// Message for configuring webhook events for a request. ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionStatusJsonConverter))] - public global::Google.Gemini.NextGen.InteractionStatus Status { get; set; } = default!; + [global::System.Text.Json.Serialization.JsonPropertyName("webhook_config")] + public global::Google.Gemini.NextGen.WebhookConfig? WebhookConfig { get; set; } /// - /// Required. Output only. The steps that make up the interaction, when included in the response.
- /// Included only in responses + /// Safety settings for the interaction. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("steps")] - public global::System.Collections.Generic.IList? Steps { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("safety_settings")] + public global::System.Collections.Generic.IList? SafetySettings { get; set; } /// - /// Input only. Whether to store the response and request for later retrieval.
- /// Included only in requests + /// The labels with user-defined metadata for the request.
+ /// 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.
+ /// Label values are optional. Label keys must start with a letter. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("store")] - public bool? Store { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("labels")] + public global::System.Collections.Generic.Dictionary? Labels { get; set; } + + /// + /// Output only. Diagnostic faults / platform errors recorded on the interaction.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("errors")] + public global::System.Collections.Generic.IList? Errors { get; set; } /// /// Input only. Whether the interaction will be streamed.
@@ -180,37 +182,39 @@ public sealed partial class Interaction public bool? Stream { get; set; } /// - /// System instruction for the interaction. + /// Input only. Whether to store the response and request for later retrieval.
+ /// Included only in requests ///
- [global::System.Text.Json.Serialization.JsonPropertyName("system_instruction")] - public string? SystemInstruction { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("store")] + public bool? Store { get; set; } /// - /// A list of tool declarations the model may call during interaction. + /// Input only. Whether to run the model interaction in the background.
+ /// Included only in requests ///
- [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("background")] + public bool? Background { 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 + /// The agent to interact with. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updated")] - public string? Updated { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("agent")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.AgentOptionJsonConverter))] + public global::Google.Gemini.NextGen.AgentOption? Agent { get; set; } /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// Configuration parameters for the agent interaction. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("usage")] - public global::Google.Gemini.NextGen.Usage? Usage { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("agent_config")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? AgentConfig { get; set; } /// - /// Message for configuring webhook events for a request. + /// The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent} /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhook_config")] - public global::Google.Gemini.NextGen.WebhookConfig? WebhookConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("cached_content")] + [global::System.Obsolete("This property marked as deprecated.")] + public string? CachedContent { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -221,44 +225,48 @@ public sealed partial class Interaction /// /// Initializes a new instance of the class. /// - /// - /// The agent to interact with. + /// + /// The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details. /// - /// - /// Configuration parameters for the agent interaction. + /// + /// Configuration parameters for model interactions. /// - /// - /// Input only. Whether to run the model interaction in the background.
- /// Included only in requests + /// + /// The input for the interaction. /// - /// - /// Required. Output only. The time at which the response was created in ISO 8601 format
- /// (YYYY-MM-DDThh:mm:ssZ).
- /// Included only in responses + /// + /// Enforces that the generated response is a JSON object that complies with
+ /// the JSON schema specified in this field. /// /// /// 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 + /// + /// System instruction for the interaction. /// - /// - /// Output only. Diagnostic faults / platform errors recorded on the interaction.
+ /// + /// A list of tool declarations the model may call during interaction. + /// + /// + /// Statistics on the interaction request's token usage.
/// Included only in responses /// - /// - /// Configuration parameters for model interactions. + /// + /// The ID of the previous interaction, if any. /// - /// - /// Required. Output only. A unique identifier for the interaction completion.
+ /// + /// 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. + /// + /// + /// Message for configuring webhook events for a request. + /// + /// + /// Safety settings for the interaction. /// /// /// The labels with user-defined metadata for the request.
@@ -267,109 +275,105 @@ public sealed partial class Interaction /// characters, underscores, and dashes. International characters are allowed.
/// Label values are optional. Label keys must start with a letter. /// - /// - /// The model that will complete your prompt.\n\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details. - /// - /// - /// The ID of the previous interaction, if any. - /// - /// - /// Enforces that the generated response is a JSON object that complies with
- /// the JSON schema specified in this field. - /// - /// - /// Safety settings for the interaction. - /// - /// - /// - /// Required. Output only. The steps that make up the interaction, when included in the response.
+ /// + /// Output only. Diagnostic faults / platform errors recorded on the interaction.
/// Included only in responses /// + /// + /// Input only. Whether the interaction will be streamed.
+ /// Included only in requests + /// /// /// Input only. Whether to store the response and request for later retrieval.
/// Included only in requests /// - /// - /// Input only. Whether the interaction will be streamed.
+ /// + /// Input only. Whether to run the model interaction in the background.
/// Included only in requests /// - /// - /// System instruction for the interaction. + /// + /// The agent to interact with. /// - /// - /// A list of tool declarations the model may call during interaction. + /// + /// Configuration parameters for the agent interaction. /// - /// - /// Required. Output only. The time at which the response was last updated in ISO 8601 format
- /// (YYYY-MM-DDThh:mm:ssZ).
+ /// + /// Required. Output only. A unique identifier for the interaction completion.
/// Included only in responses /// - /// - /// Statistics on the interaction request's token usage.
+ /// + /// Required. Output only. The status of the interaction.
/// Included only in responses /// - /// - /// 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. The status of the interaction.
+ /// + /// 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 + /// + /// + /// Required. Output only. The steps that make up the interaction, when included in the response.
/// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Interaction( - global::Google.Gemini.NextGen.AgentOption? agent, - global::Google.Gemini.NextGen.OneOf? agentConfig, - bool? background, - string? created, - global::Google.Gemini.NextGen.OneOf? environment, - string? environmentId, - global::System.Collections.Generic.IList? errors, + global::Google.Gemini.NextGen.Model? model, global::Google.Gemini.NextGen.GenerationConfig? generationConfig, - string? id, global::Google.Gemini.NextGen.InteractionsInput? input, - global::System.Collections.Generic.Dictionary? labels, - global::Google.Gemini.NextGen.Model? model, - string? previousInteractionId, global::Google.Gemini.NextGen.OneOf>? responseFormat, - global::System.Collections.Generic.IList? safetySettings, - global::Google.Gemini.NextGen.ServiceTier? serviceTier, - global::System.Collections.Generic.IList? steps, - bool? store, - bool? stream, + global::Google.Gemini.NextGen.OneOf? environment, string? systemInstruction, global::System.Collections.Generic.IList? tools, - string? updated, global::Google.Gemini.NextGen.Usage? usage, + string? previousInteractionId, + string? environmentId, + global::Google.Gemini.NextGen.ServiceTier? serviceTier, global::Google.Gemini.NextGen.WebhookConfig? webhookConfig, - global::Google.Gemini.NextGen.InteractionStatus status = default!) + global::System.Collections.Generic.IList? safetySettings, + global::System.Collections.Generic.Dictionary? labels, + global::System.Collections.Generic.IList? errors, + bool? stream, + bool? store, + bool? background, + global::Google.Gemini.NextGen.AgentOption? agent, + global::Google.Gemini.NextGen.OneOf? agentConfig, + string id = default!, + global::Google.Gemini.NextGen.InteractionStatus status = default!, + string created = default!, + string updated = default!, + global::System.Collections.Generic.IList steps = default!) { - this.Agent = agent; - this.AgentConfig = agentConfig; - this.Background = background; + this.Id = id; + this.Status = status; this.Created = created; - this.Environment = environment; - this.EnvironmentId = environmentId; - this.Errors = errors; + this.Updated = updated; + this.Steps = steps; + this.Model = model; this.GenerationConfig = generationConfig; - this.Id = id; this.Input = input; - this.Labels = labels; - this.Model = model; - this.PreviousInteractionId = previousInteractionId; this.ResponseFormat = responseFormat; - this.SafetySettings = safetySettings; - this.ServiceTier = serviceTier; - this.Status = status; - this.Steps = steps; - this.Store = store; - this.Stream = stream; + this.Environment = environment; this.SystemInstruction = systemInstruction; this.Tools = tools; - this.Updated = updated; this.Usage = usage; + this.PreviousInteractionId = previousInteractionId; + this.EnvironmentId = environmentId; + this.ServiceTier = serviceTier; this.WebhookConfig = webhookConfig; + this.SafetySettings = safetySettings; + this.Labels = labels; + this.Errors = errors; + this.Stream = stream; + this.Store = store; + this.Background = background; + this.Agent = agent; + this.AgentConfig = agentConfig; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCompletedEvent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCompletedEvent.g.cs index af22877e7..46c1512f0 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCompletedEvent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCompletedEvent.g.cs @@ -12,11 +12,13 @@ namespace Google.Gemini.NextGen public sealed partial class InteractionCompletedEvent { /// - /// The event_id token to be used to resume the interaction stream, from
- /// this event. + /// Partial interaction resource emitted by interaction lifecycle SSE events.
+ /// Streaming lifecycle payloads may omit fields that are only available on
+ /// full non-streaming Interaction responses. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] - public string? EventId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("interaction")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Google.Gemini.NextGen.InteractionSseEventInteraction Interaction { get; set; } /// /// @@ -26,13 +28,11 @@ public sealed partial class InteractionCompletedEvent public required object EventType { get; set; } /// - /// Partial interaction resource emitted by interaction lifecycle SSE events.
- /// Streaming lifecycle payloads may omit fields that are only available on
- /// full non-streaming Interaction responses. + /// The event_id token to be used to resume the interaction stream, from
+ /// this event. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("interaction")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.InteractionSseEventInteraction Interaction { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -43,12 +43,12 @@ public sealed partial class InteractionCompletedEvent /// /// Initializes a new instance of the class. /// - /// /// /// Partial interaction resource emitted by interaction lifecycle SSE events.
/// Streaming lifecycle payloads may omit fields that are only available on
/// full non-streaming Interaction responses. /// + /// /// /// The event_id token to be used to resume the interaction stream, from
/// this event. @@ -57,13 +57,13 @@ public sealed partial class InteractionCompletedEvent [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InteractionCompletedEvent( - object eventType, global::Google.Gemini.NextGen.InteractionSseEventInteraction interaction, + object eventType, string? eventId) { - this.EventId = eventId; - this.EventType = eventType ?? throw new global::System.ArgumentNullException(nameof(eventType)); this.Interaction = interaction ?? throw new global::System.ArgumentNullException(nameof(interaction)); + this.EventType = eventType ?? throw new global::System.ArgumentNullException(nameof(eventType)); + this.EventId = eventId; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCreatedEvent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCreatedEvent.g.cs index 488918214..a9118b02f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCreatedEvent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionCreatedEvent.g.cs @@ -10,11 +10,13 @@ namespace Google.Gemini.NextGen public sealed partial class InteractionCreatedEvent { /// - /// The event_id token to be used to resume the interaction stream, from
- /// this event. + /// Partial interaction resource emitted by interaction lifecycle SSE events.
+ /// Streaming lifecycle payloads may omit fields that are only available on
+ /// full non-streaming Interaction responses. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] - public string? EventId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("interaction")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Google.Gemini.NextGen.InteractionSseEventInteraction Interaction { get; set; } /// /// @@ -24,13 +26,11 @@ public sealed partial class InteractionCreatedEvent public required object EventType { get; set; } /// - /// Partial interaction resource emitted by interaction lifecycle SSE events.
- /// Streaming lifecycle payloads may omit fields that are only available on
- /// full non-streaming Interaction responses. + /// The event_id token to be used to resume the interaction stream, from
+ /// this event. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("interaction")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.InteractionSseEventInteraction Interaction { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -41,12 +41,12 @@ public sealed partial class InteractionCreatedEvent /// /// Initializes a new instance of the class. /// - /// /// /// Partial interaction resource emitted by interaction lifecycle SSE events.
/// Streaming lifecycle payloads may omit fields that are only available on
/// full non-streaming Interaction responses. /// + /// /// /// The event_id token to be used to resume the interaction stream, from
/// this event. @@ -55,13 +55,13 @@ public sealed partial class InteractionCreatedEvent [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InteractionCreatedEvent( - object eventType, global::Google.Gemini.NextGen.InteractionSseEventInteraction interaction, + object eventType, string? eventId) { - this.EventId = eventId; - this.EventType = eventType ?? throw new global::System.ArgumentNullException(nameof(eventType)); this.Interaction = interaction ?? throw new global::System.ArgumentNullException(nameof(interaction)); + this.EventType = eventType ?? throw new global::System.ArgumentNullException(nameof(eventType)); + this.EventId = eventId; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSseEventInteraction.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSseEventInteraction.g.cs index 9ab99a12c..ec5300080 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSseEventInteraction.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionSseEventInteraction.g.cs @@ -11,17 +11,27 @@ namespace Google.Gemini.NextGen public sealed partial class InteractionSseEventInteraction { /// - /// The agent to interact with. + /// Required. Output only. A unique identifier for the interaction completion.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("agent")] - public string? Agent { get; set; } + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string Id { get; set; } = default!; /// - /// Output only. Opaque token to resume a long decode when status is incomplete.
+ /// Required. Output only. The status of the interaction.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("continuation_token")] - public byte[]? ContinuationToken { get; set; } + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionSseEventInteractionStatusJsonConverter))] + public global::Google.Gemini.NextGen.InteractionSseEventInteractionStatus Status { get; set; } = default!; + + /// + /// The model that will complete your prompt. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } /// /// Output only. The time at which the response was created in ISO 8601 format.
@@ -31,25 +41,18 @@ public sealed partial class InteractionSseEventInteraction public string? Created { get; set; } /// - /// Required. Output only. A unique identifier for the interaction completion.
+ /// Output only. The time at which the response was last updated in ISO 8601 format.
/// Included only in responses ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string Id { get; set; } = default!; - - /// - /// The model that will complete your prompt. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updated")] + public string? Updated { get; set; } /// - /// Output only. The resource type.
+ /// Statistics on the interaction request's token usage.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("object")] - public string? Object { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("usage")] + public global::Google.Gemini.NextGen.Usage? Usage { get; set; } /// /// @@ -58,15 +61,6 @@ public sealed partial class InteractionSseEventInteraction [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ServiceTierJsonConverter))] 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.InteractionSseEventInteractionStatusJsonConverter))] - public global::Google.Gemini.NextGen.InteractionSseEventInteractionStatus Status { get; set; } = default!; - /// /// Output only. The steps that make up the interaction, if included in this event.
/// Included only in responses @@ -75,18 +69,24 @@ public sealed partial class InteractionSseEventInteraction public global::System.Collections.Generic.IList? Steps { get; set; } /// - /// Output only. The time at which the response was last updated in ISO 8601 format.
+ /// The agent to interact with. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("agent")] + public string? Agent { get; set; } + + /// + /// Output only. Opaque token to resume a long decode when status is incomplete.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updated")] - public string? Updated { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("continuation_token")] + public byte[]? ContinuationToken { get; set; } /// - /// Statistics on the interaction request's token usage.
+ /// Output only. The resource type.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("usage")] - public global::Google.Gemini.NextGen.Usage? Usage { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + public string? Object { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -97,22 +97,19 @@ public sealed partial class InteractionSseEventInteraction /// /// Initializes a new instance of the class. /// - /// - /// The agent to interact with. - /// - /// - /// Output only. Opaque token to resume a long decode when status is incomplete.
- /// Included only in responses + /// + /// The model that will complete your prompt. /// /// /// Output only. The time at which the response was created in ISO 8601 format.
/// Included only in responses /// - /// - /// The model that will complete your prompt. + /// + /// Output only. The time at which the response was last updated in ISO 8601 format.
+ /// Included only in responses /// - /// - /// Output only. The resource type.
+ /// + /// Statistics on the interaction request's token usage.
/// Included only in responses /// /// @@ -120,12 +117,15 @@ public sealed partial class InteractionSseEventInteraction /// Output only. The steps that make up the interaction, if included in this event.
/// Included only in responses /// - /// - /// Output only. The time at which the response was last updated in ISO 8601 format.
+ /// + /// The agent to interact with. + /// + /// + /// Output only. Opaque token to resume a long decode when status is incomplete.
/// Included only in responses /// - /// - /// Statistics on the interaction request's token usage.
+ /// + /// Output only. The resource type.
/// Included only in responses /// /// @@ -140,29 +140,29 @@ public sealed partial class InteractionSseEventInteraction [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InteractionSseEventInteraction( - string? agent, - byte[]? continuationToken, - string? created, string? model, - string? @object, - global::Google.Gemini.NextGen.ServiceTier? serviceTier, - global::System.Collections.Generic.IList? steps, + string? created, string? updated, global::Google.Gemini.NextGen.Usage? usage, + global::Google.Gemini.NextGen.ServiceTier? serviceTier, + global::System.Collections.Generic.IList? steps, + string? agent, + byte[]? continuationToken, + string? @object, string id = default!, global::Google.Gemini.NextGen.InteractionSseEventInteractionStatus status = default!) { - this.Agent = agent; - this.ContinuationToken = continuationToken; - this.Created = created; this.Id = id; - this.Model = model; - this.Object = @object; - this.ServiceTier = serviceTier; this.Status = status; - this.Steps = steps; + this.Model = model; + this.Created = created; this.Updated = updated; this.Usage = usage; + this.ServiceTier = serviceTier; + this.Steps = steps; + this.Agent = agent; + this.ContinuationToken = continuationToken; + this.Object = @object; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatusUpdate.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatusUpdate.g.cs index 0f6448d2b..a1a32a38a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatusUpdate.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.InteractionStatusUpdate.g.cs @@ -9,40 +9,33 @@ namespace Google.Gemini.NextGen public sealed partial class InteractionStatusUpdate { /// - /// An optional opaque continuation token used to resume decoding from the
- /// latest checkpoint after a disconnected stream. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("continuation_token")] - public byte[]? ContinuationToken { get; set; } - - /// - /// The event_id token to be used to resume the interaction stream, from
- /// this event. + /// ///
- [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] - public string? EventId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("interaction_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string InteractionId { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("event_type")] + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionStatusUpdateStatusJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required object EventType { get; set; } + public required global::Google.Gemini.NextGen.InteractionStatusUpdateStatus Status { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("interaction_id")] + [global::System.Text.Json.Serialization.JsonPropertyName("event_type")] [global::System.Text.Json.Serialization.JsonRequired] - public required string InteractionId { get; set; } + public required object EventType { get; set; } /// - /// + /// An optional opaque continuation token used to resume decoding from the
+ /// latest checkpoint after a disconnected stream. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionStatusUpdateStatusJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.InteractionStatusUpdateStatus Status { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("continuation_token")] + public byte[]? ContinuationToken { get; set; } /// /// Statistics on the interaction request's token usage.
@@ -51,6 +44,13 @@ public sealed partial class InteractionStatusUpdate [global::System.Text.Json.Serialization.JsonPropertyName("usage")] public global::Google.Gemini.NextGen.Usage? Usage { get; set; } + /// + /// The event_id token to be used to resume the interaction stream, from
+ /// this event. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -60,38 +60,38 @@ public sealed partial class InteractionStatusUpdate /// /// Initializes a new instance of the class. /// - /// /// /// + /// /// /// An optional opaque continuation token used to resume decoding from the
/// latest checkpoint after a disconnected stream. /// - /// - /// The event_id token to be used to resume the interaction stream, from
- /// this event. - /// /// /// Statistics on the interaction request's token usage.
/// Included only in responses /// + /// + /// The event_id token to be used to resume the interaction stream, from
+ /// this event. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InteractionStatusUpdate( - object eventType, string interactionId, global::Google.Gemini.NextGen.InteractionStatusUpdateStatus status, + object eventType, byte[]? continuationToken, - string? eventId, - global::Google.Gemini.NextGen.Usage? usage) + global::Google.Gemini.NextGen.Usage? usage, + string? eventId) { - this.ContinuationToken = continuationToken; - this.EventId = eventId; - this.EventType = eventType ?? throw new global::System.ArgumentNullException(nameof(eventType)); this.InteractionId = interactionId ?? throw new global::System.ArgumentNullException(nameof(interactionId)); this.Status = status; + this.EventType = eventType ?? throw new global::System.ArgumentNullException(nameof(eventType)); + this.ContinuationToken = continuationToken; this.Usage = usage; + this.EventId = eventId; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListTriggerExecutionsResponse.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListTriggerExecutionsResponse.g.cs index a328f59ac..63aa958c9 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListTriggerExecutionsResponse.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListTriggerExecutionsResponse.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini.NextGen /// public sealed partial class ListTriggerExecutionsResponse { + /// + /// The list of trigger executions. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("trigger_executions")] + public global::System.Collections.Generic.IList? TriggerExecutions { get; set; } + /// /// A page token, received from a previous `ListTriggerExecutions` call.
/// Provide this to retrieve the subsequent page. @@ -15,12 +21,6 @@ public sealed partial class ListTriggerExecutionsResponse [global::System.Text.Json.Serialization.JsonPropertyName("next_page_token")] public string? NextPageToken { get; set; } - /// - /// The list of trigger executions. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("trigger_executions")] - public global::System.Collections.Generic.IList? TriggerExecutions { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,22 +30,22 @@ public sealed partial class ListTriggerExecutionsResponse /// /// Initializes a new instance of the class. /// + /// + /// The list of trigger executions. + /// /// /// A page token, received from a previous `ListTriggerExecutions` call.
/// Provide this to retrieve the subsequent page. /// - /// - /// The list of trigger executions. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListTriggerExecutionsResponse( - string? nextPageToken, - global::System.Collections.Generic.IList? triggerExecutions) + global::System.Collections.Generic.IList? triggerExecutions, + string? nextPageToken) { - this.NextPageToken = nextPageToken; this.TriggerExecutions = triggerExecutions; + this.NextPageToken = nextPageToken; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListTriggersResponse.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListTriggersResponse.g.cs index 7e77421cf..3b5f82e07 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListTriggersResponse.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListTriggersResponse.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini.NextGen /// public sealed partial class ListTriggersResponse { + /// + /// The list of triggers. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("triggers")] + public global::System.Collections.Generic.IList? Triggers { get; set; } + /// /// A page token, received from a previous `ListTriggers` call.
/// Provide this to retrieve the subsequent page. @@ -15,12 +21,6 @@ public sealed partial class ListTriggersResponse [global::System.Text.Json.Serialization.JsonPropertyName("next_page_token")] public string? NextPageToken { get; set; } - /// - /// The list of triggers. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("triggers")] - public global::System.Collections.Generic.IList? Triggers { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,22 +30,22 @@ public sealed partial class ListTriggersResponse /// /// Initializes a new instance of the class. /// + /// + /// The list of triggers. + /// /// /// A page token, received from a previous `ListTriggers` call.
/// Provide this to retrieve the subsequent page. /// - /// - /// The list of triggers. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListTriggersResponse( - string? nextPageToken, - global::System.Collections.Generic.IList? triggers) + global::System.Collections.Generic.IList? triggers, + string? nextPageToken) { - this.NextPageToken = nextPageToken; this.Triggers = triggers; + this.NextPageToken = nextPageToken; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListVoicesResponse.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListVoicesResponse.g.cs index 0efc9dc83..bacbffa01 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListVoicesResponse.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ListVoicesResponse.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini.NextGen /// public sealed partial class ListVoicesResponse { + /// + /// The voices from the specified collection. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("voices")] + public global::System.Collections.Generic.IList? Voices { get; set; } + /// /// A token that can be sent as `page_token` to retrieve the next page.
/// If empty, there are no subsequent pages. @@ -15,12 +21,6 @@ public sealed partial class ListVoicesResponse [global::System.Text.Json.Serialization.JsonPropertyName("next_page_token")] public string? NextPageToken { get; set; } - /// - /// The voices from the specified collection. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("voices")] - public global::System.Collections.Generic.IList? Voices { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,22 +30,22 @@ public sealed partial class ListVoicesResponse /// /// Initializes a new instance of the class. /// + /// + /// The voices from the specified collection. + /// /// /// A token that can be sent as `page_token` to retrieve the next page.
/// If empty, there are no subsequent pages. /// - /// - /// The voices from the specified collection. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListVoicesResponse( - string? nextPageToken, - global::System.Collections.Generic.IList? voices) + global::System.Collections.Generic.IList? voices, + string? nextPageToken) { - this.NextPageToken = nextPageToken; this.Voices = voices; + this.NextPageToken = nextPageToken; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServer.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServer.g.cs index 5a54ea0c1..1b718b4b9 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServer.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServer.g.cs @@ -9,16 +9,18 @@ namespace Google.Gemini.NextGen public sealed partial class MCPServer { /// - /// The allowed tools. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("allowed_tools")] - public global::System.Collections.Generic.IList? AllowedTools { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// - /// Optional: Fields for authentication headers, timeouts, etc., if needed. + /// The full URL for the MCPServer endpoint.
+ /// Example: "https://api.example.com/mcp" ///
- [global::System.Text.Json.Serialization.JsonPropertyName("headers")] - public global::System.Collections.Generic.Dictionary? Headers { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { get; set; } /// /// The name of the MCPServer. @@ -27,18 +29,16 @@ public sealed partial class MCPServer public string? Name { get; set; } /// - /// + /// Optional: Fields for authentication headers, timeouts, etc., if needed. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("headers")] + public global::System.Collections.Generic.Dictionary? Headers { get; set; } /// - /// The full URL for the MCPServer endpoint.
- /// Example: "https://api.example.com/mcp" + /// The allowed tools. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("url")] - public string? Url { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_tools")] + public global::System.Collections.Generic.IList? AllowedTools { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -50,34 +50,34 @@ public sealed partial class MCPServer /// Initializes a new instance of the class. /// /// - /// - /// The allowed tools. - /// - /// - /// Optional: Fields for authentication headers, timeouts, etc., if needed. + /// + /// The full URL for the MCPServer endpoint.
+ /// Example: "https://api.example.com/mcp" /// /// /// The name of the MCPServer. /// - /// - /// The full URL for the MCPServer endpoint.
- /// Example: "https://api.example.com/mcp" + /// + /// Optional: Fields for authentication headers, timeouts, etc., if needed. + /// + /// + /// The allowed tools. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MCPServer( object type, - global::System.Collections.Generic.IList? allowedTools, - global::System.Collections.Generic.Dictionary? headers, + string? url, string? name, - string? url) + global::System.Collections.Generic.Dictionary? headers, + global::System.Collections.Generic.IList? allowedTools) { - this.AllowedTools = allowedTools; - this.Headers = headers; - this.Name = name; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Url = url; + this.Name = name; + this.Headers = headers; + this.AllowedTools = allowedTools; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDelta.g.cs index eb99f298c..50c2adc99 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallDelta.g.cs @@ -11,23 +11,23 @@ public sealed partial class MCPServerToolCallDelta /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] + [global::System.Text.Json.Serialization.JsonPropertyName("name")] [global::System.Text.Json.Serialization.JsonRequired] - public required object Arguments { get; set; } + public required string Name { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonPropertyName("server_name")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } + public required string ServerName { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("server_name")] + [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] [global::System.Text.Json.Serialization.JsonRequired] - public required string ServerName { get; set; } + public required object Arguments { get; set; } /// /// @@ -45,22 +45,22 @@ public sealed partial class MCPServerToolCallDelta /// /// Initializes a new instance of the class. /// - /// /// /// + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MCPServerToolCallDelta( - object arguments, string name, string serverName, + object arguments, object type) { - this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.ServerName = serverName ?? throw new global::System.ArgumentNullException(nameof(serverName)); + this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStep.g.cs index 61c0d52c4..cda952395 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolCallStep.g.cs @@ -10,32 +10,32 @@ namespace Google.Gemini.NextGen public sealed partial class MCPServerToolCallStep { /// - /// Required. The JSON object of arguments for the function. + /// Required. The name of the tool which was called. /// - [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] + [global::System.Text.Json.Serialization.JsonPropertyName("name")] [global::System.Text.Json.Serialization.JsonRequired] - public required object Arguments { get; set; } + public required string Name { get; set; } /// - /// Required. A unique ID for this specific tool call. + /// Required. The name of the used MCP server. /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonPropertyName("server_name")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } + public required string ServerName { get; set; } /// - /// Required. The name of the tool which was called. + /// Required. The JSON object of arguments for the function. /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonPropertyName("arguments")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Name { get; set; } + public required object Arguments { get; set; } /// - /// Required. The name of the used MCP server. + /// Required. A unique ID for this specific tool call. /// - [global::System.Text.Json.Serialization.JsonPropertyName("server_name")] + [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] - public required string ServerName { get; set; } + public required string Id { get; set; } /// /// @@ -53,33 +53,33 @@ public sealed partial class MCPServerToolCallStep /// /// Initializes a new instance of the class. /// - /// - /// Required. The JSON object of arguments for the function. - /// - /// - /// Required. A unique ID for this specific tool call. - /// /// /// Required. The name of the tool which was called. /// /// /// Required. The name of the used MCP server. /// + /// + /// Required. The JSON object of arguments for the function. + /// + /// + /// Required. A unique ID for this specific tool call. + /// /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MCPServerToolCallStep( - object arguments, - string id, string name, string serverName, + object arguments, + string id, object type) { - this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); this.ServerName = serverName ?? throw new global::System.ArgumentNullException(nameof(serverName)); + this.Arguments = arguments ?? throw new global::System.ArgumentNullException(nameof(arguments)); + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDelta.g.cs index 9135ed7d6..c456508c6 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultDelta.g.cs @@ -11,29 +11,29 @@ public sealed partial class MCPServerToolResultDelta /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, object, string>))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Google.Gemini.NextGen.OneOf>, object, string> Result { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, object, string>))] + [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.OneOf>, object, string> Result { get; set; } + public required object Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("server_name")] - public string? ServerName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("server_name")] + public string? ServerName { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -57,10 +57,10 @@ public MCPServerToolResultDelta( string? name, string? serverName) { - this.Name = name; this.Result = result; - this.ServerName = serverName; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Name = name; + this.ServerName = serverName; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStep.g.cs index 180a974ca..09f046581 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.MCPServerToolResultStep.g.cs @@ -9,6 +9,14 @@ namespace Google.Gemini.NextGen /// public sealed partial class MCPServerToolResultStep { + /// + /// Required. The output from the MCP server call. Can be simple text or rich content. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, object, string>))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Google.Gemini.NextGen.OneOf>, object, string> Result { get; set; } + /// /// Required. ID to match the ID from the function call block. /// @@ -17,18 +25,17 @@ public sealed partial class MCPServerToolResultStep public required string CallId { get; set; } /// - /// Name of the tool which is called for this specific tool call. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// - /// Required. The output from the MCP server call. Can be simple text or rich content. + /// Name of the tool which is called for this specific tool call. /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, object, string>))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.OneOf>, object, string> Result { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// The name of the used MCP server. @@ -36,13 +43,6 @@ public sealed partial class MCPServerToolResultStep [global::System.Text.Json.Serialization.JsonPropertyName("server_name")] public string? ServerName { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -52,12 +52,12 @@ public sealed partial class MCPServerToolResultStep /// /// Initializes a new instance of the class. /// - /// - /// Required. ID to match the ID from the function call block. - /// /// /// Required. The output from the MCP server call. Can be simple text or rich content. /// + /// + /// Required. ID to match the ID from the function call block. + /// /// /// /// Name of the tool which is called for this specific tool call. @@ -69,17 +69,17 @@ public sealed partial class MCPServerToolResultStep [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MCPServerToolResultStep( - string callId, global::Google.Gemini.NextGen.OneOf>, object, string> result, + string callId, object type, string? name, string? serverName) { + this.Result = result; this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Name = name; - this.Result = result; this.ServerName = serverName; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ModelOutputStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ModelOutputStep.g.cs index 5b8a8f605..ccc0d4049 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ModelOutputStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ModelOutputStep.g.cs @@ -9,6 +9,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class ModelOutputStep { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + /// /// /// @@ -26,13 +33,6 @@ public sealed partial class ModelOutputStep [global::System.Text.Json.Serialization.JsonPropertyName("error")] public global::Google.Gemini.NextGen.Status? Error { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -60,9 +60,9 @@ public ModelOutputStep( global::System.Collections.Generic.IList? content, global::Google.Gemini.NextGen.Status? error) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Content = content; this.Error = error; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.OAuth2Config.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.OAuth2Config.g.cs index 708b2fa56..cf8e3630a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.OAuth2Config.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.OAuth2Config.g.cs @@ -22,13 +22,6 @@ public sealed partial class OAuth2Config [global::System.Text.Json.Serialization.JsonPropertyName("client_secret")] public string? ClientSecret { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } - /// /// Required. Input only. OAuth2 refresh token. Write-only; never returned in responses.
/// Included only in requests @@ -36,12 +29,6 @@ public sealed partial class OAuth2Config [global::System.Text.Json.Serialization.JsonPropertyName("refresh_token")] public string? RefreshToken { get; set; } - /// - /// Optional. List of OAuth2 scopes. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("scopes")] - public global::System.Collections.Generic.IList? Scopes { get; set; } - /// /// Required. OAuth2 token endpoint URL for refreshing access tokens. /// @@ -49,6 +36,13 @@ public sealed partial class OAuth2Config [global::System.Text.Json.Serialization.JsonRequired] public required string TokenUrl { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Id { get; set; } + /// /// /// @@ -56,6 +50,12 @@ public sealed partial class OAuth2Config [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// Optional. List of OAuth2 scopes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scopes")] + public global::System.Collections.Generic.IList? Scopes { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -68,10 +68,10 @@ public sealed partial class OAuth2Config /// /// Required. OAuth2 client ID. /// - /// /// /// Required. OAuth2 token endpoint URL for refreshing access tokens. /// + /// /// /// /// Required. Input only. OAuth2 client secret. Write-only; never returned in responses.
@@ -89,8 +89,8 @@ public sealed partial class OAuth2Config #endif public OAuth2Config( string clientId, - string id, string tokenUrl, + string id, object type, string? clientSecret, string? refreshToken, @@ -98,11 +98,11 @@ public OAuth2Config( { this.ClientId = clientId ?? throw new global::System.ArgumentNullException(nameof(clientId)); this.ClientSecret = clientSecret; - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.RefreshToken = refreshToken; - this.Scopes = scopes; this.TokenUrl = tokenUrl ?? throw new global::System.ArgumentNullException(nameof(tokenUrl)); + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Scopes = scopes; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.OAuth2UpdateConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.OAuth2UpdateConfig.g.cs index 545ae4c78..14a2462a8 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.OAuth2UpdateConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.OAuth2UpdateConfig.g.cs @@ -8,6 +8,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class OAuth2UpdateConfig { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + /// /// Optional. OAuth2 client ID. /// @@ -28,12 +35,6 @@ public sealed partial class OAuth2UpdateConfig [global::System.Text.Json.Serialization.JsonPropertyName("refresh_token")] public string? RefreshToken { get; set; } - /// - /// Optional. List of OAuth2 scopes. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("scopes")] - public global::System.Collections.Generic.IList? Scopes { get; set; } - /// /// Optional. OAuth2 token endpoint URL for refreshing access tokens. /// @@ -41,11 +42,10 @@ public sealed partial class OAuth2UpdateConfig public string? TokenUrl { get; set; } /// - /// + /// Optional. List of OAuth2 scopes. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("scopes")] + public global::System.Collections.Generic.IList? Scopes { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -68,12 +68,12 @@ public sealed partial class OAuth2UpdateConfig /// Optional. Input only. OAuth2 refresh token. Write-only; never returned in responses.
/// Included only in requests /// - /// - /// Optional. List of OAuth2 scopes. - /// /// /// Optional. OAuth2 token endpoint URL for refreshing access tokens. /// + /// + /// Optional. List of OAuth2 scopes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -82,15 +82,15 @@ public OAuth2UpdateConfig( string? clientId, string? clientSecret, string? refreshToken, - global::System.Collections.Generic.IList? scopes, - string? tokenUrl) + string? tokenUrl, + global::System.Collections.Generic.IList? scopes) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.ClientId = clientId; this.ClientSecret = clientSecret; this.RefreshToken = refreshToken; - this.Scopes = scopes; this.TokenUrl = tokenUrl; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Scopes = scopes; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PlaceCitation.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PlaceCitation.g.cs index 2857efc70..68694b4ca 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PlaceCitation.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PlaceCitation.g.cs @@ -9,10 +9,17 @@ namespace Google.Gemini.NextGen public sealed partial class PlaceCitation { /// - /// End of the attributed segment, exclusive. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("end_index")] - public int? EndIndex { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + + /// + /// The ID of the place, in `places/{place_id}` format. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("place_id")] + public string? PlaceId { get; set; } /// /// Title of the place. @@ -21,10 +28,10 @@ public sealed partial class PlaceCitation public string? Name { get; set; } /// - /// The ID of the place, in `places/{place_id}` format. + /// URI reference of the place. /// - [global::System.Text.Json.Serialization.JsonPropertyName("place_id")] - public string? PlaceId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { get; set; } /// /// Snippets of reviews that are used to generate answers about the
@@ -41,17 +48,10 @@ public sealed partial class PlaceCitation public int? StartIndex { get; set; } /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - - /// - /// URI reference of the place. + /// End of the attributed segment, exclusive. /// - [global::System.Text.Json.Serialization.JsonPropertyName("url")] - public string? Url { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("end_index")] + public int? EndIndex { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -63,14 +63,14 @@ public sealed partial class PlaceCitation /// Initializes a new instance of the class. /// /// - /// - /// End of the attributed segment, exclusive. + /// + /// The ID of the place, in `places/{place_id}` format. /// /// /// Title of the place. /// - /// - /// The ID of the place, in `places/{place_id}` format. + /// + /// URI reference of the place. /// /// /// Snippets of reviews that are used to generate answers about the
@@ -80,28 +80,28 @@ public sealed partial class PlaceCitation /// Start of segment of the response that is attributed to this source.
/// Index indicates the start of the segment, measured in bytes. /// - /// - /// URI reference of the place. + /// + /// End of the attributed segment, exclusive. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public PlaceCitation( object type, - int? endIndex, - string? name, string? placeId, + string? name, + string? url, global::System.Collections.Generic.IList? reviewSnippets, int? startIndex, - string? url) + int? endIndex) { - this.EndIndex = endIndex; - this.Name = name; + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.PlaceId = placeId; + this.Name = name; + this.Url = url; this.ReviewSnippets = reviewSnippets; this.StartIndex = startIndex; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.Url = url; + this.EndIndex = endIndex; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Places.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Places.g.cs index a2d5a2059..08bd889c4 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Places.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Places.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini.NextGen /// public sealed partial class Places { + /// + /// The ID of the place, in `places/{place_id}` format. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("place_id")] + public string? PlaceId { get; set; } + /// /// Title of the place. /// @@ -15,10 +21,10 @@ public sealed partial class Places public string? Name { get; set; } /// - /// The ID of the place, in `places/{place_id}` format. + /// URI reference of the place. /// - [global::System.Text.Json.Serialization.JsonPropertyName("place_id")] - public string? PlaceId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { get; set; } /// /// Snippets of reviews that are used to generate answers about the
@@ -27,12 +33,6 @@ public sealed partial class Places [global::System.Text.Json.Serialization.JsonPropertyName("review_snippets")] public global::System.Collections.Generic.IList? ReviewSnippets { get; set; } - /// - /// URI reference of the place. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("url")] - public string? Url { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -42,32 +42,32 @@ public sealed partial class Places /// /// Initializes a new instance of the class. /// + /// + /// The ID of the place, in `places/{place_id}` format. + /// /// /// Title of the place. /// - /// - /// The ID of the place, in `places/{place_id}` format. + /// + /// URI reference of the place. /// /// /// Snippets of reviews that are used to generate answers about the
/// features of a given place in Google Maps. /// - /// - /// URI reference of the place. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Places( - string? name, string? placeId, - global::System.Collections.Generic.IList? reviewSnippets, - string? url) + string? name, + string? url, + global::System.Collections.Generic.IList? reviewSnippets) { - this.Name = name; this.PlaceId = placeId; - this.ReviewSnippets = reviewSnippets; + this.Name = name; this.Url = url; + this.ReviewSnippets = reviewSnippets; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingCallDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingCallDelta.g.cs index a2be753a7..501df7e81 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingCallDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingCallDelta.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class ProcessingCallDelta { - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - /// /// /// @@ -21,6 +15,12 @@ public sealed partial class ProcessingCallDelta [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// A signature hash for backend validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,8 +41,8 @@ public ProcessingCallDelta( object type, byte[]? signature) { - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingCallStep.g.cs index fb108ded1..f3b3c718e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingCallStep.g.cs @@ -16,12 +16,6 @@ public sealed partial class ProcessingCallStep [global::System.Text.Json.Serialization.JsonRequired] public required string Id { get; set; } - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - /// /// /// @@ -29,6 +23,12 @@ public sealed partial class ProcessingCallStep [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// A signature hash for backend validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -54,8 +54,8 @@ public ProcessingCallStep( byte[]? signature) { this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingResultDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingResultDelta.g.cs index 796746c33..1c2148791 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingResultDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingResultDelta.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class ProcessingResultDelta { - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - /// /// /// @@ -21,6 +15,12 @@ public sealed partial class ProcessingResultDelta [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// A signature hash for backend validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,8 +41,8 @@ public ProcessingResultDelta( object type, byte[]? signature) { - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingResultStep.g.cs index 9dc454bc4..aadf89ff8 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ProcessingResultStep.g.cs @@ -15,12 +15,6 @@ public sealed partial class ProcessingResultStep [global::System.Text.Json.Serialization.JsonRequired] public required string CallId { get; set; } - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - /// /// /// @@ -28,6 +22,12 @@ public sealed partial class ProcessingResultStep [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// A signature hash for backend validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -53,8 +53,8 @@ public ProcessingResultStep( byte[]? signature) { this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PromptedVoice.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PromptedVoice.g.cs index 4747508ef..7dcf9ec65 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PromptedVoice.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.PromptedVoice.g.cs @@ -10,6 +10,14 @@ namespace Google.Gemini.NextGen /// public sealed partial class PromptedVoice { + /// + /// Required. The natural-language prompt describing the desired voice, e.g.
+ /// "A deep, booming male voice of a massive evil ogre in his middle years." + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("input")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Input { get; set; } + /// /// Optional. The name or ID of an existing base voice to edit or remix.
/// Use the voice name for prebuilt voices (e.g., `Puck`) or the voice ID for
@@ -21,14 +29,6 @@ public sealed partial class PromptedVoice [global::System.Text.Json.Serialization.JsonPropertyName("base_voice")] public string? BaseVoice { get; set; } - /// - /// Required. The natural-language prompt describing the desired voice, e.g.
- /// "A deep, booming male voice of a massive evil ogre in his middle years." - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("input")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Input { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -57,8 +57,8 @@ public PromptedVoice( string input, string? baseVoice) { - this.BaseVoice = baseVoice; this.Input = input ?? throw new global::System.ArgumentNullException(nameof(input)); + this.BaseVoice = baseVoice; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagRetrievalConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagRetrievalConfig.g.cs index 6464733d2..ead6ba0d2 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagRetrievalConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagRetrievalConfig.g.cs @@ -9,10 +9,10 @@ namespace Google.Gemini.NextGen public sealed partial class RagRetrievalConfig { /// - /// Config for filters. + /// Optional. The number of contexts to retrieve. /// - [global::System.Text.Json.Serialization.JsonPropertyName("filter")] - public global::Google.Gemini.NextGen.Filter? Filter { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("top_k")] + public int? TopK { get; set; } /// /// Config for Hybrid Search. @@ -21,16 +21,16 @@ public sealed partial class RagRetrievalConfig public global::Google.Gemini.NextGen.HybridSearch? HybridSearch { get; set; } /// - /// Config for ranking and reranking. + /// Config for filters. /// - [global::System.Text.Json.Serialization.JsonPropertyName("ranking")] - public global::Google.Gemini.NextGen.Ranking? Ranking { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("filter")] + public global::Google.Gemini.NextGen.Filter? Filter { get; set; } /// - /// Optional. The number of contexts to retrieve. + /// Config for ranking and reranking. /// - [global::System.Text.Json.Serialization.JsonPropertyName("top_k")] - public int? TopK { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("ranking")] + public global::Google.Gemini.NextGen.Ranking? Ranking { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -41,31 +41,31 @@ public sealed partial class RagRetrievalConfig /// /// Initializes a new instance of the class. /// - /// - /// Config for filters. + /// + /// Optional. The number of contexts to retrieve. /// /// /// Config for Hybrid Search. /// + /// + /// Config for filters. + /// /// /// Config for ranking and reranking. /// - /// - /// Optional. The number of contexts to retrieve. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RagRetrievalConfig( - global::Google.Gemini.NextGen.Filter? filter, + int? topK, global::Google.Gemini.NextGen.HybridSearch? hybridSearch, - global::Google.Gemini.NextGen.Ranking? ranking, - int? topK) + global::Google.Gemini.NextGen.Filter? filter, + global::Google.Gemini.NextGen.Ranking? ranking) { - this.Filter = filter; + this.TopK = topK; this.HybridSearch = hybridSearch; + this.Filter = filter; this.Ranking = ranking; - this.TopK = topK; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagStoreConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagStoreConfig.g.cs index 5bb73a0e7..1358adad6 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagStoreConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RagStoreConfig.g.cs @@ -16,12 +16,6 @@ public sealed partial class RagStoreConfig [global::System.Text.Json.Serialization.JsonPropertyName("rag_resources")] public global::System.Collections.Generic.IList? RagResources { get; set; } - /// - /// Specifies the context retrieval config. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("rag_retrieval_config")] - public global::Google.Gemini.NextGen.RagRetrievalConfig? RagRetrievalConfig { get; set; } - /// /// Optional. Number of top k results to return from the selected corpora. /// @@ -36,6 +30,12 @@ public sealed partial class RagStoreConfig [global::System.Obsolete("This property marked as deprecated.")] public double? VectorDistanceThreshold { get; set; } + /// + /// Specifies the context retrieval config. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rag_retrieval_config")] + public global::Google.Gemini.NextGen.RagRetrievalConfig? RagRetrievalConfig { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Ranking.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Ranking.g.cs index 3c5ca0761..c40a8d986 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Ranking.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Ranking.g.cs @@ -9,10 +9,11 @@ namespace Google.Gemini.NextGen public sealed partial class Ranking { /// - /// Optional. The model name of the rank service. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("model_name")] - public string? ModelName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("ranking_config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object RankingConfig { get; set; } /// /// Config for Rank Service. @@ -21,11 +22,10 @@ public sealed partial class Ranking public global::Google.Gemini.NextGen.RankService? RankService { get; set; } /// - /// + /// Optional. The model name of the rank service. /// - [global::System.Text.Json.Serialization.JsonPropertyName("ranking_config")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object RankingConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("model_name")] + public string? ModelName { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -37,23 +37,23 @@ public sealed partial class Ranking /// Initializes a new instance of the class. /// /// - /// - /// Optional. The model name of the rank service. - /// /// /// Config for Rank Service. /// + /// + /// Optional. The model name of the rank service. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Ranking( object rankingConfig, - string? modelName, - global::Google.Gemini.NextGen.RankService? rankService) + global::Google.Gemini.NextGen.RankService? rankService, + string? modelName) { - this.ModelName = modelName; - this.RankService = rankService; this.RankingConfig = rankingConfig ?? throw new global::System.ArgumentNullException(nameof(rankingConfig)); + this.RankService = rankService; + this.ModelName = modelName; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ReplicatedVoice.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ReplicatedVoice.g.cs index 4e817b1e3..f9ee87955 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ReplicatedVoice.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ReplicatedVoice.g.cs @@ -14,16 +14,16 @@ public sealed partial class ReplicatedVoice /// /// Audio payload used for voice creation. /// - [global::System.Text.Json.Serialization.JsonPropertyName("consent_audio")] + [global::System.Text.Json.Serialization.JsonPropertyName("source_audio")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.AudioData ConsentAudio { get; set; } + public required global::Google.Gemini.NextGen.AudioData SourceAudio { get; set; } /// /// Audio payload used for voice creation. /// - [global::System.Text.Json.Serialization.JsonPropertyName("source_audio")] + [global::System.Text.Json.Serialization.JsonPropertyName("consent_audio")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.AudioData SourceAudio { get; set; } + public required global::Google.Gemini.NextGen.AudioData ConsentAudio { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -34,21 +34,21 @@ public sealed partial class ReplicatedVoice /// /// Initializes a new instance of the class. /// - /// + /// /// Audio payload used for voice creation. /// - /// + /// /// Audio payload used for voice creation. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ReplicatedVoice( - global::Google.Gemini.NextGen.AudioData consentAudio, - global::Google.Gemini.NextGen.AudioData sourceAudio) + global::Google.Gemini.NextGen.AudioData sourceAudio, + global::Google.Gemini.NextGen.AudioData consentAudio) { - this.ConsentAudio = consentAudio ?? throw new global::System.ArgumentNullException(nameof(consentAudio)); this.SourceAudio = sourceAudio ?? throw new global::System.ArgumentNullException(nameof(sourceAudio)); + this.ConsentAudio = consentAudio ?? throw new global::System.ArgumentNullException(nameof(consentAudio)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Retrieval.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Retrieval.g.cs index 027566bb8..65b5c7706 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Retrieval.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Retrieval.g.cs @@ -9,41 +9,41 @@ namespace Google.Gemini.NextGen public sealed partial class Retrieval { /// - /// Used to specify configuration for ExaAISearch. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("exa_ai_search_config")] - public global::Google.Gemini.NextGen.ExaAISearchConfig? ExaAiSearchConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// - /// Used to specify configuration for ParallelAISearch. + /// The types of file retrieval to enable. /// - [global::System.Text.Json.Serialization.JsonPropertyName("parallel_ai_search_config")] - public global::Google.Gemini.NextGen.ParallelAISearchConfig? ParallelAiSearchConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("retrieval_types")] + public global::System.Collections.Generic.IList? RetrievalTypes { get; set; } /// - /// Use to specify configuration for RAG Store. + /// Used to specify configuration for VertexAISearch. /// - [global::System.Text.Json.Serialization.JsonPropertyName("rag_store_config")] - public global::Google.Gemini.NextGen.RagStoreConfig? RagStoreConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("vertex_ai_search_config")] + public global::Google.Gemini.NextGen.VertexAISearchConfig? VertexAiSearchConfig { get; set; } /// - /// The types of file retrieval to enable. + /// Used to specify configuration for ExaAISearch. /// - [global::System.Text.Json.Serialization.JsonPropertyName("retrieval_types")] - public global::System.Collections.Generic.IList? RetrievalTypes { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("exa_ai_search_config")] + public global::Google.Gemini.NextGen.ExaAISearchConfig? ExaAiSearchConfig { get; set; } /// - /// + /// Used to specify configuration for ParallelAISearch. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("parallel_ai_search_config")] + public global::Google.Gemini.NextGen.ParallelAISearchConfig? ParallelAiSearchConfig { get; set; } /// - /// Used to specify configuration for VertexAISearch. + /// Use to specify configuration for RAG Store. /// - [global::System.Text.Json.Serialization.JsonPropertyName("vertex_ai_search_config")] - public global::Google.Gemini.NextGen.VertexAISearchConfig? VertexAiSearchConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("rag_store_config")] + public global::Google.Gemini.NextGen.RagStoreConfig? RagStoreConfig { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -55,6 +55,12 @@ public sealed partial class Retrieval /// Initializes a new instance of the class. /// /// + /// + /// The types of file retrieval to enable. + /// + /// + /// Used to specify configuration for VertexAISearch. + /// /// /// Used to specify configuration for ExaAISearch. /// @@ -64,29 +70,23 @@ public sealed partial class Retrieval /// /// Use to specify configuration for RAG Store. /// - /// - /// The types of file retrieval to enable. - /// - /// - /// Used to specify configuration for VertexAISearch. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Retrieval( object type, + global::System.Collections.Generic.IList? retrievalTypes, + global::Google.Gemini.NextGen.VertexAISearchConfig? vertexAiSearchConfig, global::Google.Gemini.NextGen.ExaAISearchConfig? exaAiSearchConfig, global::Google.Gemini.NextGen.ParallelAISearchConfig? parallelAiSearchConfig, - global::Google.Gemini.NextGen.RagStoreConfig? ragStoreConfig, - global::System.Collections.Generic.IList? retrievalTypes, - global::Google.Gemini.NextGen.VertexAISearchConfig? vertexAiSearchConfig) + global::Google.Gemini.NextGen.RagStoreConfig? ragStoreConfig) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.RetrievalTypes = retrievalTypes; + this.VertexAiSearchConfig = vertexAiSearchConfig; this.ExaAiSearchConfig = exaAiSearchConfig; this.ParallelAiSearchConfig = parallelAiSearchConfig; this.RagStoreConfig = ragStoreConfig; - this.RetrievalTypes = retrievalTypes; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.VertexAiSearchConfig = vertexAiSearchConfig; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDelta.g.cs index 5a978d05b..a450fd53e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallDelta.g.cs @@ -16,6 +16,13 @@ public sealed partial class RetrievalCallDelta [global::System.Text.Json.Serialization.JsonRequired] public required global::Google.Gemini.NextGen.RetrievalCallArguments RetrievalCallArguments { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + /// /// The type of retrieval tools. /// @@ -29,13 +36,6 @@ public sealed partial class RetrievalCallDelta [global::System.Text.Json.Serialization.JsonPropertyName("signature")] public byte[]? Signature { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -65,9 +65,9 @@ public RetrievalCallDelta( byte[]? signature) { this.RetrievalCallArguments = retrievalCallArguments ?? throw new global::System.ArgumentNullException(nameof(retrievalCallArguments)); + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.RetrievalType = retrievalType; this.Signature = signature; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStep.g.cs index 4f08e1e89..18afb965c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalCallStep.g.cs @@ -24,6 +24,13 @@ public sealed partial class RetrievalCallStep [global::System.Text.Json.Serialization.JsonRequired] public required string Id { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + /// /// The type of retrieval tools. /// @@ -37,13 +44,6 @@ public sealed partial class RetrievalCallStep [global::System.Text.Json.Serialization.JsonPropertyName("signature")] public byte[]? Signature { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -78,9 +78,9 @@ public RetrievalCallStep( { this.RetrievalCallArguments = retrievalCallArguments ?? throw new global::System.ArgumentNullException(nameof(retrievalCallArguments)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.RetrievalType = retrievalType; this.Signature = signature; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDelta.g.cs index 00c8be143..7e0326d1b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultDelta.g.cs @@ -10,6 +10,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class RetrievalResultDelta { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + /// /// Whether the retrieval resulted in an error. /// @@ -22,13 +29,6 @@ public sealed partial class RetrievalResultDelta [global::System.Text.Json.Serialization.JsonPropertyName("signature")] public byte[]? Signature { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -53,9 +53,9 @@ public RetrievalResultDelta( bool? isError, byte[]? signature) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.IsError = isError; this.Signature = signature; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStep.g.cs index c105ba80c..01a0e0f13 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.RetrievalResultStep.g.cs @@ -17,6 +17,13 @@ public sealed partial class RetrievalResultStep [global::System.Text.Json.Serialization.JsonRequired] public required string CallId { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + /// /// Whether the retrieval resulted in an error. /// @@ -29,13 +36,6 @@ public sealed partial class RetrievalResultStep [global::System.Text.Json.Serialization.JsonPropertyName("signature")] public byte[]? Signature { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -65,9 +65,9 @@ public RetrievalResultStep( byte[]? signature) { this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.IsError = isError; this.Signature = signature; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ReviewSnippet.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ReviewSnippet.g.cs index e55f260ad..60656d30a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ReviewSnippet.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ReviewSnippet.g.cs @@ -9,12 +9,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class ReviewSnippet { - /// - /// The ID of the review snippet. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("review_id")] - public string? ReviewId { get; set; } - /// /// Title of the review. /// @@ -27,6 +21,12 @@ public sealed partial class ReviewSnippet [global::System.Text.Json.Serialization.JsonPropertyName("url")] public string? Url { get; set; } + /// + /// The ID of the review snippet. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("review_id")] + public string? ReviewId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -36,26 +36,26 @@ public sealed partial class ReviewSnippet /// /// Initializes a new instance of the class. /// - /// - /// The ID of the review snippet. - /// /// /// Title of the review. /// /// /// A link that corresponds to the user review on Google Maps. /// + /// + /// The ID of the review snippet. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ReviewSnippet( - string? reviewId, string? title, - string? url) + string? url, + string? reviewId) { - this.ReviewId = reviewId; this.Title = title; this.Url = url; + this.ReviewId = reviewId; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SafetySetting.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SafetySetting.g.cs index 07d747433..8eabd49ba 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SafetySetting.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SafetySetting.g.cs @@ -13,12 +13,12 @@ namespace Google.Gemini.NextGen public sealed partial class SafetySetting { /// - /// Optional. The method for blocking content. If not specified, the default
- /// behavior is to use the probability score. + /// ///
- [global::System.Text.Json.Serialization.JsonPropertyName("method")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.SafetySettingMethodJsonConverter))] - public global::Google.Gemini.NextGen.SafetySettingMethod? Method { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.HarmCategoryJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Google.Gemini.NextGen.HarmCategory Type { get; set; } /// /// Required. The threshold for blocking content. If the harm probability
@@ -30,12 +30,12 @@ public sealed partial class SafetySetting public required global::Google.Gemini.NextGen.SafetySettingThreshold Threshold { get; set; } /// - /// + /// Optional. The method for blocking content. If not specified, the default
+ /// behavior is to use the probability score. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.HarmCategoryJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.HarmCategory Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("method")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.SafetySettingMethodJsonConverter))] + public global::Google.Gemini.NextGen.SafetySettingMethod? Method { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -46,11 +46,11 @@ public sealed partial class SafetySetting /// /// Initializes a new instance of the class. /// + /// /// /// Required. The threshold for blocking content. If the harm probability
/// exceeds this threshold, the content will be blocked. /// - /// /// /// Optional. The method for blocking content. If not specified, the default
/// behavior is to use the probability score. @@ -59,13 +59,13 @@ public sealed partial class SafetySetting [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SafetySetting( - global::Google.Gemini.NextGen.SafetySettingThreshold threshold, global::Google.Gemini.NextGen.HarmCategory type, + global::Google.Gemini.NextGen.SafetySettingThreshold threshold, global::Google.Gemini.NextGen.SafetySettingMethod? method) { - this.Method = method; - this.Threshold = threshold; this.Type = type; + this.Threshold = threshold; + this.Method = method; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SigningSecret.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SigningSecret.g.cs index a8653aec4..541244d58 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SigningSecret.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SigningSecret.g.cs @@ -9,18 +9,18 @@ namespace Google.Gemini.NextGen public sealed partial class SigningSecret { /// - /// Output only. The expiration date of the signing secret.
+ /// Output only. The truncated version of the signing secret.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("expire_time")] - public global::System.DateTime? ExpireTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("truncated_secret")] + public string? TruncatedSecret { get; set; } /// - /// Output only. The truncated version of the signing secret.
+ /// Output only. The expiration date of the signing secret.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("truncated_secret")] - public string? TruncatedSecret { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("expire_time")] + public global::System.DateTime? ExpireTime { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -31,23 +31,23 @@ public sealed partial class SigningSecret /// /// Initializes a new instance of the class. /// - /// - /// Output only. The expiration date of the signing secret.
- /// Included only in responses - /// /// /// Output only. The truncated version of the signing secret.
/// Included only in responses /// + /// + /// Output only. The expiration date of the signing secret.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SigningSecret( - global::System.DateTime? expireTime, - string? truncatedSecret) + string? truncatedSecret, + global::System.DateTime? expireTime) { - this.ExpireTime = expireTime; this.TruncatedSecret = truncatedSecret; + this.ExpireTime = expireTime; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Source.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Source.g.cs index f23bdb87a..e62de017b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Source.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Source.g.cs @@ -9,16 +9,11 @@ namespace Google.Gemini.NextGen public sealed partial class Source { /// - /// The inline content if `type` is `INLINE`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public string? Content { get; set; } - - /// - /// Optional encoding for inline content (e.g. `base64`). + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("encoding")] - public string? Encoding { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.SourceTypeJsonConverter))] + public global::Google.Gemini.NextGen.SourceType? Type { get; set; } /// /// The source of the environment.
@@ -35,11 +30,16 @@ public sealed partial class Source public string? Target { get; set; } /// - /// + /// The inline content if `type` is `INLINE`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.SourceTypeJsonConverter))] - public global::Google.Gemini.NextGen.SourceType? Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public string? Content { get; set; } + + /// + /// Optional encoding for inline content (e.g. `base64`). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("encoding")] + public string? Encoding { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -50,12 +50,7 @@ public sealed partial class Source /// /// Initializes a new instance of the class. /// - /// - /// The inline content if `type` is `INLINE`. - /// - /// - /// Optional encoding for inline content (e.g. `base64`). - /// + /// /// /// The source of the environment.
/// For Cloud Storage, this is the Cloud Storage path.
@@ -64,22 +59,27 @@ public sealed partial class Source /// /// Where the source should appear in the environment. /// - /// + /// + /// The inline content if `type` is `INLINE`. + /// + /// + /// Optional encoding for inline content (e.g. `base64`). + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Source( - string? content, - string? encoding, + global::Google.Gemini.NextGen.SourceType? type, string? source1, string? target, - global::Google.Gemini.NextGen.SourceType? type) + string? content, + string? encoding) { - this.Content = content; - this.Encoding = encoding; + this.Type = type; this.Source1 = source1; this.Target = target; - this.Type = type; + this.Content = content; + this.Encoding = encoding; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechAnnotation.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechAnnotation.g.cs index 540811f6e..089f58564 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechAnnotation.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechAnnotation.g.cs @@ -9,10 +9,11 @@ namespace Google.Gemini.NextGen public sealed partial class SpeechAnnotation { /// - /// End of the attributed segment, exclusive. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("end_index")] - public int? EndIndex { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// The speaker to associate with this turn. @@ -20,6 +21,12 @@ public sealed partial class SpeechAnnotation [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] public string? Speaker { get; set; } + /// + /// Style instruction for the speech synthesis. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("style")] + public string? Style { get; set; } + /// /// Start of segment of the response that is attributed to this source.
/// Index indicates the start of the segment, measured in bytes. @@ -28,17 +35,10 @@ public sealed partial class SpeechAnnotation public int? StartIndex { get; set; } /// - /// Style instruction for the speech synthesis. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("style")] - public string? Style { get; set; } - - /// - /// + /// End of the attributed segment, exclusive. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("end_index")] + public int? EndIndex { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -50,34 +50,34 @@ public sealed partial class SpeechAnnotation /// Initializes a new instance of the class. /// /// - /// - /// End of the attributed segment, exclusive. - /// /// /// The speaker to associate with this turn. /// + /// + /// Style instruction for the speech synthesis. + /// /// /// Start of segment of the response that is attributed to this source.
/// Index indicates the start of the segment, measured in bytes. /// - /// - /// Style instruction for the speech synthesis. + /// + /// End of the attributed segment, exclusive. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SpeechAnnotation( object type, - int? endIndex, string? speaker, + string? style, int? startIndex, - string? style) + int? endIndex) { - this.EndIndex = endIndex; + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Speaker = speaker; - this.StartIndex = startIndex; this.Style = style; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.StartIndex = startIndex; + this.EndIndex = endIndex; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig2.g.cs index f6a8048af..039e52dbf 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig2.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.SpeechConfig2.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini.NextGen /// public sealed partial class SpeechConfig2 { + /// + /// The voice of the speaker. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("voice")] + public string? Voice { get; set; } + /// /// The language of the speech. /// @@ -20,12 +26,6 @@ public sealed partial class SpeechConfig2 [global::System.Text.Json.Serialization.JsonPropertyName("speaker")] public string? Speaker { get; set; } - /// - /// The voice of the speaker. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("voice")] - public string? Voice { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -35,26 +35,26 @@ public sealed partial class SpeechConfig2 /// /// Initializes a new instance of the class. /// + /// + /// The voice of the speaker. + /// /// /// The language of the speech. /// /// /// The speaker's name, it should match the speaker name given in the prompt. /// - /// - /// The voice of the speaker. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SpeechConfig2( + string? voice, string? language, - string? speaker, - string? voice) + string? speaker) { + this.Voice = voice; this.Language = language; this.Speaker = speaker; - this.Voice = voice; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StaticMediaProcessing.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StaticMediaProcessing.g.cs index 774e33456..9ff045a4f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StaticMediaProcessing.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StaticMediaProcessing.g.cs @@ -8,6 +8,20 @@ namespace Google.Gemini.NextGen /// public sealed partial class StaticMediaProcessing { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + + /// + /// Optional. Segment start time. Specified as a decimal number of seconds followed
+ /// by an 's' suffix, e.g., "10.5s". Must be non-negative. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("start_offset")] + public string? StartOffset { get; set; } + /// /// Optional. Segment end time. Specified as a decimal number of seconds followed
/// by an 's' suffix, e.g., "30s". Must be non-negative and greater than
@@ -22,20 +36,6 @@ public sealed partial class StaticMediaProcessing [global::System.Text.Json.Serialization.JsonPropertyName("fps")] public double? Fps { get; set; } - /// - /// Optional. Segment start time. Specified as a decimal number of seconds followed
- /// by an 's' suffix, e.g., "10.5s". Must be non-negative. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("start_offset")] - public string? StartOffset { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -46,6 +46,10 @@ public sealed partial class StaticMediaProcessing /// Initializes a new instance of the class. ///
/// + /// + /// Optional. Segment start time. Specified as a decimal number of seconds followed
+ /// by an 's' suffix, e.g., "10.5s". Must be non-negative. + /// /// /// Optional. Segment end time. Specified as a decimal number of seconds followed
/// by an 's' suffix, e.g., "30s". Must be non-negative and greater than
@@ -54,23 +58,19 @@ public sealed partial class StaticMediaProcessing /// /// Optional. Video frame-rate sampling density. /// - /// - /// Optional. Segment start time. Specified as a decimal number of seconds followed
- /// by an 's' suffix, e.g., "10.5s". Must be non-negative. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public StaticMediaProcessing( object type, + string? startOffset, string? endOffset, - double? fps, - string? startOffset) + double? fps) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.StartOffset = startOffset; this.EndOffset = endOffset; this.Fps = fps; - this.StartOffset = startOffset; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Status.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Status.g.cs index 96ab3f2d1..23fa1d013 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Status.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Status.g.cs @@ -19,13 +19,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; } - /// /// A developer-facing error message, which should be in English. Any
/// user-facing error message should be localized and sent in the
@@ -34,6 +27,13 @@ public sealed partial class Status [global::System.Text.Json.Serialization.JsonPropertyName("message")] public string? Message { get; set; } + /// + /// A list of messages that carry the error details. There is a common set of
+ /// message types for APIs to use. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("details")] + public global::System.Collections.Generic.IList? Details { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -46,26 +46,26 @@ public sealed partial class Status /// /// The status code, which should be an enum value of google.rpc.Code. /// - /// - /// A list of messages that carry the error details. There is a common set of
- /// message types for APIs to use. - /// /// /// A developer-facing error message, which should be in English. Any
/// user-facing error message should be localized and sent in the
/// google.rpc.Status.details field, or localized by the client. /// + /// + /// A list of messages that carry the error details. There is a common set of
+ /// message types for APIs to use. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Status( int? code, - global::System.Collections.Generic.IList? details, - string? message) + string? message, + global::System.Collections.Generic.IList? details) { this.Code = code; - this.Details = details; this.Message = message; + this.Details = details; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDelta.g.cs index 3c698a6df..675c0b72c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepDelta.g.cs @@ -11,17 +11,17 @@ public sealed partial class StepDelta /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("delta")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.StepDeltaDataJsonConverter))] + [global::System.Text.Json.Serialization.JsonPropertyName("index")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.StepDeltaData Delta { get; set; } + public required int Index { get; set; } /// - /// The event_id token to be used to resume the interaction stream, from
- /// this event. + /// ///
- [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] - public string? EventId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("delta")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.StepDeltaDataJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Google.Gemini.NextGen.StepDeltaData Delta { get; set; } /// /// @@ -31,11 +31,11 @@ public sealed partial class StepDelta public required object EventType { get; set; } /// - /// + /// The event_id token to be used to resume the interaction stream, from
+ /// this event. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("index")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Index { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } /// /// Optional metadata accompanying ANY streamed event. @@ -52,9 +52,9 @@ public sealed partial class StepDelta /// /// Initializes a new instance of the class. /// + /// /// /// - /// /// /// The event_id token to be used to resume the interaction stream, from
/// this event. @@ -66,16 +66,16 @@ public sealed partial class StepDelta [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public StepDelta( + int index, global::Google.Gemini.NextGen.StepDeltaData delta, object eventType, - int index, string? eventId, global::Google.Gemini.NextGen.StepDeltaMetadata? metadata) { + this.Index = index; this.Delta = delta; - this.EventId = eventId; this.EventType = eventType ?? throw new global::System.ArgumentNullException(nameof(eventType)); - this.Index = index; + this.EventId = eventId; this.Metadata = metadata; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStart.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStart.g.cs index f6ad99de1..ab0d1400e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStart.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStart.g.cs @@ -8,20 +8,6 @@ namespace Google.Gemini.NextGen ///
public sealed partial class StepStart { - /// - /// The event_id token to be used to resume the interaction stream, from
- /// this event. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] - public string? EventId { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("event_type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object EventType { get; set; } - /// /// /// @@ -37,6 +23,20 @@ public sealed partial class StepStart [global::System.Text.Json.Serialization.JsonRequired] public required global::Google.Gemini.NextGen.Step Step { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object EventType { get; set; } + + /// + /// The event_id token to be used to resume the interaction stream, from
+ /// this event. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -46,11 +46,11 @@ public sealed partial class StepStart /// /// Initializes a new instance of the class. /// - /// /// /// /// A step in the interaction. /// + /// /// /// The event_id token to be used to resume the interaction stream, from
/// this event. @@ -59,15 +59,15 @@ public sealed partial class StepStart [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public StepStart( - object eventType, int index, global::Google.Gemini.NextGen.Step step, + object eventType, string? eventId) { - this.EventId = eventId; - this.EventType = eventType ?? throw new global::System.ArgumentNullException(nameof(eventType)); this.Index = index; this.Step = step; + this.EventType = eventType ?? throw new global::System.ArgumentNullException(nameof(eventType)); + this.EventId = eventId; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStop.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStop.g.cs index 96210dae9..a0936ff11 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStop.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.StepStop.g.cs @@ -9,11 +9,11 @@ namespace Google.Gemini.NextGen public sealed partial class StepStop { /// - /// The event_id token to be used to resume the interaction stream, from
- /// this event. + /// ///
- [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] - public string? EventId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("index")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int Index { get; set; } /// /// @@ -23,11 +23,11 @@ public sealed partial class StepStop public required object EventType { get; set; } /// - /// + /// Statistics on the interaction request's token usage.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("index")] - [global::System.Text.Json.Serialization.JsonRequired] - public required int Index { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("usage")] + public global::Google.Gemini.NextGen.Usage? Usage { get; set; } /// /// Statistics on the interaction request's token usage.
@@ -37,11 +37,11 @@ public sealed partial class StepStop public global::Google.Gemini.NextGen.Usage? StepUsage { get; set; } /// - /// Statistics on the interaction request's token usage.
- /// Included only in responses + /// The event_id token to be used to resume the interaction stream, from
+ /// this event. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("usage")] - public global::Google.Gemini.NextGen.Usage? Usage { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("event_id")] + public string? EventId { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -52,35 +52,35 @@ public sealed partial class StepStop /// /// Initializes a new instance of the class. /// - /// /// - /// - /// The event_id token to be used to resume the interaction stream, from
- /// this event. - /// - /// + /// + /// /// Statistics on the interaction request's token usage.
/// Included only in responses /// - /// + /// /// Statistics on the interaction request's token usage.
/// Included only in responses /// + /// + /// The event_id token to be used to resume the interaction stream, from
+ /// this event. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public StepStop( - object eventType, int index, - string? eventId, + object eventType, + global::Google.Gemini.NextGen.Usage? usage, global::Google.Gemini.NextGen.Usage? stepUsage, - global::Google.Gemini.NextGen.Usage? usage) + string? eventId) { - this.EventId = eventId; - this.EventType = eventType ?? throw new global::System.ArgumentNullException(nameof(eventType)); this.Index = index; - this.StepUsage = stepUsage; + this.EventType = eventType ?? throw new global::System.ArgumentNullException(nameof(eventType)); this.Usage = usage; + this.StepUsage = stepUsage; + this.EventId = eventId; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextAnnotationDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextAnnotationDelta.g.cs index 365f565b8..b0caa2c0f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextAnnotationDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextAnnotationDelta.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class TextAnnotationDelta { - /// - /// Citation information for model-generated content. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("annotations")] - public global::System.Collections.Generic.IList? Annotations { get; set; } - /// /// /// @@ -21,6 +15,12 @@ public sealed partial class TextAnnotationDelta [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// Citation information for model-generated content. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("annotations")] + public global::System.Collections.Generic.IList? Annotations { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,8 +41,8 @@ public TextAnnotationDelta( object type, global::System.Collections.Generic.IList? annotations) { - this.Annotations = annotations; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Annotations = annotations; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextContent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextContent.g.cs index f42c822f9..2261bc779 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextContent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextContent.g.cs @@ -9,12 +9,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class TextContent { - /// - /// Citation information for model-generated content. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("annotations")] - public global::System.Collections.Generic.IList? Annotations { get; set; } - /// /// Required. The text content. /// @@ -29,6 +23,12 @@ public sealed partial class TextContent [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// Citation information for model-generated content. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("annotations")] + public global::System.Collections.Generic.IList? Annotations { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -53,9 +53,9 @@ public TextContent( object type, global::System.Collections.Generic.IList? annotations) { - this.Annotations = annotations; this.Text = text ?? throw new global::System.ArgumentNullException(nameof(text)); this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Annotations = annotations; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextResponseFormat.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextResponseFormat.g.cs index c62c0445e..19f417cd0 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextResponseFormat.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextResponseFormat.g.cs @@ -9,6 +9,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class TextResponseFormat { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + /// /// The MIME type of the text output. /// @@ -18,18 +25,17 @@ public sealed partial class TextResponseFormat /// /// The JSON schema that the output should conform to. Only applicable when
- /// mime_type is application/json. + /// mime_type is application/json.
+ /// Supports a subset of JSON Schema. `minLength`, `maxLength`,
+ /// `minProperties`, `maxProperties`, `uniqueItems`, `contains`,
+ /// `minContains`, and `maxContains` are ignored and not enforced; validate
+ /// these in your application. `minItems` and `maxItems` are enforced. Schemas
+ /// that are too complex to enforce (for example, large `maxItems` on nested
+ /// arrays) return a 400 INVALID_ARGUMENT error. ///
[global::System.Text.Json.Serialization.JsonPropertyName("schema")] public object? Schema { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,7 +51,13 @@ public sealed partial class TextResponseFormat /// /// /// The JSON schema that the output should conform to. Only applicable when
- /// mime_type is application/json. + /// mime_type is application/json.
+ /// Supports a subset of JSON Schema. `minLength`, `maxLength`,
+ /// `minProperties`, `maxProperties`, `uniqueItems`, `contains`,
+ /// `minContains`, and `maxContains` are ignored and not enforced; validate
+ /// these in your application. `minItems` and `maxItems` are enforced. Schemas
+ /// that are too complex to enforce (for example, large `maxItems` on nested
+ /// arrays) return a 400 INVALID_ARGUMENT error. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -55,9 +67,9 @@ public TextResponseFormat( global::Google.Gemini.NextGen.TextResponseFormatMimeType? mimeType, object? schema) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.MimeType = mimeType; this.Schema = schema; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextResponseFormatSchema.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextResponseFormatSchema.g.cs index 088dfe350..5389909bf 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextResponseFormatSchema.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TextResponseFormatSchema.g.cs @@ -5,7 +5,13 @@ namespace Google.Gemini.NextGen { /// /// The JSON schema that the output should conform to. Only applicable when
- /// mime_type is application/json. + /// mime_type is application/json.
+ /// Supports a subset of JSON Schema. `minLength`, `maxLength`,
+ /// `minProperties`, `maxProperties`, `uniqueItems`, `contains`,
+ /// `minContains`, and `maxContains` are ignored and not enforced; validate
+ /// these in your application. `minItems` and `maxItems` are enforced. Schemas
+ /// that are too complex to enforce (for example, large `maxItems` on nested
+ /// arrays) return a 400 INVALID_ARGUMENT error. ///
public sealed partial class TextResponseFormatSchema { diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtSignatureDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtSignatureDelta.g.cs index 059fca775..3614fb03a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtSignatureDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtSignatureDelta.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini.NextGen ///
public sealed partial class ThoughtSignatureDelta { - /// - /// Signature to match the backend source to be part of the generation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - /// /// /// @@ -21,6 +15,12 @@ public sealed partial class ThoughtSignatureDelta [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// Signature to match the backend source to be part of the generation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,8 +41,8 @@ public ThoughtSignatureDelta( object type, byte[]? signature) { - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtStep.g.cs index 24b5345f4..f84306b9d 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtStep.g.cs @@ -9,6 +9,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class ThoughtStep { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + /// /// A signature hash for backend validation. /// @@ -21,13 +28,6 @@ public sealed partial class ThoughtStep [global::System.Text.Json.Serialization.JsonPropertyName("summary")] public global::System.Collections.Generic.IList? Summary { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -52,9 +52,9 @@ public ThoughtStep( byte[]? signature, global::System.Collections.Generic.IList? summary) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Signature = signature; this.Summary = summary; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtSummaryDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtSummaryDelta.g.cs index d32808af0..cb9618639 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtSummaryDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.ThoughtSummaryDelta.g.cs @@ -8,13 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class ThoughtSummaryDelta { - /// - /// The content of the response. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ContentJsonConverter))] - public global::Google.Gemini.NextGen.Content? Content { get; set; } - /// /// /// @@ -22,6 +15,13 @@ public sealed partial class ThoughtSummaryDelta [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// The content of the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.ContentJsonConverter))] + public global::Google.Gemini.NextGen.Content? Content { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -42,8 +42,8 @@ public ThoughtSummaryDelta( object type, global::Google.Gemini.NextGen.Content? content) { - this.Content = content; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Content = content; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TranscriptionConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TranscriptionConfig.g.cs index 99ed206c9..06f5ae86f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TranscriptionConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TranscriptionConfig.g.cs @@ -11,11 +11,18 @@ namespace Google.Gemini.NextGen public sealed partial class TranscriptionConfig { /// - /// Optional. A list of phrases to bias the ASR model towards. + /// Discriminated transcription mode options or enum. /// - [global::System.Text.Json.Serialization.JsonPropertyName("adaptation_phrases")] - [global::System.Obsolete("This property marked as deprecated.")] - public global::System.Collections.Generic.IList? AdaptationPhrases { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? Mode { get; set; } + + /// + /// Optional. BCP-47 language codes providing hints about the languages present in the
+ /// audio. If omitted or empty, defaults to automatic language detection. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("language_codes")] + public global::System.Collections.Generic.IList? LanguageCodes { get; set; } /// /// Optional. A list of custom vocabulary phrases to bias the speech recognition model
@@ -24,6 +31,14 @@ public sealed partial class TranscriptionConfig [global::System.Text.Json.Serialization.JsonPropertyName("custom_vocabulary")] public global::System.Collections.Generic.IList? CustomVocabulary { get; set; } + /// + /// Optional. The granularity of timestamps to include in the transcription output.
+ /// Supported values: "word". If empty, no timestamps are generated. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("timestamp_granularities")] + [global::System.Obsolete("This property marked as deprecated.")] + public global::System.Collections.Generic.IList? TimestampGranularities { get; set; } + /// /// Optional. Configures speaker diarization. Supported values: "speaker". /// @@ -32,11 +47,11 @@ public sealed partial class TranscriptionConfig public string? DiarizationMode { 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 to bias the ASR model towards. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("language_codes")] - public global::System.Collections.Generic.IList? LanguageCodes { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("adaptation_phrases")] + [global::System.Obsolete("This property marked as deprecated.")] + public global::System.Collections.Generic.IList? AdaptationPhrases { get; set; } /// /// Deprecated: use language_codes. BCP-47 language codes providing hints about the languages present in the audio. @@ -45,21 +60,6 @@ public sealed partial class TranscriptionConfig [global::System.Obsolete("This property marked as deprecated.")] public global::System.Collections.Generic.IList? LanguageHints { get; set; } - /// - /// Discriminated transcription mode options or enum. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? Mode { get; set; } - - /// - /// Optional. The granularity of timestamps to include in the transcription output.
- /// Supported values: "word". If empty, no timestamps are generated. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("timestamp_granularities")] - [global::System.Obsolete("This property marked as deprecated.")] - public global::System.Collections.Generic.IList? TimestampGranularities { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -69,28 +69,28 @@ public sealed partial class TranscriptionConfig /// /// Initializes a new instance of the class. /// - /// - /// Optional. A list of custom vocabulary phrases to bias the speech recognition model
- /// toward recognizing specific terms. + /// + /// Discriminated transcription mode options or enum. /// /// /// Optional. BCP-47 language codes providing hints about the languages present in the
/// audio. If omitted or empty, defaults to automatic language detection. /// - /// - /// Discriminated transcription mode options or enum. + /// + /// Optional. A list of custom vocabulary phrases to bias the speech recognition model
+ /// toward recognizing specific terms. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranscriptionConfig( - global::System.Collections.Generic.IList? customVocabulary, + global::Google.Gemini.NextGen.OneOf? mode, global::System.Collections.Generic.IList? languageCodes, - global::Google.Gemini.NextGen.OneOf? mode) + global::System.Collections.Generic.IList? customVocabulary) { - this.CustomVocabulary = customVocabulary; - this.LanguageCodes = languageCodes; this.Mode = mode; + this.LanguageCodes = languageCodes; + this.CustomVocabulary = customVocabulary; } /// 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 9bbc2ce80..5c47d1e94 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 @@ -9,19 +9,34 @@ namespace Google.Gemini.NextGen public sealed partial class Trigger { /// - /// Output only. The number of consecutive failures that have occurred
- /// since the last successful execution.
+ /// Required. Output only. Identifier. The ID of the trigger.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("consecutive_failure_count")] - public int? ConsecutiveFailureCount { get; set; } + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string Id { get; set; } = default!; /// - /// Output only. The time when the trigger was created.
- /// Included only in responses + /// Required. The cron schedule on which the trigger should run.
+ /// Standard cron format. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("create_time")] - public global::System.DateTime? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("schedule")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Schedule { get; set; } + + /// + /// Required. Time zone in which the schedule should be interpreted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("time_zone")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string TimeZone { get; set; } + + /// + /// Interaction for generating the completion using agents. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("interaction")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Google.Gemini.NextGen.CreateAgentInteraction CreateAgentInteraction { get; set; } /// /// Optional. The display name of the trigger. @@ -35,6 +50,13 @@ public sealed partial class Trigger [global::System.Text.Json.Serialization.JsonPropertyName("environment_id")] public string? EnvironmentId { get; set; } + /// + /// Optional. The maximum number of consecutive failures allowed before
+ /// the trigger is automatically paused (status becomes ERROR). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("max_consecutive_failures")] + public int? MaxConsecutiveFailures { get; set; } + /// /// Optional. The execution timeout for the triggered interaction. /// @@ -42,33 +64,26 @@ public sealed partial class Trigger public int? ExecutionTimeoutSeconds { get; set; } /// - /// Required. Output only. Identifier. The ID of the trigger.
+ /// Output only. The number of consecutive failures that have occurred
+ /// since the last successful execution.
/// Included only in responses ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string Id { get; set; } = default!; - - /// - /// Interaction for generating the completion using agents. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("interaction")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.CreateAgentInteraction CreateAgentInteraction { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("consecutive_failure_count")] + public int? ConsecutiveFailureCount { get; set; } /// - /// Output only. The time when the trigger was last paused.
+ /// Output only. The time when the trigger was created.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("last_pause_time")] - public global::System.DateTime? LastPauseTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("create_time")] + public global::System.DateTime? CreateTime { get; set; } /// - /// Output only. The time when the trigger was last resumed.
+ /// Output only. The time when the trigger was last updated.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("last_resume_time")] - public global::System.DateTime? LastResumeTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("update_time")] + public global::System.DateTime? UpdateTime { get; set; } /// /// Output only. The time when the trigger was last run.
@@ -77,13 +92,6 @@ public sealed partial class Trigger [global::System.Text.Json.Serialization.JsonPropertyName("last_run_time")] public global::System.DateTime? LastRunTime { get; set; } - /// - /// Optional. The maximum number of consecutive failures allowed before
- /// the trigger is automatically paused (status becomes ERROR). - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("max_consecutive_failures")] - public int? MaxConsecutiveFailures { get; set; } - /// /// Output only. The time when the trigger is scheduled to run next.
/// Included only in responses @@ -92,41 +100,33 @@ public sealed partial class Trigger public global::System.DateTime? NextRunTime { get; set; } /// - /// Output only. The ID of the last interaction created by this trigger.
+ /// Output only. The time when the trigger was last paused.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("previous_interaction_id")] - public string? PreviousInteractionId { get; set; } - - /// - /// Required. The cron schedule on which the trigger should run.
- /// Standard cron format. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("schedule")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Schedule { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("last_pause_time")] + public global::System.DateTime? LastPauseTime { get; set; } /// - /// Output only. The current status of the trigger.
+ /// Output only. The time when the trigger was last resumed.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.TriggerStatusJsonConverter))] - public global::Google.Gemini.NextGen.TriggerStatus? Status { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("last_resume_time")] + public global::System.DateTime? LastResumeTime { get; set; } /// - /// Required. Time zone in which the schedule should be interpreted. + /// Output only. The ID of the last interaction created by this trigger.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("time_zone")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string TimeZone { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("previous_interaction_id")] + public string? PreviousInteractionId { get; set; } /// - /// Output only. The time when the trigger was last updated.
+ /// Output only. The current status of the trigger.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("update_time")] - public global::System.DateTime? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("status")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.TriggerStatusJsonConverter))] + public global::Google.Gemini.NextGen.TriggerStatus? Status { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -137,9 +137,6 @@ public sealed partial class Trigger /// /// Initializes a new instance of the class. /// - /// - /// Interaction for generating the completion using agents. - /// /// /// Required. The cron schedule on which the trigger should run.
/// Standard cron format. @@ -147,14 +144,8 @@ public sealed partial class Trigger /// /// Required. Time zone in which the schedule should be interpreted. /// - /// - /// Output only. The number of consecutive failures that have occurred
- /// since the last successful execution.
- /// Included only in responses - /// - /// - /// Output only. The time when the trigger was created.
- /// Included only in responses + /// + /// Interaction for generating the completion using agents. /// /// /// Optional. The display name of the trigger. @@ -162,29 +153,42 @@ public sealed partial class Trigger /// /// Optional. The environment ID for the trigger execution. /// + /// + /// Optional. The maximum number of consecutive failures allowed before
+ /// the trigger is automatically paused (status becomes ERROR). + /// /// /// Optional. The execution timeout for the triggered interaction. /// - /// - /// Output only. The time when the trigger was last paused.
+ /// + /// Output only. The number of consecutive failures that have occurred
+ /// since the last successful execution.
/// Included only in responses /// - /// - /// Output only. The time when the trigger was last resumed.
+ /// + /// Output only. The time when the trigger was created.
+ /// Included only in responses + /// + /// + /// Output only. The time when the trigger was last updated.
/// Included only in responses /// /// /// Output only. The time when the trigger was last run.
/// Included only in responses /// - /// - /// Optional. The maximum number of consecutive failures allowed before
- /// the trigger is automatically paused (status becomes ERROR). - /// /// /// Output only. The time when the trigger is scheduled to run next.
/// Included only in responses /// + /// + /// Output only. The time when the trigger was last paused.
+ /// Included only in responses + /// + /// + /// Output only. The time when the trigger was last resumed.
+ /// Included only in responses + /// /// /// Output only. The ID of the last interaction created by this trigger.
/// Included only in responses @@ -193,10 +197,6 @@ public sealed partial class Trigger /// Output only. The current status of the trigger.
/// Included only in responses /// - /// - /// Output only. The time when the trigger was last updated.
- /// Included only in responses - /// /// /// Required. Output only. Identifier. The ID of the trigger.
/// Included only in responses @@ -205,41 +205,41 @@ public sealed partial class Trigger [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Trigger( - global::Google.Gemini.NextGen.CreateAgentInteraction createAgentInteraction, string schedule, string timeZone, - int? consecutiveFailureCount, - global::System.DateTime? createTime, + global::Google.Gemini.NextGen.CreateAgentInteraction createAgentInteraction, string? displayName, string? environmentId, + int? maxConsecutiveFailures, int? executionTimeoutSeconds, - global::System.DateTime? lastPauseTime, - global::System.DateTime? lastResumeTime, + int? consecutiveFailureCount, + global::System.DateTime? createTime, + global::System.DateTime? updateTime, global::System.DateTime? lastRunTime, - int? maxConsecutiveFailures, global::System.DateTime? nextRunTime, + global::System.DateTime? lastPauseTime, + global::System.DateTime? lastResumeTime, string? previousInteractionId, global::Google.Gemini.NextGen.TriggerStatus? status, - global::System.DateTime? updateTime, string id = default!) { - this.ConsecutiveFailureCount = consecutiveFailureCount; - this.CreateTime = createTime; + this.Id = id; + this.Schedule = schedule ?? throw new global::System.ArgumentNullException(nameof(schedule)); + this.TimeZone = timeZone ?? throw new global::System.ArgumentNullException(nameof(timeZone)); + this.CreateAgentInteraction = createAgentInteraction ?? throw new global::System.ArgumentNullException(nameof(createAgentInteraction)); this.DisplayName = displayName; this.EnvironmentId = environmentId; + this.MaxConsecutiveFailures = maxConsecutiveFailures; this.ExecutionTimeoutSeconds = executionTimeoutSeconds; - this.Id = id; - this.CreateAgentInteraction = createAgentInteraction ?? throw new global::System.ArgumentNullException(nameof(createAgentInteraction)); - this.LastPauseTime = lastPauseTime; - this.LastResumeTime = lastResumeTime; + this.ConsecutiveFailureCount = consecutiveFailureCount; + this.CreateTime = createTime; + this.UpdateTime = updateTime; this.LastRunTime = lastRunTime; - this.MaxConsecutiveFailures = maxConsecutiveFailures; this.NextRunTime = nextRunTime; + this.LastPauseTime = lastPauseTime; + this.LastResumeTime = lastResumeTime; this.PreviousInteractionId = previousInteractionId; - this.Schedule = schedule ?? throw new global::System.ArgumentNullException(nameof(schedule)); this.Status = status; - this.TimeZone = timeZone ?? throw new global::System.ArgumentNullException(nameof(timeZone)); - this.UpdateTime = updateTime; } /// 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 bce97858f..ab1a2f343 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 @@ -9,22 +9,19 @@ namespace Google.Gemini.NextGen public sealed partial class TriggerCreateParams { /// - /// Optional. The display name of the trigger. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("display_name")] - public string? DisplayName { get; set; } - - /// - /// Optional. The environment ID for the trigger execution. + /// Required. The cron schedule on which the trigger should run.
+ /// Standard cron format. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("environment_id")] - public string? EnvironmentId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("schedule")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Schedule { get; set; } /// - /// Optional. The execution timeout for the triggered interaction. + /// Required. Time zone in which the schedule should be interpreted. /// - [global::System.Text.Json.Serialization.JsonPropertyName("execution_timeout_seconds")] - public int? ExecutionTimeoutSeconds { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("time_zone")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string TimeZone { get; set; } /// /// Interaction for generating the completion using agents. @@ -33,6 +30,18 @@ public sealed partial class TriggerCreateParams [global::System.Text.Json.Serialization.JsonRequired] public required global::Google.Gemini.NextGen.CreateAgentInteraction CreateAgentInteraction { get; set; } + /// + /// Optional. The display name of the trigger. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("display_name")] + public string? DisplayName { get; set; } + + /// + /// Optional. The environment ID for the trigger execution. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("environment_id")] + public string? EnvironmentId { get; set; } + /// /// Optional. The maximum number of consecutive failures allowed before
/// the trigger is automatically paused (status becomes ERROR). @@ -41,19 +50,10 @@ public sealed partial class TriggerCreateParams public int? MaxConsecutiveFailures { get; set; } /// - /// Required. The cron schedule on which the trigger should run.
- /// Standard cron format. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("schedule")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Schedule { get; set; } - - /// - /// Required. Time zone in which the schedule should be interpreted. + /// Optional. The execution timeout for the triggered interaction. /// - [global::System.Text.Json.Serialization.JsonPropertyName("time_zone")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string TimeZone { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("execution_timeout_seconds")] + public int? ExecutionTimeoutSeconds { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -64,9 +64,6 @@ public sealed partial class TriggerCreateParams /// /// Initializes a new instance of the class. /// - /// - /// Interaction for generating the completion using agents. - /// /// /// Required. The cron schedule on which the trigger should run.
/// Standard cron format. @@ -74,38 +71,41 @@ public sealed partial class TriggerCreateParams /// /// Required. Time zone in which the schedule should be interpreted. /// + /// + /// Interaction for generating the completion using agents. + /// /// /// Optional. The display name of the trigger. /// /// /// Optional. The environment ID for the trigger execution. /// - /// - /// Optional. The execution timeout for the triggered interaction. - /// /// /// Optional. The maximum number of consecutive failures allowed before
/// the trigger is automatically paused (status becomes ERROR). /// + /// + /// Optional. The execution timeout for the triggered interaction. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TriggerCreateParams( - global::Google.Gemini.NextGen.CreateAgentInteraction createAgentInteraction, string schedule, string timeZone, + global::Google.Gemini.NextGen.CreateAgentInteraction createAgentInteraction, string? displayName, string? environmentId, - int? executionTimeoutSeconds, - int? maxConsecutiveFailures) + int? maxConsecutiveFailures, + int? executionTimeoutSeconds) { + this.Schedule = schedule ?? throw new global::System.ArgumentNullException(nameof(schedule)); + this.TimeZone = timeZone ?? throw new global::System.ArgumentNullException(nameof(timeZone)); + this.CreateAgentInteraction = createAgentInteraction ?? throw new global::System.ArgumentNullException(nameof(createAgentInteraction)); this.DisplayName = displayName; this.EnvironmentId = environmentId; - this.ExecutionTimeoutSeconds = executionTimeoutSeconds; - 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)); + this.ExecutionTimeoutSeconds = executionTimeoutSeconds; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TriggerExecution.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TriggerExecution.g.cs index 24e7cddb0..9bb50127e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TriggerExecution.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TriggerExecution.g.cs @@ -8,27 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class TriggerExecution { - /// - /// Output only. The time when the execution finished.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("end_time")] - public global::System.DateTime? EndTime { get; set; } - - /// - /// Output only. The environment ID used for the execution.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("environment_id")] - public string? EnvironmentId { get; set; } - - /// - /// Output only. The error message if the execution failed.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public string? Error { get; set; } - /// /// Required. Output only. Identifier. The ID of the trigger execution.
/// Included only in responses @@ -38,11 +17,12 @@ public sealed partial class TriggerExecution public string Id { get; set; } = default!; /// - /// Output only. The ID of the interaction created by this execution, if any.
+ /// Required. Output only. Identifier. The ID of the trigger that created this execution.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("interaction_id")] - public string? InteractionId { get; set; } + /// default! + [global::System.Text.Json.Serialization.JsonPropertyName("trigger_id")] + public string TriggerId { get; set; } = default!; /// /// Output only. The time when the execution was scheduled to run.
@@ -58,6 +38,13 @@ public sealed partial class TriggerExecution [global::System.Text.Json.Serialization.JsonPropertyName("start_time")] public global::System.DateTime? StartTime { get; set; } + /// + /// Output only. The time when the execution finished.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("end_time")] + public global::System.DateTime? EndTime { get; set; } + /// /// Output only. The status of the execution.
/// Included only in responses @@ -67,12 +54,25 @@ public sealed partial class TriggerExecution public global::Google.Gemini.NextGen.TriggerExecutionStatus? Status { get; set; } /// - /// Required. Output only. Identifier. The ID of the trigger that created this execution.
+ /// Output only. The ID of the interaction created by this execution, if any.
/// Included only in responses ///
- /// default! - [global::System.Text.Json.Serialization.JsonPropertyName("trigger_id")] - public string TriggerId { get; set; } = default!; + [global::System.Text.Json.Serialization.JsonPropertyName("interaction_id")] + public string? InteractionId { get; set; } + + /// + /// Output only. The environment ID used for the execution.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("environment_id")] + public string? EnvironmentId { get; set; } + + /// + /// Output only. The error message if the execution failed.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public string? Error { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -83,32 +83,32 @@ public sealed partial class TriggerExecution /// /// Initializes a new instance of the class. /// - /// - /// Output only. The time when the execution finished.
+ /// + /// Output only. The time when the execution was scheduled to run.
/// Included only in responses /// - /// - /// Output only. The environment ID used for the execution.
+ /// + /// Output only. The time when the execution started.
/// Included only in responses /// - /// - /// Output only. The error message if the execution failed.
+ /// + /// Output only. The time when the execution finished.
/// Included only in responses /// - /// - /// Output only. The ID of the interaction created by this execution, if any.
+ /// + /// Output only. The status of the execution.
/// Included only in responses /// - /// - /// Output only. The time when the execution was scheduled to run.
+ /// + /// Output only. The ID of the interaction created by this execution, if any.
/// Included only in responses /// - /// - /// Output only. The time when the execution started.
+ /// + /// Output only. The environment ID used for the execution.
/// Included only in responses /// - /// - /// Output only. The status of the execution.
+ /// + /// Output only. The error message if the execution failed.
/// Included only in responses /// /// @@ -123,25 +123,25 @@ public sealed partial class TriggerExecution [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TriggerExecution( - global::System.DateTime? endTime, - string? environmentId, - string? error, - string? interactionId, global::System.DateTime? scheduledTime, global::System.DateTime? startTime, + global::System.DateTime? endTime, global::Google.Gemini.NextGen.TriggerExecutionStatus? status, + string? interactionId, + string? environmentId, + string? error, string id = default!, string triggerId = default!) { - this.EndTime = endTime; - this.EnvironmentId = environmentId; - this.Error = error; this.Id = id; - this.InteractionId = interactionId; + this.TriggerId = triggerId; this.ScheduledTime = scheduledTime; this.StartTime = startTime; + this.EndTime = endTime; this.Status = status; - this.TriggerId = triggerId; + this.InteractionId = interactionId; + this.EnvironmentId = environmentId; + this.Error = error; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TriggerUpdate.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TriggerUpdate.g.cs index 46a606ff8..26c94025c 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TriggerUpdate.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.TriggerUpdate.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini.NextGen /// public sealed partial class TriggerUpdate { - /// - /// Optional. The display name of the trigger. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("display_name")] - public string? DisplayName { get; set; } - /// /// Optional. The status of the trigger. /// @@ -21,6 +15,12 @@ public sealed partial class TriggerUpdate [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.TriggerUpdateStatusJsonConverter))] public global::Google.Gemini.NextGen.TriggerUpdateStatus? Status { get; set; } + /// + /// Optional. The display name of the trigger. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("display_name")] + public string? DisplayName { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,21 +30,21 @@ public sealed partial class TriggerUpdate /// /// Initializes a new instance of the class. /// - /// - /// Optional. The display name of the trigger. - /// /// /// Optional. The status of the trigger. /// + /// + /// Optional. The display name of the trigger. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TriggerUpdate( - string? displayName, - global::Google.Gemini.NextGen.TriggerUpdateStatus? status) + global::Google.Gemini.NextGen.TriggerUpdateStatus? status, + string? displayName) { - this.DisplayName = displayName; this.Status = status; + this.DisplayName = displayName; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLCitation.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLCitation.g.cs index 7722af41c..93c59bdf5 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLCitation.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLCitation.g.cs @@ -9,17 +9,17 @@ namespace Google.Gemini.NextGen public sealed partial class URLCitation { /// - /// End of the attributed segment, exclusive. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("end_index")] - public int? EndIndex { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// - /// Start of segment of the response that is attributed to this source.
- /// Index indicates the start of the segment, measured in bytes. + /// The URL. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("start_index")] - public int? StartIndex { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { get; set; } /// /// The title of the URL. @@ -28,17 +28,17 @@ public sealed partial class URLCitation public string? Title { get; set; } /// - /// + /// 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("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("start_index")] + public int? StartIndex { get; set; } /// - /// The URL. + /// End of the attributed segment, exclusive. /// - [global::System.Text.Json.Serialization.JsonPropertyName("url")] - public string? Url { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("end_index")] + public int? EndIndex { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -50,34 +50,34 @@ public sealed partial class URLCitation /// Initializes a new instance of the class. /// /// - /// - /// End of the attributed segment, exclusive. + /// + /// The URL. + /// + /// + /// The title of the URL. /// /// /// Start of segment of the response that is attributed to this source.
/// Index indicates the start of the segment, measured in bytes. /// - /// - /// The title of the URL. - /// - /// - /// The URL. + /// + /// End of the attributed segment, exclusive. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public URLCitation( object type, - int? endIndex, - int? startIndex, + string? url, string? title, - string? url) + int? startIndex, + int? endIndex) { - this.EndIndex = endIndex; - this.StartIndex = startIndex; - this.Title = title; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Url = url; + this.Title = title; + this.StartIndex = startIndex; + this.EndIndex = endIndex; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextCallDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextCallDelta.g.cs index 47e230968..21f32a9d9 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextCallDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextCallDelta.g.cs @@ -15,12 +15,6 @@ public sealed partial class URLContextCallDelta [global::System.Text.Json.Serialization.JsonRequired] public required global::Google.Gemini.NextGen.URLContextCallArguments URLContextCallArguments { get; set; } - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - /// /// /// @@ -28,6 +22,12 @@ public sealed partial class URLContextCallDelta [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// A signature hash for backend validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -53,8 +53,8 @@ public URLContextCallDelta( byte[]? signature) { this.URLContextCallArguments = uRLContextCallArguments ?? throw new global::System.ArgumentNullException(nameof(uRLContextCallArguments)); - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextCallStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextCallStep.g.cs index ecb71398c..2b8d5f56f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextCallStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextCallStep.g.cs @@ -23,12 +23,6 @@ public sealed partial class URLContextCallStep [global::System.Text.Json.Serialization.JsonRequired] public required string Id { get; set; } - /// - /// A signature hash for backend validation. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } - /// /// /// @@ -36,6 +30,12 @@ public sealed partial class URLContextCallStep [global::System.Text.Json.Serialization.JsonRequired] public required object Type { get; set; } + /// + /// A signature hash for backend validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -66,8 +66,8 @@ public URLContextCallStep( { this.URLContextCallArguments = uRLContextCallArguments ?? throw new global::System.ArgumentNullException(nameof(uRLContextCallArguments)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResult.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResult.g.cs index ccfd65d59..955584d15 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResult.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResult.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini.NextGen /// public sealed partial class URLContextResult { + /// + /// The URL that was fetched. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { get; set; } + /// /// The status of the URL retrieval. /// @@ -15,12 +21,6 @@ public sealed partial class URLContextResult [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.URLContextResultStatusJsonConverter))] public global::Google.Gemini.NextGen.URLContextResultStatus? Status { get; set; } - /// - /// The URL that was fetched. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("url")] - public string? Url { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,21 +30,21 @@ public sealed partial class URLContextResult /// /// Initializes a new instance of the class. /// - /// - /// The status of the URL retrieval. - /// /// /// The URL that was fetched. /// + /// + /// The status of the URL retrieval. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public URLContextResult( - global::Google.Gemini.NextGen.URLContextResultStatus? status, - string? url) + string? url, + global::Google.Gemini.NextGen.URLContextResultStatus? status) { - this.Status = status; this.Url = url; + this.Status = status; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResultDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResultDelta.g.cs index 5d9a98215..2b860582a 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResultDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResultDelta.g.cs @@ -11,28 +11,28 @@ public sealed partial class URLContextResultDelta /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] - public bool? IsError { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Result { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonPropertyName("type")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Result { get; set; } + public required object Type { get; set; } /// - /// A signature hash for backend validation. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("signature")] - public byte[]? Signature { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] + public bool? IsError { get; set; } /// - /// + /// A signature hash for backend validation. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("signature")] + public byte[]? Signature { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -58,10 +58,10 @@ public URLContextResultDelta( bool? isError, byte[]? signature) { - this.IsError = isError; this.Result = result ?? throw new global::System.ArgumentNullException(nameof(result)); - this.Signature = signature; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.IsError = isError; + this.Signature = signature; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResultStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResultStep.g.cs index 8a19be95d..528345da1 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResultStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.URLContextResultStep.g.cs @@ -9,6 +9,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class URLContextResultStep { + /// + /// Required. The results of the URL context. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("result")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Result { get; set; } + /// /// Required. ID to match the ID from the function call block. /// @@ -17,17 +24,17 @@ public sealed partial class URLContextResultStep public required string CallId { get; set; } /// - /// Whether the URL context resulted in an error. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] - public bool? IsError { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// - /// Required. The results of the URL context. + /// Whether the URL context resulted in an error. /// - [global::System.Text.Json.Serialization.JsonPropertyName("result")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList Result { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("is_error")] + public bool? IsError { get; set; } /// /// A signature hash for backend validation. @@ -35,13 +42,6 @@ public sealed partial class URLContextResultStep [global::System.Text.Json.Serialization.JsonPropertyName("signature")] public byte[]? Signature { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -51,12 +51,12 @@ public sealed partial class URLContextResultStep /// /// Initializes a new instance of the class. /// - /// - /// Required. ID to match the ID from the function call block. - /// /// /// Required. The results of the URL context. /// + /// + /// Required. ID to match the ID from the function call block. + /// /// /// /// Whether the URL context resulted in an error. @@ -68,17 +68,17 @@ public sealed partial class URLContextResultStep [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public URLContextResultStep( - string callId, global::System.Collections.Generic.IList result, + string callId, object type, bool? isError, byte[]? signature) { + this.Result = result ?? throw new global::System.ArgumentNullException(nameof(result)); this.CallId = callId ?? throw new global::System.ArgumentNullException(nameof(callId)); + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.IsError = isError; - this.Result = result ?? throw new global::System.ArgumentNullException(nameof(result)); this.Signature = signature; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UpdateTriggerRequest.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UpdateTriggerRequest.g.cs index 6f81351b6..d8591fb97 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UpdateTriggerRequest.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UpdateTriggerRequest.g.cs @@ -9,18 +9,18 @@ namespace Google.Gemini.NextGen public sealed partial class UpdateTriggerRequest { /// - /// Required. The ID of the trigger to update. + /// Represents the fields of a Trigger that can be updated. /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonPropertyName("trigger")] [global::System.Text.Json.Serialization.JsonRequired] - public required string Id { get; set; } + public required global::Google.Gemini.NextGen.TriggerUpdate Trigger { get; set; } /// - /// Represents the fields of a Trigger that can be updated. + /// Required. The ID of the trigger to update. /// - [global::System.Text.Json.Serialization.JsonPropertyName("trigger")] + [global::System.Text.Json.Serialization.JsonPropertyName("id")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.TriggerUpdate Trigger { get; set; } + public required string Id { get; set; } /// /// Optional. The update mask applies to the resource. @@ -37,12 +37,12 @@ public sealed partial class UpdateTriggerRequest /// /// Initializes a new instance of the class. /// - /// - /// Required. The ID of the trigger to update. - /// /// /// Represents the fields of a Trigger that can be updated. /// + /// + /// Required. The ID of the trigger to update. + /// /// /// Optional. The update mask applies to the resource. /// @@ -50,12 +50,12 @@ public sealed partial class UpdateTriggerRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public UpdateTriggerRequest( - string id, global::Google.Gemini.NextGen.TriggerUpdate trigger, + string id, string? updateMask) { - this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.Trigger = trigger ?? throw new global::System.ArgumentNullException(nameof(trigger)); + this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.UpdateMask = updateMask; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UpdateWebhookRequest.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UpdateWebhookRequest.g.cs index b1c1f6fbe..d421c8d46 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UpdateWebhookRequest.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UpdateWebhookRequest.g.cs @@ -8,6 +8,13 @@ namespace Google.Gemini.NextGen /// public sealed partial class UpdateWebhookRequest { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("webhook")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Google.Gemini.NextGen.WebhookUpdate Webhook { get; set; } + /// /// Required. The ID of the webhook to update. /// @@ -21,13 +28,6 @@ public sealed partial class UpdateWebhookRequest [global::System.Text.Json.Serialization.JsonPropertyName("update_mask")] public string? UpdateMask { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhook")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.WebhookUpdate Webhook { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -37,10 +37,10 @@ public sealed partial class UpdateWebhookRequest /// /// Initializes a new instance of the class. /// + /// /// /// Required. The ID of the webhook to update. /// - /// /// /// Optional. The list of fields to update. /// @@ -48,13 +48,13 @@ public sealed partial class UpdateWebhookRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public UpdateWebhookRequest( - string id, global::Google.Gemini.NextGen.WebhookUpdate webhook, + string id, string? updateMask) { + this.Webhook = webhook ?? throw new global::System.ArgumentNullException(nameof(webhook)); this.Id = id ?? throw new global::System.ArgumentNullException(nameof(id)); this.UpdateMask = updateMask; - this.Webhook = webhook ?? throw new global::System.ArgumentNullException(nameof(webhook)); } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UploadEnvironmentFileRequest.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UploadEnvironmentFileRequest.g.cs index 4f8195791..cc4de78e5 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UploadEnvironmentFileRequest.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UploadEnvironmentFileRequest.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini.NextGen /// public sealed partial class UploadEnvironmentFileRequest { + /// + /// 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`. @@ -15,12 +21,6 @@ public sealed partial class UploadEnvironmentFileRequest [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; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,22 +30,22 @@ public sealed partial class UploadEnvironmentFileRequest /// /// Initializes a new instance of the class. /// + /// + /// 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`. /// - /// - /// Optional. Whether to overwrite the destination file if it already exists. - /// #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/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItem.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItem.g.cs index e295bf4a3..b7ce4f666 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItem.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UrlContextResultItem.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini.NextGen /// public sealed partial class UrlContextResultItem { + /// + /// The URL that was fetched. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("url")] + public string? Url { get; set; } + /// /// The status of the URL retrieval. /// @@ -15,12 +21,6 @@ public sealed partial class UrlContextResultItem [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.UrlContextResultItemStatusJsonConverter))] public global::Google.Gemini.NextGen.UrlContextResultItemStatus? Status { get; set; } - /// - /// The URL that was fetched. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("url")] - public string? Url { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,21 +30,21 @@ public sealed partial class UrlContextResultItem /// /// Initializes a new instance of the class. /// - /// - /// The status of the URL retrieval. - /// /// /// The URL that was fetched. /// + /// + /// The status of the URL retrieval. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public UrlContextResultItem( - global::Google.Gemini.NextGen.UrlContextResultItemStatus? status, - string? url) + string? url, + global::Google.Gemini.NextGen.UrlContextResultItemStatus? status) { - this.Status = status; this.Url = url; + this.Status = status; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Usage.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Usage.g.cs index 8a7c65fea..d512b8357 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Usage.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Usage.g.cs @@ -10,16 +10,10 @@ namespace Google.Gemini.NextGen public sealed partial class Usage { /// - /// A breakdown of cached token usage by modality. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("cached_tokens_by_modality")] - public global::System.Collections.Generic.IList? CachedTokensByModality { get; set; } - - /// - /// Grounding tool count. + /// Number of tokens in the prompt (context). /// - [global::System.Text.Json.Serialization.JsonPropertyName("grounding_tool_count")] - public global::System.Collections.Generic.IList? GroundingToolCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("total_input_tokens")] + public int? TotalInputTokens { get; set; } /// /// A breakdown of input token usage by modality. @@ -27,18 +21,6 @@ public sealed partial class Usage [global::System.Text.Json.Serialization.JsonPropertyName("input_tokens_by_modality")] public global::System.Collections.Generic.IList? InputTokensByModality { get; set; } - /// - /// A breakdown of output token usage by modality. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("output_tokens_by_modality")] - public global::System.Collections.Generic.IList? OutputTokensByModality { get; set; } - - /// - /// A breakdown of tool-use token usage by modality. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tool_use_tokens_by_modality")] - public global::System.Collections.Generic.IList? ToolUseTokensByModality { get; set; } - /// /// Number of tokens in the cached part of the prompt (the cached content). /// @@ -46,10 +28,10 @@ public sealed partial class Usage public int? TotalCachedTokens { get; set; } /// - /// Number of tokens in the prompt (context). + /// A breakdown of cached token usage by modality. /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_input_tokens")] - public int? TotalInputTokens { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("cached_tokens_by_modality")] + public global::System.Collections.Generic.IList? CachedTokensByModality { get; set; } /// /// Total number of tokens across all the generated responses. @@ -57,6 +39,24 @@ public sealed partial class Usage [global::System.Text.Json.Serialization.JsonPropertyName("total_output_tokens")] public int? TotalOutputTokens { get; set; } + /// + /// A breakdown of output token usage by modality. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output_tokens_by_modality")] + public global::System.Collections.Generic.IList? OutputTokensByModality { get; set; } + + /// + /// Number of tokens present in tool-use prompt(s). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_tool_use_tokens")] + public int? TotalToolUseTokens { get; set; } + + /// + /// A breakdown of tool-use token usage by modality. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_use_tokens_by_modality")] + public global::System.Collections.Generic.IList? ToolUseTokensByModality { get; set; } + /// /// Number of tokens of thoughts for thinking models. /// @@ -71,10 +71,10 @@ public sealed partial class Usage public int? TotalTokens { get; set; } /// - /// Number of tokens present in tool-use prompt(s). + /// Grounding tool count. /// - [global::System.Text.Json.Serialization.JsonPropertyName("total_tool_use_tokens")] - public int? TotalToolUseTokens { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("grounding_tool_count")] + public global::System.Collections.Generic.IList? GroundingToolCount { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -85,30 +85,30 @@ public sealed partial class Usage /// /// Initializes a new instance of the class. /// - /// - /// A breakdown of cached token usage by modality. - /// - /// - /// Grounding tool count. + /// + /// Number of tokens in the prompt (context). /// /// /// A breakdown of input token usage by modality. /// - /// - /// A breakdown of output token usage by modality. - /// - /// - /// A breakdown of tool-use token usage by modality. - /// /// /// Number of tokens in the cached part of the prompt (the cached content). /// - /// - /// Number of tokens in the prompt (context). + /// + /// A breakdown of cached token usage by modality. /// /// /// Total number of tokens across all the generated responses. /// + /// + /// A breakdown of output token usage by modality. + /// + /// + /// Number of tokens present in tool-use prompt(s). + /// + /// + /// A breakdown of tool-use token usage by modality. + /// /// /// Number of tokens of thoughts for thinking models. /// @@ -116,36 +116,36 @@ public sealed partial class Usage /// Total token count for the interaction request (prompt + responses + other
/// internal tokens). /// - /// - /// Number of tokens present in tool-use prompt(s). + /// + /// Grounding tool count. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Usage( - global::System.Collections.Generic.IList? cachedTokensByModality, - global::System.Collections.Generic.IList? groundingToolCount, + int? totalInputTokens, global::System.Collections.Generic.IList? inputTokensByModality, - global::System.Collections.Generic.IList? outputTokensByModality, - global::System.Collections.Generic.IList? toolUseTokensByModality, int? totalCachedTokens, - int? totalInputTokens, + global::System.Collections.Generic.IList? cachedTokensByModality, int? totalOutputTokens, + global::System.Collections.Generic.IList? outputTokensByModality, + int? totalToolUseTokens, + global::System.Collections.Generic.IList? toolUseTokensByModality, int? totalThoughtTokens, int? totalTokens, - int? totalToolUseTokens) + global::System.Collections.Generic.IList? groundingToolCount) { - this.CachedTokensByModality = cachedTokensByModality; - this.GroundingToolCount = groundingToolCount; + this.TotalInputTokens = totalInputTokens; this.InputTokensByModality = inputTokensByModality; - this.OutputTokensByModality = outputTokensByModality; - this.ToolUseTokensByModality = toolUseTokensByModality; this.TotalCachedTokens = totalCachedTokens; - this.TotalInputTokens = totalInputTokens; + this.CachedTokensByModality = cachedTokensByModality; this.TotalOutputTokens = totalOutputTokens; + this.OutputTokensByModality = outputTokensByModality; + this.TotalToolUseTokens = totalToolUseTokens; + this.ToolUseTokensByModality = toolUseTokensByModality; this.TotalThoughtTokens = totalThoughtTokens; this.TotalTokens = totalTokens; - this.TotalToolUseTokens = totalToolUseTokens; + this.GroundingToolCount = groundingToolCount; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UserInputStep.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UserInputStep.g.cs index 10526ba98..fdd596c17 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UserInputStep.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.UserInputStep.g.cs @@ -12,15 +12,15 @@ public sealed partial class UserInputStep /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public global::System.Collections.Generic.IList? Content { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public global::System.Collections.Generic.IList? Content { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -40,8 +40,8 @@ public UserInputStep( object type, global::System.Collections.Generic.IList? content) { - this.Content = content; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Content = content; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VerbatimTranscriptionMode.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VerbatimTranscriptionMode.g.cs index 7e39ed99e..29437bb42 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VerbatimTranscriptionMode.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VerbatimTranscriptionMode.g.cs @@ -9,10 +9,11 @@ namespace Google.Gemini.NextGen public sealed partial class VerbatimTranscriptionMode { /// - /// Optional. Configures speaker diarization. Supported values: "speaker". + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("diarization_mode")] - public string? DiarizationMode { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// Optional. The granularity of timestamps to include in the transcription output.
@@ -22,11 +23,10 @@ public sealed partial class VerbatimTranscriptionMode public global::System.Collections.Generic.IList? TimestampGranularities { get; set; } /// - /// + /// Optional. Configures speaker diarization. Supported values: "speaker". /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("diarization_mode")] + public string? DiarizationMode { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -38,24 +38,24 @@ public sealed partial class VerbatimTranscriptionMode /// Initializes a new instance of the class. /// /// - /// - /// Optional. Configures speaker diarization. Supported values: "speaker". - /// /// /// Optional. The granularity of timestamps to include in the transcription output.
/// Supported values: "word". If empty, no timestamps are generated. /// + /// + /// Optional. Configures speaker diarization. Supported values: "speaker". + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public VerbatimTranscriptionMode( object type, - string? diarizationMode, - global::System.Collections.Generic.IList? timestampGranularities) + global::System.Collections.Generic.IList? timestampGranularities, + string? diarizationMode) { - this.DiarizationMode = diarizationMode; - this.TimestampGranularities = timestampGranularities; this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.TimestampGranularities = timestampGranularities; + this.DiarizationMode = diarizationMode; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VertexAISearchConfig.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VertexAISearchConfig.g.cs index 7443f9316..0e467861b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VertexAISearchConfig.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VertexAISearchConfig.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini.NextGen /// public sealed partial class VertexAISearchConfig { - /// - /// Optional. Used to specify Vertex AI Search datastores. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("datastores")] - public global::System.Collections.Generic.IList? Datastores { get; set; } - /// /// Optional. Used to specify Vertex AI Search engine. /// [global::System.Text.Json.Serialization.JsonPropertyName("engine")] public string? Engine { get; set; } + /// + /// Optional. Used to specify Vertex AI Search datastores. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("datastores")] + public global::System.Collections.Generic.IList? Datastores { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class VertexAISearchConfig /// /// Initializes a new instance of the class. /// - /// - /// Optional. Used to specify Vertex AI Search datastores. - /// /// /// Optional. Used to specify Vertex AI Search engine. /// + /// + /// Optional. Used to specify Vertex AI Search datastores. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public VertexAISearchConfig( - global::System.Collections.Generic.IList? datastores, - string? engine) + string? engine, + global::System.Collections.Generic.IList? datastores) { - this.Datastores = datastores; this.Engine = engine; + this.Datastores = datastores; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoContent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoContent.g.cs index cca2ecc34..145f7c485 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoContent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoContent.g.cs @@ -10,24 +10,23 @@ namespace Google.Gemini.NextGen public sealed partial class VideoContent { /// - /// The video content. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public byte[]? Data { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// - /// The mime type of the video. + /// The video content. /// - [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.VideoContentMimeTypeJsonConverter))] - public global::Google.Gemini.NextGen.VideoContentMimeType? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + public byte[]? Data { get; set; } /// - /// A user-defined name for this content block. Can be referenced by the model
- /// in the final response. + /// The URI of the video. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// /// How the model processes this video for understanding. @@ -44,17 +43,18 @@ public sealed partial class VideoContent public global::Google.Gemini.NextGen.MediaResolution? Resolution { get; set; } /// - /// + /// A user-defined name for this content block. Can be referenced by the model
+ /// in the final response. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// - /// The URI of the video. + /// The mime type of the video. /// - [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.VideoContentMimeTypeJsonConverter))] + public global::Google.Gemini.NextGen.VideoContentMimeType? MimeType { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -69,19 +69,19 @@ public sealed partial class VideoContent /// /// The video content. /// - /// - /// The mime type of the video. - /// - /// - /// A user-defined name for this content block. Can be referenced by the model
- /// in the final response. + /// + /// The URI of the video. /// /// /// How the model processes this video for understanding. /// /// - /// - /// The URI of the video. + /// + /// A user-defined name for this content block. Can be referenced by the model
+ /// in the final response. + /// + /// + /// The mime type of the video. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] @@ -89,19 +89,19 @@ public sealed partial class VideoContent public VideoContent( object type, byte[]? data, - global::Google.Gemini.NextGen.VideoContentMimeType? mimeType, - string? name, + string? uri, global::Google.Gemini.NextGen.OneOf? processing, global::Google.Gemini.NextGen.MediaResolution? resolution, - string? uri) + string? name, + global::Google.Gemini.NextGen.VideoContentMimeType? mimeType) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Data = data; - this.MimeType = mimeType; - this.Name = name; + this.Uri = uri; this.Processing = processing; this.Resolution = resolution; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.Uri = uri; + this.Name = name; + this.MimeType = mimeType; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoDelta.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoDelta.g.cs index 02aaf29da..05f994a9d 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoDelta.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoDelta.g.cs @@ -11,35 +11,35 @@ public sealed partial class VideoDelta /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public byte[]? Data { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.VideoDeltaMimeTypeJsonConverter))] - public global::Google.Gemini.NextGen.VideoDeltaMimeType? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + public byte[]? Data { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.MediaResolutionJsonConverter))] - public global::Google.Gemini.NextGen.MediaResolution? Resolution { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.VideoDeltaMimeTypeJsonConverter))] + public global::Google.Gemini.NextGen.VideoDeltaMimeType? MimeType { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("resolution")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.MediaResolutionJsonConverter))] + public global::Google.Gemini.NextGen.MediaResolution? Resolution { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -52,24 +52,24 @@ public sealed partial class VideoDelta /// /// /// + /// /// /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public VideoDelta( object type, byte[]? data, + string? uri, global::Google.Gemini.NextGen.VideoDeltaMimeType? mimeType, - global::Google.Gemini.NextGen.MediaResolution? resolution, - string? uri) + global::Google.Gemini.NextGen.MediaResolution? resolution) { + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Data = data; + this.Uri = uri; this.MimeType = mimeType; this.Resolution = resolution; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); - this.Uri = uri; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoResponseFormat.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoResponseFormat.g.cs index ea5f53a85..c2017ca3d 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoResponseFormat.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.VideoResponseFormat.g.cs @@ -10,11 +10,11 @@ namespace Google.Gemini.NextGen public sealed partial class VideoResponseFormat { /// - /// The aspect ratio for the video output. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("aspect_ratio")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.VideoResponseFormatAspectRatioJsonConverter))] - public global::Google.Gemini.NextGen.VideoResponseFormatAspectRatio? AspectRatio { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } /// /// The delivery mode for the video output. @@ -23,12 +23,6 @@ public sealed partial class VideoResponseFormat [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.VideoResponseFormatDeliveryJsonConverter))] public global::Google.Gemini.NextGen.VideoResponseFormatDelivery? Delivery { get; set; } - /// - /// The duration for the video output. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("duration")] - public string? Duration { get; set; } - /// /// The Cloud Storage URI to store the video output. Required for Vertex if
/// delivery mode is URI. @@ -36,6 +30,19 @@ public sealed partial class VideoResponseFormat [global::System.Text.Json.Serialization.JsonPropertyName("gcs_uri")] public string? GcsUri { get; set; } + /// + /// The aspect ratio for the video output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aspect_ratio")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.VideoResponseFormatAspectRatioJsonConverter))] + public global::Google.Gemini.NextGen.VideoResponseFormatAspectRatio? AspectRatio { get; set; } + + /// + /// The duration for the video output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("duration")] + public string? Duration { get; set; } + /// /// The video output resolution. Defaults to 720p. /// @@ -43,13 +50,6 @@ public sealed partial class VideoResponseFormat [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.VideoResponseFormatResolutionJsonConverter))] public global::Google.Gemini.NextGen.VideoResponseFormatResolution? Resolution { get; set; } - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -60,19 +60,19 @@ public sealed partial class VideoResponseFormat /// Initializes a new instance of the class. ///
/// - /// - /// The aspect ratio for the video output. - /// /// /// The delivery mode for the video output. /// - /// - /// The duration for the video output. - /// /// /// The Cloud Storage URI to store the video output. Required for Vertex if
/// delivery mode is URI. /// + /// + /// The aspect ratio for the video output. + /// + /// + /// The duration for the video output. + /// /// /// The video output resolution. Defaults to 720p. /// @@ -81,18 +81,18 @@ public sealed partial class VideoResponseFormat #endif public VideoResponseFormat( object type, - global::Google.Gemini.NextGen.VideoResponseFormatAspectRatio? aspectRatio, global::Google.Gemini.NextGen.VideoResponseFormatDelivery? delivery, - string? duration, string? gcsUri, + global::Google.Gemini.NextGen.VideoResponseFormatAspectRatio? aspectRatio, + string? duration, global::Google.Gemini.NextGen.VideoResponseFormatResolution? resolution) { - this.AspectRatio = aspectRatio; + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); this.Delivery = delivery; - this.Duration = duration; this.GcsUri = gcsUri; + this.AspectRatio = aspectRatio; + this.Duration = duration; this.Resolution = resolution; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); } /// 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 e9e98fb72..01a86da5a 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 @@ -10,48 +10,12 @@ namespace Google.Gemini.NextGen public sealed partial class Voice { /// - /// Optional. Regional accent descriptor (e.g. "American", "British"). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("accent")] - public string? Accent { get; set; } - - /// - /// Optional. Optimal usage context or domain (e.g. "Conversational",
- /// "Audiobook", "News"). - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("context")] - public string? Context { get; set; } - - /// - /// Optional. Descriptive summary of vocal timbre, personality, and tone. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// Optional. User-provided display name for a stored voice (`store = true`),
- /// or the catalog name for a prebuilt voice. - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("display_name")] - public string? DisplayName { get; set; } - - /// - /// Output only. The timestamp at which a custom stored voice (`store = true`)
- /// 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")] - public global::System.DateTime? ExpireTime { get; set; } - - /// - /// Optional. Perceived voice gender presentation (e.g. "female", "male",
- /// "neutral"). + /// ///
- [global::System.Text.Json.Serialization.JsonPropertyName("gender")] - public string? Gender { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.VoiceTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Google.Gemini.NextGen.VoiceType Type { get; set; } /// /// Output only. The unique identifier of the voice.
@@ -68,6 +32,17 @@ public sealed partial class Voice [global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } + /// + /// Optional. The model used to design or replicate the voice.
+ /// If omitted in `CreateVoice`, defaults to the latest supported voice design
+ /// model. Returned in `CreateVoice`, `GetVoice`, and `ListVoices` responses
+ /// for custom voices (`"prompted"` and `"replicated"`); unset for `"prebuilt"`
+ /// voices. Created voices can be synthesized across any supported TTS
+ /// synthesis model. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } + /// /// Output only. The client-managed voice replication key (with prefix
/// `voicekey_`). Returned only by `CreateVoice` when `type` is `"replicated"`
@@ -79,35 +54,31 @@ public sealed partial class Voice public string? Key { get; set; } /// - /// Optional. Primary BCP-47 language tag (e.g. "en-US", "fr-FR"). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("language_code")] - public string? LanguageCode { get; set; } - - /// - /// Optional. The model used to design or replicate the voice.
- /// If omitted in `CreateVoice`, defaults to the latest supported voice design
- /// model. Returned in `CreateVoice`, `GetVoice`, and `ListVoices` responses
- /// for custom voices (`"prompted"` and `"replicated"`); unset for `"prebuilt"`
- /// voices. Created voices can be synthesized across any supported TTS
- /// synthesis model. + /// Input only. Parameters for replicated voice generation.
+ /// Required on input when `type` is `"replicated"`. Not returned in
+ /// responses.
+ /// Included only in requests ///
- [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("replicated")] + public global::Google.Gemini.NextGen.ReplicatedVoice? Replicated { get; set; } /// - /// Optional. Intended persona or character archetype (e.g. "Warm, Friendly",
- /// "Narrator"). + /// Output only. The timestamp at which a custom stored voice (`store = true`)
+ /// 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("persona")] - public string? Persona { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("expire_time")] + public global::System.DateTime? ExpireTime { get; set; } /// - /// + /// Optional. User-provided display name for a stored voice (`store = true`),
+ /// or the catalog name for a prebuilt voice. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("pitch")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.PitchJsonConverter))] - public global::Google.Gemini.NextGen.Pitch? Pitch { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("display_name")] + public string? DisplayName { get; set; } /// /// Parameters for prompted voice generation.
@@ -117,6 +88,12 @@ public sealed partial class Voice [global::System.Text.Json.Serialization.JsonPropertyName("prompted")] public global::Google.Gemini.NextGen.PromptedVoice? Prompted { get; set; } + /// + /// Optional. Primary BCP-47 language tag (e.g. "en-US", "fr-FR"). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("language_code")] + public string? LanguageCode { get; set; } + /// /// Optional. ISO 3166-1 alpha-2 or UN M.49 geographic region code (e.g. "US",
/// "GB", "001"). @@ -125,27 +102,44 @@ public sealed partial class Voice public string? RegionCode { get; set; } /// - /// Input only. Parameters for replicated voice generation.
- /// Required on input when `type` is `"replicated"`. Not returned in
- /// responses.
- /// Included only in requests + /// Optional. Regional accent descriptor (e.g. "American", "British"). ///
- [global::System.Text.Json.Serialization.JsonPropertyName("replicated")] - public global::Google.Gemini.NextGen.ReplicatedVoice? Replicated { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("accent")] + public string? Accent { get; set; } /// - /// Audio payload used for voice creation. + /// Optional. Intended persona or character archetype (e.g. "Warm, Friendly",
+ /// "Narrator"). ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sample_audio")] - public global::Google.Gemini.NextGen.AudioData? SampleAudio { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("persona")] + public string? Persona { get; set; } + + /// + /// Optional. Optimal usage context or domain (e.g. "Conversational",
+ /// "Audiobook", "News"). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("context")] + public string? Context { get; set; } + + /// + /// Optional. Perceived voice gender presentation (e.g. "female", "male",
+ /// "neutral"). + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("gender")] + public string? Gender { get; set; } /// /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.VoiceTypeJsonConverter))] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::Google.Gemini.NextGen.VoiceType Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("pitch")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.PitchJsonConverter))] + public global::Google.Gemini.NextGen.Pitch? Pitch { get; set; } + + /// + /// Optional. Descriptive summary of vocal timbre, personality, and tone. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } /// /// Statistics on the interaction request's token usage.
@@ -154,6 +148,12 @@ public sealed partial class Voice [global::System.Text.Json.Serialization.JsonPropertyName("usage")] public global::Google.Gemini.NextGen.Usage? Usage { get; set; } + /// + /// Audio payload used for voice creation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sample_audio")] + public global::Google.Gemini.NextGen.AudioData? SampleAudio { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -164,32 +164,6 @@ public sealed partial class Voice /// Initializes a new instance of the class. ///
/// - /// - /// Optional. Regional accent descriptor (e.g. "American", "British"). - /// - /// - /// Optional. Optimal usage context or domain (e.g. "Conversational",
- /// "Audiobook", "News"). - /// - /// - /// Optional. Descriptive summary of vocal timbre, personality, and tone. - /// - /// - /// Optional. User-provided display name for a stored voice (`store = true`),
- /// or the catalog name for a prebuilt voice. - /// - /// - /// Output only. The timestamp at which a custom stored voice (`store = true`)
- /// 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 - /// - /// - /// Optional. Perceived voice gender presentation (e.g. "female", "male",
- /// "neutral"). - /// /// /// Output only. The unique identifier of the voice.
/// * For Google-managed custom voices (`store = true`), this is a generated ID
@@ -202,6 +176,14 @@ public sealed partial class Voice /// * Unset when `CreateVoice` is called with `store = false`.
/// Included only in responses /// + /// + /// Optional. The model used to design or replicate the voice.
+ /// If omitted in `CreateVoice`, defaults to the latest supported voice design
+ /// model. Returned in `CreateVoice`, `GetVoice`, and `ListVoices` responses
+ /// for custom voices (`"prompted"` and `"replicated"`); unset for `"prebuilt"`
+ /// voices. Created voices can be synthesized across any supported TTS
+ /// synthesis model. + /// /// /// Output only. The client-managed voice replication key (with prefix
/// `voicekey_`). Returned only by `CreateVoice` when `type` is `"replicated"`
@@ -209,85 +191,103 @@ public sealed partial class Voice /// (or `SpeechConfig.voice`) during speech synthesis.
/// Included only in responses /// - /// - /// Optional. Primary BCP-47 language tag (e.g. "en-US", "fr-FR"). + /// + /// Input only. Parameters for replicated voice generation.
+ /// Required on input when `type` is `"replicated"`. Not returned in
+ /// responses.
+ /// Included only in requests /// - /// - /// Optional. The model used to design or replicate the voice.
- /// If omitted in `CreateVoice`, defaults to the latest supported voice design
- /// model. Returned in `CreateVoice`, `GetVoice`, and `ListVoices` responses
- /// for custom voices (`"prompted"` and `"replicated"`); unset for `"prebuilt"`
- /// voices. Created voices can be synthesized across any supported TTS
- /// synthesis model. + /// + /// Output only. The timestamp at which a custom stored voice (`store = true`)
+ /// 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 /// - /// - /// Optional. Intended persona or character archetype (e.g. "Warm, Friendly",
- /// "Narrator"). + /// + /// Optional. User-provided display name for a stored voice (`store = true`),
+ /// or the catalog name for a prebuilt voice. /// - /// /// /// Parameters for prompted voice generation.
/// Required in `CreateVoice` when `type` is `"prompted"`. Returned in
/// `CreateVoice`, `GetVoice`, and `ListVoices` responses for prompted voices. /// + /// + /// Optional. Primary BCP-47 language tag (e.g. "en-US", "fr-FR"). + /// /// /// Optional. ISO 3166-1 alpha-2 or UN M.49 geographic region code (e.g. "US",
/// "GB", "001"). /// - /// - /// Input only. Parameters for replicated voice generation.
- /// Required on input when `type` is `"replicated"`. Not returned in
- /// responses.
- /// Included only in requests + /// + /// Optional. Regional accent descriptor (e.g. "American", "British"). /// - /// - /// Audio payload used for voice creation. + /// + /// Optional. Intended persona or character archetype (e.g. "Warm, Friendly",
+ /// "Narrator"). + /// + /// + /// Optional. Optimal usage context or domain (e.g. "Conversational",
+ /// "Audiobook", "News"). + /// + /// + /// Optional. Perceived voice gender presentation (e.g. "female", "male",
+ /// "neutral"). + /// + /// + /// + /// Optional. Descriptive summary of vocal timbre, personality, and tone. /// /// /// Statistics on the interaction request's token usage.
/// Included only in responses /// + /// + /// Audio payload used for voice creation. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Voice( global::Google.Gemini.NextGen.VoiceType type, - string? accent, - string? context, - string? description, - string? displayName, - global::System.DateTime? expireTime, - string? gender, string? id, + string? model, string? key, + global::Google.Gemini.NextGen.ReplicatedVoice? replicated, + global::System.DateTime? expireTime, + string? displayName, + global::Google.Gemini.NextGen.PromptedVoice? prompted, string? languageCode, - string? model, + string? regionCode, + string? accent, string? persona, + string? context, + string? gender, global::Google.Gemini.NextGen.Pitch? pitch, - global::Google.Gemini.NextGen.PromptedVoice? prompted, - string? regionCode, - global::Google.Gemini.NextGen.ReplicatedVoice? replicated, - global::Google.Gemini.NextGen.AudioData? sampleAudio, - global::Google.Gemini.NextGen.Usage? usage) + string? description, + global::Google.Gemini.NextGen.Usage? usage, + global::Google.Gemini.NextGen.AudioData? sampleAudio) { - this.Accent = accent; - this.Context = context; - this.Description = description; - this.DisplayName = displayName; - this.ExpireTime = expireTime; - this.Gender = gender; + this.Type = type; this.Id = id; + this.Model = model; this.Key = key; + this.Replicated = replicated; + this.ExpireTime = expireTime; + this.DisplayName = displayName; + this.Prompted = prompted; this.LanguageCode = languageCode; - this.Model = model; + this.RegionCode = regionCode; + this.Accent = accent; this.Persona = persona; + this.Context = context; + this.Gender = gender; this.Pitch = pitch; - this.Prompted = prompted; - this.RegionCode = regionCode; - this.Replicated = replicated; - this.SampleAudio = sampleAudio; - this.Type = type; + this.Description = description; this.Usage = usage; + this.SampleAudio = sampleAudio; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Webhook.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Webhook.g.cs index f5262e213..345d93373 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Webhook.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Webhook.g.cs @@ -9,18 +9,26 @@ namespace Google.Gemini.NextGen public sealed partial class Webhook { /// - /// Output only. The timestamp when the webhook was created.
- /// Included only in responses + /// Required. The URI to which webhook events will be sent. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("create_time")] - public global::System.DateTime? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Uri { get; set; } /// - /// Output only. The ID of the webhook.
- /// Included only in responses + /// Required. The events that the webhook is subscribed to.
+ /// Available events:
+ /// - batch.succeeded
+ /// - batch.expired
+ /// - batch.failed
+ /// - interaction.requires_action
+ /// - interaction.completed
+ /// - interaction.failed
+ /// - video.generated ///
- [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("subscribed_events")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList SubscribedEvents { get; set; } /// /// Optional. The user-provided name of the webhook. @@ -29,11 +37,18 @@ public sealed partial class Webhook public string? Name { get; set; } /// - /// Output only. The new signing secret for the webhook. Only populated on create.
+ /// Output only. The timestamp when the webhook was created.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("new_signing_secret")] - public string? NewSigningSecret { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("create_time")] + public global::System.DateTime? CreateTime { get; set; } + + /// + /// Output only. The timestamp when the webhook was last updated.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("update_time")] + public global::System.DateTime? UpdateTime { get; set; } /// /// Output only. The signing secrets associated with this webhook.
@@ -51,33 +66,18 @@ public sealed partial class Webhook public global::Google.Gemini.NextGen.WebhookState? State { get; set; } /// - /// Required. The events that the webhook is subscribed to.
- /// Available events:
- /// - batch.succeeded
- /// - batch.expired
- /// - batch.failed
- /// - interaction.requires_action
- /// - interaction.completed
- /// - interaction.failed
- /// - video.generated - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("subscribed_events")] - [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList SubscribedEvents { get; set; } - - /// - /// Output only. The timestamp when the webhook was last updated.
+ /// Output only. The new signing secret for the webhook. Only populated on create.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("update_time")] - public global::System.DateTime? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("new_signing_secret")] + public string? NewSigningSecret { get; set; } /// - /// Required. The URI to which webhook events will be sent. + /// Output only. The ID of the webhook.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -88,6 +88,9 @@ public sealed partial class Webhook /// /// Initializes a new instance of the class. /// + /// + /// Required. The URI to which webhook events will be sent. + /// /// /// Required. The events that the webhook is subscribed to.
/// Available events:
@@ -99,22 +102,15 @@ public sealed partial class Webhook /// - interaction.failed
/// - video.generated /// - /// - /// Required. The URI to which webhook events will be sent. + /// + /// Optional. The user-provided name of the webhook. /// /// /// Output only. The timestamp when the webhook was created.
/// Included only in responses /// - /// - /// Output only. The ID of the webhook.
- /// Included only in responses - /// - /// - /// Optional. The user-provided name of the webhook. - /// - /// - /// Output only. The new signing secret for the webhook. Only populated on create.
+ /// + /// Output only. The timestamp when the webhook was last updated.
/// Included only in responses /// /// @@ -125,33 +121,37 @@ public sealed partial class Webhook /// Output only. The state of the webhook.
/// Included only in responses /// - /// - /// Output only. The timestamp when the webhook was last updated.
+ /// + /// Output only. The new signing secret for the webhook. Only populated on create.
+ /// Included only in responses + /// + /// + /// Output only. The ID of the webhook.
/// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Webhook( - global::System.Collections.Generic.IList subscribedEvents, string uri, - global::System.DateTime? createTime, - string? id, + global::System.Collections.Generic.IList subscribedEvents, string? name, - string? newSigningSecret, + global::System.DateTime? createTime, + global::System.DateTime? updateTime, global::System.Collections.Generic.IList? signingSecrets, global::Google.Gemini.NextGen.WebhookState? state, - global::System.DateTime? updateTime) + string? newSigningSecret, + string? id) { - this.CreateTime = createTime; - this.Id = id; + this.Uri = uri ?? throw new global::System.ArgumentNullException(nameof(uri)); + this.SubscribedEvents = subscribedEvents ?? throw new global::System.ArgumentNullException(nameof(subscribedEvents)); this.Name = name; - this.NewSigningSecret = newSigningSecret; + this.CreateTime = createTime; + this.UpdateTime = updateTime; this.SigningSecrets = signingSecrets; this.State = state; - this.SubscribedEvents = subscribedEvents ?? throw new global::System.ArgumentNullException(nameof(subscribedEvents)); - this.UpdateTime = updateTime; - this.Uri = uri ?? throw new global::System.ArgumentNullException(nameof(uri)); + this.NewSigningSecret = newSigningSecret; + this.Id = id; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookListResponse.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookListResponse.g.cs index 02a83e652..0c0d477af 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookListResponse.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookListResponse.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini.NextGen /// public sealed partial class WebhookListResponse { + /// + /// The webhooks. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("webhooks")] + public global::System.Collections.Generic.IList? Webhooks { get; set; } + /// /// A token, which can be sent as `page_token` to retrieve the next page.
/// If this field is omitted, there are no subsequent pages. @@ -15,12 +21,6 @@ public sealed partial class WebhookListResponse [global::System.Text.Json.Serialization.JsonPropertyName("next_page_token")] public string? NextPageToken { get; set; } - /// - /// The webhooks. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhooks")] - public global::System.Collections.Generic.IList? Webhooks { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,22 +30,22 @@ public sealed partial class WebhookListResponse /// /// Initializes a new instance of the class. /// + /// + /// The webhooks. + /// /// /// A token, which can be sent as `page_token` to retrieve the next page.
/// If this field is omitted, there are no subsequent pages. /// - /// - /// The webhooks. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public WebhookListResponse( - string? nextPageToken, - global::System.Collections.Generic.IList? webhooks) + global::System.Collections.Generic.IList? webhooks, + string? nextPageToken) { - this.NextPageToken = nextPageToken; this.Webhooks = webhooks; + this.NextPageToken = nextPageToken; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookUpdate.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookUpdate.g.cs index 76891a577..945df513e 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookUpdate.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WebhookUpdate.g.cs @@ -15,11 +15,10 @@ public sealed partial class WebhookUpdate public string? Name { get; set; } /// - /// Optional. The state of the webhook. + /// Optional. The URI to which webhook events will be sent. /// - [global::System.Text.Json.Serialization.JsonPropertyName("state")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateStateJsonConverter))] - public global::Google.Gemini.NextGen.WebhookUpdateState? State { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// /// Optional. The events that the webhook is subscribed to.
@@ -36,10 +35,11 @@ public sealed partial class WebhookUpdate public global::System.Collections.Generic.IList? SubscribedEvents { get; set; } /// - /// Optional. The URI to which webhook events will be sent. + /// Optional. The state of the webhook. /// - [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("state")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateStateJsonConverter))] + public global::Google.Gemini.NextGen.WebhookUpdateState? State { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -53,8 +53,8 @@ public sealed partial class WebhookUpdate /// /// Optional. The user-provided name of the webhook. /// - /// - /// Optional. The state of the webhook. + /// + /// Optional. The URI to which webhook events will be sent. /// /// /// Optional. The events that the webhook is subscribed to.
@@ -67,22 +67,22 @@ public sealed partial class WebhookUpdate /// - interaction.failed
/// - video.generated /// - /// - /// Optional. The URI to which webhook events will be sent. + /// + /// Optional. The state of the webhook. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public WebhookUpdate( string? name, - global::Google.Gemini.NextGen.WebhookUpdateState? state, + string? uri, global::System.Collections.Generic.IList? subscribedEvents, - string? uri) + global::Google.Gemini.NextGen.WebhookUpdateState? state) { this.Name = name; - this.State = state; - this.SubscribedEvents = subscribedEvents; this.Uri = uri; + this.SubscribedEvents = subscribedEvents; + this.State = state; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WordInfo.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WordInfo.g.cs index 9ace288fb..dc3cd0012 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WordInfo.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.WordInfo.g.cs @@ -10,10 +10,24 @@ namespace Google.Gemini.NextGen public sealed partial class WordInfo { /// - /// End of the attributed segment, exclusive. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("end_index")] - public int? EndIndex { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Type { get; set; } + + /// + /// The transcribed word. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } + + /// + /// Start offset in time of the word relative to the start of the audio.
+ /// Present when timestamp_granularities contains "word". + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("start_offset")] + public string? StartOffset { get; set; } /// /// End offset in time of the word relative to the start of the audio.
@@ -37,24 +51,10 @@ public sealed partial class WordInfo public int? StartIndex { get; set; } /// - /// Start offset in time of the word relative to the start of the audio.
- /// Present when timestamp_granularities contains "word". - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("start_offset")] - public string? StartOffset { get; set; } - - /// - /// The transcribed word. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { get; set; } - - /// - /// + /// End of the attributed segment, exclusive. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonRequired] - public required object Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("end_index")] + public int? EndIndex { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -66,8 +66,12 @@ public sealed partial class WordInfo /// Initializes a new instance of the class. /// /// - /// - /// End of the attributed segment, exclusive. + /// + /// The transcribed word. + /// + /// + /// Start offset in time of the word relative to the start of the audio.
+ /// Present when timestamp_granularities contains "word". /// /// /// End offset in time of the word relative to the start of the audio.
@@ -81,32 +85,28 @@ public sealed partial class WordInfo /// Start of segment of the response that is attributed to this source.
/// Index indicates the start of the segment, measured in bytes. /// - /// - /// Start offset in time of the word relative to the start of the audio.
- /// Present when timestamp_granularities contains "word". - /// - /// - /// The transcribed word. + /// + /// End of the attributed segment, exclusive. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public WordInfo( object type, - int? endIndex, + string? text, + string? startOffset, string? endOffset, string? speaker, int? startIndex, - string? startOffset, - string? text) + int? endIndex) { - this.EndIndex = endIndex; + this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.Text = text; + this.StartOffset = startOffset; this.EndOffset = endOffset; this.Speaker = speaker; this.StartIndex = startIndex; - this.StartOffset = startOffset; - this.Text = text; - this.Type = type ?? throw new global::System.ArgumentNullException(nameof(type)); + this.EndIndex = endIndex; } /// 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 857c1e5cd..0ea345b8d 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 @@ -502,52 +502,52 @@ partial void ProcessCreateResponseContent( /// Creates a new trigger that will invoke the specified agent on the given
/// cron schedule. ///
+ /// + /// Required. The cron schedule on which the trigger should run.
+ /// Standard cron format. + /// + /// + /// Required. Time zone in which the schedule should be interpreted. + /// + /// + /// Interaction for generating the completion using agents. + /// /// /// Optional. The display name of the trigger. /// /// /// Optional. The environment ID for the trigger execution. /// - /// - /// Optional. The execution timeout for the triggered interaction. - /// - /// - /// Interaction for generating the completion using agents. - /// /// /// Optional. The maximum number of consecutive failures allowed before
/// the trigger is automatically paused (status becomes ERROR). /// - /// - /// Required. The cron schedule on which the trigger should run.
- /// Standard cron format. - /// - /// - /// Required. Time zone in which the schedule should be interpreted. + /// + /// Optional. The execution timeout for the triggered interaction. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateAsync( - global::Google.Gemini.NextGen.CreateAgentInteraction createAgentInteraction, string schedule, string timeZone, + global::Google.Gemini.NextGen.CreateAgentInteraction createAgentInteraction, string? displayName = default, string? environmentId = default, - int? executionTimeoutSeconds = default, int? maxConsecutiveFailures = default, + int? executionTimeoutSeconds = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.NextGen.TriggerCreateParams { + Schedule = schedule, + TimeZone = timeZone, + CreateAgentInteraction = createAgentInteraction, DisplayName = displayName, EnvironmentId = environmentId, - ExecutionTimeoutSeconds = executionTimeoutSeconds, - CreateAgentInteraction = createAgentInteraction, MaxConsecutiveFailures = maxConsecutiveFailures, - Schedule = schedule, - TimeZone = timeZone, + ExecutionTimeoutSeconds = executionTimeoutSeconds, }; return await CreateAsync( 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 9b3128d3d..ee081ac92 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 @@ -481,26 +481,26 @@ partial void ProcessUpdateResponseContent( /// Updates a trigger. ///
/// - /// - /// Optional. The display name of the trigger. - /// /// /// Optional. The status of the trigger. /// + /// + /// Optional. The display name of the trigger. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task UpdateAsync( string id, - string? displayName = default, global::Google.Gemini.NextGen.TriggerUpdateStatus? status = default, + string? displayName = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.NextGen.TriggerUpdate { - DisplayName = displayName, Status = status, + DisplayName = displayName, }; return await UpdateAsync( 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 dac265b8f..0388224d2 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 @@ -14,11 +14,11 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ResponseModality), TypeInfoPropertyName = "ResponseModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AudioData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateVoiceRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Voice))] @@ -36,8 +36,8 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VoiceType), TypeInfoPropertyName = "VoiceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ResponseModality?), TypeInfoPropertyName = "NullableResponseModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GroundingToolCountType?), TypeInfoPropertyName = "NullableGroundingToolCountType2")] 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 51b3e77da..d9b78afe0 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 @@ -509,6 +509,10 @@ partial void ProcessCreateResponseContent( /// (`VOICE_TYPE_PROMPTED`) or from reference and consent audio recordings
/// (`VOICE_TYPE_REPLICATED`). /// + /// + /// A voice resource representing either a custom voice (created via
+ /// `CreateVoice`) or a prebuilt system voice (returned by `ListVoices`). + /// /// /// Optional. Whether the created voice is persisted and managed by Google.
/// * When `true`, Google stores the voice and returns `Voice.id` (for example,
@@ -525,10 +529,6 @@ partial void ProcessCreateResponseContent( /// * Required to be `true` when `voice.type` is `"prompted"`
/// (otherwise fails with `INVALID_ARGUMENT`). /// - /// - /// A voice resource representing either a custom voice (created via
- /// `CreateVoice`) or a prebuilt system voice (returned by `ListVoices`). - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -540,8 +540,8 @@ partial void ProcessCreateResponseContent( { var __request = new global::Google.Gemini.NextGen.CreateVoiceRequest { - Store = store, Voice = voice, + Store = store, }; return await CreateAsync( 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 313b445b7..5c13c762e 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 @@ -27,23 +27,23 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookRotateSigningSecretResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SigningSecret))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookState), TypeInfoPropertyName = "WebhookState2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookSubscribedEvent), TypeInfoPropertyName = "WebhookSubscribedEvent2")] - [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.WebhookState), TypeInfoPropertyName = "WebhookState2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent), TypeInfoPropertyName = "WebhookUpdateSubscribedEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdateState), TypeInfoPropertyName = "WebhookUpdateState2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior?), TypeInfoPropertyName = "NullableRotateSigningSecretRequestRevocationBehavior2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookState?), TypeInfoPropertyName = "NullableWebhookState2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookSubscribedEvent?), TypeInfoPropertyName = "NullableWebhookSubscribedEvent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdateState?), TypeInfoPropertyName = "NullableWebhookUpdateState2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookState?), TypeInfoPropertyName = "NullableWebhookState2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent?), TypeInfoPropertyName = "NullableWebhookUpdateSubscribedEvent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.WebhookUpdateState?), TypeInfoPropertyName = "NullableWebhookUpdateState2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class WebhooksSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { @@ -119,21 +119,21 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Google.Gemini.NextGen.RotateSigningSecretRequestRevocationBehavior?) - || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookState) - - || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookState?) - || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookSubscribedEvent) || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookSubscribedEvent?) - || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateState) + || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookState) - || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateState?) + || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookState?) || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent) - || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent?); + || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent?) + + || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateState) + + || typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateState?); } public override global::System.Text.Json.Serialization.JsonConverter CreateConverter( @@ -150,16 +150,6 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Google.Gemini.NextGen.JsonConverters.RotateSigningSecretRequestRevocationBehaviorNullableJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookState)) - { - return new global::Google.Gemini.NextGen.JsonConverters.WebhookStateJsonConverter(); - } - - if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookState?)) - { - return new global::Google.Gemini.NextGen.JsonConverters.WebhookStateNullableJsonConverter(); - } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookSubscribedEvent)) { return new global::Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEventJsonConverter(); @@ -170,14 +160,14 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Google.Gemini.NextGen.JsonConverters.WebhookSubscribedEventNullableJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateState)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookState)) { - return new global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateStateJsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.WebhookStateJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateState?)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookState?)) { - return new global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateStateNullableJsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.WebhookStateNullableJsonConverter(); } if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateSubscribedEvent)) @@ -189,6 +179,16 @@ public override bool CanConvert(global::System.Type typeToConvert) { return new global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateSubscribedEventNullableJsonConverter(); } + + if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateState)) + { + return new global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateStateJsonConverter(); + } + + if (typeToConvert == typeof(global::Google.Gemini.NextGen.WebhookUpdateState?)) + { + return new global::Google.Gemini.NextGen.JsonConverters.WebhookUpdateStateNullableJsonConverter(); + } throw new global::System.NotSupportedException($"No generated enum converter is registered for '{typeToConvert}'."); } } 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 f16619444..4fed16761 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 @@ -471,8 +471,8 @@ partial void ProcessCreateResponseContent( /// /// Creates a new Webhook. /// - /// - /// Optional. The user-provided name of the webhook. + /// + /// Required. The URI to which webhook events will be sent. /// /// /// Required. The events that the webhook is subscribed to.
@@ -485,24 +485,24 @@ partial void ProcessCreateResponseContent( /// - interaction.failed
/// - video.generated /// - /// - /// Required. The URI to which webhook events will be sent. + /// + /// Optional. The user-provided name of the webhook. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateAsync( - global::System.Collections.Generic.IList subscribedEvents, string uri, + global::System.Collections.Generic.IList subscribedEvents, string? name = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.NextGen.Webhook { - Name = name, - SubscribedEvents = subscribedEvents, Uri = uri, + SubscribedEvents = subscribedEvents, + Name = name, }; return await CreateAsync( 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 c366cd297..ca07437e0 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 @@ -497,8 +497,8 @@ partial void ProcessUpdateResponseContent( /// /// Optional. The user-provided name of the webhook. /// - /// - /// Optional. The state of the webhook. + /// + /// Optional. The URI to which webhook events will be sent. /// /// /// Optional. The events that the webhook is subscribed to.
@@ -511,8 +511,8 @@ partial void ProcessUpdateResponseContent( /// - interaction.failed
/// - video.generated /// - /// - /// Optional. The URI to which webhook events will be sent. + /// + /// Optional. The state of the webhook. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -521,18 +521,18 @@ partial void ProcessUpdateResponseContent( string id, string? updateMask = default, string? name = default, - global::Google.Gemini.NextGen.WebhookUpdateState? state = default, - global::System.Collections.Generic.IList? subscribedEvents = default, string? uri = default, + global::System.Collections.Generic.IList? subscribedEvents = default, + global::Google.Gemini.NextGen.WebhookUpdateState? state = default, global::Google.Gemini.NextGen.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.NextGen.WebhookUpdate { Name = name, - State = state, - SubscribedEvents = subscribedEvents, Uri = uri, + SubscribedEvents = subscribedEvents, + State = state, }; return await UpdateAsync( 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 4879ace19..d68e11cfd 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/autosdk.generated-examples.json +++ b/src/libs/Google.Gemini/NextGen/Generated/autosdk.generated-examples.json @@ -6,7 +6,7 @@ "Slug": "createagent", "Description": "Creates a new Agent (Typed version for SDK).", "Language": "http", - "Code": "### Creates a new Agent (Typed version for SDK).\n# @name CreateAgent\nPOST {{host}}/v1beta/agents\nx-goog-api-key: {{api_key}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022agent_config\u0022: {\n \u0022max_total_tokens\u0022: \u0022string\u0022,\n \u0022model\u0022: \u0022string\u0022,\n \u0022type\u0022: \u0022string\u0022\n },\n \u0022base_agent\u0022: \u0022string\u0022,\n \u0022base_environment\u0022: {\n \u0022env\u0022: {},\n \u0022environment_id\u0022: \u0022string\u0022,\n \u0022network\u0022: {\n \u0022allowlist\u0022: [\n {\n \u0022domain\u0022: \u0022github.com\u0022,\n \u0022transform\u0022: [\n {\n \u0022Authorization\u0022: \u0022Bearer your-token\u0022\n }\n ]\n },\n {\n \u0022domain\u0022: \u0022*.googleapis.com\u0022\n }\n ]\n },\n \u0022sources\u0022: [\n {}\n ],\n \u0022type\u0022: \u0022string\u0022\n },\n \u0022description\u0022: \u0022string\u0022,\n \u0022id\u0022: \u0022string\u0022,\n \u0022system_instruction\u0022: \u0022string\u0022,\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022string\u0022\n }\n ]\n}\n\n## Responses\n# default\n# Description: Successful operation\n# Content-Type: application/json", + "Code": "### Creates a new Agent (Typed version for SDK).\n# @name CreateAgent\nPOST {{host}}/v1beta/agents\nx-goog-api-key: {{api_key}}\nContent-Type: application/json\nAccept: application/json\n\n{\n \u0022agent_config\u0022: {\n \u0022type\u0022: \u0022string\u0022,\n \u0022model\u0022: \u0022string\u0022,\n \u0022max_total_tokens\u0022: \u0022string\u0022\n },\n \u0022base_environment\u0022: {\n \u0022type\u0022: \u0022string\u0022,\n \u0022network\u0022: {\n \u0022allowlist\u0022: [\n {\n \u0022domain\u0022: \u0022github.com\u0022,\n \u0022transform\u0022: [\n {\n \u0022Authorization\u0022: \u0022Bearer your-token\u0022\n }\n ]\n },\n {\n \u0022domain\u0022: \u0022*.googleapis.com\u0022\n }\n ]\n },\n \u0022sources\u0022: [\n {}\n ],\n \u0022environment_id\u0022: \u0022string\u0022,\n \u0022env\u0022: {}\n },\n \u0022id\u0022: \u0022string\u0022,\n \u0022base_agent\u0022: \u0022string\u0022,\n \u0022system_instruction\u0022: \u0022string\u0022,\n \u0022description\u0022: \u0022string\u0022,\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022string\u0022\n }\n ]\n}\n\n## Responses\n# default\n# Description: Successful operation\n# Content-Type: application/json", "Format": "http", "OperationId": "CreateAgent", "Setup": null @@ -61,7 +61,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 \u0022environment\u0022: {\n \u0022env\u0022: {},\n \u0022environment_id\u0022: \u0022string\u0022,\n \u0022network\u0022: {\n \u0022allowlist\u0022: [\n {\n \u0022domain\u0022: \u0022github.com\u0022,\n \u0022transform\u0022: [\n {\n \u0022Authorization\u0022: \u0022Bearer your-token\u0022\n }\n ]\n },\n {\n \u0022domain\u0022: \u0022*.googleapis.com\u0022\n }\n ]\n },\n \u0022sources\u0022: [\n {}\n ],\n \u0022type\u0022: \u0022string\u0022\n },\n \u0022input\u0022: {\n \u0022type\u0022: \u0022audio\u0022,\n \u0022data\u0022: \u0022BASE64_ENCODED_AUDIO\u0022,\n \u0022mime_type\u0022: \u0022audio/wav\u0022\n },\n \u0022labels\u0022: {},\n \u0022previous_interaction_id\u0022: \u0022string\u0022,\n \u0022response_format\u0022: {\n \u0022type\u0022: \u0022audio\u0022,\n \u0022sample_rate\u0022: 24000\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", + "Code": "### Creates a new interaction.\n# @name CreateInteraction\nPOST {{host}}/v1beta/interactions\nx-goog-api-key: {{api_key}}\nContent-Type: application/json\nAccept: application/json, text/event-stream\n\n{\n \u0022agent\u0022: \u0022deep-research-pro-preview-12-2025\u0022,\n \u0022agent_config\u0022: {\n \u0022type\u0022: \u0022string\u0022,\n \u0022model\u0022: \u0022string\u0022,\n \u0022max_total_tokens\u0022: \u0022string\u0022\n },\n \u0022input\u0022: {\n \u0022type\u0022: \u0022audio\u0022,\n \u0022data\u0022: \u0022BASE64_ENCODED_AUDIO\u0022,\n \u0022mime_type\u0022: \u0022audio/wav\u0022\n },\n \u0022response_format\u0022: {\n \u0022type\u0022: \u0022audio\u0022,\n \u0022sample_rate\u0022: 24000\n },\n \u0022environment\u0022: {\n \u0022type\u0022: \u0022string\u0022,\n \u0022network\u0022: {\n \u0022allowlist\u0022: [\n {\n \u0022domain\u0022: \u0022github.com\u0022,\n \u0022transform\u0022: [\n {\n \u0022Authorization\u0022: \u0022Bearer your-token\u0022\n }\n ]\n },\n {\n \u0022domain\u0022: \u0022*.googleapis.com\u0022\n }\n ]\n },\n \u0022sources\u0022: [\n {}\n ],\n \u0022environment_id\u0022: \u0022string\u0022,\n \u0022env\u0022: {}\n },\n \u0022system_instruction\u0022: \u0022string\u0022,\n \u0022tools\u0022: [\n {\n \u0022type\u0022: \u0022string\u0022\n }\n ],\n \u0022response_modalities\u0022: [\n \u0022text\u0022\n ],\n \u0022response_mime_type\u0022: \u0022string\u0022,\n \u0022previous_interaction_id\u0022: \u0022string\u0022,\n \u0022service_tier\u0022: \u0022flex\u0022,\n \u0022webhook_config\u0022: {\n \u0022uris\u0022: [\n \u0022string\u0022\n ],\n \u0022user_metadata\u0022: {}\n },\n \u0022safety_settings\u0022: [\n {\n \u0022type\u0022: \u0022hate_speech\u0022,\n \u0022threshold\u0022: \u0022block_low_and_above\u0022,\n \u0022method\u0022: \u0022severity\u0022\n }\n ],\n \u0022labels\u0022: {},\n \u0022stream\u0022: true,\n \u0022store\u0022: true,\n \u0022background\u0022: true\n}\n\n## Responses\n# 200\n# Description: Successful operation\n# Content-Type: application/json, text/event-stream\n# 4XX\n# Description: Client Error\n# Content-Type: application/json\n# 5XX\n# Description: Server Error\n# Content-Type: application/json", "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 a428134b1..e7721b575 100644 --- a/src/libs/Google.Gemini/nextgen.openapi.json +++ b/src/libs/Google.Gemini/nextgen.openapi.json @@ -3136,10 +3136,6 @@ } ] }, - "base_agent": { - "description": "The base agent to extend.", - "type": "string" - }, "base_environment": { "description": "The environment configuration for the agent.", "oneOf": [ @@ -3151,18 +3147,22 @@ } ] }, - "description": { - "description": "Agent description for developers to quickly read and understand.", - "type": "string" - }, "id": { "description": "The unique identifier for the agent.", "type": "string" }, + "base_agent": { + "description": "The base agent to extend.", + "type": "string" + }, "system_instruction": { "description": "System instruction for the agent.", "type": "string" }, + "description": { + "description": "Agent description for developers to quickly read and understand.", + "type": "string" + }, "tools": { "description": "The tools available to the agent.", "type": "array", @@ -3205,36 +3205,9 @@ ], "x-speakeasy-unknown-values": "disallow" }, - "background": { - "description": "Input only. Whether to run the model interaction in the background.", - "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.", - "oneOf": [ - { - "$ref": "#/components/schemas/EnvironmentConfig" - }, - { - "type": "string" - } - ], - "x-speakeasy-unknown-values": "disallow" - }, "input": { "$ref": "#/components/schemas/InteractionsInput" }, - "labels": { - "description": "The labels with user-defined metadata for the request.\n\nLabel keys and values can be no longer than 63 characters\n(Unicode codepoints) and can only contain lowercase letters, numeric\ncharacters, underscores, and dashes. International characters are allowed.\nLabel values are optional. Label keys must start with a letter.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "previous_interaction_id": { - "description": "The ID of the previous interaction, if any.", - "type": "string" - }, "response_format": { "description": "Enforces that the generated response is a JSON object that complies with\nthe JSON schema specified in this field.", "oneOf": [ @@ -3250,10 +3223,28 @@ } ] }, - "response_mime_type": { - "description": "The mime type of the response. This is required if response_format is set.", - "type": "string", - "deprecated": true + "environment": { + "description": "The environment configuration for the interaction. Can be an object\nspecifying remote environment sources or a string referencing an existing\nenvironment ID.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentConfig" + }, + { + "type": "string" + } + ], + "x-speakeasy-unknown-values": "disallow" + }, + "system_instruction": { + "description": "System instruction for the interaction.", + "type": "string" + }, + "tools": { + "description": "A list of tool declarations the model may call during interaction.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Tool" + } }, "response_modalities": { "description": "The requested modalities of the response (TEXT, IMAGE, AUDIO).", @@ -3263,6 +3254,23 @@ "$ref": "#/components/schemas/ResponseModality" } }, + "response_mime_type": { + "description": "The mime type of the response. This is required if response_format is set.", + "type": "string", + "deprecated": true + }, + "previous_interaction_id": { + "description": "The ID of the previous interaction, if any.", + "type": "string" + }, + "service_tier": { + "description": "The service tier for the interaction.", + "$ref": "#/components/schemas/ServiceTier" + }, + "webhook_config": { + "description": "Optional. Webhook configuration for receiving notifications when the\ninteraction completes.", + "$ref": "#/components/schemas/WebhookConfig" + }, "safety_settings": { "description": "Safety settings for the interaction.", "type": "array", @@ -3270,32 +3278,24 @@ "$ref": "#/components/schemas/SafetySetting" } }, - "service_tier": { - "description": "The service tier for the interaction.", - "$ref": "#/components/schemas/ServiceTier" - }, - "store": { - "description": "Input only. Whether to store the response and request for later retrieval.", - "type": "boolean" + "labels": { + "description": "The labels with user-defined metadata for the request.\n\nLabel keys and values can be no longer than 63 characters\n(Unicode codepoints) and can only contain lowercase letters, numeric\ncharacters, underscores, and dashes. International characters are allowed.\nLabel values are optional. Label keys must start with a letter.", + "type": "object", + "additionalProperties": { + "type": "string" + } }, "stream": { "description": "Input only. Whether the interaction will be streamed.", "type": "boolean" }, - "system_instruction": { - "description": "System instruction for the interaction.", - "type": "string" - }, - "tools": { - "description": "A list of tool declarations the model may call during interaction.", - "type": "array", - "items": { - "$ref": "#/components/schemas/Tool" - } + "store": { + "description": "Input only. Whether to store the response and request for later retrieval.", + "type": "boolean" }, - "webhook_config": { - "description": "Optional. Webhook configuration for receiving notifications when the\ninteraction completes.", - "$ref": "#/components/schemas/WebhookConfig" + "background": { + "description": "Input only. Whether to run the model interaction in the background.", + "type": "boolean" } }, "required": [ @@ -3437,17 +3437,17 @@ "description": "Configuration for the Antigravity agent runtime.\nProvides server-side control over the agent's execution environment\nand tool configuration.", "type": "object", "properties": { - "max_total_tokens": { - "description": "Max total tokens for the agent run.", - "type": "string", - "format": "int64" + "type": { + "const": "antigravity" }, "model": { "description": "The model to use for agent reasoning.", "type": "string" }, - "type": { - "const": "antigravity" + "max_total_tokens": { + "description": "Max total tokens for the agent run.", + "type": "string", + "format": "int64" } }, "required": [ @@ -3465,11 +3465,11 @@ "ArgumentsDelta": { "type": "object", "properties": { - "arguments": { - "type": "string" - }, "type": { "const": "arguments_delta" + }, + "arguments": { + "type": "string" } }, "required": [ @@ -3481,10 +3481,8 @@ "description": "An audio content block.", "type": "object", "properties": { - "channels": { - "description": "The number of audio channels.", - "type": "integer", - "format": "int32" + "type": { + "const": "audio" }, "data": { "description": "The audio content.", @@ -3492,6 +3490,20 @@ "format": "byte", "x-speakeasy-base64-input-mode": "file" }, + "uri": { + "description": "The URI of the audio.", + "type": "string" + }, + "channels": { + "description": "The number of audio channels.", + "type": "integer", + "format": "int32" + }, + "sample_rate": { + "description": "The sample rate of the audio.", + "type": "integer", + "format": "int32" + }, "mime_type": { "description": "The mime type of the audio.", "type": "string", @@ -3525,18 +3537,6 @@ "MULAW audio format", "WebM audio format" ] - }, - "sample_rate": { - "description": "The sample rate of the audio.", - "type": "integer", - "format": "int32" - }, - "type": { - "const": "audio" - }, - "uri": { - "description": "The URI of the audio.", - "type": "string" } }, "required": [ @@ -3562,15 +3562,15 @@ "description": "Audio payload used for voice creation.", "type": "object", "properties": { + "mime_type": { + "description": "Required. The IANA MIME type of the audio data (for example, `audio/wav` or\n`audio/mpeg`).", + "type": "string" + }, "data": { "description": "Required. The raw audio bytes.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "mime_type": { - "description": "Required. The IANA MIME type of the audio data (for example, `audio/wav` or\n`audio/mpeg`).", - "type": "string" } }, "required": [ @@ -3588,16 +3588,17 @@ "AudioDelta": { "type": "object", "properties": { - "channels": { - "description": "The number of audio channels.", - "type": "integer", - "format": "int32" + "type": { + "const": "audio" }, "data": { "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" }, + "uri": { + "type": "string" + }, "mime_type": { "type": "string", "enum": [ @@ -3642,11 +3643,10 @@ "type": "integer", "format": "int32" }, - "type": { - "const": "audio" - }, - "uri": { - "type": "string" + "channels": { + "description": "The number of audio channels.", + "type": "integer", + "format": "int32" } }, "required": [ @@ -3658,22 +3658,8 @@ "description": "Configuration for audio output format.", "type": "object", "properties": { - "bit_rate": { - "description": "Bit rate in bits per second (bps). Only applicable for compressed formats\n(MP3, Opus).", - "type": "integer", - "format": "int32" - }, - "delivery": { - "description": "The delivery mode for the audio output.", - "type": "string", - "enum": [ - "inline", - "uri" - ], - "x-google-enum-descriptions": [ - "Audio data is returned inline in the response.", - "Audio data is returned as a URI." - ] + "type": { + "const": "audio" }, "mime_type": { "description": "The MIME type of the audio output.", @@ -3695,13 +3681,27 @@ "Mu-law audio format." ] }, + "delivery": { + "description": "The delivery mode for the audio output.", + "type": "string", + "enum": [ + "inline", + "uri" + ], + "x-google-enum-descriptions": [ + "Audio data is returned inline in the response.", + "Audio data is returned as a URI." + ] + }, "sample_rate": { "description": "Sample rate in Hz.", "type": "integer", "format": "int32" }, - "type": { - "const": "audio" + "bit_rate": { + "description": "Bit rate in bits per second (bps). Only applicable for compressed formats\n(MP3, Opus).", + "type": "integer", + "format": "int32" } }, "required": [ @@ -3766,19 +3766,21 @@ "description": "The arguments to pass to the code execution.", "type": "object", "properties": { - "code": { - "description": "The code to be executed.", - "type": "string" - }, "language": { "description": "Programming language of the `code`.", "type": "string", "enum": [ - "python" + "python", + "bash" ], "x-google-enum-descriptions": [ - "Python >= 3.10, with numpy and simpy available." + "Python >= 3.10, with numpy and simpy available.", + "Bash. Only available for Gemini 3.0 model or above." ] + }, + "code": { + "description": "The code to be executed.", + "type": "string" } }, "x-speakeasy-model-namespace": "interactions" @@ -3789,14 +3791,14 @@ "arguments": { "$ref": "#/components/schemas/CodeExecutionCallArguments" }, + "type": { + "const": "code_execution_call" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "code_execution_call" } }, "required": [ @@ -3817,14 +3819,14 @@ "description": "Required. A unique ID for this specific tool call.", "type": "string" }, + "type": { + "const": "code_execution_call" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "code_execution_call" } }, "required": [ @@ -3855,21 +3857,23 @@ "description": "The arguments to pass to the code execution.", "type": "object", "properties": { - "code": { - "description": "The code to be executed.", - "type": "string" - }, "language": { "description": "Programming language of the `code`.", "type": "string", "enum": [ - "python" + "python", + "bash" ], "x-google-enum-descriptions": [ - "Python >= 3.10, with numpy and simpy available." + "Python >= 3.10, with numpy and simpy available.", + "Bash. Only available for Gemini 3.0 model or above." ] - } - }, + }, + "code": { + "description": "The code to be executed.", + "type": "string" + } + }, "x-speakeasy-exports": [ { "name": "CodeExecutionCallArguments", @@ -3882,20 +3886,20 @@ "CodeExecutionResultDelta": { "type": "object", "properties": { - "is_error": { - "type": "boolean" - }, "result": { "type": "string" }, + "type": { + "const": "code_execution_result" + }, + "is_error": { + "type": "boolean" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "code_execution_result" } }, "required": [ @@ -3908,26 +3912,26 @@ "description": "Code execution result step.", "type": "object", "properties": { + "result": { + "description": "Required. The output of the code execution.", + "type": "string" + }, "call_id": { "description": "Required. ID to match the ID from the function call block.", "type": "string" }, + "type": { + "const": "code_execution_result" + }, "is_error": { "description": "Whether the code execution resulted in an error.", "type": "boolean" }, - "result": { - "description": "Required. The output of the code execution.", - "type": "string" - }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "code_execution_result" } }, "required": [ @@ -3955,6 +3959,9 @@ "description": "Configuration for the CodeMender agent.", "type": "object", "properties": { + "type": { + "const": "code-mender" + }, "find_request": { "description": "Parameters for finding vulnerabilities.", "$ref": "#/components/schemas/FindRequest" @@ -3963,20 +3970,17 @@ "description": "Parameters for fixing vulnerabilities.", "$ref": "#/components/schemas/FixRequest" }, - "model": { - "description": "The name of the model to use for the CodeMender agent. One\nCodeMender session will only use one model.", + "session_id": { + "description": "Parameter for grouping multiple interactions that belong to\nthe same CodeMender session.", "type": "string" }, "session_config": { "description": "Optional session-specific configurations to override default agent\nbehavior.", "$ref": "#/components/schemas/SessionConfig" }, - "session_id": { - "description": "Parameter for grouping multiple interactions that belong to\nthe same CodeMender session.", + "model": { + "description": "The name of the model to use for the CodeMender agent. One\nCodeMender session will only use one model.", "type": "string" - }, - "type": { - "const": "code-mender" } }, "required": [ @@ -3995,6 +3999,34 @@ "description": "A tool that can be used by the model to interact with the computer.", "type": "object", "properties": { + "type": { + "const": "computer_use" + }, + "environment": { + "description": "The environment being operated.", + "type": "string", + "enum": [ + "browser", + "mobile", + "desktop" + ], + "x-google-enum-descriptions": [ + "Operates in a web browser.", + "Operates in a mobile environment.", + "Operates in a desktop environment." + ] + }, + "excluded_predefined_functions": { + "description": "The list of predefined functions that are excluded from the model call.", + "type": "array", + "items": { + "type": "string" + } + }, + "enable_prompt_injection_detection": { + "description": "Whether enable the prompt injection detection check on computer-use\nrequest.", + "type": "boolean" + }, "disabled_safety_policies": { "description": "Optional. Disabled safety policies for computer use.", "type": "array", @@ -4019,34 +4051,6 @@ "Safety policy for legal terms and agreements." ] } - }, - "enable_prompt_injection_detection": { - "description": "Whether enable the prompt injection detection check on computer-use\nrequest.", - "type": "boolean" - }, - "environment": { - "description": "The environment being operated.", - "type": "string", - "enum": [ - "browser", - "mobile", - "desktop" - ], - "x-google-enum-descriptions": [ - "Operates in a web browser.", - "Operates in a mobile environment.", - "Operates in a desktop environment." - ] - }, - "excluded_predefined_functions": { - "description": "The list of predefined functions that are excluded from the model call.", - "type": "array", - "items": { - "type": "string" - } - }, - "type": { - "const": "computer_use" } }, "required": [ @@ -4112,10 +4116,6 @@ "description": "Request for `CreateEnvironment`.", "type": "object", "properties": { - "from_environment": { - "description": "Optional. The source environment to copy/fork from.\nFormat: `environments/{environment_id}` or `{environment_id}`.\nWhen specified, `sources` and `env` must be empty.", - "type": "string" - }, "network": { "description": "Network configuration for the environment.", "oneOf": [ @@ -4139,6 +4139,10 @@ "items": { "$ref": "#/components/schemas/Source" } + }, + "from_environment": { + "description": "Optional. The source environment to copy/fork from.\nFormat: `environments/{environment_id}` or `{environment_id}`.\nWhen specified, `sources` and `env` must be empty.", + "type": "string" } }, "x-speakeasy-exports": [ @@ -4153,13 +4157,13 @@ "description": "Request message for `VoicesService.CreateVoice`.", "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. 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": { "description": "Required. The voice to create.\n`voice.model` is optional; if omitted, the service selects the default\nvoice creation model. Output-only fields on `Voice` (`id`, `key`,\n`expire_time`, `usage`) are ignored if set.", "$ref": "#/components/schemas/Voice" + }, + "store": { + "description": "Optional. Whether the created voice is persisted and managed by Google.\n\n* When `true`, Google stores the voice and returns `Voice.id` (for example,\n `voice_abc123def456`), which can be managed via `GetVoice`, `ListVoices`,\n and `DeleteVoice` and referenced by ID in synthesis requests. Stored\n voices expire after 1 year of inactivity; using a stored voice in speech\n synthesis or as a `base_voice` in `CreateVoice` extends its\n `expire_time`. Projects are subject to a maximum active stored voice\n quota; exceeding the quota returns `RESOURCE_EXHAUSTED`.\n* When `false` (default), the voice is not stored by Google and `Voice.key`\n (for example, `voicekey_...`) is returned for client-side storage and\n synthesis. Optional discovery metadata fields on `voice` are not\n persisted or returned when `store` is `false`.\n* Required to be `true` when `voice.type` is `\"prompted\"`\n (otherwise fails with `INVALID_ARGUMENT`).", + "type": "boolean" } }, "required": [ @@ -4191,31 +4195,12 @@ "description": "Server-managed credential resource stored in Secret Manager.", "type": "object", "properties": { - "create_time": { - "description": "Output only. The timestamp when the credential was created.", - "type": "string", - "format": "date-time", - "readOnly": true - }, "id": { "description": "Required. Output only. Identifier. Unique identifier for the credential.", "type": "string", "readOnly": true, "x-google-identifier": true }, - "status": { - "description": "Output only. Current status of the credential.", - "type": "string", - "enum": [ - "active", - "revoked" - ], - "readOnly": true, - "x-google-enum-descriptions": [ - "The credential is active and valid for use.", - "The credential has been revoked and is no longer valid." - ] - }, "type": { "description": "Required. Output only. The type of credential.", "type": "string", @@ -4231,6 +4216,25 @@ "Environment variable injected into sandbox container." ] }, + "status": { + "description": "Output only. Current status of the credential.", + "type": "string", + "enum": [ + "active", + "revoked" + ], + "readOnly": true, + "x-google-enum-descriptions": [ + "The credential is active and valid for use.", + "The credential has been revoked and is no longer valid." + ] + }, + "create_time": { + "description": "Output only. The timestamp when the credential was created.", + "type": "string", + "format": "date-time", + "readOnly": true + }, "update_time": { "description": "Output only. The timestamp when the credential was last updated.", "type": "string", @@ -4239,7 +4243,8 @@ } }, "required": [ - "id" + "id", + "type" ], "x-speakeasy-exports": [ { @@ -4299,21 +4304,13 @@ "description": "Configuration for the Deep Research agent.", "type": "object", "properties": { - "collaborative_planning": { - "description": "Enables human-in-the-loop planning for the Deep Research agent. If set to\ntrue, the Deep Research agent will provide a research plan in its response.\nThe agent will then proceed only if the user confirms the plan in the next\nturn.", - "type": "boolean" - }, - "enable_bigquery_tool": { - "description": "Enables bigquery tool for the Deep Research agent.", - "type": "boolean" + "type": { + "const": "deep-research" }, "thinking_summaries": { "description": "Whether to include thought summaries in the response.", "$ref": "#/components/schemas/ThinkingSummaries" }, - "type": { - "const": "deep-research" - }, "visualization": { "description": "Whether to include visualizations in the response.", "type": "string", @@ -4325,6 +4322,14 @@ "Do not include visualizations.", "Automatically include visualizations." ] + }, + "collaborative_planning": { + "description": "Enables human-in-the-loop planning for the Deep Research agent. If set to\ntrue, the Deep Research agent will provide a research plan in its response.\nThe agent will then proceed only if the user confirms the plan in the next\nturn.", + "type": "boolean" + }, + "enable_bigquery_tool": { + "description": "Enables bigquery tool for the Deep Research agent.", + "type": "boolean" } }, "required": [ @@ -4354,12 +4359,19 @@ "description": "A document content block.", "type": "object", "properties": { + "type": { + "const": "document" + }, "data": { "description": "The document content.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" }, + "uri": { + "description": "The URI of the document.", + "type": "string" + }, "mime_type": { "description": "The mime type of the document.", "type": "string", @@ -4371,13 +4383,6 @@ "PDF document format", "CSV document format" ] - }, - "type": { - "const": "document" - }, - "uri": { - "description": "The URI of the document.", - "type": "string" } }, "required": [ @@ -4402,11 +4407,17 @@ "DocumentDelta": { "type": "object", "properties": { + "type": { + "const": "document" + }, "data": { "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" }, + "uri": { + "type": "string" + }, "mime_type": { "type": "string", "enum": [ @@ -4417,12 +4428,6 @@ "PDF document format", "CSV document format" ] - }, - "type": { - "const": "document" - }, - "uri": { - "type": "string" } }, "required": [ @@ -4455,10 +4460,6 @@ "description": "A single domain allowlist rule with optional header injection.", "type": "object", "properties": { - "credential": { - "description": "Optional. Reference to a server-managed Credential resource by ID.", - "type": "string" - }, "domain": { "description": "Domain to allow outbound requests to. Supports wildcards (e.g.\n'*.googleapis.com'). Use '*' to allow all domains.", "type": "string" @@ -4485,6 +4486,10 @@ } } ] + }, + "credential": { + "description": "Optional. Reference to a server-managed Credential resource by ID.", + "type": "string" } }, "required": [ @@ -4528,13 +4533,13 @@ "description": "An environment variable to set in the execution environment.", "type": "object", "properties": { - "credential": { - "description": "Optional reference to a server-managed Credential resource by ID.", - "type": "string" - }, "value": { "description": "Direct string value for plain environment variables.", "type": "string" + }, + "credential": { + "description": "Optional reference to a server-managed Credential resource by ID.", + "type": "string" } }, "x-speakeasy-model-namespace": "interactions" @@ -4543,27 +4548,11 @@ "description": "An execution environment for an agent.", "type": "object", "properties": { - "created": { - "description": "Output only. The time at which the environment was created in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", - "type": "string", - "readOnly": true - }, - "file_count": { - "description": "Output only. The number of files in the environment, output only.", - "type": "string", - "format": "int64", - "readOnly": true - }, "id": { "description": "Required. Output only. The ID of the environment.", "type": "string", "readOnly": true }, - "last_accessed": { - "description": "Output only. The time at which the environment was last accessed in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", - "type": "string", - "readOnly": true - }, "network": { "description": "Network configuration for the environment.", "oneOf": [ @@ -4581,12 +4570,6 @@ } ] }, - "size_bytes": { - "description": "Output only. The total size of the environment files in bytes, output only.", - "type": "string", - "format": "int64", - "readOnly": true - }, "sources": { "description": "Sources to be mounted into the environment.", "type": "array", @@ -4594,23 +4577,45 @@ "$ref": "#/components/schemas/Source" } }, - "status": { - "description": "Output only. The status of the environment container.", + "created": { + "description": "Output only. The time at which the environment was created in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", "type": "string", - "enum": [ - "active", - "expired" - ], - "readOnly": true, - "x-google-enum-descriptions": [ - "", - "" - ] + "readOnly": true }, "updated": { "description": "Output only. The time at which the environment was last updated in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", "type": "string", "readOnly": true + }, + "last_accessed": { + "description": "Output only. The time at which the environment was last accessed in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", + "type": "string", + "readOnly": true + }, + "status": { + "description": "Output only. The status of the environment container.", + "type": "string", + "enum": [ + "active", + "expired" + ], + "readOnly": true, + "x-google-enum-descriptions": [ + "", + "" + ] + }, + "file_count": { + "description": "Output only. The number of files in the environment, output only.", + "type": "string", + "format": "int64", + "readOnly": true + }, + "size_bytes": { + "description": "Output only. The total size of the environment files in bytes, output only.", + "type": "string", + "format": "int64", + "readOnly": true } }, "required": [ @@ -4628,23 +4633,8 @@ "description": "Configuration for a custom environment.", "type": "object", "properties": { - "env": { - "description": "Environment variables to set in the sandbox environment.", - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/components/schemas/EnvVar" - }, - { - "type": "string" - } - ] - } - }, - "environment_id": { - "description": "Optional. The environment ID for the interaction. If specified, the request will\nupdate the existing environment instead of creating a new one.", - "type": "string" + "type": { + "const": "remote" }, "network": { "description": "Network configuration for the environment.", @@ -4669,8 +4659,23 @@ "$ref": "#/components/schemas/Source" } }, - "type": { - "const": "remote" + "environment_id": { + "description": "Optional. The environment ID for the interaction. If specified, the request will\nupdate the existing environment instead of creating a new one.", + "type": "string" + }, + "env": { + "description": "Environment variables to set in the sandbox environment.", + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/components/schemas/EnvVar" + }, + { + "type": "string" + } + ] + } } }, "required": [ @@ -4754,23 +4759,6 @@ "description": "Metadata for a file or directory within an environment.", "type": "object", "properties": { - "created": { - "description": "Output only. The creation time of the file/directory.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "mime_type": { - "description": "Output only. The MIME type of the file (e.g., \"text/python\", \"image/png\").\nEmpty for directories.\nNOLINT", - "type": "string", - "readOnly": true - }, - "modified": { - "description": "Output only. The modification time of the file/directory.", - "type": "string", - "format": "date-time", - "readOnly": true - }, "name": { "description": "Output only. The name of the file or directory (e.g., \"main.py\" or \"src\").", "type": "string", @@ -4781,12 +4769,6 @@ "type": "string", "readOnly": true }, - "size_bytes": { - "description": "Output only. The size of the file/directory in bytes.\nNOLINT", - "type": "string", - "format": "int64", - "readOnly": true - }, "type": { "description": "Output only. The type of the entry.", "type": "string", @@ -4799,6 +4781,29 @@ "A regular file.", "A directory." ] + }, + "size_bytes": { + "description": "Output only. The size of the file/directory in bytes.\nNOLINT", + "type": "string", + "format": "int64", + "readOnly": true + }, + "mime_type": { + "description": "Output only. The MIME type of the file (e.g., \"text/python\", \"image/png\").\nEmpty for directories.\nNOLINT", + "type": "string", + "readOnly": true + }, + "created": { + "description": "Output only. The creation time of the file/directory.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "modified": { + "description": "Output only. The modification time of the file/directory.", + "type": "string", + "format": "date-time", + "readOnly": true } }, "x-speakeasy-exports": [ @@ -4859,8 +4864,11 @@ "description": "Configuration for environment variable credentials.", "type": "object", "properties": { - "id": { - "type": "string" + "value": { + "description": "Required. Input only. Secret value of the environment variable. Write-only; never\nreturned in responses.", + "type": "string", + "writeOnly": true, + "x-speakeasy-param-sensitive": true }, "injection_location": { "description": "Required. Locations where the environment variable can be injected in\noutgoing HTTP requests. Must contain at least one location.\nAccepts either a single location (e.g. \"header\") or an array of locations.", @@ -4876,21 +4884,18 @@ } ] }, + "id": { + "type": "string" + }, + "type": { + "const": "environment_variable" + }, "trusted_domains": { "description": "Optional. List of domains allowed to receive this environment variable\nvalue in HTTP requests.", "type": "array", "items": { "type": "string" } - }, - "type": { - "const": "environment_variable" - }, - "value": { - "description": "Required. Input only. Secret value of the environment variable. Write-only; never\nreturned in responses.", - "type": "string", - "writeOnly": true, - "x-speakeasy-param-sensitive": true } }, "required": [ @@ -4911,6 +4916,22 @@ "description": "Configuration for updating environment variable credentials.", "type": "object", "properties": { + "type": { + "const": "environment_variable" + }, + "value": { + "description": "Optional. Input only. Secret value of the environment variable. Write-only; never\nreturned in responses.", + "type": "string", + "writeOnly": true, + "x-speakeasy-param-sensitive": true + }, + "trusted_domains": { + "description": "Optional. List of domains allowed to receive this environment variable\nvalue in HTTP requests.", + "type": "array", + "items": { + "type": "string" + } + }, "injection_location": { "description": "Optional. Locations where the environment variable can be injected in\noutgoing HTTP requests.\nAccepts either a single location (e.g. \"header\") or an array of locations.", "oneOf": [ @@ -4924,22 +4945,6 @@ } } ] - }, - "trusted_domains": { - "description": "Optional. List of domains allowed to receive this environment variable\nvalue in HTTP requests.", - "type": "array", - "items": { - "type": "string" - } - }, - "type": { - "const": "environment_variable" - }, - "value": { - "description": "Optional. Input only. Secret value of the environment variable. Write-only; never\nreturned in responses.", - "type": "string", - "writeOnly": true, - "x-speakeasy-param-sensitive": true } }, "required": [ @@ -4977,15 +4982,15 @@ "ErrorEvent": { "type": "object", "properties": { + "event_type": { + "const": "error" + }, "error": { "$ref": "#/components/schemas/Error" }, "event_id": { "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", "type": "string" - }, - "event_type": { - "const": "error" } }, "required": [ @@ -5035,37 +5040,35 @@ "description": "A file citation annotation.", "type": "object", "properties": { - "custom_metadata": { - "description": "User provided metadata about the retrieved context.", - "type": "object", - "additionalProperties": { - "description": "Properties of the object." - } + "type": { + "const": "file_citation" }, "document_uri": { "description": "The URI of the file.", "type": "string" }, - "end_index": { - "description": "End of the attributed segment, exclusive.", - "type": "integer", - "format": "int32" - }, "file_name": { "description": "The name of the file.", "type": "string" }, - "media_id": { - "description": "Media ID in-case of image citations, if applicable.", + "source": { + "description": "Source attributed for a portion of the text.", "type": "string" }, + "custom_metadata": { + "description": "User provided metadata about the retrieved context.", + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + } + }, "page_number": { "description": "Page number of the cited document, if applicable.", "type": "integer", "format": "int32" }, - "source": { - "description": "Source attributed for a portion of the text.", + "media_id": { + "description": "Media ID in-case of image citations, if applicable.", "type": "string" }, "start_index": { @@ -5073,8 +5076,10 @@ "type": "integer", "format": "int32" }, - "type": { - "const": "file_citation" + "end_index": { + "description": "End of the attributed segment, exclusive.", + "type": "integer", + "format": "int32" } }, "required": [ @@ -5092,13 +5097,13 @@ "description": "Content of a single file in the codebase.", "type": "object", "properties": { - "content": { - "description": "The UTF-8 encoded text content of the file.", - "type": "string" - }, "path": { "description": "The relative path of the file from the project root.", "type": "string" + }, + "content": { + "description": "The UTF-8 encoded text content of the file.", + "type": "string" } }, "x-speakeasy-model-namespace": "interactions" @@ -5107,6 +5112,9 @@ "description": "A tool that can be used by the model to search files.", "type": "object", "properties": { + "type": { + "const": "file_search" + }, "file_search_store_names": { "description": "The file search store names to search.", "type": "array", @@ -5114,17 +5122,14 @@ "type": "string" } }, - "metadata_filter": { - "description": "Metadata filter to apply to the semantic retrieval documents and chunks.", - "type": "string" - }, "top_k": { "description": "The number of semantic retrieval chunks to retrieve.", "type": "integer", "format": "int32" }, - "type": { - "const": "file_search" + "metadata_filter": { + "description": "Metadata filter to apply to the semantic retrieval documents and chunks.", + "type": "string" } }, "required": [ @@ -5162,14 +5167,14 @@ "FileSearchCallDelta": { "type": "object", "properties": { + "type": { + "const": "file_search_call" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "file_search_call" } }, "required": [ @@ -5185,14 +5190,14 @@ "description": "Required. A unique ID for this specific tool call.", "type": "string" }, + "type": { + "const": "file_search_call" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "file_search_call" } }, "required": [ @@ -5228,14 +5233,14 @@ "$ref": "#/components/schemas/FileSearchResult" } }, + "type": { + "const": "file_search_result" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "file_search_result" } }, "required": [ @@ -5252,14 +5257,14 @@ "description": "Required. ID to match the ID from the function call block.", "type": "string" }, + "type": { + "const": "file_search_result" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "file_search_result" } }, "required": [ @@ -5285,10 +5290,6 @@ "description": "Config for filters.", "type": "object", "properties": { - "metadata_filter": { - "description": "Optional. String for metadata filtering.", - "type": "string" - }, "vector_distance_threshold": { "description": "Optional. Only returns contexts with vector distance smaller than the\nthreshold.", "type": "number", @@ -5298,6 +5299,10 @@ "description": "Optional. Only returns contexts with vector similarity larger than the\nthreshold.", "type": "number", "format": "double" + }, + "metadata_filter": { + "description": "Optional. String for metadata filtering.", + "type": "string" } }, "x-speakeasy-model-namespace": "interactions" @@ -5306,14 +5311,21 @@ "description": "Request parameters specific to FIND sessions, used for discovering\nvulnerabilities in a codebase.", "type": "object", "properties": { - "description": { - "description": "Additional context or custom instructions provided by the user to guide\nthe vulnerability analysis.", - "type": "string" + "source_files": { + "description": "A list of source files to provide as context for the scan.", + "type": "array", + "items": { + "$ref": "#/components/schemas/FileContent" + } }, "finding_id": { "description": "The identifier of a specific finding to verify. This is primarily used in\nVERIFY mode to focus the agent's execution-based validation on a single\nvulnerability.", "type": "string" }, + "description": { + "description": "Additional context or custom instructions provided by the user to guide\nthe vulnerability analysis.", + "type": "string" + }, "mode": { "description": "The mode of the find session.", "type": "string", @@ -5325,13 +5337,6 @@ "Fast scan using only the initial classifier.", "Performs classification followed by detailed investigation." ] - }, - "source_files": { - "description": "A list of source files to provide as context for the scan.", - "type": "array", - "items": { - "$ref": "#/components/schemas/FileContent" - } } }, "x-speakeasy-model-namespace": "interactions" @@ -5340,20 +5345,20 @@ "description": "Request parameters specific to FIX sessions, used for generating and\nvalidating security patches.", "type": "object", "properties": { - "description": { - "description": "Additional context or custom instructions provided by the user to guide\nthe patch generation process.", - "type": "string" - }, - "finding_id": { - "description": "The identifier of the specific security finding to be remediated. This ID\nmaps to a previously discovered vulnerability.", - "type": "string" - }, "source_files": { "description": "A list of source files providing context for the remediation. These files\nare typically the ones containing the identified vulnerability.", "type": "array", "items": { "$ref": "#/components/schemas/FileContent" } + }, + "finding_id": { + "description": "The identifier of the specific security finding to be remediated. This ID\nmaps to a previously discovered vulnerability.", + "type": "string" + }, + "description": { + "description": "Additional context or custom instructions provided by the user to guide\nthe patch generation process.", + "type": "string" } }, "x-speakeasy-model-namespace": "interactions" @@ -5362,19 +5367,19 @@ "description": "A tool that can be used by the model.", "type": "object", "properties": { - "description": { - "description": "A description of the function.", - "type": "string" + "type": { + "const": "function" }, "name": { "description": "The name of the function.", "type": "string" }, - "parameters": { - "description": "The JSON Schema for the function's parameters." + "description": { + "description": "A description of the function.", + "type": "string" }, - "type": { - "const": "function" + "parameters": { + "description": "The JSON Schema for the function's parameters.\n\nSupports a subset of JSON Schema. `minLength`, `maxLength`,\n`minProperties`, `maxProperties`, `uniqueItems`, `contains`,\n`minContains`, and `maxContains` are ignored and not enforced." } }, "required": [ @@ -5419,6 +5424,10 @@ "description": "A function tool call step.", "type": "object", "properties": { + "name": { + "description": "Required. The name of the tool to call.", + "type": "string" + }, "arguments": { "description": "Required. The arguments to pass to the function.", "type": "object", @@ -5430,10 +5439,6 @@ "description": "Required. A unique ID for this specific tool call.", "type": "string" }, - "name": { - "description": "Required. The name of the tool to call.", - "type": "string" - }, "type": { "const": "function_call" } @@ -5466,12 +5471,6 @@ "FunctionResultDelta": { "type": "object", "properties": { - "is_error": { - "type": "boolean" - }, - "name": { - "type": "string" - }, "result": { "oneOf": [ { @@ -5497,6 +5496,12 @@ }, "type": { "const": "function_result" + }, + "name": { + "type": "string" + }, + "is_error": { + "type": "boolean" } }, "required": [ @@ -5509,18 +5514,6 @@ "description": "Result of a function tool call.", "type": "object", "properties": { - "call_id": { - "description": "Required. ID to match the ID from the function call block.", - "type": "string" - }, - "is_error": { - "description": "Whether the tool call resulted in an error.", - "type": "boolean" - }, - "name": { - "description": "The name of the tool that was called.", - "type": "string" - }, "result": { "description": "Required. The result of the tool call.", "oneOf": [ @@ -5545,8 +5538,20 @@ } ] }, + "call_id": { + "description": "Required. ID to match the ID from the function call block.", + "type": "string" + }, "type": { "const": "function_result" + }, + "name": { + "description": "The name of the tool that was called.", + "type": "string" + }, + "is_error": { + "description": "Whether the tool call resulted in an error.", + "type": "boolean" } }, "required": [ @@ -5580,56 +5585,6 @@ "description": "Configuration parameters for model interactions.", "type": "object", "properties": { - "image_config": { - "description": "Configuration for image interaction.", - "$ref": "#/components/schemas/ImageConfig", - "deprecated": true - }, - "max_output_tokens": { - "description": "The maximum number of tokens to include in the response.", - "type": "integer", - "format": "int32" - }, - "seed": { - "description": "Seed used in decoding for reproducibility.", - "type": "integer", - "format": "int32" - }, - "speech_config": { - "description": "Optional. Speech and multi-speaker configuration.", - "oneOf": [ - { - "$ref": "#/components/schemas/SpeakerConfig" - }, - { - "type": "array", - "items": { - "$ref": "#/components/schemas/SpeechConfig" - } - } - ] - }, - "stop_sequences": { - "description": "A list of character sequences that will stop output interaction.", - "type": "array", - "items": { - "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" - }, - "thinking_summaries": { - "description": "Whether to include thought summaries in the response.", - "$ref": "#/components/schemas/ThinkingSummaries" - }, "tool_choice": { "description": "The tool choice configuration.", "oneOf": [ @@ -5660,19 +5615,69 @@ } ] }, + "temperature": { + "description": "Controls the randomness of the output.", + "type": "number", + "deprecated": true, + "format": "float" + }, "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" + "seed": { + "description": "Seed used in decoding for reproducibility.", + "type": "integer", + "format": "int32" + }, + "stop_sequences": { + "description": "A list of character sequences that will stop output interaction.", + "type": "array", + "items": { + "type": "string" + } + }, + "thinking_level": { + "description": "The level of thought tokens that the model should generate.", + "$ref": "#/components/schemas/ThinkingLevel" + }, + "thinking_summaries": { + "description": "Whether to include thought summaries in the response.", + "$ref": "#/components/schemas/ThinkingSummaries" + }, + "max_output_tokens": { + "description": "The maximum number of tokens to include in the response.", + "type": "integer", + "format": "int32" + }, + "image_config": { + "description": "Configuration for image interaction.", + "$ref": "#/components/schemas/ImageConfig", + "deprecated": true }, "video_config": { "description": "Configuration for video generation.", "$ref": "#/components/schemas/VideoConfig" + }, + "transcription_config": { + "description": "Optional. Configuration for speech recognition (transcription). If present, ASR is\nenabled.", + "$ref": "#/components/schemas/TranscriptionConfig" + }, + "speech_config": { + "description": "Optional. Speech and multi-speaker configuration.", + "oneOf": [ + { + "$ref": "#/components/schemas/SpeakerConfig" + }, + { + "type": "array", + "items": { + "$ref": "#/components/schemas/SpeechConfig" + } + } + ] } }, "x-speakeasy-exports": [ @@ -5711,15 +5716,6 @@ "description": "Request for InteractionService.GetInteraction.", "type": "object", "properties": { - "include_input": { - "description": "If true, includes the input in the response.", - "type": "boolean", - "deprecated": true - }, - "last_event_id": { - "description": "If set, resumes the interaction stream from the chunk after the event\nmarked by the event id. Can only be used if `stream` is true.", - "type": "string" - }, "name": { "description": "Required. The name of the interaction to retrieve.\nFormat: interactions/{interaction}", "type": "string" @@ -5727,6 +5723,15 @@ "stream": { "description": "If true, streams the interaction events as Server-Sent Events.", "type": "boolean" + }, + "last_event_id": { + "description": "If set, resumes the interaction stream from the chunk after the event\nmarked by the event id. Can only be used if `stream` is true.", + "type": "string" + }, + "include_input": { + "description": "If true, includes the input in the response.", + "type": "boolean", + "deprecated": true } }, "required": [ @@ -5738,6 +5743,9 @@ "description": "A tool that can be used by the model to call Google Maps.", "type": "object", "properties": { + "type": { + "const": "google_maps" + }, "enable_widget": { "description": "Whether to return a widget context token in the tool call result of the\nresponse.", "type": "boolean" @@ -5751,9 +5759,6 @@ "description": "The longitude of the user's location.", "type": "number", "format": "double" - }, - "type": { - "const": "google_maps" } }, "required": [ @@ -5805,6 +5810,9 @@ "GoogleMapsCallDelta": { "type": "object", "properties": { + "type": { + "const": "google_maps_call" + }, "arguments": { "description": "The arguments to pass to the Google Maps tool.", "$ref": "#/components/schemas/GoogleMapsCallArguments" @@ -5814,9 +5822,6 @@ "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "google_maps_call" } }, "required": [ @@ -5828,22 +5833,22 @@ "description": "Google Maps call step.", "type": "object", "properties": { - "arguments": { - "description": "The arguments to pass to the Google Maps tool.", - "$ref": "#/components/schemas/GoogleMapsCallStepArguments" - }, "id": { "description": "Required. A unique ID for this specific tool call.", "type": "string" }, + "type": { + "const": "google_maps_call" + }, + "arguments": { + "description": "The arguments to pass to the Google Maps tool.", + "$ref": "#/components/schemas/GoogleMapsCallStepArguments" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "google_maps_call" } }, "required": [ @@ -5912,6 +5917,9 @@ "GoogleMapsResultDelta": { "type": "object", "properties": { + "type": { + "const": "google_maps_result" + }, "result": { "description": "The results of the Google Maps.", "type": "array", @@ -5924,9 +5932,6 @@ "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "google_maps_result" } }, "required": [ @@ -5960,20 +5965,20 @@ "GoogleMapsResultPlaces": { "type": "object", "properties": { - "name": { - "type": "string" - }, "place_id": { "type": "string" }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + }, "review_snippets": { "type": "array", "items": { "$ref": "#/components/schemas/ReviewSnippet" } - }, - "url": { - "type": "string" } }, "x-speakeasy-model-namespace": "interactions" @@ -5982,24 +5987,24 @@ "description": "Google Maps result step.", "type": "object", "properties": { - "call_id": { - "description": "Required. ID to match the ID from the function call block.", - "type": "string" - }, "result": { "type": "array", "items": { "$ref": "#/components/schemas/GoogleMapsResultItem" } }, + "call_id": { + "description": "Required. ID to match the ID from the function call block.", + "type": "string" + }, + "type": { + "const": "google_maps_result" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "google_maps_result" } }, "required": [ @@ -6037,6 +6042,9 @@ "description": "A tool that can be used by the model to search Google.", "type": "object", "properties": { + "type": { + "const": "google_search" + }, "search_types": { "description": "The types of search grounding to enable.", "type": "array", @@ -6053,9 +6061,6 @@ "Setting this field enables enterprise web search." ] } - }, - "type": { - "const": "google_search" } }, "required": [ @@ -6110,14 +6115,14 @@ "arguments": { "$ref": "#/components/schemas/GoogleSearchCallArguments" }, + "type": { + "const": "google_search_call" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "google_search_call" } }, "required": [ @@ -6138,6 +6143,9 @@ "description": "Required. A unique ID for this specific tool call.", "type": "string" }, + "type": { + "const": "google_search_call" + }, "search_type": { "description": "The type of search grounding enabled.", "type": "string", @@ -6157,9 +6165,6 @@ "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "google_search_call" } }, "required": [ @@ -6222,23 +6227,23 @@ "GoogleSearchResultDelta": { "type": "object", "properties": { - "is_error": { - "type": "boolean" - }, "result": { "type": "array", "items": { "$ref": "#/components/schemas/GoogleSearchResult" } }, + "type": { + "const": "google_search_result" + }, + "is_error": { + "type": "boolean" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "google_search_result" } }, "required": [ @@ -6269,29 +6274,29 @@ "description": "Google Search result step.", "type": "object", "properties": { + "result": { + "description": "Required. The results of the Google Search.", + "type": "array", + "items": { + "$ref": "#/components/schemas/GoogleSearchResultItem" + } + }, "call_id": { "description": "Required. ID to match the ID from the function call block.", "type": "string" }, + "type": { + "const": "google_search_result" + }, "is_error": { "description": "Whether the Google Search resulted in an error.", "type": "boolean" }, - "result": { - "description": "Required. The results of the Google Search.", - "type": "array", - "items": { - "$ref": "#/components/schemas/GoogleSearchResultItem" - } - }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "google_search_result" } }, "required": [ @@ -6323,11 +6328,6 @@ "description": "The number of grounding tool counts.", "type": "object", "properties": { - "count": { - "description": "The number of grounding tool counts.", - "type": "integer", - "format": "int32" - }, "type": { "description": "The grounding tool type associated with the count.", "type": "string", @@ -6341,6 +6341,11 @@ "Grounding with Google Maps.", "Grounding with customer's data, for example, VertexAISearch." ] + }, + "count": { + "description": "The number of grounding tool counts.", + "type": "integer", + "format": "int32" } }, "x-speakeasy-model-namespace": "interactions" @@ -6395,25 +6400,25 @@ "description": "Configuration for HTTP Bearer token credentials.", "type": "object", "properties": { - "header_name": { - "description": "Optional. Header name to inject the token into. Defaults to\n'Authorization'.", - "type": "string" - }, - "id": { - "type": "string" - }, - "prefix": { - "description": "Optional. Prefix to prepend to the token. Defaults to 'Bearer'. Set to ''\nfor no prefix.", - "type": "string" - }, "token": { "description": "Required. Input only. The static bearer token. Write-only; never returned in responses.", "type": "string", "writeOnly": true, "x-speakeasy-param-sensitive": true }, + "id": { + "type": "string" + }, "type": { "const": "bearer_token" + }, + "header_name": { + "description": "Optional. Header name to inject the token into. Defaults to\n'Authorization'.", + "type": "string" + }, + "prefix": { + "description": "Optional. Prefix to prepend to the token. Defaults to 'Bearer'. Set to ''\nfor no prefix.", + "type": "string" } }, "required": [ @@ -6433,13 +6438,8 @@ "description": "Configuration for updating HTTP Bearer token credentials.", "type": "object", "properties": { - "header_name": { - "description": "Optional. Header name to inject the token into. Defaults to\n'Authorization'.", - "type": "string" - }, - "prefix": { - "description": "Optional. Prefix to prepend to the token. Defaults to 'Bearer'. Set to ''\nfor no prefix.", - "type": "string" + "type": { + "const": "bearer_token" }, "token": { "description": "Optional. Input only. The static bearer token. Write-only; never returned in responses.", @@ -6447,8 +6447,13 @@ "writeOnly": true, "x-speakeasy-param-sensitive": true }, - "type": { - "const": "bearer_token" + "header_name": { + "description": "Optional. Header name to inject the token into. Defaults to\n'Authorization'.", + "type": "string" + }, + "prefix": { + "description": "Optional. Prefix to prepend to the token. Defaults to 'Bearer'. Set to ''\nfor no prefix.", + "type": "string" } }, "required": [ @@ -6565,12 +6570,23 @@ "description": "An image content block.", "type": "object", "properties": { + "type": { + "const": "image" + }, "data": { "description": "The image content.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" }, + "uri": { + "description": "The URI of the image.", + "type": "string" + }, + "resolution": { + "description": "The resolution of the media.", + "$ref": "#/components/schemas/MediaResolution" + }, "mime_type": { "description": "The mime type of the image.", "type": "string", @@ -6594,17 +6610,6 @@ "BMP image format", "TIFF image format" ] - }, - "resolution": { - "description": "The resolution of the media.", - "$ref": "#/components/schemas/MediaResolution" - }, - "type": { - "const": "image" - }, - "uri": { - "description": "The URI of the image.", - "type": "string" } }, "required": [ @@ -6629,11 +6634,17 @@ "ImageDelta": { "type": "object", "properties": { + "type": { + "const": "image" + }, "data": { "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" }, + "uri": { + "type": "string" + }, "mime_type": { "type": "string", "enum": [ @@ -6660,12 +6671,6 @@ "resolution": { "description": "The resolution of the media.", "$ref": "#/components/schemas/MediaResolution" - }, - "type": { - "const": "image" - }, - "uri": { - "type": "string" } }, "required": [ @@ -6677,6 +6682,31 @@ "description": "Configuration for image output format.", "type": "object", "properties": { + "type": { + "const": "image" + }, + "mime_type": { + "description": "The MIME type of the image output.", + "type": "string", + "enum": [ + "image/jpeg" + ], + "x-google-enum-descriptions": [ + "JPEG image format." + ] + }, + "delivery": { + "description": "The delivery mode for the image output.", + "type": "string", + "enum": [ + "inline", + "uri" + ], + "x-google-enum-descriptions": [ + "Image data is returned inline in the response.", + "Image data is returned as a URI." + ] + }, "aspect_ratio": { "description": "The aspect ratio for the image output.", "type": "string", @@ -6713,18 +6743,6 @@ "4:1 aspect ratio." ] }, - "delivery": { - "description": "The delivery mode for the image output.", - "type": "string", - "enum": [ - "inline", - "uri" - ], - "x-google-enum-descriptions": [ - "Image data is returned inline in the response.", - "Image data is returned as a URI." - ] - }, "image_size": { "description": "The size of the image output.", "type": "string", @@ -6740,19 +6758,6 @@ "2K image size.", "4K image size." ] - }, - "mime_type": { - "description": "The MIME type of the image output.", - "type": "string", - "enum": [ - "image/jpeg" - ], - "x-google-enum-descriptions": [ - "JPEG image format." - ] - }, - "type": { - "const": "image" } }, "required": [ @@ -6799,134 +6804,12 @@ "description": "The Interaction resource.", "type": "object", "properties": { - "agent": { - "description": "The name of the `Agent` used for generating the interaction.", - "$ref": "#/components/schemas/AgentOption" - }, - "agent_config": { - "description": "Configuration parameters for the agent interaction.", - "oneOf": [ - { - "$ref": "#/components/schemas/AntigravityAgentConfig" - }, - { - "$ref": "#/components/schemas/CodeMenderAgentConfig" - }, - { - "$ref": "#/components/schemas/DeepResearchAgentConfig" - }, - { - "$ref": "#/components/schemas/DynamicAgentConfig" - } - ] - }, - "background": { - "description": "Input only. Whether to run the model interaction in the background.", - "type": "boolean", - "writeOnly": true - }, - "cached_content": { - "description": "The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}", - "type": "string", - "deprecated": true - }, - "created": { - "description": "Required. Output only. The time at which the response was created in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", + "id": { + "description": "Required. Output only. A unique identifier for the interaction completion.", "type": "string", + "default": "", "readOnly": true }, - "environment": { - "description": "The environment configuration for the interaction. Can be an object\nspecifying remote environment sources or a string referencing an existing\nenvironment ID.", - "oneOf": [ - { - "$ref": "#/components/schemas/EnvironmentConfig" - }, - { - "type": "string" - } - ] - }, - "environment_id": { - "description": "Output only. The environment ID for the interaction. Only populated if environment\nconfig is set in the request.", - "type": "string", - "readOnly": true - }, - "errors": { - "description": "Output only. Diagnostic faults / platform errors recorded on the interaction.", - "type": "array", - "items": { - "$ref": "#/components/schemas/Error" - }, - "readOnly": true - }, - "generation_config": { - "description": "Input only. Configuration parameters for the model interaction.", - "$ref": "#/components/schemas/GenerationConfig", - "writeOnly": true - }, - "id": { - "description": "Required. Output only. A unique identifier for the interaction completion.", - "type": "string", - "default": "", - "readOnly": true - }, - "input": { - "$ref": "#/components/schemas/InteractionsInput" - }, - "labels": { - "description": "The labels with user-defined metadata for the request.\n\nLabel keys and values can be no longer than 63 characters\n(Unicode codepoints) and can only contain lowercase letters, numeric\ncharacters, underscores, and dashes. International characters are allowed.\nLabel values are optional. Label keys must start with a letter.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "model": { - "description": "The name of the `Model` used for generating the interaction.", - "$ref": "#/components/schemas/ModelOption" - }, - "previous_interaction_id": { - "description": "The ID of the previous interaction, if any.", - "type": "string" - }, - "response_format": { - "description": "Enforces that the generated response is a JSON object that complies with\nthe JSON schema specified in this field.", - "oneOf": [ - { - "$ref": "#/components/schemas/ResponseFormat" - }, - { - "title": "ResponseFormatList", - "type": "array", - "items": { - "$ref": "#/components/schemas/ResponseFormat" - } - } - ] - }, - "response_mime_type": { - "description": "The mime type of the response. This is required if response_format is set.", - "type": "string", - "deprecated": true - }, - "response_modalities": { - "description": "The requested modalities of the response (TEXT, IMAGE, AUDIO).", - "type": "array", - "deprecated": true, - "items": { - "$ref": "#/components/schemas/ResponseModality" - } - }, - "safety_settings": { - "description": "Safety settings for the interaction.", - "type": "array", - "items": { - "$ref": "#/components/schemas/SafetySetting" - } - }, - "service_tier": { - "description": "The service tier for the interaction.", - "$ref": "#/components/schemas/ServiceTier" - }, "status": { "description": "Required. Output only. The status of the interaction.", "type": "string", @@ -6962,6 +6845,16 @@ "The interaction is queued, waiting for processing (e.g. waiting for\noff-peak capacity)." ] }, + "created": { + "description": "Required. Output only. The time at which the response was created in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", + "type": "string", + "readOnly": true + }, + "updated": { + "description": "Required. Output only. The time at which the response was last updated in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", + "type": "string", + "readOnly": true + }, "steps": { "description": "Required. Output only. The steps that make up the interaction, when included in the response.", "type": "array", @@ -6970,16 +6863,44 @@ }, "readOnly": true }, - "store": { - "description": "Input only. Whether to store the response and request for later retrieval.", - "type": "boolean", - "writeOnly": true + "model": { + "description": "The name of the `Model` used for generating the interaction.", + "$ref": "#/components/schemas/ModelOption" }, - "stream": { - "description": "Input only. Whether the interaction will be streamed.", - "type": "boolean", + "generation_config": { + "description": "Input only. Configuration parameters for the model interaction.", + "$ref": "#/components/schemas/GenerationConfig", "writeOnly": true }, + "input": { + "$ref": "#/components/schemas/InteractionsInput" + }, + "response_format": { + "description": "Enforces that the generated response is a JSON object that complies with\nthe JSON schema specified in this field.", + "oneOf": [ + { + "$ref": "#/components/schemas/ResponseFormat" + }, + { + "title": "ResponseFormatList", + "type": "array", + "items": { + "$ref": "#/components/schemas/ResponseFormat" + } + } + ] + }, + "environment": { + "description": "The environment configuration for the interaction. Can be an object\nspecifying remote environment sources or a string referencing an existing\nenvironment ID.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentConfig" + }, + { + "type": "string" + } + ] + }, "system_instruction": { "description": "System instruction for the interaction.", "type": "string" @@ -6991,23 +6912,111 @@ "$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 - }, "usage": { "description": "Output only. Statistics on the interaction request's token usage.", "$ref": "#/components/schemas/Usage", "readOnly": true }, + "response_modalities": { + "description": "The requested modalities of the response (TEXT, IMAGE, AUDIO).", + "type": "array", + "deprecated": true, + "items": { + "$ref": "#/components/schemas/ResponseModality" + } + }, + "response_mime_type": { + "description": "The mime type of the response. This is required if response_format is set.", + "type": "string", + "deprecated": true + }, + "previous_interaction_id": { + "description": "The ID of the previous interaction, if any.", + "type": "string" + }, + "environment_id": { + "description": "Output only. The environment ID for the interaction. Only populated if environment\nconfig is set in the request.", + "type": "string", + "readOnly": true + }, + "service_tier": { + "description": "The service tier for the interaction.", + "$ref": "#/components/schemas/ServiceTier" + }, "webhook_config": { "description": "Optional. Webhook configuration for receiving notifications when the\ninteraction completes.", "$ref": "#/components/schemas/WebhookConfig" + }, + "safety_settings": { + "description": "Safety settings for the interaction.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SafetySetting" + } + }, + "labels": { + "description": "The labels with user-defined metadata for the request.\n\nLabel keys and values can be no longer than 63 characters\n(Unicode codepoints) and can only contain lowercase letters, numeric\ncharacters, underscores, and dashes. International characters are allowed.\nLabel values are optional. Label keys must start with a letter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "errors": { + "description": "Output only. Diagnostic faults / platform errors recorded on the interaction.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Error" + }, + "readOnly": true + }, + "stream": { + "description": "Input only. Whether the interaction will be streamed.", + "type": "boolean", + "writeOnly": true + }, + "store": { + "description": "Input only. Whether to store the response and request for later retrieval.", + "type": "boolean", + "writeOnly": true + }, + "background": { + "description": "Input only. Whether to run the model interaction in the background.", + "type": "boolean", + "writeOnly": true + }, + "agent": { + "description": "The name of the `Agent` used for generating the interaction.", + "$ref": "#/components/schemas/AgentOption" + }, + "agent_config": { + "description": "Configuration parameters for the agent interaction.", + "oneOf": [ + { + "$ref": "#/components/schemas/AntigravityAgentConfig" + }, + { + "$ref": "#/components/schemas/CodeMenderAgentConfig" + }, + { + "$ref": "#/components/schemas/DeepResearchAgentConfig" + }, + { + "$ref": "#/components/schemas/DynamicAgentConfig" + } + ] + }, + "cached_content": { + "description": "The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}", + "type": "string", + "deprecated": true } }, "required": [ - "status" + "status", + "created", + "id", + "steps", + "updated" ], "example": { "created": "2025-12-04T15:01:45Z", @@ -7054,16 +7063,16 @@ "description": "Signals that the Interaction completed. Sent when the Interaction receives\nComplete/Cancel or naturally terminates. No more input can be sent to the\nInteraction after this.", "type": "object", "properties": { - "event_id": { - "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", - "type": "string" + "interaction": { + "description": "Required. Partial completed interaction resource emitted at the end of the stream.", + "$ref": "#/components/schemas/InteractionSseEventInteraction" }, "event_type": { "const": "interaction.completed" }, - "interaction": { - "description": "Required. Partial completed interaction resource emitted at the end of the stream.", - "$ref": "#/components/schemas/InteractionSseEventInteraction" + "event_id": { + "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", + "type": "string" } }, "required": [ @@ -7096,16 +7105,16 @@ "description": "Server response confirming that a new interaction was created.", "type": "object", "properties": { - "event_id": { - "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", - "type": "string" + "interaction": { + "description": "Required. Partial interaction resource emitted when the stream is created.", + "$ref": "#/components/schemas/InteractionSseEventInteraction" }, "event_type": { "const": "interaction.created" }, - "interaction": { - "description": "Required. Partial interaction resource emitted when the stream is created.", - "$ref": "#/components/schemas/InteractionSseEventInteraction" + "event_id": { + "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", + "type": "string" } }, "required": [ @@ -7138,39 +7147,11 @@ "description": "Partial interaction resource emitted by interaction lifecycle SSE events.\nStreaming lifecycle payloads may omit fields that are only available on\nfull non-streaming Interaction responses.\n", "type": "object", "properties": { - "agent": { - "description": "The agent to interact with.", - "type": "string" - }, - "continuation_token": { - "description": "Output only. Opaque token to resume a long decode when status is incomplete.", - "type": "string", - "format": "byte", - "readOnly": true - }, - "created": { - "description": "Output only. The time at which the response was created in ISO 8601 format.", - "type": "string", - "readOnly": true - }, "id": { "description": "Required. Output only. A unique identifier for the interaction completion.", "type": "string", "readOnly": true }, - "model": { - "description": "The model that will complete your prompt.", - "type": "string" - }, - "object": { - "description": "Output only. The resource type.", - "type": "string", - "readOnly": true - }, - "service_tier": { - "description": "The service tier for the interaction.", - "$ref": "#/components/schemas/ServiceTier" - }, "status": { "description": "Required. Output only. The status of the interaction.", "type": "string", @@ -7206,6 +7187,29 @@ "The interaction is queued, waiting for processing (e.g. waiting for\noff-peak capacity)." ] }, + "model": { + "description": "The model that will complete your prompt.", + "type": "string" + }, + "created": { + "description": "Output only. The time at which the response was created in ISO 8601 format.", + "type": "string", + "readOnly": true + }, + "updated": { + "description": "Output only. The time at which the response was last updated in ISO 8601 format.", + "type": "string", + "readOnly": true + }, + "usage": { + "description": "Output only. Statistics on the interaction request's token usage.", + "$ref": "#/components/schemas/Usage", + "readOnly": true + }, + "service_tier": { + "description": "The service tier for the interaction.", + "$ref": "#/components/schemas/ServiceTier" + }, "steps": { "description": "Output only. The steps that make up the interaction, if included in this event.", "type": "array", @@ -7214,14 +7218,19 @@ }, "readOnly": true }, - "updated": { - "description": "Output only. The time at which the response was last updated in ISO 8601 format.", + "agent": { + "description": "The agent to interact with.", + "type": "string" + }, + "continuation_token": { + "description": "Output only. Opaque token to resume a long decode when status is incomplete.", "type": "string", + "format": "byte", "readOnly": true }, - "usage": { - "description": "Output only. Statistics on the interaction request's token usage.", - "$ref": "#/components/schemas/Usage", + "object": { + "description": "Output only. The resource type.", + "type": "string", "readOnly": true } }, @@ -7280,18 +7289,6 @@ "InteractionStatusUpdate": { "type": "object", "properties": { - "continuation_token": { - "description": "An optional opaque continuation token used to resume decoding from the\nlatest checkpoint after a disconnected stream.", - "type": "string", - "format": "byte" - }, - "event_id": { - "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", - "type": "string" - }, - "event_type": { - "const": "interaction.status_update" - }, "interaction_id": { "type": "string" }, @@ -7328,9 +7325,21 @@ "The interaction is queued, waiting for processing (e.g. waiting for\noff-peak capacity)." ] }, + "event_type": { + "const": "interaction.status_update" + }, + "continuation_token": { + "description": "An optional opaque continuation token used to resume decoding from the\nlatest checkpoint after a disconnected stream.", + "type": "string", + "format": "byte" + }, "usage": { "description": "Model usage statistics up to this checkpoint.", "$ref": "#/components/schemas/Usage" + }, + "event_id": { + "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", + "type": "string" } }, "required": [ @@ -7454,16 +7463,16 @@ "description": "Response message for TriggerService.ListTriggerExecutions.", "type": "object", "properties": { - "next_page_token": { - "description": "A page token, received from a previous `ListTriggerExecutions` call.\nProvide this to retrieve the subsequent page.", - "type": "string" - }, "trigger_executions": { "description": "The list of trigger executions.", "type": "array", "items": { "$ref": "#/components/schemas/TriggerExecution" } + }, + "next_page_token": { + "description": "A page token, received from a previous `ListTriggerExecutions` call.\nProvide this to retrieve the subsequent page.", + "type": "string" } }, "x-speakeasy-exports": [ @@ -7478,16 +7487,16 @@ "description": "Response message for TriggerService.ListTriggers.", "type": "object", "properties": { - "next_page_token": { - "description": "A page token, received from a previous `ListTriggers` call.\nProvide this to retrieve the subsequent page.", - "type": "string" - }, "triggers": { "description": "The list of triggers.", "type": "array", "items": { "$ref": "#/components/schemas/Trigger" } + }, + "next_page_token": { + "description": "A page token, received from a previous `ListTriggers` call.\nProvide this to retrieve the subsequent page.", + "type": "string" } }, "x-speakeasy-exports": [ @@ -7502,16 +7511,16 @@ "description": "Response message for `VoicesService.ListVoices`.", "type": "object", "properties": { - "next_page_token": { - "description": "A token that can be sent as `page_token` to retrieve the next page.\nIf empty, there are no subsequent pages.", - "type": "string" - }, "voices": { "description": "The voices from the specified collection.", "type": "array", "items": { "$ref": "#/components/schemas/Voice" } + }, + "next_page_token": { + "description": "A token that can be sent as `page_token` to retrieve the next page.\nIf empty, there are no subsequent pages.", + "type": "string" } }, "x-speakeasy-exports": [ @@ -7526,16 +7535,16 @@ "description": "Response message for WebhookService.ListWebhooks.", "type": "object", "properties": { - "next_page_token": { - "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages.", - "type": "string" - }, "webhooks": { "description": "The webhooks.", "type": "array", "items": { "$ref": "#/components/schemas/Webhook" } + }, + "next_page_token": { + "description": "A token, which can be sent as `page_token` to retrieve the next page.\nIf this field is omitted, there are no subsequent pages.", + "type": "string" } }, "x-speakeasy-exports": [ @@ -7551,12 +7560,16 @@ "description": "A MCPServer is a server that can be called by the model to perform actions.", "type": "object", "properties": { - "allowed_tools": { - "description": "The allowed tools.", - "type": "array", - "items": { - "$ref": "#/components/schemas/AllowedTools" - } + "type": { + "const": "mcp_server" + }, + "url": { + "description": "The full URL for the MCPServer endpoint.\nExample: \"https://api.example.com/mcp\"", + "type": "string" + }, + "name": { + "description": "The name of the MCPServer.", + "type": "string" }, "headers": { "description": "Optional: Fields for authentication headers, timeouts, etc., if needed.", @@ -7565,16 +7578,12 @@ "type": "string" } }, - "name": { - "description": "The name of the MCPServer.", - "type": "string" - }, - "type": { - "const": "mcp_server" - }, - "url": { - "description": "The full URL for the MCPServer endpoint.\nExample: \"https://api.example.com/mcp\"", - "type": "string" + "allowed_tools": { + "description": "The allowed tools.", + "type": "array", + "items": { + "$ref": "#/components/schemas/AllowedTools" + } } }, "required": [ @@ -7613,18 +7622,18 @@ "McpServerToolCallDelta": { "type": "object", "properties": { - "arguments": { - "type": "object", - "additionalProperties": { - "description": "Properties of the object." - } - }, "name": { "type": "string" }, "server_name": { "type": "string" }, + "arguments": { + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + } + }, "type": { "const": "mcp_server_tool_call" } @@ -7642,6 +7651,14 @@ "description": "MCPServer tool call step.", "type": "object", "properties": { + "name": { + "description": "Required. The name of the tool which was called.", + "type": "string" + }, + "server_name": { + "description": "Required. The name of the used MCP server.", + "type": "string" + }, "arguments": { "description": "Required. The JSON object of arguments for the function.", "type": "object", @@ -7653,14 +7670,6 @@ "description": "Required. A unique ID for this specific tool call.", "type": "string" }, - "name": { - "description": "Required. The name of the tool which was called.", - "type": "string" - }, - "server_name": { - "description": "Required. The name of the used MCP server.", - "type": "string" - }, "type": { "const": "mcp_server_tool_call" } @@ -7697,9 +7706,6 @@ "McpServerToolResultDelta": { "type": "object", "properties": { - "name": { - "type": "string" - }, "result": { "oneOf": [ { @@ -7723,11 +7729,14 @@ } ] }, - "server_name": { - "type": "string" - }, "type": { "const": "mcp_server_tool_result" + }, + "name": { + "type": "string" + }, + "server_name": { + "type": "string" } }, "required": [ @@ -7741,14 +7750,6 @@ "description": "MCPServer tool result step.", "type": "object", "properties": { - "call_id": { - "description": "Required. ID to match the ID from the function call block.", - "type": "string" - }, - "name": { - "description": "Name of the tool which is called for this specific tool call.", - "type": "string" - }, "result": { "description": "Required. The output from the MCP server call. Can be simple text or rich content.", "oneOf": [ @@ -7773,12 +7774,20 @@ } ] }, - "server_name": { - "description": "The name of the used MCP server.", + "call_id": { + "description": "Required. ID to match the ID from the function call block.", "type": "string" }, "type": { "const": "mcp_server_tool_result" + }, + "name": { + "description": "Name of the tool which is called for this specific tool call.", + "type": "string" + }, + "server_name": { + "description": "The name of the used MCP server.", + "type": "string" } }, "required": [ @@ -7851,65 +7860,18 @@ "description": "Interaction for generating the completion using models.", "type": "object", "properties": { - "background": { - "description": "Input only. Whether to run the model interaction in the background.", - "type": "boolean", - "writeOnly": true - }, - "cached_content": { - "description": "The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}", - "type": "string", - "deprecated": true - }, - "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 - }, - "environment": { - "description": "The environment configuration for the interaction. Can be an object\nspecifying remote environment sources or a string referencing an existing\nenvironment ID.", - "oneOf": [ - { - "$ref": "#/components/schemas/EnvironmentConfig" - }, - { - "type": "string" - } - ] - }, - "environment_id": { - "description": "Output only. The environment ID for the interaction. Only populated if environment\nconfig is set in the request.", - "type": "string", - "readOnly": true + "model": { + "description": "The name of the `Model` used for generating the interaction.", + "$ref": "#/components/schemas/ModelOption" }, "generation_config": { "description": "Input only. Configuration parameters for the model interaction.", "$ref": "#/components/schemas/GenerationConfig", "writeOnly": true }, - "id": { - "description": "Required. Output only. A unique identifier for the interaction completion.", - "type": "string", - "readOnly": true - }, "input": { "$ref": "#/components/schemas/InteractionsInput" }, - "labels": { - "description": "The labels with user-defined metadata for the request.\n\nLabel keys and values can be no longer than 63 characters\n(Unicode codepoints) and can only contain lowercase letters, numeric\ncharacters, underscores, and dashes. International characters are allowed.\nLabel values are optional. Label keys must start with a letter.", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "model": { - "description": "The name of the `Model` used for generating the interaction.", - "$ref": "#/components/schemas/ModelOption" - }, - "previous_interaction_id": { - "description": "The ID of the previous interaction, if any.", - "type": "string" - }, "response_format": { "description": "Enforces that the generated response is a JSON object that complies with\nthe JSON schema specified in this field.", "oneOf": [ @@ -7925,29 +7887,21 @@ } ] }, - "response_mime_type": { - "description": "The mime type of the response. This is required if response_format is set.", - "type": "string", - "deprecated": true - }, - "response_modalities": { - "description": "The requested modalities of the response (TEXT, IMAGE, AUDIO).", - "type": "array", - "deprecated": true, - "items": { - "$ref": "#/components/schemas/ResponseModality" - } - }, - "safety_settings": { - "description": "Safety settings for the interaction.", - "type": "array", - "items": { - "$ref": "#/components/schemas/SafetySetting" - } + "environment": { + "description": "The environment configuration for the interaction. Can be an object\nspecifying remote environment sources or a string referencing an existing\nenvironment ID.", + "oneOf": [ + { + "$ref": "#/components/schemas/EnvironmentConfig" + }, + { + "type": "string" + } + ] }, - "service_tier": { - "description": "The service tier for the interaction.", - "$ref": "#/components/schemas/ServiceTier" + "id": { + "description": "Required. Output only. A unique identifier for the interaction completion.", + "type": "string", + "readOnly": true }, "status": { "description": "Required. Output only. The status of the interaction.", @@ -7984,15 +7938,15 @@ "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 + "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 }, - "stream": { - "description": "Input only. Whether the interaction will be streamed.", - "type": "boolean", - "writeOnly": true + "updated": { + "description": "Required. Output only. The time at which the response was last updated in ISO 8601 format\n(YYYY-MM-DDThh:mm:ssZ).", + "type": "string", + "readOnly": true }, "system_instruction": { "description": "System instruction for the interaction.", @@ -8005,14 +7959,69 @@ "$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).", + "response_modalities": { + "description": "The requested modalities of the response (TEXT, IMAGE, AUDIO).", + "type": "array", + "deprecated": true, + "items": { + "$ref": "#/components/schemas/ResponseModality" + } + }, + "response_mime_type": { + "description": "The mime type of the response. This is required if response_format is set.", + "type": "string", + "deprecated": true + }, + "previous_interaction_id": { + "description": "The ID of the previous interaction, if any.", + "type": "string" + }, + "environment_id": { + "description": "Output only. The environment ID for the interaction. Only populated if environment\nconfig is set in the request.", "type": "string", "readOnly": true }, + "service_tier": { + "description": "The service tier for the interaction.", + "$ref": "#/components/schemas/ServiceTier" + }, "webhook_config": { "description": "Optional. Webhook configuration for receiving notifications when the\ninteraction completes.", "$ref": "#/components/schemas/WebhookConfig" + }, + "safety_settings": { + "description": "Safety settings for the interaction.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SafetySetting" + } + }, + "labels": { + "description": "The labels with user-defined metadata for the request.\n\nLabel keys and values can be no longer than 63 characters\n(Unicode codepoints) and can only contain lowercase letters, numeric\ncharacters, underscores, and dashes. International characters are allowed.\nLabel values are optional. Label keys must start with a letter.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "stream": { + "description": "Input only. Whether the interaction will be streamed.", + "type": "boolean", + "writeOnly": true + }, + "store": { + "description": "Input only. Whether to store the response and request for later retrieval.", + "type": "boolean", + "writeOnly": true + }, + "background": { + "description": "Input only. Whether to run the model interaction in the background.", + "type": "boolean", + "writeOnly": true + }, + "cached_content": { + "description": "The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: cachedContents/{cachedContent}", + "type": "string", + "deprecated": true } }, "required": [ @@ -8165,6 +8174,9 @@ "description": "Output generated by the model.", "type": "object", "properties": { + "type": { + "const": "model_output" + }, "content": { "type": "array", "items": { @@ -8175,9 +8187,6 @@ "description": "The error result of the operation in case of failure or cancellation.", "$ref": "#/components/schemas/Status", "deprecated": true - }, - "type": { - "const": "model_output" } }, "required": [ @@ -8217,28 +8226,28 @@ "writeOnly": true, "x-speakeasy-param-sensitive": true }, - "id": { - "type": "string" - }, "refresh_token": { "description": "Required. Input only. OAuth2 refresh token. Write-only; never returned in responses.", "type": "string", "writeOnly": true, "x-speakeasy-param-sensitive": true }, - "scopes": { - "description": "Optional. List of OAuth2 scopes.", - "type": "array", - "items": { - "type": "string" - } - }, "token_url": { "description": "Required. OAuth2 token endpoint URL for refreshing access tokens.", "type": "string" }, + "id": { + "type": "string" + }, "type": { "const": "oauth2" + }, + "scopes": { + "description": "Optional. List of OAuth2 scopes.", + "type": "array", + "items": { + "type": "string" + } } }, "required": [ @@ -8261,6 +8270,9 @@ "description": "Configuration for updating OAuth2 credentials.", "type": "object", "properties": { + "type": { + "const": "oauth2" + }, "client_id": { "description": "Optional. OAuth2 client ID.", "type": "string" @@ -8277,19 +8289,16 @@ "writeOnly": true, "x-speakeasy-param-sensitive": true }, + "token_url": { + "description": "Optional. OAuth2 token endpoint URL for refreshing access tokens.", + "type": "string" + }, "scopes": { "description": "Optional. List of OAuth2 scopes.", "type": "array", "items": { "type": "string" } - }, - "token_url": { - "description": "Optional. OAuth2 token endpoint URL for refreshing access tokens.", - "type": "string" - }, - "type": { - "const": "oauth2" } }, "required": [ @@ -8371,17 +8380,19 @@ "description": "A place citation annotation.", "type": "object", "properties": { - "end_index": { - "description": "End of the attributed segment, exclusive.", - "type": "integer", - "format": "int32" + "type": { + "const": "place_citation" + }, + "place_id": { + "description": "The ID of the place, in `places/{place_id}` format.", + "type": "string" }, "name": { "description": "Title of the place.", "type": "string" }, - "place_id": { - "description": "The ID of the place, in `places/{place_id}` format.", + "url": { + "description": "URI reference of the place.", "type": "string" }, "review_snippets": { @@ -8396,12 +8407,10 @@ "type": "integer", "format": "int32" }, - "type": { - "const": "place_citation" - }, - "url": { - "description": "URI reference of the place.", - "type": "string" + "end_index": { + "description": "End of the attributed segment, exclusive.", + "type": "integer", + "format": "int32" } }, "required": [ @@ -8418,12 +8427,16 @@ "Places": { "type": "object", "properties": { + "place_id": { + "description": "The ID of the place, in `places/{place_id}` format.", + "type": "string" + }, "name": { "description": "Title of the place.", "type": "string" }, - "place_id": { - "description": "The ID of the place, in `places/{place_id}` format.", + "url": { + "description": "URI reference of the place.", "type": "string" }, "review_snippets": { @@ -8432,10 +8445,6 @@ "items": { "$ref": "#/components/schemas/ReviewSnippet" } - }, - "url": { - "description": "URI reference of the place.", - "type": "string" } }, "x-speakeasy-model-namespace": "interactions" @@ -8444,14 +8453,14 @@ "description": "Streaming delta for a server-initiated media processing step.", "type": "object", "properties": { + "type": { + "const": "processing_call" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "processing_call" } }, "required": [ @@ -8467,14 +8476,14 @@ "description": "Required. A unique ID for this specific tool call.", "type": "string" }, + "type": { + "const": "processing_call" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "processing_call" } }, "required": [ @@ -8493,14 +8502,14 @@ "description": "Streaming delta for the result of a server-initiated media processing step.", "type": "object", "properties": { + "type": { + "const": "processing_result" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "processing_result" } }, "required": [ @@ -8516,14 +8525,14 @@ "description": "Required. ID to match the ID from the function call block.", "type": "string" }, + "type": { + "const": "processing_result" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "processing_result" } }, "required": [ @@ -8542,13 +8551,13 @@ "description": "Parameters for prompted voice generation.\nRequired in `CreateVoice` when `type` is `\"prompted\"`. Returned in\n`CreateVoice`, `GetVoice`, and `ListVoices` responses for prompted voices.", "type": "object", "properties": { - "base_voice": { - "description": "Optional. The name or ID of an existing base voice to edit or remix.\nUse the voice name for prebuilt voices (e.g., `Puck`) or the voice ID for\npreviously created voices (e.g., `voice_abc123`). This can be any\nprompted or replicated voice that the user has access to.\nWhen present, `input` describes relative alterations to make to the base\nvoice.", - "type": "string" - }, "input": { "description": "Required. The natural-language prompt describing the desired voice, e.g.\n\"A deep, booming male voice of a massive evil ogre in his middle years.\"", "type": "string" + }, + "base_voice": { + "description": "Optional. The name or ID of an existing base voice to edit or remix.\nUse the voice name for prebuilt voices (e.g., `Puck`) or the voice ID for\npreviously created voices (e.g., `voice_abc123`). This can be any\nprompted or replicated voice that the user has access to.\nWhen present, `input` describes relative alterations to make to the base\nvoice.", + "type": "string" } }, "required": [ @@ -8584,22 +8593,22 @@ "description": "Specifies the context retrieval config.", "type": "object", "properties": { - "filter": { - "description": "Optional. Config for filters.", - "$ref": "#/components/schemas/Filter" + "top_k": { + "description": "Optional. The number of contexts to retrieve.", + "type": "integer", + "format": "int32" }, "hybrid_search": { "description": "Optional. Config for Hybrid Search.", "$ref": "#/components/schemas/HybridSearch" }, + "filter": { + "description": "Optional. Config for filters.", + "$ref": "#/components/schemas/Filter" + }, "ranking": { "description": "Optional. Config for ranking and reranking.", "$ref": "#/components/schemas/Ranking" - }, - "top_k": { - "description": "Optional. The number of contexts to retrieve.", - "type": "integer", - "format": "int32" } }, "x-speakeasy-model-namespace": "interactions" @@ -8615,10 +8624,6 @@ "$ref": "#/components/schemas/RagResource" } }, - "rag_retrieval_config": { - "description": "Optional. The retrieval config for the Rag query.", - "$ref": "#/components/schemas/RagRetrievalConfig" - }, "similarity_top_k": { "description": "Optional. Number of top k results to return from the selected corpora.", "type": "integer", @@ -8630,6 +8635,10 @@ "type": "number", "deprecated": true, "format": "double" + }, + "rag_retrieval_config": { + "description": "Optional. The retrieval config for the Rag query.", + "$ref": "#/components/schemas/RagRetrievalConfig" } }, "x-speakeasy-model-namespace": "interactions" @@ -8649,16 +8658,16 @@ "description": "Config for ranking and reranking.", "type": "object", "properties": { - "model_name": { - "description": "Optional. The model name of the rank service.", - "type": "string" + "ranking_config": { + "const": "rank_service" }, "rank_service": { "description": "Config for Rank Service.", "$ref": "#/components/schemas/RankService" }, - "ranking_config": { - "const": "rank_service" + "model_name": { + "description": "Optional. The model name of the rank service.", + "type": "string" } }, "required": [ @@ -8670,13 +8679,13 @@ "description": "Input only. Parameters for replicated voice generation.\nRequired on input when `type` is `\"replicated\"`. Not returned in\nresponses.", "type": "object", "properties": { - "consent_audio": { - "description": "Required. Audio recording of the same speaker reading the required\nconsent phrase, confirming authorization to replicate the voice.", - "$ref": "#/components/schemas/AudioData" - }, "source_audio": { "description": "Required. The reference audio sample of the speaker's voice to replicate.\nMust be an unmodified recording of an adult human voice.", "$ref": "#/components/schemas/AudioData" + }, + "consent_audio": { + "description": "Required. Audio recording of the same speaker reading the required\nconsent phrase, confirming authorization to replicate the voice.", + "$ref": "#/components/schemas/AudioData" } }, "required": [ @@ -8735,17 +8744,8 @@ "description": "A tool that can be used by the model to retrieve files.", "type": "object", "properties": { - "exa_ai_search_config": { - "description": "Used to specify configuration for ExaAISearch.", - "$ref": "#/components/schemas/ExaAISearchConfig" - }, - "parallel_ai_search_config": { - "description": "Used to specify configuration for ParallelAISearch.", - "$ref": "#/components/schemas/ParallelAISearchConfig" - }, - "rag_store_config": { - "description": "Used to specify configuration for RagStore.", - "$ref": "#/components/schemas/RagStoreConfig" + "type": { + "const": "retrieval" }, "retrieval_types": { "description": "The types of file retrieval to enable.", @@ -8766,12 +8766,21 @@ ] } }, - "type": { - "const": "retrieval" - }, "vertex_ai_search_config": { "description": "Used to specify configuration for VertexAISearch.", "$ref": "#/components/schemas/VertexAISearchConfig" + }, + "exa_ai_search_config": { + "description": "Used to specify configuration for ExaAISearch.", + "$ref": "#/components/schemas/ExaAISearchConfig" + }, + "parallel_ai_search_config": { + "description": "Used to specify configuration for ParallelAISearch.", + "$ref": "#/components/schemas/ParallelAISearchConfig" + }, + "rag_store_config": { + "description": "Used to specify configuration for RagStore.", + "$ref": "#/components/schemas/RagStoreConfig" } }, "required": [ @@ -8787,6 +8796,9 @@ "description": "Required. The arguments to pass to the Retrieval tool.", "$ref": "#/components/schemas/RetrievalStepArguments" }, + "type": { + "const": "retrieval_call" + }, "retrieval_type": { "description": "The type of retrieval tools.", "type": "string", @@ -8808,9 +8820,6 @@ "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "retrieval_call" } }, "required": [ @@ -8837,6 +8846,9 @@ "description": "Required. A unique ID for this specific tool call.", "type": "string" }, + "type": { + "const": "retrieval_call" + }, "retrieval_type": { "description": "The type of retrieval tools.", "type": "string", @@ -8858,9 +8870,6 @@ "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "retrieval_call" } }, "required": [ @@ -8880,6 +8889,9 @@ "description": "Used by Vertex Retrieval tools such as Parallel AI, Exa AI, Vertex AI Search,\netc.\nToolResultDelta.type", "type": "object", "properties": { + "type": { + "const": "retrieval_result" + }, "is_error": { "description": "Whether the retrieval resulted in an error.", "type": "boolean" @@ -8889,9 +8901,6 @@ "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "retrieval_result" } }, "required": [ @@ -8913,6 +8922,9 @@ "description": "Required. ID to match the ID from the function call block.", "type": "string" }, + "type": { + "const": "retrieval_result" + }, "is_error": { "description": "Whether the retrieval resulted in an error.", "type": "boolean" @@ -8922,9 +8934,6 @@ "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "retrieval_result" } }, "required": [ @@ -8964,10 +8973,6 @@ "description": "Encapsulates a snippet of a user review that answers a question about\nthe features of a specific place in Google Maps.", "type": "object", "properties": { - "review_id": { - "description": "The ID of the review snippet.", - "type": "string" - }, "title": { "description": "Title of the review.", "type": "string" @@ -8975,6 +8980,10 @@ "url": { "description": "A link that corresponds to the user review on Google Maps.", "type": "string" + }, + "review_id": { + "description": "The ID of the review snippet.", + "type": "string" } }, "x-speakeasy-model-namespace": "interactions" @@ -9043,17 +9052,9 @@ "description": "A safety setting that affects the safety-blocking behavior.\n\nA SafetySetting consists of a\nharm category and a\nthreshold for that\ncategory.", "type": "object", "properties": { - "method": { - "description": "Optional. The method for blocking content. If not specified, the default\nbehavior is to use the probability score.", - "type": "string", - "enum": [ - "severity", - "probability" - ], - "x-google-enum-descriptions": [ - "The harm block method uses both probability and severity scores.", - "The harm block method uses the probability score." - ] + "type": { + "description": "Required. The type of harm category to be blocked.", + "$ref": "#/components/schemas/HarmCategory" }, "threshold": { "description": "Required. The threshold for blocking content. If the harm probability\nexceeds this threshold, the content will be blocked.", @@ -9073,9 +9074,17 @@ "Turn off the safety filter entirely." ] }, - "type": { - "description": "Required. The type of harm category to be blocked.", - "$ref": "#/components/schemas/HarmCategory" + "method": { + "description": "Optional. The method for blocking content. If not specified, the default\nbehavior is to use the probability score.", + "type": "string", + "enum": [ + "severity", + "probability" + ], + "x-google-enum-descriptions": [ + "The harm block method uses both probability and severity scores.", + "The harm block method uses the probability score." + ] } }, "required": [ @@ -9122,15 +9131,15 @@ "description": "Represents a signing secret used to verify webhook payloads.", "type": "object", "properties": { - "expire_time": { - "description": "Output only. The expiration date of the signing secret.", + "truncated_secret": { + "description": "Output only. The truncated version of the signing secret.", "type": "string", - "format": "date-time", "readOnly": true }, - "truncated_secret": { - "description": "Output only. The truncated version of the signing secret.", + "expire_time": { + "description": "Output only. The expiration date of the signing secret.", "type": "string", + "format": "date-time", "readOnly": true } }, @@ -9159,22 +9168,6 @@ "description": "A source to be mounted into the environment.", "type": "object", "properties": { - "content": { - "description": "The inline content if `type` is `INLINE`.", - "type": "string" - }, - "encoding": { - "description": "Optional encoding for inline content (e.g. `base64`).", - "type": "string" - }, - "source": { - "description": "The source of the environment.\nFor Cloud Storage, this is the Cloud Storage path.\nFor GitHub, this is the GitHub path.", - "type": "string" - }, - "target": { - "description": "Where the source should appear in the environment.", - "type": "string" - }, "type": { "type": "string", "enum": [ @@ -9189,6 +9182,22 @@ "A generic repository. The protocol prefix in the source URL\nidentifies the provider (e.g., github://, gcs://).", "A skill resource from the Skill Registry Service.\nSkill: projects/{project}/locations/{location}/skills/{skill}\nSkillRevision:\nprojects/{project}/locations/{location}/skills/{skill}/revisions/{revision}\nSupport mounting all skills under a project:\nprojects/{project}/locations/{location}/skills." ] + }, + "source": { + "description": "The source of the environment.\nFor Cloud Storage, this is the Cloud Storage path.\nFor GitHub, this is the GitHub path.", + "type": "string" + }, + "target": { + "description": "Where the source should appear in the environment.", + "type": "string" + }, + "content": { + "description": "The inline content if `type` is `INLINE`.", + "type": "string" + }, + "encoding": { + "description": "Optional encoding for inline content (e.g. `base64`).", + "type": "string" } }, "x-speakeasy-model-namespace": "interactions" @@ -9211,26 +9220,26 @@ "description": "Speech annotation for text content.", "type": "object", "properties": { - "end_index": { - "description": "End of the attributed segment, exclusive.", - "type": "integer", - "format": "int32" + "type": { + "const": "speech_metadata" }, "speaker": { "description": "The speaker to associate with this turn.", "type": "string" }, + "style": { + "description": "Style instruction for the speech synthesis.", + "type": "string" + }, "start_index": { "description": "Start of segment of the response that is attributed to this source.\n\nIndex indicates the start of the segment, measured in bytes.", "type": "integer", "format": "int32" }, - "style": { - "description": "Style instruction for the speech synthesis.", - "type": "string" - }, - "type": { - "const": "speech_metadata" + "end_index": { + "description": "End of the attributed segment, exclusive.", + "type": "integer", + "format": "int32" } }, "required": [ @@ -9242,6 +9251,10 @@ "description": "The configuration for speech interaction.", "type": "object", "properties": { + "voice": { + "description": "The voice of the speaker.", + "type": "string" + }, "language": { "description": "The language of the speech.", "type": "string" @@ -9249,10 +9262,6 @@ "speaker": { "description": "The speaker's name, it should match the speaker name given in the prompt.", "type": "string" - }, - "voice": { - "description": "The voice of the speaker.", - "type": "string" } }, "x-speakeasy-exports": [ @@ -9266,6 +9275,14 @@ "StaticMediaProcessing": { "type": "object", "properties": { + "type": { + "const": "static" + }, + "start_offset": { + "description": "Optional. Segment start time. Specified as a decimal number of seconds followed\nby an 's' suffix, e.g., \"10.5s\". Must be non-negative.", + "type": "string", + "format": "google-duration" + }, "end_offset": { "description": "Optional. Segment end time. Specified as a decimal number of seconds followed\nby an 's' suffix, e.g., \"30s\". Must be non-negative and greater than\n`start_offset` if `start_offset` is set.", "type": "string", @@ -9275,14 +9292,6 @@ "description": "Optional. Video frame-rate sampling density.", "type": "number", "format": "double" - }, - "start_offset": { - "description": "Optional. Segment start time. Specified as a decimal number of seconds followed\nby an 's' suffix, e.g., \"10.5s\". Must be non-negative.", - "type": "string", - "format": "google-duration" - }, - "type": { - "const": "static" } }, "required": [ @@ -9299,6 +9308,10 @@ "type": "integer", "format": "int32" }, + "message": { + "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.", + "type": "string" + }, "details": { "description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.", "type": "array", @@ -9308,10 +9321,6 @@ "description": "Properties of the object. Contains field @type with type URL." } } - }, - "message": { - "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.", - "type": "string" } }, "x-speakeasy-model-namespace": "interactions" @@ -9394,19 +9403,19 @@ "StepDelta": { "type": "object", "properties": { + "index": { + "type": "integer", + "format": "int32" + }, "delta": { "$ref": "#/components/schemas/StepDeltaData" }, - "event_id": { - "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", - "type": "string" - }, "event_type": { "const": "step.delta" }, - "index": { - "type": "integer", - "format": "int32" + "event_id": { + "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", + "type": "string" }, "metadata": { "$ref": "#/components/schemas/StepDeltaMetadata" @@ -9533,19 +9542,19 @@ "StepStart": { "type": "object", "properties": { - "event_id": { - "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", - "type": "string" - }, - "event_type": { - "const": "step.start" - }, "index": { "type": "integer", "format": "int32" }, "step": { "$ref": "#/components/schemas/Step" + }, + "event_type": { + "const": "step.start" + }, + "event_id": { + "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", + "type": "string" } }, "required": [ @@ -9574,24 +9583,24 @@ "StepStop": { "type": "object", "properties": { - "event_id": { - "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", - "type": "string" + "index": { + "type": "integer", + "format": "int32" }, "event_type": { "const": "step.stop" }, - "index": { - "type": "integer", - "format": "int32" + "usage": { + "description": "Cumulative model usage stats from the start of the session.", + "$ref": "#/components/schemas/Usage" }, "step_usage": { "description": "Model usage stats for this specific step.", "$ref": "#/components/schemas/Usage" }, - "usage": { - "description": "Cumulative model usage stats from the start of the session.", - "$ref": "#/components/schemas/Usage" + "event_id": { + "description": "The event_id token to be used to resume the interaction stream, from\nthis event.", + "type": "string" } }, "required": [ @@ -9616,15 +9625,15 @@ "TextAnnotationDelta": { "type": "object", "properties": { + "type": { + "const": "text_annotation_delta" + }, "annotations": { "description": "Citation information for model-generated content.", "type": "array", "items": { "$ref": "#/components/schemas/Annotation" } - }, - "type": { - "const": "text_annotation_delta" } }, "required": [ @@ -9636,19 +9645,19 @@ "description": "A text content block.", "type": "object", "properties": { - "annotations": { - "description": "Citation information for model-generated content.", - "type": "array", - "items": { - "$ref": "#/components/schemas/Annotation" - } - }, "text": { "description": "Required. The text content.", "type": "string" }, "type": { "const": "text" + }, + "annotations": { + "description": "Citation information for model-generated content.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Annotation" + } } }, "required": [ @@ -9690,6 +9699,9 @@ "description": "Configuration for text output format.", "type": "object", "properties": { + "type": { + "const": "text" + }, "mime_type": { "description": "The MIME type of the text output.", "type": "string", @@ -9703,14 +9715,11 @@ ] }, "schema": { - "description": "The JSON schema that the output should conform to. Only applicable when\nmime_type is application/json.", + "description": "The JSON schema that the output should conform to. Only applicable when\nmime_type is application/json.\n\nSupports a subset of JSON Schema. `minLength`, `maxLength`,\n`minProperties`, `maxProperties`, `uniqueItems`, `contains`,\n`minContains`, and `maxContains` are ignored and not enforced; validate\nthese in your application. `minItems` and `maxItems` are enforced. Schemas\nthat are too complex to enforce (for example, large `maxItems` on nested\narrays) return a 400 INVALID_ARGUMENT error.", "type": "object", "additionalProperties": { "description": "Properties of the object." } - }, - "type": { - "const": "text" } }, "required": [ @@ -9798,14 +9807,14 @@ "ThoughtSignatureDelta": { "type": "object", "properties": { + "type": { + "const": "thought_signature" + }, "signature": { "description": "Signature to match the backend source to be part of the generation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "thought_signature" } }, "required": [ @@ -9817,6 +9826,9 @@ "description": "A thought step.", "type": "object", "properties": { + "type": { + "const": "thought" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", @@ -9829,9 +9841,6 @@ "items": { "$ref": "#/components/schemas/ThoughtContent" } - }, - "type": { - "const": "thought" } }, "required": [ @@ -9861,12 +9870,12 @@ "ThoughtSummaryDelta": { "type": "object", "properties": { + "type": { + "const": "thought_summary" + }, "content": { "description": "A new summary item to be added to the thought.", "$ref": "#/components/schemas/Content" - }, - "type": { - "const": "thought_summary" } }, "required": [ @@ -9945,10 +9954,29 @@ "description": "Configuration for speech recognition (transcription).", "type": "object", "properties": { - "adaptation_phrases": { - "description": "Optional. A list of phrases to bias the ASR model towards.", + "mode": { + "title": "TranscriptionConfigMode", + "description": "Discriminated transcription mode options or enum.", + "oneOf": [ + { + "$ref": "#/components/schemas/TranscriptionMode" + }, + { + "type": "string", + "enum": [ + "verbatim", + "smart" + ], + "x-google-enum-descriptions": [ + "Verbatim transcription mode.", + "Smart transcription mode." + ] + } + ] + }, + "language_codes": { + "description": "Optional. BCP-47 language codes providing hints about the languages present in the\naudio. If omitted or empty, defaults to automatic language detection.", "type": "array", - "deprecated": true, "items": { "type": "string" } @@ -9960,14 +9988,23 @@ "type": "string" } }, + "timestamp_granularities": { + "description": "Optional. The granularity of timestamps to include in the transcription output.\nSupported values: \"word\". If empty, no timestamps are generated.", + "type": "array", + "deprecated": true, + "items": { + "type": "string" + } + }, "diarization_mode": { "description": "Optional. Configures speaker diarization. Supported values: \"speaker\".", "type": "string", "deprecated": true }, - "language_codes": { - "description": "Optional. BCP-47 language codes providing hints about the languages present in the\naudio. If omitted or empty, defaults to automatic language detection.", + "adaptation_phrases": { + "description": "Optional. A list of phrases to bias the ASR model towards.", "type": "array", + "deprecated": true, "items": { "type": "string" } @@ -9979,34 +10016,6 @@ "items": { "type": "string" } - }, - "mode": { - "title": "TranscriptionConfigMode", - "description": "Discriminated transcription mode options or enum.", - "oneOf": [ - { - "$ref": "#/components/schemas/TranscriptionMode" - }, - { - "type": "string", - "enum": [ - "verbatim", - "smart" - ], - "x-google-enum-descriptions": [ - "Verbatim transcription mode.", - "Smart transcription mode." - ] - } - ] - }, - "timestamp_granularities": { - "description": "Optional. The granularity of timestamps to include in the transcription output.\nSupported values: \"word\". If empty, no timestamps are generated.", - "type": "array", - "deprecated": true, - "items": { - "type": "string" - } } }, "x-speakeasy-exports": [ @@ -10039,17 +10048,23 @@ "description": "A trigger configuration that is scheduled to run an agent.", "type": "object", "properties": { - "consecutive_failure_count": { - "description": "Output only. The number of consecutive failures that have occurred\nsince the last successful execution.", - "type": "integer", - "format": "int32", - "readOnly": true - }, - "create_time": { - "description": "Output only. The time when the trigger was created.", + "id": { + "description": "Required. Output only. Identifier. The ID of the trigger.", "type": "string", - "format": "date-time", - "readOnly": true + "readOnly": true, + "x-google-identifier": true + }, + "schedule": { + "description": "Required. The cron schedule on which the trigger should run.\nStandard cron format.", + "type": "string" + }, + "time_zone": { + "description": "Required. Time zone in which the schedule should be interpreted.", + "type": "string" + }, + "interaction": { + "description": "Required. The interaction request template to be executed.", + "$ref": "#/components/schemas/AgentInteraction" }, "display_name": { "description": "Optional. The display name of the trigger.", @@ -10059,29 +10074,30 @@ "description": "Optional. The environment ID for the trigger execution.", "type": "string" }, + "max_consecutive_failures": { + "description": "Optional. The maximum number of consecutive failures allowed before\nthe trigger is automatically paused (status becomes ERROR).", + "type": "integer", + "format": "int32" + }, "execution_timeout_seconds": { "description": "Optional. The execution timeout for the triggered interaction.", "type": "integer", "format": "int32" }, - "id": { - "description": "Required. Output only. Identifier. The ID of the trigger.", - "type": "string", - "readOnly": true, - "x-google-identifier": true - }, - "interaction": { - "description": "Required. The interaction request template to be executed.", - "$ref": "#/components/schemas/AgentInteraction" + "consecutive_failure_count": { + "description": "Output only. The number of consecutive failures that have occurred\nsince the last successful execution.", + "type": "integer", + "format": "int32", + "readOnly": true }, - "last_pause_time": { - "description": "Output only. The time when the trigger was last paused.", + "create_time": { + "description": "Output only. The time when the trigger was created.", "type": "string", "format": "date-time", "readOnly": true }, - "last_resume_time": { - "description": "Output only. The time when the trigger was last resumed.", + "update_time": { + "description": "Output only. The time when the trigger was last updated.", "type": "string", "format": "date-time", "readOnly": true @@ -10092,26 +10108,29 @@ "format": "date-time", "readOnly": true }, - "max_consecutive_failures": { - "description": "Optional. The maximum number of consecutive failures allowed before\nthe trigger is automatically paused (status becomes ERROR).", - "type": "integer", - "format": "int32" - }, "next_run_time": { "description": "Output only. The time when the trigger is scheduled to run next.", "type": "string", "format": "date-time", "readOnly": true }, + "last_pause_time": { + "description": "Output only. The time when the trigger was last paused.", + "type": "string", + "format": "date-time", + "readOnly": true + }, + "last_resume_time": { + "description": "Output only. The time when the trigger was last resumed.", + "type": "string", + "format": "date-time", + "readOnly": true + }, "previous_interaction_id": { "description": "Output only. The ID of the last interaction created by this trigger.", "type": "string", "readOnly": true }, - "schedule": { - "description": "Required. The cron schedule on which the trigger should run.\nStandard cron format.", - "type": "string" - }, "status": { "description": "Output only. The current status of the trigger.", "type": "string", @@ -10126,16 +10145,6 @@ "The trigger is paused and will not fire.", "The trigger has entered an error state due to consecutive failures." ] - }, - "time_zone": { - "description": "Required. Time zone in which the schedule should be interpreted.", - "type": "string" - }, - "update_time": { - "description": "Output only. The time when the trigger was last updated.", - "type": "string", - "format": "date-time", - "readOnly": true } }, "required": [ @@ -10157,35 +10166,35 @@ "description": "Parameters for creating a trigger.", "type": "object", "properties": { - "display_name": { - "description": "Optional. The display name of the trigger.", + "schedule": { + "description": "Required. The cron schedule on which the trigger should run.\nStandard cron format.", "type": "string" }, - "environment_id": { - "description": "Optional. The environment ID for the trigger execution.", + "time_zone": { + "description": "Required. Time zone in which the schedule should be interpreted.", "type": "string" }, - "execution_timeout_seconds": { - "description": "Optional. The execution timeout for the triggered interaction.", - "type": "integer", - "format": "int32" - }, "interaction": { "description": "Required. The interaction request template to be executed.", "$ref": "#/components/schemas/AgentInteraction" }, + "display_name": { + "description": "Optional. The display name of the trigger.", + "type": "string" + }, + "environment_id": { + "description": "Optional. The environment ID for the trigger execution.", + "type": "string" + }, "max_consecutive_failures": { "description": "Optional. The maximum number of consecutive failures allowed before\nthe trigger is automatically paused (status becomes ERROR).", "type": "integer", "format": "int32" }, - "schedule": { - "description": "Required. The cron schedule on which the trigger should run.\nStandard cron format.", - "type": "string" - }, - "time_zone": { - "description": "Required. Time zone in which the schedule should be interpreted.", - "type": "string" + "execution_timeout_seconds": { + "description": "Optional. The execution timeout for the triggered interaction.", + "type": "integer", + "format": "int32" } }, "required": [ @@ -10206,32 +10215,17 @@ "description": "An execution instance of a trigger.", "type": "object", "properties": { - "end_time": { - "description": "Output only. The time when the execution finished.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "environment_id": { - "description": "Output only. The environment ID used for the execution.", - "type": "string", - "readOnly": true - }, - "error": { - "description": "Output only. The error message if the execution failed.", - "type": "string", - "readOnly": true - }, "id": { "description": "Required. Output only. Identifier. The ID of the trigger execution.", "type": "string", "readOnly": true, "x-google-identifier": true }, - "interaction_id": { - "description": "Output only. The ID of the interaction created by this execution, if any.", + "trigger_id": { + "description": "Required. Output only. Identifier. The ID of the trigger that created this execution.", "type": "string", - "readOnly": true + "readOnly": true, + "x-google-identifier": true }, "scheduled_time": { "description": "Output only. The time when the execution was scheduled to run.", @@ -10245,6 +10239,12 @@ "format": "date-time", "readOnly": true }, + "end_time": { + "description": "Output only. The time when the execution finished.", + "type": "string", + "format": "date-time", + "readOnly": true + }, "status": { "description": "Output only. The status of the execution.", "type": "string", @@ -10264,11 +10264,20 @@ "The execution timed out." ] }, - "trigger_id": { - "description": "Required. Output only. Identifier. The ID of the trigger that created this execution.", + "interaction_id": { + "description": "Output only. The ID of the interaction created by this execution, if any.", "type": "string", - "readOnly": true, - "x-google-identifier": true + "readOnly": true + }, + "environment_id": { + "description": "Output only. The environment ID used for the execution.", + "type": "string", + "readOnly": true + }, + "error": { + "description": "Output only. The error message if the execution failed.", + "type": "string", + "readOnly": true } }, "required": [ @@ -10287,10 +10296,6 @@ "description": "Represents the fields of a Trigger that can be updated.", "type": "object", "properties": { - "display_name": { - "description": "Optional. The display name of the trigger.", - "type": "string" - }, "status": { "description": "Optional. The status of the trigger.", "type": "string", @@ -10304,6 +10309,10 @@ "The trigger is paused and will not fire.", "The trigger has entered an error state due to consecutive failures." ] + }, + "display_name": { + "description": "Optional. The display name of the trigger.", + "type": "string" } }, "x-speakeasy-exports": [ @@ -10318,14 +10327,14 @@ "description": "Request message for TriggerService.UpdateTrigger.", "type": "object", "properties": { - "id": { - "description": "Required. The ID of the trigger to update.", - "type": "string" - }, "trigger": { "description": "Required. The trigger to update.", "$ref": "#/components/schemas/TriggerUpdate" }, + "id": { + "description": "Required. The ID of the trigger to update.", + "type": "string" + }, "update_mask": { "description": "Optional. The update mask applies to the resource.", "type": "string", @@ -10343,6 +10352,10 @@ "description": "Request message for WebhookService.UpdateWebhook.", "type": "object", "properties": { + "webhook": { + "description": "Required. The webhook to update.", + "$ref": "#/components/schemas/WebhookUpdate" + }, "id": { "description": "Required. The ID of the webhook to update.", "type": "string" @@ -10352,10 +10365,6 @@ "type": "string", "format": "google-fieldmask", "pattern": "^(\\s*[^,\\s.]+(\\s*[,.]\\s*[^,\\s.]+)*)?$" - }, - "webhook": { - "description": "Required. The webhook to update.", - "$ref": "#/components/schemas/WebhookUpdate" } }, "required": [ @@ -10368,13 +10377,13 @@ "description": "Request for `UploadEnvironmentFile`.", "type": "object", "properties": { - "extract": { - "description": "Optional. If true, treats the uploaded file as a tar/tar.gz archive and\nunpacks it into `path`.", - "type": "boolean" - }, "overwrite": { "description": "Optional. Whether to overwrite the destination file if it already exists.", "type": "boolean" + }, + "extract": { + "description": "Optional. If true, treats the uploaded file as a tar/tar.gz archive and\nunpacks it into `path`.", + "type": "boolean" } }, "x-speakeasy-model-namespace": "interactions" @@ -10395,28 +10404,28 @@ }, "UrlCitation": { "description": "A URL citation annotation.", - "type": "object", - "properties": { - "end_index": { - "description": "End of the attributed segment, exclusive.", - "type": "integer", - "format": "int32" - }, - "start_index": { - "description": "Start of segment of the response that is attributed to this source.\n\nIndex indicates the start of the segment, measured in bytes.", - "type": "integer", - "format": "int32" - }, - "title": { - "description": "The title of the URL.", - "type": "string" - }, + "type": "object", + "properties": { "type": { "const": "url_citation" }, "url": { "description": "The URL.", "type": "string" + }, + "title": { + "description": "The title of the URL.", + "type": "string" + }, + "start_index": { + "description": "Start of segment of the response that is attributed to this source.\n\nIndex indicates the start of the segment, measured in bytes.", + "type": "integer", + "format": "int32" + }, + "end_index": { + "description": "End of the attributed segment, exclusive.", + "type": "integer", + "format": "int32" } }, "required": [ @@ -10499,14 +10508,14 @@ "arguments": { "$ref": "#/components/schemas/UrlContextCallArguments" }, + "type": { + "const": "url_context_call" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "url_context_call" } }, "required": [ @@ -10528,14 +10537,14 @@ "description": "Required. A unique ID for this specific tool call.", "type": "string" }, + "type": { + "const": "url_context_call" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "url_context_call" } }, "required": [ @@ -10582,6 +10591,10 @@ "description": "The result of the URL context.", "type": "object", "properties": { + "url": { + "description": "The URL that was fetched.", + "type": "string" + }, "status": { "description": "The status of the URL retrieval.", "type": "string", @@ -10597,10 +10610,6 @@ "Url retrieval is failed because the content is behind paywall.", "Url retrieval is failed because the content is unsafe." ] - }, - "url": { - "description": "The URL that was fetched.", - "type": "string" } }, "x-speakeasy-exports": [ @@ -10615,23 +10624,23 @@ "UrlContextResultDelta": { "type": "object", "properties": { - "is_error": { - "type": "boolean" - }, "result": { "type": "array", "items": { "$ref": "#/components/schemas/UrlContextResult" } }, + "type": { + "const": "url_context_result" + }, + "is_error": { + "type": "boolean" + }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "url_context_result" } }, "required": [ @@ -10645,6 +10654,10 @@ "description": "The result of the URL context.", "type": "object", "properties": { + "url": { + "description": "The URL that was fetched.", + "type": "string" + }, "status": { "description": "The status of the URL retrieval.", "type": "string", @@ -10660,10 +10673,6 @@ "", "" ] - }, - "url": { - "description": "The URL that was fetched.", - "type": "string" } }, "x-speakeasy-model-namespace": "interactions" @@ -10672,29 +10681,29 @@ "description": "URL context result step.", "type": "object", "properties": { + "result": { + "description": "Required. The results of the URL context.", + "type": "array", + "items": { + "$ref": "#/components/schemas/UrlContextResult" + } + }, "call_id": { "description": "Required. ID to match the ID from the function call block.", "type": "string" }, + "type": { + "const": "url_context_result" + }, "is_error": { "description": "Whether the URL context resulted in an error.", "type": "boolean" }, - "result": { - "description": "Required. The results of the URL context.", - "type": "array", - "items": { - "$ref": "#/components/schemas/UrlContextResult" - } - }, "signature": { "description": "A signature hash for backend validation.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" - }, - "type": { - "const": "url_context_result" } }, "required": [ @@ -10728,27 +10737,35 @@ "description": "Statistics on the interaction request's token usage.", "type": "object", "properties": { - "cached_tokens_by_modality": { - "description": "A breakdown of cached token usage by modality.", + "total_input_tokens": { + "description": "Number of tokens in the prompt (context).", + "type": "integer", + "format": "int32" + }, + "input_tokens_by_modality": { + "description": "A breakdown of input token usage by modality.", "type": "array", "items": { "$ref": "#/components/schemas/ModalityTokens" } }, - "grounding_tool_count": { - "description": "Grounding tool count.", - "type": "array", - "items": { - "$ref": "#/components/schemas/GroundingToolCount" - } + "total_cached_tokens": { + "description": "Number of tokens in the cached part of the prompt (the cached content).", + "type": "integer", + "format": "int32" }, - "input_tokens_by_modality": { - "description": "A breakdown of input token usage by modality.", + "cached_tokens_by_modality": { + "description": "A breakdown of cached token usage by modality.", "type": "array", "items": { "$ref": "#/components/schemas/ModalityTokens" } }, + "total_output_tokens": { + "description": "Total number of tokens across all the generated responses.", + "type": "integer", + "format": "int32" + }, "output_tokens_by_modality": { "description": "A breakdown of output token usage by modality.", "type": "array", @@ -10756,6 +10773,11 @@ "$ref": "#/components/schemas/ModalityTokens" } }, + "total_tool_use_tokens": { + "description": "Number of tokens present in tool-use prompt(s).", + "type": "integer", + "format": "int32" + }, "tool_use_tokens_by_modality": { "description": "A breakdown of tool-use token usage by modality.", "type": "array", @@ -10763,21 +10785,6 @@ "$ref": "#/components/schemas/ModalityTokens" } }, - "total_cached_tokens": { - "description": "Number of tokens in the cached part of the prompt (the cached content).", - "type": "integer", - "format": "int32" - }, - "total_input_tokens": { - "description": "Number of tokens in the prompt (context).", - "type": "integer", - "format": "int32" - }, - "total_output_tokens": { - "description": "Total number of tokens across all the generated responses.", - "type": "integer", - "format": "int32" - }, "total_thought_tokens": { "description": "Number of tokens of thoughts for thinking models.", "type": "integer", @@ -10788,10 +10795,12 @@ "type": "integer", "format": "int32" }, - "total_tool_use_tokens": { - "description": "Number of tokens present in tool-use prompt(s).", - "type": "integer", - "format": "int32" + "grounding_tool_count": { + "description": "Grounding tool count.", + "type": "array", + "items": { + "$ref": "#/components/schemas/GroundingToolCount" + } } }, "readOnly": true, @@ -10807,15 +10816,15 @@ "description": "Input provided by the user.", "type": "object", "properties": { + "type": { + "const": "user_input" + }, "content": { "title": "ContentList", "type": "array", "items": { "$ref": "#/components/schemas/Content" } - }, - "type": { - "const": "user_input" } }, "required": [ @@ -10845,9 +10854,8 @@ "description": "Configuration for verbatim transcription mode.", "type": "object", "properties": { - "diarization_mode": { - "description": "Optional. Configures speaker diarization. Supported values: \"speaker\".", - "type": "string" + "type": { + "const": "verbatim" }, "timestamp_granularities": { "description": "Optional. The granularity of timestamps to include in the transcription output.\nSupported values: \"word\". If empty, no timestamps are generated.", @@ -10856,8 +10864,9 @@ "type": "string" } }, - "type": { - "const": "verbatim" + "diarization_mode": { + "description": "Optional. Configures speaker diarization. Supported values: \"speaker\".", + "type": "string" } }, "required": [ @@ -10869,16 +10878,16 @@ "description": "Used to specify configuration for VertexAISearch.", "type": "object", "properties": { + "engine": { + "description": "Optional. Used to specify Vertex AI Search engine.", + "type": "string" + }, "datastores": { "description": "Optional. Used to specify Vertex AI Search datastores.", "type": "array", "items": { "type": "string" } - }, - "engine": { - "description": "Optional. Used to specify Vertex AI Search engine.", - "type": "string" } }, "x-speakeasy-model-namespace": "interactions" @@ -10918,40 +10927,17 @@ "description": "A video content block.", "type": "object", "properties": { + "type": { + "const": "video" + }, "data": { "description": "The video content.", "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" }, - "mime_type": { - "description": "The mime type of the video.", - "type": "string", - "enum": [ - "video/mp4", - "video/mpeg", - "video/mpg", - "video/mov", - "video/avi", - "video/x-flv", - "video/webm", - "video/wmv", - "video/3gpp" - ], - "x-google-enum-descriptions": [ - "MP4 video format", - "MPEG video format", - "MPG video format", - "MOV video format", - "AVI video format", - "FLV video format", - "WebM video format", - "WMV video format", - "3GPP video format" - ] - }, - "name": { - "description": "A user-defined name for this content block. Can be referenced by the model\nin the final response.", + "uri": { + "description": "The URI of the video.", "type": "string" }, "processing": { @@ -10977,12 +10963,35 @@ "description": "The resolution of the media.", "$ref": "#/components/schemas/MediaResolution" }, - "type": { - "const": "video" - }, - "uri": { - "description": "The URI of the video.", + "name": { + "description": "A user-defined name for this content block. Can be referenced by the model\nin the final response.", "type": "string" + }, + "mime_type": { + "description": "The mime type of the video.", + "type": "string", + "enum": [ + "video/mp4", + "video/mpeg", + "video/mpg", + "video/mov", + "video/avi", + "video/x-flv", + "video/webm", + "video/wmv", + "video/3gpp" + ], + "x-google-enum-descriptions": [ + "MP4 video format", + "MPEG video format", + "MPG video format", + "MOV video format", + "AVI video format", + "FLV video format", + "WebM video format", + "WMV video format", + "3GPP video format" + ] } }, "required": [ @@ -11006,11 +11015,17 @@ "VideoDelta": { "type": "object", "properties": { + "type": { + "const": "video" + }, "data": { "type": "string", "format": "byte", "x-speakeasy-base64-input-mode": "file" }, + "uri": { + "type": "string" + }, "mime_type": { "type": "string", "enum": [ @@ -11041,12 +11056,6 @@ "resolution": { "description": "The resolution of the media.", "$ref": "#/components/schemas/MediaResolution" - }, - "type": { - "const": "video" - }, - "uri": { - "type": "string" } }, "required": [ @@ -11058,28 +11067,35 @@ "description": "Configuration for video output format.", "type": "object", "properties": { - "aspect_ratio": { - "description": "The aspect ratio for the video output.", + "type": { + "const": "video" + }, + "delivery": { + "description": "The delivery mode for the video output.", "type": "string", "enum": [ - "16:9", - "9:16" + "inline", + "uri" ], "x-google-enum-descriptions": [ - "16:9 aspect ratio.", - "9:16 aspect ratio." + "Video data is returned inline in the response.", + "Video data is returned as a URI." ] }, - "delivery": { - "description": "The delivery mode for the video output.", + "gcs_uri": { + "description": "The Cloud Storage URI to store the video output. Required for Vertex if\ndelivery mode is URI.", + "type": "string" + }, + "aspect_ratio": { + "description": "The aspect ratio for the video output.", "type": "string", "enum": [ - "inline", - "uri" + "16:9", + "9:16" ], "x-google-enum-descriptions": [ - "Video data is returned inline in the response.", - "Video data is returned as a URI." + "16:9 aspect ratio.", + "9:16 aspect ratio." ] }, "duration": { @@ -11087,10 +11103,6 @@ "type": "string", "format": "google-duration" }, - "gcs_uri": { - "description": "The Cloud Storage URI to store the video output. Required for Vertex if\ndelivery mode is URI.", - "type": "string" - }, "resolution": { "description": "The video output resolution. Defaults to 720p.", "type": "string", @@ -11106,9 +11118,6 @@ "1080p resolution.", "4K resolution." ] - }, - "type": { - "const": "video" } }, "required": [ @@ -11134,21 +11143,28 @@ "description": "A voice resource representing either a custom voice (created via\n`CreateVoice`) or a prebuilt system voice (returned by `ListVoices`).", "type": "object", "properties": { - "accent": { - "description": "Optional. Regional accent descriptor (e.g. \"American\", \"British\").", - "type": "string" + "type": { + "description": "Required. The type of the voice. In `CreateVoice`, must be `\"replicated\"`\nor `\"prompted\"`. In `ListVoices` responses, may also be `\"prebuilt\"`.", + "$ref": "#/components/schemas/VoiceType" }, - "context": { - "description": "Optional. Optimal usage context or domain (e.g. \"Conversational\",\n\"Audiobook\", \"News\").", - "type": "string" + "id": { + "description": "Output only. The unique identifier of the voice.\n\n* For Google-managed custom voices (`store = true`), this is a generated ID\n with prefix `voice_` (for example, `voice_abc123def456`). Pass\n `voices/{id}` as the `name` in `GetVoice` and `DeleteVoice`, and pass\n `{id}` directly to `SpeechConfig.voice_config.voice` (or\n `SpeechConfig.voice`) during speech synthesis.\n* For prebuilt catalog voices (`\"prebuilt\"` returned by `ListVoices`), this\n is the speaker name (for example, `Puck` or `Charon`).\n* Unset when `CreateVoice` is called with `store = false`.", + "type": "string", + "readOnly": true }, - "description": { - "description": "Optional. Descriptive summary of vocal timbre, personality, and tone.", + "model": { + "description": "Optional. The model used to design or replicate the voice.\nIf omitted in `CreateVoice`, defaults to the latest supported voice design\nmodel. Returned in `CreateVoice`, `GetVoice`, and `ListVoices` responses\nfor custom voices (`\"prompted\"` and `\"replicated\"`); unset for `\"prebuilt\"`\nvoices. Created voices can be synthesized across any supported TTS\nsynthesis model.", "type": "string" }, - "display_name": { - "description": "Optional. User-provided display name for a stored voice (`store = true`),\nor the catalog name for a prebuilt voice.", - "type": "string" + "key": { + "description": "Output only. The client-managed voice replication key (with prefix\n`voicekey_`). Returned only by `CreateVoice` when `type` is `\"replicated\"`\nand `store` is `false`. Pass this key to `SpeechConfig.voice_config.voice`\n(or `SpeechConfig.voice`) during speech synthesis.", + "type": "string", + "readOnly": true + }, + "replicated": { + "description": "Input only. Parameters for replicated voice generation.\nRequired on input when `type` is `\"replicated\"`. Not returned in\nresponses.", + "$ref": "#/components/schemas/ReplicatedVoice", + "writeOnly": true }, "expire_time": { "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.", @@ -11156,62 +11172,55 @@ "format": "date-time", "readOnly": true }, - "gender": { - "description": "Optional. Perceived voice gender presentation (e.g. \"female\", \"male\",\n\"neutral\").", + "display_name": { + "description": "Optional. User-provided display name for a stored voice (`store = true`),\nor the catalog name for a prebuilt voice.", "type": "string" }, - "id": { - "description": "Output only. The unique identifier of the voice.\n\n* For Google-managed custom voices (`store = true`), this is a generated ID\n with prefix `voice_` (for example, `voice_abc123def456`). Pass\n `voices/{id}` as the `name` in `GetVoice` and `DeleteVoice`, and pass\n `{id}` directly to `SpeechConfig.voice_config.voice` (or\n `SpeechConfig.voice`) during speech synthesis.\n* For prebuilt catalog voices (`\"prebuilt\"` returned by `ListVoices`), this\n is the speaker name (for example, `Puck` or `Charon`).\n* Unset when `CreateVoice` is called with `store = false`.", - "type": "string", - "readOnly": true - }, - "key": { - "description": "Output only. The client-managed voice replication key (with prefix\n`voicekey_`). Returned only by `CreateVoice` when `type` is `\"replicated\"`\nand `store` is `false`. Pass this key to `SpeechConfig.voice_config.voice`\n(or `SpeechConfig.voice`) during speech synthesis.", - "type": "string", - "readOnly": true + "prompted": { + "description": "Parameters for prompted voice generation.\nRequired in `CreateVoice` when `type` is `\"prompted\"`. Returned in\n`CreateVoice`, `GetVoice`, and `ListVoices` responses for prompted voices.", + "$ref": "#/components/schemas/PromptedVoice" }, "language_code": { "description": "Optional. Primary BCP-47 language tag (e.g. \"en-US\", \"fr-FR\").", "type": "string" }, - "model": { - "description": "Optional. The model used to design or replicate the voice.\nIf omitted in `CreateVoice`, defaults to the latest supported voice design\nmodel. Returned in `CreateVoice`, `GetVoice`, and `ListVoices` responses\nfor custom voices (`\"prompted\"` and `\"replicated\"`); unset for `\"prebuilt\"`\nvoices. Created voices can be synthesized across any supported TTS\nsynthesis model.", + "region_code": { + "description": "Optional. ISO 3166-1 alpha-2 or UN M.49 geographic region code (e.g. \"US\",\n\"GB\", \"001\").", + "type": "string" + }, + "accent": { + "description": "Optional. Regional accent descriptor (e.g. \"American\", \"British\").", "type": "string" }, "persona": { "description": "Optional. Intended persona or character archetype (e.g. \"Warm, Friendly\",\n\"Narrator\").", "type": "string" }, + "context": { + "description": "Optional. Optimal usage context or domain (e.g. \"Conversational\",\n\"Audiobook\", \"News\").", + "type": "string" + }, + "gender": { + "description": "Optional. Perceived voice gender presentation (e.g. \"female\", \"male\",\n\"neutral\").", + "type": "string" + }, "pitch": { "description": "Optional. Voice pitch classification.", "$ref": "#/components/schemas/Pitch" }, - "prompted": { - "description": "Parameters for prompted voice generation.\nRequired in `CreateVoice` when `type` is `\"prompted\"`. Returned in\n`CreateVoice`, `GetVoice`, and `ListVoices` responses for prompted voices.", - "$ref": "#/components/schemas/PromptedVoice" - }, - "region_code": { - "description": "Optional. ISO 3166-1 alpha-2 or UN M.49 geographic region code (e.g. \"US\",\n\"GB\", \"001\").", + "description": { + "description": "Optional. Descriptive summary of vocal timbre, personality, and tone.", "type": "string" }, - "replicated": { - "description": "Input only. Parameters for replicated voice generation.\nRequired on input when `type` is `\"replicated\"`. Not returned in\nresponses.", - "$ref": "#/components/schemas/ReplicatedVoice", - "writeOnly": true + "usage": { + "description": "Output only. Token usage statistics for the voice creation request.\nPopulated only in the response of `CreateVoice` when `type` is\n`\"prompted\"`; unset for `\"replicated\"` and in `GetVoice` and `ListVoices`\nresponses.", + "$ref": "#/components/schemas/Usage", + "readOnly": true }, "sample_audio": { "description": "Output only. Sample audio (synthesizer prompt audio) generated for a\nprompted voice.\nPopulated only in `CreateVoice` and `GetVoice` responses when `type` is\n`\"prompted\"`; unset in `ListVoices` responses and for `\"replicated\"` or\n`\"prebuilt\"` voices.", "$ref": "#/components/schemas/AudioData", "readOnly": true - }, - "type": { - "description": "Required. The type of the voice. In `CreateVoice`, must be `\"replicated\"`\nor `\"prompted\"`. In `ListVoices` responses, may also be `\"prebuilt\"`.", - "$ref": "#/components/schemas/VoiceType" - }, - "usage": { - "description": "Output only. Token usage statistics for the voice creation request.\nPopulated only in the response of `CreateVoice` when `type` is\n`\"prompted\"`; unset for `\"replicated\"` and in `GetVoice` and `ListVoices`\nresponses.", - "$ref": "#/components/schemas/Usage", - "readOnly": true } }, "required": [ @@ -11249,50 +11258,10 @@ "description": "A Webhook resource.", "type": "object", "properties": { - "create_time": { - "description": "Output only. The timestamp when the webhook was created.", - "type": "string", - "format": "date-time", - "readOnly": true - }, - "id": { - "description": "Output only. The ID of the webhook.", - "type": "string", - "readOnly": true - }, - "name": { - "description": "Optional. The user-provided name of the webhook.", + "uri": { + "description": "Required. The URI to which webhook events will be sent.", "type": "string" }, - "new_signing_secret": { - "description": "Output only. The new signing secret for the webhook. Only populated on create.", - "type": "string", - "readOnly": true, - "x-speakeasy-param-sensitive": true - }, - "signing_secrets": { - "description": "Output only. The signing secrets associated with this webhook.", - "type": "array", - "items": { - "$ref": "#/components/schemas/SigningSecret" - }, - "readOnly": true - }, - "state": { - "description": "Output only. The state of the webhook.", - "type": "string", - "enum": [ - "enabled", - "disabled", - "disabled_due_to_failed_deliveries" - ], - "readOnly": true, - "x-google-enum-descriptions": [ - "The webhook is enabled.", - "The webhook is disabled by the user.", - "The webhook is disabled due to failed deliveries." - ] - }, "subscribed_events": { "description": "Required. The events that the webhook is subscribed to.\nAvailable events:\n- batch.succeeded\n- batch.expired\n- batch.failed\n- interaction.requires_action\n- interaction.completed\n- interaction.failed\n- video.generated", "type": "array", @@ -11320,15 +11289,55 @@ "x-speakeasy-unknown-values": "allow" } }, + "name": { + "description": "Optional. The user-provided name of the webhook.", + "type": "string" + }, + "create_time": { + "description": "Output only. The timestamp when the webhook was created.", + "type": "string", + "format": "date-time", + "readOnly": true + }, "update_time": { "description": "Output only. The timestamp when the webhook was last updated.", "type": "string", "format": "date-time", "readOnly": true }, - "uri": { - "description": "Required. The URI to which webhook events will be sent.", - "type": "string" + "signing_secrets": { + "description": "Output only. The signing secrets associated with this webhook.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SigningSecret" + }, + "readOnly": true + }, + "state": { + "description": "Output only. The state of the webhook.", + "type": "string", + "enum": [ + "enabled", + "disabled", + "disabled_due_to_failed_deliveries" + ], + "readOnly": true, + "x-google-enum-descriptions": [ + "The webhook is enabled.", + "The webhook is disabled by the user.", + "The webhook is disabled due to failed deliveries." + ] + }, + "new_signing_secret": { + "description": "Output only. The new signing secret for the webhook. Only populated on create.", + "type": "string", + "readOnly": true, + "x-speakeasy-param-sensitive": true + }, + "id": { + "description": "Output only. The ID of the webhook.", + "type": "string", + "readOnly": true } }, "required": [ @@ -11382,19 +11391,9 @@ "description": "Optional. The user-provided name of the webhook.", "type": "string" }, - "state": { - "description": "Optional. The state of the webhook.", - "type": "string", - "enum": [ - "enabled", - "disabled", - "disabled_due_to_failed_deliveries" - ], - "x-google-enum-descriptions": [ - "The webhook is enabled.", - "The webhook is disabled by the user.", - "The webhook is disabled due to failed deliveries." - ] + "uri": { + "description": "Optional. The URI to which webhook events will be sent.", + "type": "string" }, "subscribed_events": { "description": "Optional. The events that the webhook is subscribed to.\nAvailable events:\n- batch.succeeded\n- batch.expired\n- batch.failed\n- interaction.requires_action\n- interaction.completed\n- interaction.failed\n- video.generated", @@ -11423,9 +11422,19 @@ "x-speakeasy-unknown-values": "allow" } }, - "uri": { - "description": "Optional. The URI to which webhook events will be sent.", - "type": "string" + "state": { + "description": "Optional. The state of the webhook.", + "type": "string", + "enum": [ + "enabled", + "disabled", + "disabled_due_to_failed_deliveries" + ], + "x-google-enum-descriptions": [ + "The webhook is enabled.", + "The webhook is disabled by the user.", + "The webhook is disabled due to failed deliveries." + ] } }, "x-speakeasy-exports": [ @@ -11445,10 +11454,17 @@ "description": "Word-level ASR annotation for transcription output.\nCarries the word text, optional timing, and optional speaker attribution.", "type": "object", "properties": { - "end_index": { - "description": "End of the attributed segment, exclusive.", - "type": "integer", - "format": "int32" + "type": { + "const": "word_info" + }, + "text": { + "description": "The transcribed word.", + "type": "string" + }, + "start_offset": { + "description": "Start offset in time of the word relative to the start of the audio.\nPresent when timestamp_granularities contains \"word\".", + "type": "string", + "format": "google-duration" }, "end_offset": { "description": "End offset in time of the word relative to the start of the audio.\nPresent when timestamp_granularities contains \"word\".", @@ -11464,17 +11480,10 @@ "type": "integer", "format": "int32" }, - "start_offset": { - "description": "Start offset in time of the word relative to the start of the audio.\nPresent when timestamp_granularities contains \"word\".", - "type": "string", - "format": "google-duration" - }, - "text": { - "description": "The transcribed word.", - "type": "string" - }, - "type": { - "const": "word_info" + "end_index": { + "description": "End of the attributed segment, exclusive.", + "type": "integer", + "format": "int32" } }, "required": [