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 5167508a0..355190bcd 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 @@ -30,7 +30,7 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [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.EnvironmentNetworkEgressAllowlist), TypeInfoPropertyName = "EnvironmentNetworkEgressAllowlist2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Source))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AllowlistEntry))] @@ -40,11 +40,11 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvVar))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, string>), TypeInfoPropertyName = "OneOfDictionaryStringEnvVarString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork22")] + [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.EnvironmentNetworkEgressAllowlistEnum))] + [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.EnvironmentNetworkEgressAllowlistEnum2), TypeInfoPropertyName = "EnvironmentNetworkEgressAllowlistEnum22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist), TypeInfoPropertyName = "EnvironmentNetworkEgressAllowlistAllowlist2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GoogleSearchSearchType), TypeInfoPropertyName = "GoogleSearchSearchType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AgentListResponse))] @@ -55,12 +55,12 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AgentTool?), TypeInfoPropertyName = "NullableAgentTool2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.AllowedToolsMode?), TypeInfoPropertyName = "NullableAllowedToolsMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist?), TypeInfoPropertyName = "NullableEnvironmentNetworkEgressAllowlist2")] [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, string>?), TypeInfoPropertyName = "NullableOneOfDictionaryStringEnvVarString2")] - [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.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.EnvironmentNetworkEgressAllowlistEnum2?), TypeInfoPropertyName = "NullableEnvironmentNetworkEgressAllowlistEnum22")] + [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")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SourceType?), TypeInfoPropertyName = "NullableSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -68,6 +68,7 @@ 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.Collections.Generic.Dictionary>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -120,12 +121,12 @@ private AgentsSourceGenerationContext(global::System.Text.Json.JsonSerializerOpt public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.AgentToolJsonConverter()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistJsonConverter()); 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, string>()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.UnixTimestampJsonConverter()); @@ -158,9 +159,9 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetwork2?) - || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2) + || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist) - || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2?) + || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?) || typeToConvert == typeof(global::Google.Gemini.NextGen.GoogleSearchSearchType) @@ -195,14 +196,14 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetwork2NullableJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist)) { - return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistEnum2JsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistAllowlistJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2?)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?)) { - return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistEnum2NullableJsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistAllowlistNullableJsonConverter(); } if (typeToConvert == typeof(global::Google.Gemini.NextGen.GoogleSearchSearchType)) diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Environments.JsonSerializerContext.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Environments.JsonSerializerContext.g.cs index 627035000..d753af541 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Environments.JsonSerializerContext.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Environments.JsonSerializerContext.g.cs @@ -16,8 +16,8 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateEnvironmentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistCreateEnvironmentRequestNetwork2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist), TypeInfoPropertyName = "EnvironmentNetworkEgressAllowlist2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistCreateEnvironmentRequestNetwork2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateEnvironmentRequestNetwork), TypeInfoPropertyName = "CreateEnvironmentRequestNetwork2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Source))] @@ -26,28 +26,29 @@ 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.Environment2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetwork), TypeInfoPropertyName = "EnvironmentNetwork2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentStatus), TypeInfoPropertyName = "EnvironmentStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum))] + [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.EnvironmentNetworkEgressAllowlistEnum2), TypeInfoPropertyName = "EnvironmentNetworkEgressAllowlistEnum22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist), TypeInfoPropertyName = "EnvironmentNetworkEgressAllowlistAllowlist2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.ListEnvironmentsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.SourceType), TypeInfoPropertyName = "SourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf?), TypeInfoPropertyName = "NullableOneOfEnvironmentNetworkEgressAllowlistCreateEnvironmentRequestNetwork2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist?), TypeInfoPropertyName = "NullableEnvironmentNetworkEgressAllowlist2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf?), TypeInfoPropertyName = "NullableOneOfEnvironmentNetworkEgressAllowlistCreateEnvironmentRequestNetwork2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateEnvironmentRequestNetwork?), TypeInfoPropertyName = "NullableCreateEnvironmentRequestNetwork2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>?), TypeInfoPropertyName = "NullableOneOfIListDictionaryStringStringDictionaryStringString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf?), TypeInfoPropertyName = "NullableOneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf?), TypeInfoPropertyName = "NullableOneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetwork?), TypeInfoPropertyName = "NullableEnvironmentNetwork2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentStatus?), TypeInfoPropertyName = "NullableEnvironmentStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2?), TypeInfoPropertyName = "NullableEnvironmentNetworkEgressAllowlistEnum22")] + [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.SourceType?), TypeInfoPropertyName = "NullableSourceType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, global::System.Collections.Generic.Dictionary>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class EnvironmentsSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext @@ -97,10 +98,10 @@ private EnvironmentsSourceGenerationContext(global::System.Text.Json.JsonSeriali [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public static void AddConverters(global::System.Text.Json.JsonSerializerOptions options) { - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistJsonConverter()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, global::System.Collections.Generic.Dictionary>()); - options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>()); options.Converters.Add(new global::Google.Gemini.NextGen.JsonConverters.UnixTimestampJsonConverter()); options.Converters.Add(new LazyEnumJsonConverterFactory()); } @@ -135,9 +136,9 @@ public override bool CanConvert(global::System.Type typeToConvert) || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentStatus?) - || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2) + || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist) - || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2?) + || typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?) || typeToConvert == typeof(global::Google.Gemini.NextGen.SourceType) @@ -178,14 +179,14 @@ public override bool CanConvert(global::System.Type typeToConvert) return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentStatusNullableJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist)) { - return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistEnum2JsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistAllowlistJsonConverter(); } - if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2?)) + if (typeToConvert == typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?)) { - return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistEnum2NullableJsonConverter(); + return new global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistAllowlistNullableJsonConverter(); } if (typeToConvert == typeof(global::Google.Gemini.NextGen.SourceType)) 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 fc6064297..72cfedf22 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 @@ -511,7 +511,7 @@ partial void ProcessCreateEnvironmentResponseContent( /// public async global::System.Threading.Tasks.Task CreateEnvironmentAsync( string? fromEnvironment = default, - global::Google.Gemini.NextGen.OneOf? network = default, + global::Google.Gemini.NextGen.OneOf? network = default, global::System.Collections.Generic.IList? sources = 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 0d20550c3..c2afb59ff 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 @@ -71,7 +71,7 @@ public partial interface IEnvironmentsClient /// global::System.Threading.Tasks.Task CreateEnvironmentAsync( string? fromEnvironment = default, - global::Google.Gemini.NextGen.OneOf? network = default, + global::Google.Gemini.NextGen.OneOf? network = default, global::System.Collections.Generic.IList? sources = 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.JsonConverters.EnvironmentNetworkEgressAllowlist.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlist.g.cs deleted file mode 100644 index e544b04a8..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlist.g.cs +++ /dev/null @@ -1,140 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public class EnvironmentNetworkEgressAllowlistJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - - var __score0 = 0; - if (__jsonProps.Contains("allowlist")) __score0++; - var __score1 = 0; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - - global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum? allowlist = default; - global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2? disabled = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum).Name}"); - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2).Name}"); - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (allowlist == null && disabled == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum).Name}"); - allowlist = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (allowlist == null && disabled == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2).Name}"); - disabled = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - var __value = new global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist( - allowlist, - - disabled - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsAllowlist) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickAllowlist(), typeInfo); - } - else if (value.IsDisabled) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickDisabled(), typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistEnum2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistAllowlist.g.cs similarity index 77% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistEnum2.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistAllowlist.g.cs index 7f995dda8..a32bbed15 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistEnum2.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistAllowlist.g.cs @@ -3,10 +3,10 @@ namespace Google.Gemini.NextGen.JsonConverters { /// - public sealed class EnvironmentNetworkEgressAllowlistEnum2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class EnvironmentNetworkEgressAllowlistAllowlistJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2 Read( + public override global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class EnvironmentNetworkEgressAllowlistEnum2JsonConverter : global var stringValue = reader.GetString(); if (stringValue != null) { - return global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2Extensions.ToEnum(stringValue) ?? default; + return global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlistExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class EnvironmentNetworkEgressAllowlistEnum2JsonConverter : global case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2)numValue; + return (global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2); + return default(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class EnvironmentNetworkEgressAllowlistEnum2JsonConverter : global /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2 value, + global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2Extensions.ToValueString(value)); + writer.WriteStringValue(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlistExtensions.ToValueString(value)); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistEnum2Nullable.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistAllowlistNullable.g.cs similarity index 78% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistEnum2Nullable.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistAllowlistNullable.g.cs index cb53afcca..6f0b575bc 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistEnum2Nullable.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistAllowlistNullable.g.cs @@ -3,10 +3,10 @@ namespace Google.Gemini.NextGen.JsonConverters { /// - public sealed class EnvironmentNetworkEgressAllowlistEnum2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class EnvironmentNetworkEgressAllowlistAllowlistNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2? Read( + public override global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class EnvironmentNetworkEgressAllowlistEnum2NullableJsonConverter var stringValue = reader.GetString(); if (stringValue != null) { - return global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2Extensions.ToEnum(stringValue); + return global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlistExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class EnvironmentNetworkEgressAllowlistEnum2NullableJsonConverter case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2)numValue; + return (global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2?); + return default(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class EnvironmentNetworkEgressAllowlistEnum2NullableJsonConverter /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2? value, + global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2Extensions.ToValueString(value.Value)); + writer.WriteStringValue(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlistExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.FunctionResultSubcontent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.FunctionResultSubcontent.g.cs deleted file mode 100644 index 2b0b3079b..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.FunctionResultSubcontent.g.cs +++ /dev/null @@ -1,147 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Google.Gemini.NextGen.JsonConverters -{ - /// - public class FunctionResultSubcontentJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Google.Gemini.NextGen.FunctionResultSubcontent Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - - } - } - - var __score0 = 0; - if (__jsonProps.Contains("data")) __score0++; - if (__jsonProps.Contains("mime_type")) __score0++; - if (__jsonProps.Contains("resolution")) __score0++; - if (__jsonProps.Contains("type")) __score0++; - if (__jsonProps.Contains("uri")) __score0++; - var __score1 = 0; - if (__jsonProps.Contains("annotations")) __score1++; - if (__jsonProps.Contains("text")) __score1++; - if (__jsonProps.Contains("type")) __score1++; - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - - global::Google.Gemini.NextGen.ImageContent? imageContent = default; - global::Google.Gemini.NextGen.TextContent? textContent = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ImageContent).Name}"); - imageContent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - else if (__bestIndex == 1) - { - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.TextContent).Name}"); - textContent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (imageContent == null && textContent == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ImageContent).Name}"); - imageContent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - if (imageContent == null && textContent == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.TextContent).Name}"); - textContent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - var __value = new global::Google.Gemini.NextGen.FunctionResultSubcontent( - imageContent, - - textContent - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Google.Gemini.NextGen.FunctionResultSubcontent value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsImageContent) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.ImageContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.ImageContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickImageContent(), typeInfo); - } - else if (value.IsTextContent) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Google.Gemini.NextGen.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Google.Gemini.NextGen.TextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.PickTextContent(), typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.InteractionSSEEvent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.InteractionSSEEvent.g.cs index d784050d3..22a25b34f 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.InteractionSSEEvent.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.JsonConverters.InteractionSSEEvent.g.cs @@ -71,10 +71,23 @@ public class InteractionSSEEventJsonConverter : global::System.Text.Json.Seriali if (__jsonProps.Contains("interaction.updated")) __score2++; if (__jsonProps.Contains("interaction.usage")) __score2++; var __score3 = 0; + if (__jsonProps.Contains("continuation_token")) __score3++; if (__jsonProps.Contains("event_id")) __score3++; if (__jsonProps.Contains("event_type")) __score3++; if (__jsonProps.Contains("interaction_id")) __score3++; if (__jsonProps.Contains("status")) __score3++; + if (__jsonProps.Contains("usage")) __score3++; + if (__jsonProps.Contains("usage.cached_tokens_by_modality")) __score3++; + if (__jsonProps.Contains("usage.grounding_tool_count")) __score3++; + if (__jsonProps.Contains("usage.input_tokens_by_modality")) __score3++; + if (__jsonProps.Contains("usage.output_tokens_by_modality")) __score3++; + if (__jsonProps.Contains("usage.tool_use_tokens_by_modality")) __score3++; + if (__jsonProps.Contains("usage.total_cached_tokens")) __score3++; + if (__jsonProps.Contains("usage.total_input_tokens")) __score3++; + if (__jsonProps.Contains("usage.total_output_tokens")) __score3++; + if (__jsonProps.Contains("usage.total_thought_tokens")) __score3++; + if (__jsonProps.Contains("usage.total_tokens")) __score3++; + if (__jsonProps.Contains("usage.total_tool_use_tokens")) __score3++; var __score4 = 0; if (__jsonProps.Contains("delta")) __score4++; if (__jsonProps.Contains("event_id")) __score4++; 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 87f851b37..2b6d61596 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 @@ -91,9 +91,9 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentFileTypeNullableJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistEnum2JsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistAllowlistJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistEnum2NullableJsonConverter), + typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistAllowlistNullableJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.FindRequestModeJsonConverter), @@ -313,10 +313,6 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.CredentialUpdateJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.EnvironmentNetworkEgressAllowlistJsonConverter), - - typeof(global::Google.Gemini.NextGen.JsonConverters.FunctionResultSubcontentJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionSSEEventJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.InteractionsInputJsonConverter), @@ -343,23 +339,29 @@ 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>, 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, string>), - 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>), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, object, string>), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, object, string>), + + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, object, string>), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, object, string>), + + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), @@ -371,9 +373,13 @@ namespace Google.Gemini.NextGen typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, object, string>), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, object, string>), + + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), + + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter>, object, string>), - typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, object, string>), + typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter), @@ -466,8 +472,8 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.TextContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.VideoContent))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateEnvironmentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistCreateEnvironmentRequestNetwork2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist), TypeInfoPropertyName = "EnvironmentNetworkEgressAllowlist2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistCreateEnvironmentRequestNetwork2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.CreateEnvironmentRequestNetwork), TypeInfoPropertyName = "CreateEnvironmentRequestNetwork2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Source))] @@ -499,18 +505,18 @@ namespace Google.Gemini.NextGen [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Empty))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvVar))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.Environment2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork2_3")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.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, string>), TypeInfoPropertyName = "OneOfDictionaryStringEnvVarString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfEnvironmentNetworkEgressAllowlistEnvironmentNetwork22")] + [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.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.EnvironmentNetworkEgressAllowlistEnum))] + [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.EnvironmentNetworkEgressAllowlistEnum2), TypeInfoPropertyName = "EnvironmentNetworkEgressAllowlistEnum22")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist), TypeInfoPropertyName = "EnvironmentNetworkEgressAllowlistAllowlist2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>), TypeInfoPropertyName = "OneOfInjectionLocation3IListInjectionLocation32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.InjectionLocation3), TypeInfoPropertyName = "InjectionLocation32")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -531,9 +537,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.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 = "OneOfIListFunctionResultSubcontentObjectString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FunctionResultSubcontent), TypeInfoPropertyName = "FunctionResultSubcontent2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, object, string>), TypeInfoPropertyName = "OneOfIListOneOfImageContentTextContentObjectString2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf), TypeInfoPropertyName = "OneOfImageContentTextContent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.FunctionResultStep))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.GenerationConfig))] #pragma warning disable CS0618 // This registration names a deprecated API model. @@ -768,13 +774,14 @@ 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.Collections.Generic.Dictionary>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf, object, string>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>, object, string>))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.NextGen.OneOf>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] 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 65b2c25a7..0674265e8 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 @@ -329,7 +329,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type74 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type74 { get; set; } /// /// /// @@ -461,7 +461,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type107 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type107 { get; set; } /// /// /// @@ -481,7 +481,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.OneOf? Type112 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type112 { get; set; } /// /// /// @@ -497,7 +497,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum? Type116 { get; set; } + public global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>? Type116 { get; set; } /// /// /// @@ -505,7 +505,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2? Type118 { get; set; } + public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist? Type118 { get; set; } /// /// /// @@ -589,15 +589,15 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.NextGen.OneOf, object, string>? Type139 { get; set; } + public global::Google.Gemini.NextGen.OneOf>, object, string>? Type139 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type140 { get; set; } + public global::System.Collections.Generic.IList>? Type140 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.FunctionResultSubcontent? Type141 { get; set; } + public global::Google.Gemini.NextGen.OneOf? Type141 { get; set; } /// /// /// @@ -1506,162 +1506,166 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType11 { get; set; } + public global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>? ListType11 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf>? ListType12 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType13 { get; set; } + public global::Google.Gemini.NextGen.OneOf>? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType14 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf, object, string>? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType17 { get; set; } + public global::Google.Gemini.NextGen.OneOf>, object, string>? ListType17 { get; set; } /// /// /// - public global::Google.Gemini.NextGen.OneOf>? ListType18 { get; set; } + public global::System.Collections.Generic.List>? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType19 { get; set; } + public global::Google.Gemini.NextGen.OneOf>? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType49 { get; set; } + public global::System.Collections.Generic.List? ListType49 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType50 { get; set; } + public global::System.Collections.Generic.List? ListType50 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType51 { get; set; } } } \ No newline at end of file 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 6ae550ab5..1d6be58d1 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 @@ -20,8 +20,8 @@ public sealed partial class CreateEnvironmentRequest /// Network configuration for the environment. /// [global::System.Text.Json.Serialization.JsonPropertyName("network")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? Network { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? Network { get; set; } /// /// Sources to be mounted into the environment. @@ -54,7 +54,7 @@ public sealed partial class CreateEnvironmentRequest #endif public CreateEnvironmentRequest( string? fromEnvironment, - global::Google.Gemini.NextGen.OneOf? network, + global::Google.Gemini.NextGen.OneOf? network, global::System.Collections.Generic.IList? sources) { this.FromEnvironment = fromEnvironment; 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 62a40bb44..61030cb56 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 @@ -43,8 +43,8 @@ public sealed partial class Environment2 /// Network configuration for the environment. /// [global::System.Text.Json.Serialization.JsonPropertyName("network")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? Network { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? Network { get; set; } /// /// Output only. The total size of the environment files in bytes, output only.
@@ -128,7 +128,7 @@ public Environment2( string? created, string? fileCount, string? lastAccessed, - global::Google.Gemini.NextGen.OneOf? network, + global::Google.Gemini.NextGen.OneOf? network, string? sizeBytes, global::System.Collections.Generic.IList? sources, global::Google.Gemini.NextGen.EnvironmentStatus? status, 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 30ef3d48f..2299f4d56 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 @@ -26,8 +26,8 @@ public sealed partial class Environment3 /// Network configuration for the environment. ///
[global::System.Text.Json.Serialization.JsonPropertyName("network")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] - public global::Google.Gemini.NextGen.OneOf? Network { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter))] + public global::Google.Gemini.NextGen.OneOf? Network { get; set; } /// /// @@ -70,7 +70,7 @@ public Environment3( object type, global::Google.Gemini.NextGen.OneOf, string>? env, string? environmentId, - global::Google.Gemini.NextGen.OneOf? network, + global::Google.Gemini.NextGen.OneOf? network, global::System.Collections.Generic.IList? sources) { this.Env = env; diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlist.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlist.Json.g.cs index cba91b130..ca3c9c43b 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlist.Json.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlist.Json.g.cs @@ -2,7 +2,7 @@ namespace Google.Gemini.NextGen { - public readonly partial struct EnvironmentNetworkEgressAllowlist + public sealed partial class EnvironmentNetworkEgressAllowlist { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -54,7 +54,7 @@ public string ToJson( return global::System.Text.Json.JsonSerializer.Deserialize( json, typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist), - jsonSerializerContext) as global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist?; + jsonSerializerContext) as global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist; } /// @@ -101,7 +101,7 @@ public string ToJson( return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist?; + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlist; } /// diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlist.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlist.g.cs index 21260979b..c6ea660f7 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlist.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlist.g.cs @@ -1,296 +1,50 @@ -#pragma warning disable CS0618 // Type or member is obsolete #nullable enable namespace Google.Gemini.NextGen { /// - /// Outbound networking configuration for the sandbox. Accepts an object with an 'allowlist' array to restrict traffic, or the string 'disabled' to turn off all network access. Omit entirely to allow all outbound traffic with no header injection.
+ /// Network egress configuration for the environment.
/// Example: {"allowlist":[{"domain":"github.com","transform":[{"Authorization":"Bearer your-token"}]},{"domain":"*.googleapis.com"}]} ///
- public readonly partial struct EnvironmentNetworkEgressAllowlist : global::System.IEquatable + public sealed partial class EnvironmentNetworkEgressAllowlist { /// - /// Outbound networking configuration for the sandbox. When specified, restricts which external domains the sandbox can reach. Omit entirely to allow all outbound traffic with no header injection. + /// List of allowed domains and their configurations. Set to `"disabled"`
+ /// to block all network egress. ///
-#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum? Allowlist { get; init; } -#else - public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum? Allowlist { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Allowlist))] -#endif - public bool IsAllowlist => Allowlist != null; - - /// - /// - /// - public bool TryPickAllowlist( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum? value) - { - value = Allowlist; - return IsAllowlist; - } + [global::System.Text.Json.Serialization.JsonPropertyName("allowlist")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.NextGen.JsonConverters.OneOfJsonConverter, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>))] + public global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>? Allowlist { get; set; } /// - /// + /// Additional properties that are not explicitly defined in the schema /// - public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum PickAllowlist() => Allowlist is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Allowlist' but the value was {ToString()}."); + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Turns all network off. + /// Initializes a new instance of the class. /// -#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2? Disabled { get; init; } -#else - public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2? Disabled { get; } + /// + /// List of allowed domains and their configurations. Set to `"disabled"`
+ /// to block all network egress. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Disabled))] -#endif - public bool IsDisabled => Disabled != null; - - /// - /// - /// - public bool TryPickDisabled( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2? value) - { - value = Disabled; - return IsDisabled; - } - - /// - /// - /// - public global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2 PickDisabled() => Disabled is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'Disabled' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator EnvironmentNetworkEgressAllowlist(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum value) => new EnvironmentNetworkEgressAllowlist((global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum?)value); - - /// - /// - /// - public static implicit operator global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum?(EnvironmentNetworkEgressAllowlist @this) => @this.Allowlist; - - /// - /// - /// - public EnvironmentNetworkEgressAllowlist(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum? value) - { - Allowlist = value; - } - - /// - /// - /// - public static EnvironmentNetworkEgressAllowlist FromAllowlist(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum? value) => new EnvironmentNetworkEgressAllowlist(value); - - /// - /// - /// - public static implicit operator EnvironmentNetworkEgressAllowlist(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2 value) => new EnvironmentNetworkEgressAllowlist((global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2?)value); - - /// - /// - /// - public static implicit operator global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2?(EnvironmentNetworkEgressAllowlist @this) => @this.Disabled; - - /// - /// - /// - public EnvironmentNetworkEgressAllowlist(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2? value) - { - Disabled = value; - } - - /// - /// - /// - public static EnvironmentNetworkEgressAllowlist FromDisabled(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2? value) => new EnvironmentNetworkEgressAllowlist(value); - - /// - /// - /// public EnvironmentNetworkEgressAllowlist( - global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum? allowlist, - global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2? disabled - ) - { - Allowlist = allowlist; - Disabled = disabled; - } - - /// - /// - /// - public object? Object => - Disabled as object ?? - Allowlist as object - ; - - /// - /// - /// - public override string? ToString() => - Allowlist?.ToString() ?? - Disabled?.ToValueString() - ; - - /// - /// - /// - public bool Validate() - { - return IsAllowlist && !IsDisabled || !IsAllowlist && IsDisabled; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? allowlist = null, - global::System.Func? disabled = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (Allowlist is { } __value0 && allowlist != null) - { - return allowlist(__value0); - } - else if (Disabled is { } __value1 && disabled != null) - { - return disabled(__value1); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? allowlist = null, - - global::System.Action? disabled = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (Allowlist is { } __value0) - { - allowlist?.Invoke(__value0); - } - else if (Disabled is { } __value1) - { - disabled?.Invoke(__value1); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? allowlist = null, - global::System.Action? disabled = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (Allowlist is { } __value0) - { - allowlist?.Invoke(__value0); - } - else if (Disabled is { } __value1) - { - disabled?.Invoke(__value1); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - Allowlist, - typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum), - Disabled, - typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum2), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(EnvironmentNetworkEgressAllowlist other) + global::Google.Gemini.NextGen.OneOf, global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistAllowlist?>? allowlist) { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Allowlist, other.Allowlist) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Disabled, other.Disabled) - ; + this.Allowlist = allowlist; } /// - /// + /// Initializes a new instance of the class. /// - public static bool operator ==(EnvironmentNetworkEgressAllowlist obj1, EnvironmentNetworkEgressAllowlist obj2) + public EnvironmentNetworkEgressAllowlist() { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); } - /// - /// - /// - public static bool operator !=(EnvironmentNetworkEgressAllowlist obj1, EnvironmentNetworkEgressAllowlist obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is EnvironmentNetworkEgressAllowlist o && Equals(o); - } } -} +} \ No newline at end of file diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlistEnum2.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlistAllowlist.g.cs similarity index 65% rename from src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlistEnum2.g.cs rename to src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlistAllowlist.g.cs index 635351c25..0d19098a1 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlistEnum2.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlistAllowlist.g.cs @@ -4,9 +4,9 @@ namespace Google.Gemini.NextGen { /// - /// Turns all network off. + /// /// - public enum EnvironmentNetworkEgressAllowlistEnum2 + public enum EnvironmentNetworkEgressAllowlistAllowlist { /// /// @@ -17,27 +17,27 @@ public enum EnvironmentNetworkEgressAllowlistEnum2 /// /// Enum extensions to do fast conversions without the reflection. /// - public static class EnvironmentNetworkEgressAllowlistEnum2Extensions + public static class EnvironmentNetworkEgressAllowlistAllowlistExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this EnvironmentNetworkEgressAllowlistEnum2 value) + public static string ToValueString(this EnvironmentNetworkEgressAllowlistAllowlist value) { return value switch { - EnvironmentNetworkEgressAllowlistEnum2.Disabled => "disabled", + EnvironmentNetworkEgressAllowlistAllowlist.Disabled => "disabled", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static EnvironmentNetworkEgressAllowlistEnum2? ToEnum(string value) + public static EnvironmentNetworkEgressAllowlistAllowlist? ToEnum(string value) { return value switch { - "disabled" => EnvironmentNetworkEgressAllowlistEnum2.Disabled, + "disabled" => EnvironmentNetworkEgressAllowlistAllowlist.Disabled, _ => null, }; } diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlistEnum.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlistEnum.Json.g.cs deleted file mode 100644 index d8efb01a2..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlistEnum.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public sealed partial class EnvironmentNetworkEgressAllowlistEnum - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum), - jsonSerializerContext) as global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.EnvironmentNetworkEgressAllowlistEnum; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlistEnum.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlistEnum.g.cs deleted file mode 100644 index 791311417..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.EnvironmentNetworkEgressAllowlistEnum.g.cs +++ /dev/null @@ -1,46 +0,0 @@ - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// Outbound networking configuration for the sandbox. When specified, restricts which external domains the sandbox can reach. Omit entirely to allow all outbound traffic with no header injection. - /// - public sealed partial class EnvironmentNetworkEgressAllowlistEnum - { - /// - /// List of allowed outbound domains. Only requests to listed domains are permitted. Use [{'domain': '*'}] to allow all domains while still injecting headers on specific ones. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("allowlist")] - public global::System.Collections.Generic.IList? Allowlist { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// List of allowed outbound domains. Only requests to listed domains are permitted. Use [{'domain': '*'}] to allow all domains while still injecting headers on specific ones. - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public EnvironmentNetworkEgressAllowlistEnum( - global::System.Collections.Generic.IList? allowlist) - { - this.Allowlist = allowlist; - } - - /// - /// Initializes a new instance of the class. - /// - public EnvironmentNetworkEgressAllowlistEnum() - { - } - - } -} \ No newline at end of file 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 5d5da773a..cb20b1013 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 @@ -24,9 +24,9 @@ public sealed partial class FunctionResultDelta /// /// [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.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; } + public required global::Google.Gemini.NextGen.OneOf>, object, string> Result { get; set; } /// /// @@ -52,7 +52,7 @@ public sealed partial class FunctionResultDelta [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionResultDelta( - global::Google.Gemini.NextGen.OneOf, object, string> result, + global::Google.Gemini.NextGen.OneOf>, object, string> result, object type, bool? isError, string? name) 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 159b22ddc..11615148a 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 @@ -32,9 +32,9 @@ 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.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; } + public required global::Google.Gemini.NextGen.OneOf>, object, string> Result { get; set; } /// /// @@ -70,7 +70,7 @@ public sealed partial class FunctionResultStep #endif public FunctionResultStep( string callId, - global::Google.Gemini.NextGen.OneOf, object, string> result, + global::Google.Gemini.NextGen.OneOf>, object, string> result, object type, bool? isError, string? name) diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultSubcontent.Json.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultSubcontent.Json.g.cs deleted file mode 100644 index 9d08f7df9..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultSubcontent.Json.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -#nullable enable - -namespace Google.Gemini.NextGen -{ - public readonly partial struct FunctionResultSubcontent - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. - /// - public string ToJson() - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return ToJson(global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.FunctionResultSubcontent? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Google.Gemini.NextGen.FunctionResultSubcontent), - jsonSerializerContext) as global::Google.Gemini.NextGen.FunctionResultSubcontent?; - } - - /// - /// Deserializes a JSON string using the generated default JsonSerializerContext. - /// - public static global::Google.Gemini.NextGen.FunctionResultSubcontent? FromJson( - string json) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Google.Gemini.NextGen.FunctionResultSubcontent? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJson( - json, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Google.Gemini.NextGen.FunctionResultSubcontent), - jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.NextGen.FunctionResultSubcontent?; - } - - /// - /// Deserializes a JSON stream using the generated default JsonSerializerContext. - /// - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - if (jsonSerializerOptions is null) - { - return FromJsonStreamAsync( - jsonStream, - global::Google.Gemini.NextGen.NextGenSourceGenerationContext.Default); - } - - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultSubcontent.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultSubcontent.g.cs deleted file mode 100644 index 83a49eea8..000000000 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.FunctionResultSubcontent.g.cs +++ /dev/null @@ -1,297 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace Google.Gemini.NextGen -{ - /// - /// - /// - public readonly partial struct FunctionResultSubcontent : global::System.IEquatable - { - /// - /// An image content block.
- /// Example: {"type":"image","data":"BASE64_ENCODED_IMAGE","mime_type":"image/png"} - ///
-#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.ImageContent? ImageContent { get; init; } -#else - public global::Google.Gemini.NextGen.ImageContent? ImageContent { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageContent))] -#endif - public bool IsImageContent => ImageContent != null; - - /// - /// - /// - public bool TryPickImageContent( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Google.Gemini.NextGen.ImageContent? value) - { - value = ImageContent; - return IsImageContent; - } - - /// - /// - /// - public global::Google.Gemini.NextGen.ImageContent PickImageContent() => ImageContent is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'ImageContent' but the value was {ToString()}."); - - /// - /// A text content block.
- /// Example: {"type":"text","text":"Hello, how are you?"} - ///
-#if NET6_0_OR_GREATER - public global::Google.Gemini.NextGen.TextContent? TextContent { get; init; } -#else - public global::Google.Gemini.NextGen.TextContent? TextContent { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TextContent))] -#endif - public bool IsTextContent => TextContent != null; - - /// - /// - /// - public bool TryPickTextContent( -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] -#endif - out global::Google.Gemini.NextGen.TextContent? value) - { - value = TextContent; - return IsTextContent; - } - - /// - /// - /// - public global::Google.Gemini.NextGen.TextContent PickTextContent() => TextContent is { } value - ? value - : throw new global::System.InvalidOperationException($"Expected union variant 'TextContent' but the value was {ToString()}."); - /// - /// - /// - public static implicit operator FunctionResultSubcontent(global::Google.Gemini.NextGen.ImageContent value) => new FunctionResultSubcontent((global::Google.Gemini.NextGen.ImageContent?)value); - - /// - /// - /// - public static implicit operator global::Google.Gemini.NextGen.ImageContent?(FunctionResultSubcontent @this) => @this.ImageContent; - - /// - /// - /// - public FunctionResultSubcontent(global::Google.Gemini.NextGen.ImageContent? value) - { - ImageContent = value; - } - - /// - /// - /// - public static FunctionResultSubcontent FromImageContent(global::Google.Gemini.NextGen.ImageContent? value) => new FunctionResultSubcontent(value); - - /// - /// - /// - public static implicit operator FunctionResultSubcontent(global::Google.Gemini.NextGen.TextContent value) => new FunctionResultSubcontent((global::Google.Gemini.NextGen.TextContent?)value); - - /// - /// - /// - public static implicit operator global::Google.Gemini.NextGen.TextContent?(FunctionResultSubcontent @this) => @this.TextContent; - - /// - /// - /// - public FunctionResultSubcontent(global::Google.Gemini.NextGen.TextContent? value) - { - TextContent = value; - } - - /// - /// - /// - public static FunctionResultSubcontent FromTextContent(global::Google.Gemini.NextGen.TextContent? value) => new FunctionResultSubcontent(value); - - /// - /// - /// - public FunctionResultSubcontent( - global::Google.Gemini.NextGen.ImageContent? imageContent, - global::Google.Gemini.NextGen.TextContent? textContent - ) - { - ImageContent = imageContent; - TextContent = textContent; - } - - /// - /// - /// - public object? Object => - TextContent as object ?? - ImageContent as object - ; - - /// - /// - /// - public override string? ToString() => - ImageContent?.ToString() ?? - TextContent?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsImageContent && !IsTextContent || !IsImageContent && IsTextContent; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? imageContent = null, - global::System.Func? textContent = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (ImageContent is { } __value0 && imageContent != null) - { - return imageContent(__value0); - } - else if (TextContent is { } __value1 && textContent != null) - { - return textContent(__value1); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? imageContent = null, - - global::System.Action? textContent = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (ImageContent is { } __value0) - { - imageContent?.Invoke(__value0); - } - else if (TextContent is { } __value1) - { - textContent?.Invoke(__value1); - } - } - - /// - /// - /// - public void Switch( - global::System.Action? imageContent = null, - global::System.Action? textContent = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (ImageContent is { } __value0) - { - imageContent?.Invoke(__value0); - } - else if (TextContent is { } __value1) - { - textContent?.Invoke(__value1); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - ImageContent, - typeof(global::Google.Gemini.NextGen.ImageContent), - TextContent, - typeof(global::Google.Gemini.NextGen.TextContent), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(FunctionResultSubcontent other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageContent, other.ImageContent) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(TextContent, other.TextContent) - ; - } - - /// - /// - /// - public static bool operator ==(FunctionResultSubcontent obj1, FunctionResultSubcontent obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(FunctionResultSubcontent obj1, FunctionResultSubcontent obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is FunctionResultSubcontent o && Equals(o); - } - } -} 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 75694583f..0f6448d2b 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 @@ -8,6 +8,13 @@ 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. @@ -37,6 +44,13 @@ public sealed partial class InteractionStatusUpdate [global::System.Text.Json.Serialization.JsonRequired] public required global::Google.Gemini.NextGen.InteractionStatusUpdateStatus Status { get; set; } + /// + /// Statistics on the interaction request's token usage.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("usage")] + public global::Google.Gemini.NextGen.Usage? Usage { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -49,10 +63,18 @@ public sealed partial class InteractionStatusUpdate /// /// /// + /// + /// 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 + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -60,12 +82,16 @@ public InteractionStatusUpdate( object eventType, string interactionId, global::Google.Gemini.NextGen.InteractionStatusUpdateStatus status, - string? eventId) + byte[]? continuationToken, + string? eventId, + global::Google.Gemini.NextGen.Usage? usage) { + 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.Usage = usage; } /// 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 4cce53a78..9135ed7d6 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 @@ -18,9 +18,9 @@ public sealed partial class MCPServerToolResultDelta /// /// [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.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; } + public required global::Google.Gemini.NextGen.OneOf>, object, string> Result { get; set; } /// /// @@ -52,7 +52,7 @@ public sealed partial class MCPServerToolResultDelta [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public MCPServerToolResultDelta( - global::Google.Gemini.NextGen.OneOf, object, string> result, + global::Google.Gemini.NextGen.OneOf>, object, string> result, object type, string? name, string? 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 c702735ba..180a974ca 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 @@ -26,9 +26,9 @@ 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.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; } + public required global::Google.Gemini.NextGen.OneOf>, object, string> Result { get; set; } /// /// The name of the used MCP server. @@ -70,7 +70,7 @@ public sealed partial class MCPServerToolResultStep #endif public MCPServerToolResultStep( string callId, - global::Google.Gemini.NextGen.OneOf, object, string> result, + global::Google.Gemini.NextGen.OneOf>, object, string> result, object type, string? name, string? serverName) diff --git a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Model.g.cs b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Model.g.cs index bad3fb60c..a4b6c3ef2 100644 --- a/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Model.g.cs +++ b/src/libs/Google.Gemini/NextGen/Generated/Google.Gemini.NextGen.Models.Model.g.cs @@ -21,26 +21,11 @@ public Model(string value) /// /// public string Value { get; } - /// - /// Our first hybrid reasoning model which supports a 1M token context window and has thinking budgets. - /// - public static Model Gemini25Flash { get; } = new("gemini-2.5-flash"); - /// /// Our native image generation model, optimized for speed, flexibility, and contextual understanding. Text input and output is priced the same as 2.5 Flash. /// public static Model Gemini25FlashImage { get; } = new("gemini-2.5-flash-image"); - /// - /// Our smallest and most cost effective model, built for at scale usage. - /// - public static Model Gemini25FlashLite { get; } = new("gemini-2.5-flash-lite"); - - /// - /// Our state-of-the-art multipurpose model, which excels at coding and complex reasoning tasks. - /// - public static Model Gemini25Pro { get; } = new("gemini-2.5-pro"); - /// /// Our most intelligent model built for speed, combining frontier intelligence with superior search and grounding. /// @@ -61,6 +46,11 @@ public Model(string value) ///
public static Model Gemini31FlashLite { get; } = new("gemini-3.1-flash-lite"); + /// + /// Gemini 3.1 Flash Lite Image. + /// + public static Model Gemini31FlashLiteImage { get; } = new("gemini-3.1-flash-lite-image"); + /// /// Gemini 3.1 Flash TTS: Powerful, low-latency speech generation. Enjoy natural outputs, steerable prompts, and new expressive audio tags for precise narration control. /// @@ -77,22 +67,27 @@ public Model(string value) public static Model Gemini31ProPreviewCustomtools { get; } = new("gemini-3.1-pro-preview-customtools"); /// - /// Our most intelligent model for sustained frontier performance in agentic and coding tasks. + /// Gemini 3.5 Flash - Our earlier Flash model, built for speed and foundational performance across routine, high-throughput workloads. /// public static Model Gemini35Flash { get; } = new("gemini-3.5-flash"); /// - /// Our most intelligent model for sustained frontier performance in agentic and coding tasks. + /// Our smallest and most cost effective model, built for at scale usage. + /// + public static Model Gemini35FlashLite { get; } = new("gemini-3.5-flash-lite"); + + /// + /// Gemini 3.6 Flash - Our previous generation Flash model, balancing speed and multimodal capabilities across general agentic and everyday tasks. /// public static Model Gemini36Flash { get; } = new("gemini-3.6-flash"); /// - /// Our most intelligent model for sustained frontier performance in agentic and coding tasks. + /// Gemini 3.7 Flash - Our high-speed, efficient Flash model built for everyday coding, agentic tool use, and reliable multi-step execution. /// public static Model Gemini37Flash { get; } = new("gemini-3.7-flash"); /// - /// Our most intelligent model for sustained frontier performance in agentic and coding tasks. + /// Gemini 3.8 Flash - Our most intelligent Flash model, engineered for long-horizon software engineering, autonomous agents, and complex enterprise workflows. /// public static Model Gemini38Flash { get; } = new("gemini-3.8-flash"); @@ -116,13 +111,18 @@ public Model(string value) ///
public static Model GeminiFlashLiteLatest { get; } = new("gemini-flash-lite-latest"); + /// + /// Gemini Nano Banana 2.1. + /// + public static Model GeminiNanoBanana21 { get; } = new("gemini-nano-banana-2.1"); + /// /// Our high-performance multimodal model designed for fast, conversational video generation, editing, and cinematic control. /// public static Model GeminiOmni11Flash { get; } = new("gemini-omni-1.1-flash"); /// - /// Our high-performance multimodal model designed for fast, conversational video generation, editing, and cinematic control. + /// Preview release of our multimodal model for conversational video generation, editing, and cinematic control. /// public static Model GeminiOmniFlashPreview { get; } = new("gemini-omni-flash-preview"); @@ -131,11 +131,6 @@ public Model(string value) ///
public static Model GeminiProLatest { get; } = new("gemini-pro-latest"); - /// - /// Gemini Robotics-ER 1.6 Preview - /// - public static Model GeminiRoboticsEr16Preview { get; } = new("gemini-robotics-er-1.6-preview"); - /// /// Gemini Robotics Embodied Reasoning 2 Preview /// @@ -179,18 +174,17 @@ public static Model FromValue(string value) return value switch { - "gemini-2.5-flash" => Gemini25Flash, "gemini-2.5-flash-image" => Gemini25FlashImage, - "gemini-2.5-flash-lite" => Gemini25FlashLite, - "gemini-2.5-pro" => Gemini25Pro, "gemini-3-flash-preview" => Gemini3FlashPreview, "gemini-3-pro-image" => Gemini3ProImage, "gemini-3.1-flash-image" => Gemini31FlashImage, "gemini-3.1-flash-lite" => Gemini31FlashLite, + "gemini-3.1-flash-lite-image" => Gemini31FlashLiteImage, "gemini-3.1-flash-tts-preview" => Gemini31FlashTtsPreview, "gemini-3.1-pro-preview" => Gemini31ProPreview, "gemini-3.1-pro-preview-customtools" => Gemini31ProPreviewCustomtools, "gemini-3.5-flash" => Gemini35Flash, + "gemini-3.5-flash-lite" => Gemini35FlashLite, "gemini-3.6-flash" => Gemini36Flash, "gemini-3.7-flash" => Gemini37Flash, "gemini-3.8-flash" => Gemini38Flash, @@ -198,10 +192,10 @@ public static Model FromValue(string value) "gemini-3.8-flash-tts" => Gemini38FlashTts, "gemini-flash-latest" => GeminiFlashLatest, "gemini-flash-lite-latest" => GeminiFlashLiteLatest, + "gemini-nano-banana-2.1" => GeminiNanoBanana21, "gemini-omni-1.1-flash" => GeminiOmni11Flash, "gemini-omni-flash-preview" => GeminiOmniFlashPreview, "gemini-pro-latest" => GeminiProLatest, - "gemini-robotics-er-1.6-preview" => GeminiRoboticsEr16Preview, "gemini-robotics-er-2-preview" => GeminiRoboticsEr2Preview, "gemma-4-26b-a4b-it" => Gemma426bA4bIt, "gemma-4-31b-it" => Gemma431bIt, @@ -218,18 +212,17 @@ public static Model FromValue(string value) ///
public bool IsKnown => Value switch { - "gemini-2.5-flash" => true, "gemini-2.5-flash-image" => true, - "gemini-2.5-flash-lite" => true, - "gemini-2.5-pro" => true, "gemini-3-flash-preview" => true, "gemini-3-pro-image" => true, "gemini-3.1-flash-image" => true, "gemini-3.1-flash-lite" => true, + "gemini-3.1-flash-lite-image" => true, "gemini-3.1-flash-tts-preview" => true, "gemini-3.1-pro-preview" => true, "gemini-3.1-pro-preview-customtools" => true, "gemini-3.5-flash" => true, + "gemini-3.5-flash-lite" => true, "gemini-3.6-flash" => true, "gemini-3.7-flash" => true, "gemini-3.8-flash" => true, @@ -237,10 +230,10 @@ public static Model FromValue(string value) "gemini-3.8-flash-tts" => true, "gemini-flash-latest" => true, "gemini-flash-lite-latest" => true, + "gemini-nano-banana-2.1" => true, "gemini-omni-1.1-flash" => true, "gemini-omni-flash-preview" => true, "gemini-pro-latest" => true, - "gemini-robotics-er-1.6-preview" => true, "gemini-robotics-er-2-preview" => true, "gemma-4-26b-a4b-it" => true, "gemma-4-31b-it" => true, diff --git a/src/libs/Google.Gemini/nextgen.openapi.json b/src/libs/Google.Gemini/nextgen.openapi.json index bba68383d..6ddbfb0b6 100644 --- a/src/libs/Google.Gemini/nextgen.openapi.json +++ b/src/libs/Google.Gemini/nextgen.openapi.json @@ -4813,7 +4813,31 @@ "x-speakeasy-model-namespace": "environments" }, "EnvironmentNetworkEgressAllowlist": { - "description": "Outbound networking configuration for the sandbox. Accepts an object with an 'allowlist' array to restrict traffic, or the string 'disabled' to turn off all network access. Omit entirely to allow all outbound traffic with no header injection.", + "description": "Network egress configuration for the environment.", + "type": "object", + "properties": { + "allowlist": { + "description": "List of allowed domains and their configurations. Set to `\"disabled\"`\nto block all network egress.", + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/components/schemas/EgressRule" + } + }, + { + "title": "Disabled", + "type": "string", + "enum": [ + "disabled" + ], + "x-google-enum-descriptions": [ + "All network egress is blocked." + ] + } + ] + } + }, "example": { "allowlist": [ { @@ -4829,33 +4853,6 @@ } ] }, - "oneOf": [ - { - "title": "Allowlist", - "description": "Outbound networking configuration for the sandbox. When specified, restricts which external domains the sandbox can reach. Omit entirely to allow all outbound traffic with no header injection.", - "type": "object", - "properties": { - "allowlist": { - "description": "List of allowed outbound domains. Only requests to listed domains are permitted. Use [{'domain': '*'}] to allow all domains while still injecting headers on specific ones.", - "type": "array", - "items": { - "$ref": "#/components/schemas/EgressRule" - } - } - } - }, - { - "title": "Disabled", - "description": "Turns all network off.", - "type": "string", - "enum": [ - "disabled" - ], - "x-google-enum-descriptions": [ - "All network egress is blocked." - ] - } - ], "x-example-summaries": [ "Network Allowlist" ], @@ -5478,10 +5475,16 @@ "result": { "oneOf": [ { - "title": "FunctionResultSubcontentList", "type": "array", "items": { - "$ref": "#/components/schemas/FunctionResultSubContent" + "oneOf": [ + { + "$ref": "#/components/schemas/ImageContent" + }, + { + "$ref": "#/components/schemas/TextContent" + } + ] } }, { @@ -5524,7 +5527,14 @@ { "type": "array", "items": { - "$ref": "#/components/schemas/FunctionResultSubContent" + "oneOf": [ + { + "$ref": "#/components/schemas/ImageContent" + }, + { + "$ref": "#/components/schemas/TextContent" + } + ] } }, { @@ -5566,18 +5576,6 @@ ], "x-speakeasy-model-namespace": "interactions" }, - "FunctionResultSubContent": { - "oneOf": [ - { - "$ref": "#/components/schemas/ImageContent" - }, - { - "$ref": "#/components/schemas/TextContent" - } - ], - "x-speakeasy-model-namespace": "interactions", - "x-speakeasy-name-override": "FunctionResultSubcontent" - }, "GenerationConfig": { "description": "Configuration parameters for model interactions.", "type": "object", @@ -7271,6 +7269,11 @@ "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" @@ -7313,6 +7316,10 @@ "Deprecated: Token and execution budget exhaustion returns INCOMPLETE\n(11).", "The interaction is queued, waiting for processing (e.g. waiting for\noff-peak capacity)." ] + }, + "usage": { + "description": "Model usage statistics up to this checkpoint.", + "$ref": "#/components/schemas/Usage" } }, "required": [ @@ -7685,10 +7692,16 @@ "result": { "oneOf": [ { - "title": "FunctionResultSubcontentList", "type": "array", "items": { - "$ref": "#/components/schemas/FunctionResultSubContent" + "oneOf": [ + { + "$ref": "#/components/schemas/ImageContent" + }, + { + "$ref": "#/components/schemas/TextContent" + } + ] } }, { @@ -7731,7 +7744,14 @@ { "type": "array", "items": { - "$ref": "#/components/schemas/FunctionResultSubContent" + "oneOf": [ + { + "$ref": "#/components/schemas/ImageContent" + }, + { + "$ref": "#/components/schemas/TextContent" + } + ] } }, { @@ -8017,22 +8037,22 @@ "description": "The model that will complete your prompt.\\n\\nSee [models](https://ai.google.dev/gemini-api/docs/models) for additional details.", "type": "string", "enum": [ - "gemini-2.5-flash", - "gemini-2.5-pro", "gemma-4-26b-a4b-it", "gemma-4-31b-it", "gemini-flash-latest", "gemini-flash-lite-latest", "gemini-pro-latest", - "gemini-2.5-flash-lite", + "gemini-3.5-flash-lite", "gemini-2.5-flash-image", "gemini-3-flash-preview", "gemini-3.1-pro-preview", "gemini-3.1-pro-preview-customtools", "gemini-3.1-flash-lite", + "gemini-3.1-flash-lite-image", "gemini-3-pro-image", "nano-banana-pro-preview", "gemini-3.1-flash-image", + "gemini-nano-banana-2.1", "gemini-3.1-flash-tts-preview", "gemini-3.5-flash", "gemini-3.6-flash", @@ -8042,15 +8062,12 @@ "gemini-3.8-flash-lite-tts", "lyria-3-clip-preview", "lyria-3-pro-preview", - "gemini-robotics-er-1.6-preview", "gemini-robotics-er-2-preview", "lyria-3.5", "gemini-omni-1.1-flash", "gemini-omni-flash-preview" ], "x-speakeasy-enum-descriptions": [ - "Our first hybrid reasoning model which supports a 1M token context window and has thinking budgets.", - "Our state-of-the-art multipurpose model, which excels at coding and complex reasoning tasks.", "Gemma 4 26B A4B IT", "Gemma 4 31B IT", "Latest release of Gemini Flash", @@ -8062,23 +8079,24 @@ "Our latest SOTA reasoning model with unprecedented depth and nuance, and powerful multimodal understanding and coding capabilities.", "Gemini 3.1 Pro Preview optimized for custom tool usage", "Our most cost-efficient model, optimized for high-volume agentic tasks, translation, and simple data processing.", + "Gemini 3.1 Flash Lite Image.", "Gemini 3 Pro Image", "Gemini 3 Pro Image Preview", "Gemini 3.1 Flash Image.", + "Gemini Nano Banana 2.1.", "Gemini 3.1 Flash TTS: Powerful, low-latency speech generation. Enjoy natural outputs, steerable prompts, and new expressive audio tags for precise narration control.", - "Our most intelligent model for sustained frontier performance in agentic and coding tasks.", - "Our most intelligent model for sustained frontier performance in agentic and coding tasks.", - "Our most intelligent model for sustained frontier performance in agentic and coding tasks.", - "Our most intelligent model for sustained frontier performance in agentic and coding tasks.", + "Gemini 3.5 Flash - Our earlier Flash model, built for speed and foundational performance across routine, high-throughput workloads.", + "Gemini 3.6 Flash - Our previous generation Flash model, balancing speed and multimodal capabilities across general agentic and everyday tasks.", + "Gemini 3.7 Flash - Our high-speed, efficient Flash model built for everyday coding, agentic tool use, and reliable multi-step execution.", + "Gemini 3.8 Flash - Our most intelligent Flash model, engineered for long-horizon software engineering, autonomous agents, and complex enterprise workflows.", "Gemini 3.8 Flash TTS - Flagship TTS model for Voice Design and dual-speaker screenplay control. Prompt custom vocal personas, direct line-by-line delivery, and add vocal bursts.", "Gemini 3.8 Flash Lite TTS - High-speed and cost-efficient, ideal for rapid dubbing, media localization, and high-throughput voice agents. Direct replacement for gemini-3.1-flash-tts-preview.", "Our low-latency, music generation model optimized for high-fidelity audio clips and precise rhythmic control.", "Our advanced, full-song generative model with deep compositional understanding, optimized for precise structural control and complex transitions across diverse musical styles.", - "Gemini Robotics-ER 1.6 Preview", "Gemini Robotics Embodied Reasoning 2 Preview", "Our flagship music generation model, optimized for full-length songs with complex structural coherence.", "Our high-performance multimodal model designed for fast, conversational video generation, editing, and cinematic control.", - "Our high-performance multimodal model designed for fast, conversational video generation, editing, and cinematic control." + "Preview release of our multimodal model for conversational video generation, editing, and cinematic control." ], "x-speakeasy-enum-format": "union", "x-speakeasy-exports": [