From b8da9f5d7f56c71e07c3cb5b68658bb2b2979997 Mon Sep 17 00:00:00 2001 From: Konstantin S Date: Fri, 13 Dec 2024 16:36:47 +0400 Subject: [PATCH] test: Added Polymorphism tests. --- specs/cohere.yaml | 9 + ...treamEventDiscriminator.Json.g.verified.cs | 56 + ...ChatStreamEventDiscriminator.g.verified.cs | 41 + ...mEventDiscriminatorEventType.g.verified.cs | 83 ++ .../SystemTextJson/_#G.Api.g.verified.cs | 2 + ...treamEventDiscriminator.Json.g.verified.cs | 93 ++ ...ChatStreamEventDiscriminator.g.verified.cs | 43 + ...mEventDiscriminatorEventType.g.verified.cs | 76 + ...mEventDiscriminatorEventType.g.verified.cs | 50 + ...scriminatorEventTypeNullable.g.verified.cs | 57 + ...nSerializerContextConverters.g.verified.cs | 2 + ..._#JsonSerializerContextTypes.g.verified.cs | 1304 +++++++++-------- .../JsonTests.Polymorphism.cs | 61 + ....Models.ChatStreamEvent.Json.g.verified.cs | 97 ++ .../_#G.Models.ChatStreamEvent.g.verified.cs | 30 + ....Models.ChatStreamStartEvent.g.verified.cs | 39 + .../cohere.yaml/_.verified.txt | 9 + 17 files changed, 1404 insertions(+), 648 deletions(-) create mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/NewtonsoftJson/_#G.Models.ChatStreamEventDiscriminator.Json.g.verified.cs create mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/NewtonsoftJson/_#G.Models.ChatStreamEventDiscriminator.g.verified.cs create mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/NewtonsoftJson/_#G.Models.ChatStreamEventDiscriminatorEventType.g.verified.cs create mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Models.ChatStreamEventDiscriminator.Json.g.verified.cs create mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Models.ChatStreamEventDiscriminator.g.verified.cs create mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Models.ChatStreamEventDiscriminatorEventType.g.verified.cs create mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonConverters.ChatStreamEventDiscriminatorEventType.g.verified.cs create mode 100644 src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonConverters.ChatStreamEventDiscriminatorEventTypeNullable.g.verified.cs create mode 100644 src/tests/AutoSDK.UnitTests/JsonTests.Polymorphism.cs create mode 100644 src/tests/AutoSDK.UnitTests/Polymorphism/Cohere-ChatStreamEvent/_#G.Models.ChatStreamEvent.Json.g.verified.cs create mode 100644 src/tests/AutoSDK.UnitTests/Polymorphism/Cohere-ChatStreamEvent/_#G.Models.ChatStreamEvent.g.verified.cs create mode 100644 src/tests/AutoSDK.UnitTests/Polymorphism/Cohere-ChatStreamEvent/_#G.Models.ChatStreamStartEvent.g.verified.cs diff --git a/specs/cohere.yaml b/specs/cohere.yaml index 4d43f00c5d..5fe115ea2a 100644 --- a/specs/cohere.yaml +++ b/specs/cohere.yaml @@ -7486,6 +7486,15 @@ components: type: string x-fern-audiences: - public + discriminator: + propertyName: event_type + mapping: + stream-start: '#/components/schemas/ChatStreamStartEvent' + search-queries-generation: '#/components/schemas/ChatSearchQueriesGenerationEvent' + search-results: '#/components/schemas/ChatSearchResultsEvent' + text-generation: '#/components/schemas/ChatTextGenerationEvent' + citation-generation: '#/components/schemas/ChatCitationGenerationEvent' + stream-end: '#/components/schemas/ChatStreamEndEvent' ChatStreamStartEvent: allOf: - $ref: '#/components/schemas/ChatStreamEvent' diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/NewtonsoftJson/_#G.Models.ChatStreamEventDiscriminator.Json.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/NewtonsoftJson/_#G.Models.ChatStreamEventDiscriminator.Json.g.verified.cs new file mode 100644 index 0000000000..71a18d3a24 --- /dev/null +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/NewtonsoftJson/_#G.Models.ChatStreamEventDiscriminator.Json.g.verified.cs @@ -0,0 +1,56 @@ +//HintName: G.Models.ChatStreamEventDiscriminator.Json.g.cs +#nullable enable + +namespace G +{ + public sealed partial class ChatStreamEventDiscriminator + { + /// + /// 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::Newtonsoft.Json.JsonSerializerSettings? jsonSerializerOptions = null) + { + return global::Newtonsoft.Json.JsonConvert.SerializeObject( + this, + jsonSerializerOptions); + } + + /// + /// 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::G.ChatStreamEventDiscriminator? FromJson( + string json, + global::Newtonsoft.Json.JsonSerializerSettings? jsonSerializerOptions = null) + { + return global::Newtonsoft.Json.JsonConvert.DeserializeObject( + json, + jsonSerializerOptions); + } + + /// + /// 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::Newtonsoft.Json.JsonSerializerSettings? jsonSerializerOptions = null) + { + using var streamReader = new global::System.IO.StreamReader(jsonStream); + using var jsonReader = new global::Newtonsoft.Json.JsonTextReader(streamReader); + var serializer = global::Newtonsoft.Json.JsonSerializer.Create(jsonSerializerOptions); + return new global::System.Threading.Tasks.ValueTask(serializer.Deserialize(jsonReader)); + } + } +} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/NewtonsoftJson/_#G.Models.ChatStreamEventDiscriminator.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/NewtonsoftJson/_#G.Models.ChatStreamEventDiscriminator.g.verified.cs new file mode 100644 index 0000000000..6e1f26c227 --- /dev/null +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/NewtonsoftJson/_#G.Models.ChatStreamEventDiscriminator.g.verified.cs @@ -0,0 +1,41 @@ +//HintName: G.Models.ChatStreamEventDiscriminator.g.cs + +#nullable enable + +namespace G +{ + /// + /// + /// + public sealed partial class ChatStreamEventDiscriminator + { + /// + /// + /// + [global::Newtonsoft.Json.JsonProperty("event_type")] + public global::G.ChatStreamEventDiscriminatorEventType? EventType { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::Newtonsoft.Json.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + public ChatStreamEventDiscriminator( + global::G.ChatStreamEventDiscriminatorEventType? eventType) + { + this.EventType = eventType; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatStreamEventDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/NewtonsoftJson/_#G.Models.ChatStreamEventDiscriminatorEventType.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/NewtonsoftJson/_#G.Models.ChatStreamEventDiscriminatorEventType.g.verified.cs new file mode 100644 index 0000000000..912a2922c6 --- /dev/null +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/NewtonsoftJson/_#G.Models.ChatStreamEventDiscriminatorEventType.g.verified.cs @@ -0,0 +1,83 @@ +//HintName: G.Models.ChatStreamEventDiscriminatorEventType.g.cs + +#nullable enable + +namespace G +{ + /// + /// + /// + [global::System.Runtime.Serialization.DataContract] + public enum ChatStreamEventDiscriminatorEventType + { + /// + /// + /// + [global::System.Runtime.Serialization.EnumMember(Value="stream-start")] + StreamStart, + /// + /// + /// + [global::System.Runtime.Serialization.EnumMember(Value="search-queries-generation")] + SearchQueriesGeneration, + /// + /// + /// + [global::System.Runtime.Serialization.EnumMember(Value="search-results")] + SearchResults, + /// + /// + /// + [global::System.Runtime.Serialization.EnumMember(Value="text-generation")] + TextGeneration, + /// + /// + /// + [global::System.Runtime.Serialization.EnumMember(Value="citation-generation")] + CitationGeneration, + /// + /// + /// + [global::System.Runtime.Serialization.EnumMember(Value="stream-end")] + StreamEnd, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatStreamEventDiscriminatorEventTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatStreamEventDiscriminatorEventType value) + { + return value switch + { + ChatStreamEventDiscriminatorEventType.StreamStart => "stream-start", + ChatStreamEventDiscriminatorEventType.SearchQueriesGeneration => "search-queries-generation", + ChatStreamEventDiscriminatorEventType.SearchResults => "search-results", + ChatStreamEventDiscriminatorEventType.TextGeneration => "text-generation", + ChatStreamEventDiscriminatorEventType.CitationGeneration => "citation-generation", + ChatStreamEventDiscriminatorEventType.StreamEnd => "stream-end", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatStreamEventDiscriminatorEventType? ToEnum(string value) + { + return value switch + { + "stream-start" => ChatStreamEventDiscriminatorEventType.StreamStart, + "search-queries-generation" => ChatStreamEventDiscriminatorEventType.SearchQueriesGeneration, + "search-results" => ChatStreamEventDiscriminatorEventType.SearchResults, + "text-generation" => ChatStreamEventDiscriminatorEventType.TextGeneration, + "citation-generation" => ChatStreamEventDiscriminatorEventType.CitationGeneration, + "stream-end" => ChatStreamEventDiscriminatorEventType.StreamEnd, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Api.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Api.g.verified.cs index aa97e8b1f4..4e5a091d88 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Api.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Api.g.verified.cs @@ -51,6 +51,8 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable new global::G.JsonConverters.FinishReasonNullableJsonConverter(), new global::G.JsonConverters.ChatStreamEventEventTypeJsonConverter(), new global::G.JsonConverters.ChatStreamEventEventTypeNullableJsonConverter(), + new global::G.JsonConverters.ChatStreamEventDiscriminatorEventTypeJsonConverter(), + new global::G.JsonConverters.ChatStreamEventDiscriminatorEventTypeNullableJsonConverter(), new global::G.JsonConverters.ChatStreamEndEventVariant2FinishReasonJsonConverter(), new global::G.JsonConverters.ChatStreamEndEventVariant2FinishReasonNullableJsonConverter(), new global::G.JsonConverters.TextContentTypeJsonConverter(), diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Models.ChatStreamEventDiscriminator.Json.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Models.ChatStreamEventDiscriminator.Json.g.verified.cs new file mode 100644 index 0000000000..6c43352cb7 --- /dev/null +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Models.ChatStreamEventDiscriminator.Json.g.verified.cs @@ -0,0 +1,93 @@ +//HintName: G.Models.ChatStreamEventDiscriminator.Json.g.cs +#nullable enable + +namespace G +{ + public sealed partial class ChatStreamEventDiscriminator + { + /// + /// 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 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::G.ChatStreamEventDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::G.ChatStreamEventDiscriminator), + jsonSerializerContext) as global::G.ChatStreamEventDiscriminator; + } + + /// + /// 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::G.ChatStreamEventDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + 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::G.ChatStreamEventDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::G.ChatStreamEventDiscriminator; + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Models.ChatStreamEventDiscriminator.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Models.ChatStreamEventDiscriminator.g.verified.cs new file mode 100644 index 0000000000..c6a69b8644 --- /dev/null +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Models.ChatStreamEventDiscriminator.g.verified.cs @@ -0,0 +1,43 @@ +//HintName: G.Models.ChatStreamEventDiscriminator.g.cs + +#nullable enable + +namespace G +{ + /// + /// + /// + public sealed partial class ChatStreamEventDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("event_type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::G.JsonConverters.ChatStreamEventDiscriminatorEventTypeJsonConverter))] + public global::G.ChatStreamEventDiscriminatorEventType? EventType { 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. + /// + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ChatStreamEventDiscriminator( + global::G.ChatStreamEventDiscriminatorEventType? eventType) + { + this.EventType = eventType; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatStreamEventDiscriminator() + { + } + } +} \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Models.ChatStreamEventDiscriminatorEventType.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Models.ChatStreamEventDiscriminatorEventType.g.verified.cs new file mode 100644 index 0000000000..4a8f84716e --- /dev/null +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#G.Models.ChatStreamEventDiscriminatorEventType.g.verified.cs @@ -0,0 +1,76 @@ +//HintName: G.Models.ChatStreamEventDiscriminatorEventType.g.cs + +#nullable enable + +namespace G +{ + /// + /// + /// + public enum ChatStreamEventDiscriminatorEventType + { + /// + /// + /// + StreamStart, + /// + /// + /// + SearchQueriesGeneration, + /// + /// + /// + SearchResults, + /// + /// + /// + TextGeneration, + /// + /// + /// + CitationGeneration, + /// + /// + /// + StreamEnd, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatStreamEventDiscriminatorEventTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatStreamEventDiscriminatorEventType value) + { + return value switch + { + ChatStreamEventDiscriminatorEventType.StreamStart => "stream-start", + ChatStreamEventDiscriminatorEventType.SearchQueriesGeneration => "search-queries-generation", + ChatStreamEventDiscriminatorEventType.SearchResults => "search-results", + ChatStreamEventDiscriminatorEventType.TextGeneration => "text-generation", + ChatStreamEventDiscriminatorEventType.CitationGeneration => "citation-generation", + ChatStreamEventDiscriminatorEventType.StreamEnd => "stream-end", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatStreamEventDiscriminatorEventType? ToEnum(string value) + { + return value switch + { + "stream-start" => ChatStreamEventDiscriminatorEventType.StreamStart, + "search-queries-generation" => ChatStreamEventDiscriminatorEventType.SearchQueriesGeneration, + "search-results" => ChatStreamEventDiscriminatorEventType.SearchResults, + "text-generation" => ChatStreamEventDiscriminatorEventType.TextGeneration, + "citation-generation" => ChatStreamEventDiscriminatorEventType.CitationGeneration, + "stream-end" => ChatStreamEventDiscriminatorEventType.StreamEnd, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonConverters.ChatStreamEventDiscriminatorEventType.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonConverters.ChatStreamEventDiscriminatorEventType.g.verified.cs new file mode 100644 index 0000000000..8e10feaed0 --- /dev/null +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonConverters.ChatStreamEventDiscriminatorEventType.g.verified.cs @@ -0,0 +1,50 @@ +//HintName: JsonConverters.ChatStreamEventDiscriminatorEventType.g.cs +#nullable enable + +namespace G.JsonConverters +{ + /// + public sealed class ChatStreamEventDiscriminatorEventTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::G.ChatStreamEventDiscriminatorEventType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::G.ChatStreamEventDiscriminatorEventTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::G.ChatStreamEventDiscriminatorEventType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::G.ChatStreamEventDiscriminatorEventType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::G.ChatStreamEventDiscriminatorEventTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonConverters.ChatStreamEventDiscriminatorEventTypeNullable.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonConverters.ChatStreamEventDiscriminatorEventTypeNullable.g.verified.cs new file mode 100644 index 0000000000..3f4c8ca98e --- /dev/null +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonConverters.ChatStreamEventDiscriminatorEventTypeNullable.g.verified.cs @@ -0,0 +1,57 @@ +//HintName: JsonConverters.ChatStreamEventDiscriminatorEventTypeNullable.g.cs +#nullable enable + +namespace G.JsonConverters +{ + /// + public sealed class ChatStreamEventDiscriminatorEventTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::G.ChatStreamEventDiscriminatorEventType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::G.ChatStreamEventDiscriminatorEventTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::G.ChatStreamEventDiscriminatorEventType)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::G.ChatStreamEventDiscriminatorEventType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::G.ChatStreamEventDiscriminatorEventTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs index 9b6849b356..4a8ec1f39b 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonSerializerContextConverters.g.verified.cs @@ -19,6 +19,8 @@ internal sealed partial class JsonSerializerContextConverters typeof(global::G.JsonConverters.FinishReasonNullableJsonConverter), typeof(global::G.JsonConverters.ChatStreamEventEventTypeJsonConverter), typeof(global::G.JsonConverters.ChatStreamEventEventTypeNullableJsonConverter), + typeof(global::G.JsonConverters.ChatStreamEventDiscriminatorEventTypeJsonConverter), + typeof(global::G.JsonConverters.ChatStreamEventDiscriminatorEventTypeNullableJsonConverter), typeof(global::G.JsonConverters.ChatStreamEndEventVariant2FinishReasonJsonConverter), typeof(global::G.JsonConverters.ChatStreamEndEventVariant2FinishReasonNullableJsonConverter), typeof(global::G.JsonConverters.TextContentTypeJsonConverter), diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonSerializerContextTypes.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonSerializerContextTypes.g.verified.cs index 07ae1384e5..c980f63c82 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonSerializerContextTypes.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/cohere/SystemTextJson/_#JsonSerializerContextTypes.g.verified.cs @@ -187,2594 +187,2602 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::G.ChatStreamStartEvent? Type42 { get; set; } + public global::G.ChatStreamEventDiscriminator? Type42 { get; set; } /// /// /// - public global::G.ChatStreamStartEventVariant2? Type43 { get; set; } + public global::G.ChatStreamEventDiscriminatorEventType? Type43 { get; set; } /// /// /// - public global::G.ChatSearchQueriesGenerationEvent? Type44 { get; set; } + public global::G.ChatStreamStartEvent? Type44 { get; set; } /// /// /// - public global::G.ChatSearchQueriesGenerationEventVariant2? Type45 { get; set; } + public global::G.ChatStreamStartEventVariant2? Type45 { get; set; } /// /// /// - public global::G.ChatSearchResultsEvent? Type46 { get; set; } + public global::G.ChatSearchQueriesGenerationEvent? Type46 { get; set; } /// /// /// - public global::G.ChatSearchResultsEventVariant2? Type47 { get; set; } + public global::G.ChatSearchQueriesGenerationEventVariant2? Type47 { get; set; } /// /// /// - public global::G.ChatTextGenerationEvent? Type48 { get; set; } + public global::G.ChatSearchResultsEvent? Type48 { get; set; } /// /// /// - public global::G.ChatTextGenerationEventVariant2? Type49 { get; set; } + public global::G.ChatSearchResultsEventVariant2? Type49 { get; set; } /// /// /// - public global::G.ChatCitationGenerationEvent? Type50 { get; set; } + public global::G.ChatTextGenerationEvent? Type50 { get; set; } /// /// /// - public global::G.ChatCitationGenerationEventVariant2? Type51 { get; set; } + public global::G.ChatTextGenerationEventVariant2? Type51 { get; set; } /// /// /// - public global::G.ChatToolCallsGenerationEvent? Type52 { get; set; } + public global::G.ChatCitationGenerationEvent? Type52 { get; set; } /// /// /// - public global::G.ChatToolCallsGenerationEventVariant2? Type53 { get; set; } + public global::G.ChatCitationGenerationEventVariant2? Type53 { get; set; } /// /// /// - public global::G.ChatStreamEndEvent? Type54 { get; set; } + public global::G.ChatToolCallsGenerationEvent? Type54 { get; set; } /// /// /// - public global::G.ChatStreamEndEventVariant2? Type55 { get; set; } + public global::G.ChatToolCallsGenerationEventVariant2? Type55 { get; set; } /// /// /// - public global::G.ChatStreamEndEventVariant2FinishReason? Type56 { get; set; } + public global::G.ChatStreamEndEvent? Type56 { get; set; } /// /// /// - public global::G.ToolCallDelta? Type57 { get; set; } + public global::G.ChatStreamEndEventVariant2? Type57 { get; set; } /// /// /// - public global::G.ChatToolCallsChunkEvent? Type58 { get; set; } + public global::G.ChatStreamEndEventVariant2FinishReason? Type58 { get; set; } /// /// /// - public global::G.ChatToolCallsChunkEventVariant2? Type59 { get; set; } + public global::G.ToolCallDelta? Type59 { get; set; } /// /// /// - public global::G.StreamedChatResponse? Type60 { get; set; } + public global::G.ChatToolCallsChunkEvent? Type60 { get; set; } /// /// /// - public global::G.TextContent? Type61 { get; set; } + public global::G.ChatToolCallsChunkEventVariant2? Type61 { get; set; } /// /// /// - public global::G.TextContentType? Type62 { get; set; } + public global::G.StreamedChatResponse? Type62 { get; set; } /// /// /// - public global::G.Content? Type63 { get; set; } + public global::G.TextContent? Type63 { get; set; } /// /// /// - public global::G.UserMessage? Type64 { get; set; } + public global::G.TextContentType? Type64 { get; set; } /// /// /// - public global::G.UserMessageRole? Type65 { get; set; } + public global::G.Content? Type65 { get; set; } /// /// /// - public global::G.OneOf>? Type66 { get; set; } + public global::G.UserMessage? Type66 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type67 { get; set; } + public global::G.UserMessageRole? Type67 { get; set; } /// /// /// - public global::G.ToolCallV2? Type68 { get; set; } + public global::G.OneOf>? Type68 { get; set; } /// /// /// - public global::G.ToolCallV2Type? Type69 { get; set; } + public global::System.Collections.Generic.IList? Type69 { get; set; } /// /// /// - public global::G.ToolCallV2Function? Type70 { get; set; } + public global::G.ToolCallV2? Type70 { get; set; } /// /// /// - public global::G.ToolSource? Type71 { get; set; } + public global::G.ToolCallV2Type? Type71 { get; set; } /// /// /// - public global::G.DocumentSource? Type72 { get; set; } + public global::G.ToolCallV2Function? Type72 { get; set; } /// /// /// - public global::G.Source? Type73 { get; set; } + public global::G.ToolSource? Type73 { get; set; } /// /// /// - public global::G.Citation? Type74 { get; set; } + public global::G.DocumentSource? Type74 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type75 { get; set; } + public global::G.Source? Type75 { get; set; } /// /// /// - public global::G.AssistantMessage? Type76 { get; set; } + public global::G.Citation? Type76 { get; set; } /// /// /// - public global::G.AssistantMessageRole? Type77 { get; set; } + public global::System.Collections.Generic.IList? Type77 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type78 { get; set; } + public global::G.AssistantMessage? Type78 { get; set; } /// /// /// - public global::G.OneOf>>? Type79 { get; set; } + public global::G.AssistantMessageRole? Type79 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type80 { get; set; } + public global::System.Collections.Generic.IList? Type80 { get; set; } /// /// /// - public global::G.OneOf? Type81 { get; set; } + public global::G.OneOf>>? Type81 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type82 { get; set; } + public global::System.Collections.Generic.IList>? Type82 { get; set; } /// /// /// - public global::G.SystemMessage? Type83 { get; set; } + public global::G.OneOf? Type83 { get; set; } /// /// /// - public global::G.SystemMessageRole? Type84 { get; set; } + public global::System.Collections.Generic.IList? Type84 { get; set; } /// /// /// - public global::G.Document? Type85 { get; set; } + public global::G.SystemMessage? Type85 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type86 { get; set; } + public global::G.SystemMessageRole? Type86 { get; set; } /// /// /// - public global::G.DocumentContent? Type87 { get; set; } + public global::G.Document? Type87 { get; set; } /// /// /// - public global::G.DocumentContentType? Type88 { get; set; } + public global::System.Collections.Generic.Dictionary? Type88 { get; set; } /// /// /// - public global::G.ToolContent? Type89 { get; set; } + public global::G.DocumentContent? Type89 { get; set; } /// /// /// - public global::G.ToolContentDiscriminator? Type90 { get; set; } + public global::G.DocumentContentType? Type90 { get; set; } /// /// /// - public global::G.ToolContentDiscriminatorType? Type91 { get; set; } + public global::G.ToolContent? Type91 { get; set; } /// /// /// - public global::G.ToolMessageV2? Type92 { get; set; } + public global::G.ToolContentDiscriminator? Type92 { get; set; } /// /// /// - public global::G.ToolMessageV2Role? Type93 { get; set; } + public global::G.ToolContentDiscriminatorType? Type93 { get; set; } /// /// /// - public global::G.OneOf>? Type94 { get; set; } + public global::G.ToolMessageV2? Type94 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type95 { get; set; } + public global::G.ToolMessageV2Role? Type95 { get; set; } /// /// /// - public global::G.ChatMessageV2? Type96 { get; set; } + public global::G.OneOf>? Type96 { get; set; } /// /// /// - public global::G.ChatMessageV2Discriminator? Type97 { get; set; } + public global::System.Collections.Generic.IList? Type97 { get; set; } /// /// /// - public global::G.ChatMessageV2DiscriminatorRole? Type98 { get; set; } + public global::G.ChatMessageV2? Type98 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type99 { get; set; } + public global::G.ChatMessageV2Discriminator? Type99 { get; set; } /// /// /// - public global::G.ToolV2? Type100 { get; set; } + public global::G.ChatMessageV2DiscriminatorRole? Type100 { get; set; } /// /// /// - public global::G.ToolV2Type? Type101 { get; set; } + public global::System.Collections.Generic.IList? Type101 { get; set; } /// /// /// - public global::G.ToolV2Function? Type102 { get; set; } + public global::G.ToolV2? Type102 { get; set; } /// /// /// - public global::G.CitationOptions? Type103 { get; set; } + public global::G.ToolV2Type? Type103 { get; set; } /// /// /// - public global::G.CitationOptionsMode? Type104 { get; set; } + public global::G.ToolV2Function? Type104 { get; set; } /// /// /// - public global::G.ResponseFormatTypeV2? Type105 { get; set; } + public global::G.CitationOptions? Type105 { get; set; } /// /// /// - public global::G.TextResponseFormatV2? Type106 { get; set; } + public global::G.CitationOptionsMode? Type106 { get; set; } /// /// /// - public global::G.JsonResponseFormatV2? Type107 { get; set; } + public global::G.ResponseFormatTypeV2? Type107 { get; set; } /// /// /// - public global::G.ResponseFormatV2? Type108 { get; set; } + public global::G.TextResponseFormatV2? Type108 { get; set; } /// /// /// - public global::G.ResponseFormatV2Discriminator? Type109 { get; set; } + public global::G.JsonResponseFormatV2? Type109 { get; set; } /// /// /// - public global::G.ResponseFormatV2DiscriminatorType? Type110 { get; set; } + public global::G.ResponseFormatV2? Type110 { get; set; } /// /// /// - public global::G.ChatFinishReason? Type111 { get; set; } + public global::G.ResponseFormatV2Discriminator? Type111 { get; set; } /// /// /// - public global::G.AssistantMessageResponse? Type112 { get; set; } + public global::G.ResponseFormatV2DiscriminatorType? Type112 { get; set; } /// /// /// - public global::G.AssistantMessageResponseRole? Type113 { get; set; } + public global::G.ChatFinishReason? Type113 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type114 { get; set; } + public global::G.AssistantMessageResponse? Type114 { get; set; } /// /// /// - public global::G.ContentItem? Type115 { get; set; } + public global::G.AssistantMessageResponseRole? Type115 { get; set; } /// /// /// - public global::G.AssistantMessageResponseContentItemDiscriminator? Type116 { get; set; } + public global::System.Collections.Generic.IList? Type116 { get; set; } /// /// /// - public global::G.AssistantMessageResponseContentItemDiscriminatorType? Type117 { get; set; } + public global::G.ContentItem? Type117 { get; set; } /// /// /// - public global::G.Usage? Type118 { get; set; } + public global::G.AssistantMessageResponseContentItemDiscriminator? Type118 { get; set; } /// /// /// - public global::G.UsageBilledUnits? Type119 { get; set; } + public global::G.AssistantMessageResponseContentItemDiscriminatorType? Type119 { get; set; } /// /// /// - public global::G.UsageTokens? Type120 { get; set; } + public global::G.Usage? Type120 { get; set; } /// /// /// - public global::G.ChatResponse? Type121 { get; set; } + public global::G.UsageBilledUnits? Type121 { get; set; } /// /// /// - public global::G.ChatStreamEventType? Type122 { get; set; } + public global::G.UsageTokens? Type122 { get; set; } /// /// /// - public global::G.ChatStreamEventTypeType? Type123 { get; set; } + public global::G.ChatResponse? Type123 { get; set; } /// /// /// - public global::G.ChatMessageStartEvent? Type124 { get; set; } + public global::G.ChatStreamEventType? Type124 { get; set; } /// /// /// - public global::G.ChatMessageStartEventVariant2? Type125 { get; set; } + public global::G.ChatStreamEventTypeType? Type125 { get; set; } /// /// /// - public global::G.ChatMessageStartEventVariant2Delta? Type126 { get; set; } + public global::G.ChatMessageStartEvent? Type126 { get; set; } /// /// /// - public global::G.ChatMessageStartEventVariant2DeltaMessage? Type127 { get; set; } + public global::G.ChatMessageStartEventVariant2? Type127 { get; set; } /// /// /// - public global::G.ChatMessageStartEventVariant2DeltaMessageRole? Type128 { get; set; } + public global::G.ChatMessageStartEventVariant2Delta? Type128 { get; set; } /// /// /// - public global::G.ChatContentStartEvent? Type129 { get; set; } + public global::G.ChatMessageStartEventVariant2DeltaMessage? Type129 { get; set; } /// /// /// - public global::G.ChatContentStartEventVariant2? Type130 { get; set; } + public global::G.ChatMessageStartEventVariant2DeltaMessageRole? Type130 { get; set; } /// /// /// - public global::G.ChatContentStartEventVariant2Delta? Type131 { get; set; } + public global::G.ChatContentStartEvent? Type131 { get; set; } /// /// /// - public global::G.ChatContentStartEventVariant2DeltaMessage? Type132 { get; set; } + public global::G.ChatContentStartEventVariant2? Type132 { get; set; } /// /// /// - public global::G.ChatContentStartEventVariant2DeltaMessageContent? Type133 { get; set; } + public global::G.ChatContentStartEventVariant2Delta? Type133 { get; set; } /// /// /// - public global::G.ChatContentStartEventVariant2DeltaMessageContentType? Type134 { get; set; } + public global::G.ChatContentStartEventVariant2DeltaMessage? Type134 { get; set; } /// /// /// - public global::G.ChatContentDeltaEvent? Type135 { get; set; } + public global::G.ChatContentStartEventVariant2DeltaMessageContent? Type135 { get; set; } /// /// /// - public global::G.ChatContentDeltaEventVariant2? Type136 { get; set; } + public global::G.ChatContentStartEventVariant2DeltaMessageContentType? Type136 { get; set; } /// /// /// - public global::G.ChatContentDeltaEventVariant2Delta? Type137 { get; set; } + public global::G.ChatContentDeltaEvent? Type137 { get; set; } /// /// /// - public global::G.ChatContentDeltaEventVariant2DeltaMessage? Type138 { get; set; } + public global::G.ChatContentDeltaEventVariant2? Type138 { get; set; } /// /// /// - public global::G.ChatContentDeltaEventVariant2DeltaMessageContent? Type139 { get; set; } + public global::G.ChatContentDeltaEventVariant2Delta? Type139 { get; set; } /// /// /// - public global::G.ChatContentEndEvent? Type140 { get; set; } + public global::G.ChatContentDeltaEventVariant2DeltaMessage? Type140 { get; set; } /// /// /// - public global::G.ChatContentEndEventVariant2? Type141 { get; set; } + public global::G.ChatContentDeltaEventVariant2DeltaMessageContent? Type141 { get; set; } /// /// /// - public global::G.ChatToolPlanDeltaEvent? Type142 { get; set; } + public global::G.ChatContentEndEvent? Type142 { get; set; } /// /// /// - public global::G.ChatToolPlanDeltaEventVariant2? Type143 { get; set; } + public global::G.ChatContentEndEventVariant2? Type143 { get; set; } /// /// /// - public global::G.ChatToolPlanDeltaEventVariant2Delta? Type144 { get; set; } + public global::G.ChatToolPlanDeltaEvent? Type144 { get; set; } /// /// /// - public global::G.ChatToolCallStartEvent? Type145 { get; set; } + public global::G.ChatToolPlanDeltaEventVariant2? Type145 { get; set; } /// /// /// - public global::G.ChatToolCallStartEventVariant2? Type146 { get; set; } + public global::G.ChatToolPlanDeltaEventVariant2Delta? Type146 { get; set; } /// /// /// - public global::G.ChatToolCallStartEventVariant2Delta? Type147 { get; set; } + public global::G.ChatToolCallStartEvent? Type147 { get; set; } /// /// /// - public global::G.ChatToolCallStartEventVariant2DeltaToolCall? Type148 { get; set; } + public global::G.ChatToolCallStartEventVariant2? Type148 { get; set; } /// /// /// - public global::G.ChatToolCallStartEventVariant2DeltaToolCallType? Type149 { get; set; } + public global::G.ChatToolCallStartEventVariant2Delta? Type149 { get; set; } /// /// /// - public global::G.ChatToolCallStartEventVariant2DeltaToolCallFunction? Type150 { get; set; } + public global::G.ChatToolCallStartEventVariant2DeltaToolCall? Type150 { get; set; } /// /// /// - public global::G.ChatToolCallDeltaEvent? Type151 { get; set; } + public global::G.ChatToolCallStartEventVariant2DeltaToolCallType? Type151 { get; set; } /// /// /// - public global::G.ChatToolCallDeltaEventVariant2? Type152 { get; set; } + public global::G.ChatToolCallStartEventVariant2DeltaToolCallFunction? Type152 { get; set; } /// /// /// - public global::G.ChatToolCallDeltaEventVariant2Delta? Type153 { get; set; } + public global::G.ChatToolCallDeltaEvent? Type153 { get; set; } /// /// /// - public global::G.ChatToolCallDeltaEventVariant2DeltaToolCall? Type154 { get; set; } + public global::G.ChatToolCallDeltaEventVariant2? Type154 { get; set; } /// /// /// - public global::G.ChatToolCallDeltaEventVariant2DeltaToolCallFunction? Type155 { get; set; } + public global::G.ChatToolCallDeltaEventVariant2Delta? Type155 { get; set; } /// /// /// - public global::G.ChatToolCallEndEvent? Type156 { get; set; } + public global::G.ChatToolCallDeltaEventVariant2DeltaToolCall? Type156 { get; set; } /// /// /// - public global::G.ChatToolCallEndEventVariant2? Type157 { get; set; } + public global::G.ChatToolCallDeltaEventVariant2DeltaToolCallFunction? Type157 { get; set; } /// /// /// - public global::G.CitationStartEvent? Type158 { get; set; } + public global::G.ChatToolCallEndEvent? Type158 { get; set; } /// /// /// - public global::G.CitationStartEventVariant2? Type159 { get; set; } + public global::G.ChatToolCallEndEventVariant2? Type159 { get; set; } /// /// /// - public global::G.CitationStartEventVariant2Delta? Type160 { get; set; } + public global::G.CitationStartEvent? Type160 { get; set; } /// /// /// - public global::G.CitationStartEventVariant2DeltaMessage? Type161 { get; set; } + public global::G.CitationStartEventVariant2? Type161 { get; set; } /// /// /// - public global::G.CitationEndEvent? Type162 { get; set; } + public global::G.CitationStartEventVariant2Delta? Type162 { get; set; } /// /// /// - public global::G.CitationEndEventVariant2? Type163 { get; set; } + public global::G.CitationStartEventVariant2DeltaMessage? Type163 { get; set; } /// /// /// - public global::G.ChatMessageEndEvent? Type164 { get; set; } + public global::G.CitationEndEvent? Type164 { get; set; } /// /// /// - public global::G.ChatMessageEndEventVariant2? Type165 { get; set; } + public global::G.CitationEndEventVariant2? Type165 { get; set; } /// /// /// - public global::G.ChatMessageEndEventVariant2Delta? Type166 { get; set; } + public global::G.ChatMessageEndEvent? Type166 { get; set; } /// /// /// - public global::G.StreamedChatResponseV2? Type167 { get; set; } + public global::G.ChatMessageEndEventVariant2? Type167 { get; set; } /// /// /// - public global::G.SingleGeneration? Type168 { get; set; } + public global::G.ChatMessageEndEventVariant2Delta? Type168 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type169 { get; set; } + public global::G.StreamedChatResponseV2? Type169 { get; set; } /// /// /// - public global::G.SingleGenerationTokenLikelihood? Type170 { get; set; } + public global::G.SingleGeneration? Type170 { get; set; } /// /// /// - public global::G.Generation? Type171 { get; set; } + public global::System.Collections.Generic.IList? Type171 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type172 { get; set; } + public global::G.SingleGenerationTokenLikelihood? Type172 { get; set; } /// /// /// - public global::G.GenerateStreamEvent? Type173 { get; set; } + public global::G.Generation? Type173 { get; set; } /// /// /// - public global::G.GenerateStreamEventEventType? Type174 { get; set; } + public global::System.Collections.Generic.IList? Type174 { get; set; } /// /// /// - public global::G.GenerateStreamText? Type175 { get; set; } + public global::G.GenerateStreamEvent? Type175 { get; set; } /// /// /// - public global::G.GenerateStreamTextVariant2? Type176 { get; set; } + public global::G.GenerateStreamEventEventType? Type176 { get; set; } /// /// /// - public global::G.SingleGenerationInStream? Type177 { get; set; } + public global::G.GenerateStreamText? Type177 { get; set; } /// /// /// - public global::G.GenerateStreamEnd? Type178 { get; set; } + public global::G.GenerateStreamTextVariant2? Type178 { get; set; } /// /// /// - public global::G.GenerateStreamEndVariant2? Type179 { get; set; } + public global::G.SingleGenerationInStream? Type179 { get; set; } /// /// /// - public global::G.GenerateStreamEndVariant2Response? Type180 { get; set; } + public global::G.GenerateStreamEnd? Type180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type181 { get; set; } + public global::G.GenerateStreamEndVariant2? Type181 { get; set; } /// /// /// - public global::G.GenerateStreamError? Type182 { get; set; } + public global::G.GenerateStreamEndVariant2Response? Type182 { get; set; } /// /// /// - public global::G.GenerateStreamErrorVariant2? Type183 { get; set; } + public global::System.Collections.Generic.IList? Type183 { get; set; } /// /// /// - public global::G.GenerateStreamedResponse? Type184 { get; set; } + public global::G.GenerateStreamError? Type184 { get; set; } /// /// /// - public global::G.EmbedInputType? Type185 { get; set; } + public global::G.GenerateStreamErrorVariant2? Type185 { get; set; } /// /// /// - public global::G.EmbeddingType? Type186 { get; set; } + public global::G.GenerateStreamedResponse? Type186 { get; set; } /// /// /// - public global::G.EmbedFloatsResponse? Type187 { get; set; } + public global::G.EmbedInputType? Type187 { get; set; } /// /// /// - public global::G.EmbedFloatsResponseResponseType? Type188 { get; set; } + public global::G.EmbeddingType? Type188 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type189 { get; set; } + public global::G.EmbedFloatsResponse? Type189 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type190 { get; set; } + public global::G.EmbedFloatsResponseResponseType? Type190 { get; set; } /// /// /// - public global::G.EmbedByTypeResponse? Type191 { get; set; } + public global::System.Collections.Generic.IList>? Type191 { get; set; } /// /// /// - public global::G.EmbedByTypeResponseResponseType? Type192 { get; set; } + public global::System.Collections.Generic.IList? Type192 { get; set; } /// /// /// - public global::G.EmbedByTypeResponseEmbeddings? Type193 { get; set; } + public global::G.EmbedByTypeResponse? Type193 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type194 { get; set; } + public global::G.EmbedByTypeResponseResponseType? Type194 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type195 { get; set; } + public global::G.EmbedByTypeResponseEmbeddings? Type195 { get; set; } /// /// /// - public global::G.EmbedJob? Type196 { get; set; } + public global::System.Collections.Generic.IList>? Type196 { get; set; } /// /// /// - public global::G.EmbedJobStatus? Type197 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// /// /// - public global::System.DateTime? Type198 { get; set; } + public global::G.EmbedJob? Type198 { get; set; } /// /// /// - public global::G.EmbedJobTruncate? Type199 { get; set; } + public global::G.EmbedJobStatus? Type199 { get; set; } /// /// /// - public global::G.ListEmbedJobResponse? Type200 { get; set; } + public global::System.DateTime? Type200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type201 { get; set; } + public global::G.EmbedJobTruncate? Type201 { get; set; } /// /// /// - public global::G.CreateEmbedJobRequest? Type202 { get; set; } + public global::G.ListEmbedJobResponse? Type202 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type203 { get; set; } + public global::System.Collections.Generic.IList? Type203 { get; set; } /// /// /// - public global::G.CreateEmbedJobRequestTruncate? Type204 { get; set; } + public global::G.CreateEmbedJobRequest? Type204 { get; set; } /// /// /// - public global::G.CreateEmbedJobResponse? Type205 { get; set; } + public global::System.Collections.Generic.IList? Type205 { get; set; } /// /// /// - public global::G.RerankDocument? Type206 { get; set; } + public global::G.CreateEmbedJobRequestTruncate? Type206 { get; set; } /// /// /// - public global::G.ClassifyExample? Type207 { get; set; } + public global::G.CreateEmbedJobResponse? Type207 { get; set; } /// /// /// - public global::G.DatasetValidationStatus? Type208 { get; set; } + public global::G.RerankDocument? Type208 { get; set; } /// /// /// - public global::G.DatasetType? Type209 { get; set; } + public global::G.ClassifyExample? Type209 { get; set; } /// /// /// - public global::G.DatasetPart? Type210 { get; set; } + public global::G.DatasetValidationStatus? Type210 { get; set; } /// /// /// - public global::G.ParseInfo? Type211 { get; set; } + public global::G.DatasetType? Type211 { get; set; } /// /// /// - public global::G.RerankerDataMetrics? Type212 { get; set; } + public global::G.DatasetPart? Type212 { get; set; } /// /// /// - public global::G.ChatDataMetrics? Type213 { get; set; } + public global::G.ParseInfo? Type213 { get; set; } /// /// /// - public global::G.LabelMetric? Type214 { get; set; } + public global::G.RerankerDataMetrics? Type214 { get; set; } /// /// /// - public global::G.ClassifyDataMetrics? Type215 { get; set; } + public global::G.ChatDataMetrics? Type215 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type216 { get; set; } + public global::G.LabelMetric? Type216 { get; set; } /// /// /// - public global::G.FinetuneDatasetMetrics? Type217 { get; set; } + public global::G.ClassifyDataMetrics? Type217 { get; set; } /// /// /// - public global::G.Metrics? Type218 { get; set; } + public global::System.Collections.Generic.IList? Type218 { get; set; } /// /// /// - public global::G.Dataset? Type219 { get; set; } + public global::G.FinetuneDatasetMetrics? Type219 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type220 { get; set; } + public global::G.Metrics? Type220 { get; set; } /// /// /// - public global::G.ConnectorOAuth? Type221 { get; set; } + public global::G.Dataset? Type221 { get; set; } /// /// /// - public global::G.Connector? Type222 { get; set; } + public global::System.Collections.Generic.IList? Type222 { get; set; } /// /// /// - public global::G.ConnectorAuthStatus? Type223 { get; set; } + public global::G.ConnectorOAuth? Type223 { get; set; } /// /// /// - public global::G.ListConnectorsResponse? Type224 { get; set; } + public global::G.Connector? Type224 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type225 { get; set; } + public global::G.ConnectorAuthStatus? Type225 { get; set; } /// /// /// - public global::G.CreateConnectorOAuth? Type226 { get; set; } + public global::G.ListConnectorsResponse? Type226 { get; set; } /// /// /// - public global::G.AuthTokenType? Type227 { get; set; } + public global::System.Collections.Generic.IList? Type227 { get; set; } /// /// /// - public global::G.CreateConnectorServiceAuth? Type228 { get; set; } + public global::G.CreateConnectorOAuth? Type228 { get; set; } /// /// /// - public global::G.CreateConnectorRequest? Type229 { get; set; } + public global::G.AuthTokenType? Type229 { get; set; } /// /// /// - public global::G.CreateConnectorResponse? Type230 { get; set; } + public global::G.CreateConnectorServiceAuth? Type230 { get; set; } /// /// /// - public global::G.GetConnectorResponse? Type231 { get; set; } + public global::G.CreateConnectorRequest? Type231 { get; set; } /// /// /// - public global::G.UpdateConnectorRequest? Type232 { get; set; } + public global::G.CreateConnectorResponse? Type232 { get; set; } /// /// /// - public global::G.UpdateConnectorResponse? Type233 { get; set; } + public global::G.GetConnectorResponse? Type233 { get; set; } /// /// /// - public global::G.OAuthAuthorizeResponse? Type234 { get; set; } + public global::G.UpdateConnectorRequest? Type234 { get; set; } /// /// /// - public global::G.ConnectorLog? Type235 { get; set; } + public global::G.UpdateConnectorResponse? Type235 { get; set; } /// /// /// - public global::G.GetConnectorsLogsResponse? Type236 { get; set; } + public global::G.OAuthAuthorizeResponse? Type236 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type237 { get; set; } + public global::G.ConnectorLog? Type237 { get; set; } /// /// /// - public global::G.TokenLikelihood? Type238 { get; set; } + public global::G.GetConnectorsLogsResponse? Type238 { get; set; } /// /// /// - public global::G.LogLikelihoodResponse? Type239 { get; set; } + public global::System.Collections.Generic.IList? Type239 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type240 { get; set; } + public global::G.TokenLikelihood? Type240 { get; set; } /// /// /// - public global::G.Cluster? Type241 { get; set; } + public global::G.LogLikelihoodResponse? Type241 { get; set; } /// /// /// - public global::G.GetClusterJobResponse? Type242 { get; set; } + public global::System.Collections.Generic.IList? Type242 { get; set; } /// /// /// - public global::G.GetClusterJobResponseStatus? Type243 { get; set; } + public global::G.Cluster? Type243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type244 { get; set; } + public global::G.GetClusterJobResponse? Type244 { get; set; } /// /// /// - public global::G.ListClusterJobsResponse? Type245 { get; set; } + public global::G.GetClusterJobResponseStatus? Type245 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type246 { get; set; } + public global::System.Collections.Generic.IList? Type246 { get; set; } /// /// /// - public global::G.CreateClusterJobRequest? Type247 { get; set; } + public global::G.ListClusterJobsResponse? Type247 { get; set; } /// /// /// - public global::G.CreateClusterJobResponse? Type248 { get; set; } + public global::System.Collections.Generic.IList? Type248 { get; set; } /// /// /// - public global::G.UpdateClusterJobRequest? Type249 { get; set; } + public global::G.CreateClusterJobRequest? Type249 { get; set; } /// /// /// - public global::G.UpdateClusterJobRequestStatus? Type250 { get; set; } + public global::G.CreateClusterJobResponse? Type250 { get; set; } /// /// /// - public global::G.UpdateClusterJobResponse? Type251 { get; set; } + public global::G.UpdateClusterJobRequest? Type251 { get; set; } /// /// /// - public global::G.CompatibleEndpoint? Type252 { get; set; } + public global::G.UpdateClusterJobRequestStatus? Type252 { get; set; } /// /// /// - public global::G.GetModelResponse? Type253 { get; set; } + public global::G.UpdateClusterJobResponse? Type253 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type254 { get; set; } + public global::G.CompatibleEndpoint? Type254 { get; set; } /// /// /// - public global::G.ListModelsResponse? Type255 { get; set; } + public global::G.GetModelResponse? Type255 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type256 { get; set; } + public global::System.Collections.Generic.IList? Type256 { get; set; } /// /// /// - public global::G.BaseType? Type257 { get; set; } + public global::G.ListModelsResponse? Type257 { get; set; } /// /// /// - public global::G.Strategy? Type258 { get; set; } + public global::System.Collections.Generic.IList? Type258 { get; set; } /// /// /// - public global::G.BaseModel? Type259 { get; set; } + public global::G.BaseType? Type259 { get; set; } /// /// /// - public global::G.LoraTargetModules? Type260 { get; set; } + public global::G.Strategy? Type260 { get; set; } /// /// /// - public global::G.Hyperparameters? Type261 { get; set; } + public global::G.BaseModel? Type261 { get; set; } /// /// /// - public global::G.WandbConfig? Type262 { get; set; } + public global::G.LoraTargetModules? Type262 { get; set; } /// /// /// - public global::G.Settings? Type263 { get; set; } + public global::G.Hyperparameters? Type263 { get; set; } /// /// /// - public global::G.Status? Type264 { get; set; } + public global::G.WandbConfig? Type264 { get; set; } /// /// /// - public global::G.FinetunedModel? Type265 { get; set; } + public global::G.Settings? Type265 { get; set; } /// /// /// - public global::G.ListFinetunedModelsResponse? Type266 { get; set; } + public global::G.Status? Type266 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type267 { get; set; } + public global::G.FinetunedModel? Type267 { get; set; } /// /// /// - public global::G.Error? Type268 { get; set; } + public global::G.ListFinetunedModelsResponse? Type268 { get; set; } /// /// /// - public global::G.CreateFinetunedModelResponse? Type269 { get; set; } + public global::System.Collections.Generic.IList? Type269 { get; set; } /// /// /// - public global::G.GetFinetunedModelResponse? Type270 { get; set; } + public global::G.Error? Type270 { get; set; } /// /// /// - public global::G.UpdateFinetunedModelResponse? Type271 { get; set; } + public global::G.CreateFinetunedModelResponse? Type271 { get; set; } /// /// /// - public global::G.Event? Type272 { get; set; } + public global::G.GetFinetunedModelResponse? Type272 { get; set; } /// /// /// - public global::G.ListEventsResponse? Type273 { get; set; } + public global::G.UpdateFinetunedModelResponse? Type273 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type274 { get; set; } + public global::G.Event? Type274 { get; set; } /// /// /// - public global::G.TrainingStepMetrics? Type275 { get; set; } + public global::G.ListEventsResponse? Type275 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type276 { get; set; } + public global::System.Collections.Generic.IList? Type276 { get; set; } /// /// /// - public global::G.ListTrainingStepMetricsResponse? Type277 { get; set; } + public global::G.TrainingStepMetrics? Type277 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type278 { get; set; } + public global::System.Collections.Generic.Dictionary? Type278 { get; set; } /// /// /// - public global::G.ChatRequest? Type279 { get; set; } + public global::G.ListTrainingStepMetricsResponse? Type279 { get; set; } /// /// /// - public global::G.ChatRequestPromptTruncation? Type280 { get; set; } + public global::System.Collections.Generic.IList? Type280 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type281 { get; set; } + public global::G.ChatRequest? Type281 { get; set; } /// /// /// - public global::G.ChatRequestCitationQuality? Type282 { get; set; } + public global::G.ChatRequestPromptTruncation? Type282 { get; set; } /// /// /// - public float? Type283 { get; set; } + public global::System.Collections.Generic.IList? Type283 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type284 { get; set; } + public global::G.ChatRequestCitationQuality? Type284 { get; set; } /// /// /// - public global::G.ChatRequestSafetyMode? Type285 { get; set; } + public float? Type285 { get; set; } /// /// /// - public global::G.Chatv2Request? Type286 { get; set; } + public global::System.Collections.Generic.IList? Type286 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type287 { get; set; } + public global::G.ChatRequestSafetyMode? Type287 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type288 { get; set; } + public global::G.Chatv2Request? Type288 { get; set; } /// /// /// - public global::G.OneOf? Type289 { get; set; } + public global::System.Collections.Generic.IList? Type289 { get; set; } /// /// /// - public global::G.Chatv2RequestSafetyMode? Type290 { get; set; } + public global::System.Collections.Generic.IList>? Type290 { get; set; } /// /// /// - public global::G.GenerateRequest? Type291 { get; set; } + public global::G.OneOf? Type291 { get; set; } /// /// /// - public global::G.GenerateRequestTruncate? Type292 { get; set; } + public global::G.Chatv2RequestSafetyMode? Type292 { get; set; } /// /// /// - public global::G.GenerateRequestReturnLikelihoods? Type293 { get; set; } + public global::G.GenerateRequest? Type293 { get; set; } /// /// /// - public global::G.EmbedRequest? Type294 { get; set; } + public global::G.GenerateRequestTruncate? Type294 { get; set; } /// /// /// - public global::G.EmbedRequestTruncate? Type295 { get; set; } + public global::G.GenerateRequestReturnLikelihoods? Type295 { get; set; } /// /// /// - public global::G.Embedv2Request? Type296 { get; set; } + public global::G.EmbedRequest? Type296 { get; set; } /// /// /// - public global::G.Embedv2RequestTruncate? Type297 { get; set; } + public global::G.EmbedRequestTruncate? Type297 { get; set; } /// /// /// - public global::G.RerankRequest? Type298 { get; set; } + public global::G.Embedv2Request? Type298 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type299 { get; set; } + public global::G.Embedv2RequestTruncate? Type299 { get; set; } /// /// /// - public global::G.OneOf? Type300 { get; set; } + public global::G.RerankRequest? Type300 { get; set; } /// /// /// - public global::G.Rerankv2Request? Type301 { get; set; } + public global::System.Collections.Generic.IList>? Type301 { get; set; } /// /// /// - public global::G.ClassifyRequest? Type302 { get; set; } + public global::G.OneOf? Type302 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type303 { get; set; } + public global::G.Rerankv2Request? Type303 { get; set; } /// /// /// - public global::G.ClassifyRequestTruncate? Type304 { get; set; } + public global::G.ClassifyRequest? Type304 { get; set; } /// /// /// - public global::G.CreateDatasetRequest? Type305 { get; set; } + public global::System.Collections.Generic.IList? Type305 { get; set; } /// /// /// - public byte[]? Type306 { get; set; } + public global::G.ClassifyRequestTruncate? Type306 { get; set; } /// /// /// - public global::G.SummarizeRequest? Type307 { get; set; } + public global::G.CreateDatasetRequest? Type307 { get; set; } /// /// /// - public global::G.SummarizeRequestLength? Type308 { get; set; } + public byte[]? Type308 { get; set; } /// /// /// - public global::G.SummarizeRequestFormat? Type309 { get; set; } + public global::G.SummarizeRequest? Type309 { get; set; } /// /// /// - public global::G.SummarizeRequestExtractiveness? Type310 { get; set; } + public global::G.SummarizeRequestLength? Type310 { get; set; } /// /// /// - public global::G.TokenizeRequest? Type311 { get; set; } + public global::G.SummarizeRequestFormat? Type311 { get; set; } /// /// /// - public global::G.DetokenizeRequest? Type312 { get; set; } + public global::G.SummarizeRequestExtractiveness? Type312 { get; set; } /// /// /// - public global::G.UpdateFinetunedModelRequest? Type313 { get; set; } + public global::G.TokenizeRequest? Type313 { get; set; } /// /// /// - public global::G.ChatAccepts? Type314 { get; set; } + public global::G.DetokenizeRequest? Type314 { get; set; } /// /// /// - public global::G.OneOf? Type315 { get; set; } + public global::G.UpdateFinetunedModelRequest? Type315 { get; set; } /// /// /// - public global::G.ChatResponse3? Type316 { get; set; } + public global::G.ChatAccepts? Type316 { get; set; } /// /// /// - public global::G.ChatResponse4? Type317 { get; set; } + public global::G.OneOf? Type317 { get; set; } /// /// /// - public global::G.ChatResponse5? Type318 { get; set; } + public global::G.ChatResponse3? Type318 { get; set; } /// /// /// - public global::G.ChatResponse6? Type319 { get; set; } + public global::G.ChatResponse4? Type319 { get; set; } /// /// /// - public global::G.ChatResponse7? Type320 { get; set; } + public global::G.ChatResponse5? Type320 { get; set; } /// /// /// - public global::G.ChatResponse8? Type321 { get; set; } + public global::G.ChatResponse6? Type321 { get; set; } /// /// /// - public global::G.ChatResponse9? Type322 { get; set; } + public global::G.ChatResponse7? Type322 { get; set; } /// /// /// - public global::G.ChatResponse10? Type323 { get; set; } + public global::G.ChatResponse8? Type323 { get; set; } /// /// /// - public global::G.ChatResponse11? Type324 { get; set; } + public global::G.ChatResponse9? Type324 { get; set; } /// /// /// - public global::G.ChatResponse12? Type325 { get; set; } + public global::G.ChatResponse10? Type325 { get; set; } /// /// /// - public global::G.ChatResponse13? Type326 { get; set; } + public global::G.ChatResponse11? Type326 { get; set; } /// /// /// - public global::G.ChatResponse14? Type327 { get; set; } + public global::G.ChatResponse12? Type327 { get; set; } /// /// /// - public global::G.OneOf? Type328 { get; set; } + public global::G.ChatResponse13? Type328 { get; set; } /// /// /// - public global::G.Chatv2Response2? Type329 { get; set; } + public global::G.ChatResponse14? Type329 { get; set; } /// /// /// - public global::G.Chatv2Response3? Type330 { get; set; } + public global::G.OneOf? Type330 { get; set; } /// /// /// - public global::G.Chatv2Response4? Type331 { get; set; } + public global::G.Chatv2Response2? Type331 { get; set; } /// /// /// - public global::G.Chatv2Response5? Type332 { get; set; } + public global::G.Chatv2Response3? Type332 { get; set; } /// /// /// - public global::G.Chatv2Response6? Type333 { get; set; } + public global::G.Chatv2Response4? Type333 { get; set; } /// /// /// - public global::G.Chatv2Response7? Type334 { get; set; } + public global::G.Chatv2Response5? Type334 { get; set; } /// /// /// - public global::G.Chatv2Response8? Type335 { get; set; } + public global::G.Chatv2Response6? Type335 { get; set; } /// /// /// - public global::G.Chatv2Response9? Type336 { get; set; } + public global::G.Chatv2Response7? Type336 { get; set; } /// /// /// - public global::G.Chatv2Response10? Type337 { get; set; } + public global::G.Chatv2Response8? Type337 { get; set; } /// /// /// - public global::G.Chatv2Response11? Type338 { get; set; } + public global::G.Chatv2Response9? Type338 { get; set; } /// /// /// - public global::G.Chatv2Response12? Type339 { get; set; } + public global::G.Chatv2Response10? Type339 { get; set; } /// /// /// - public global::G.Chatv2Response13? Type340 { get; set; } + public global::G.Chatv2Response11? Type340 { get; set; } /// /// /// - public global::G.GenerateResponse? Type341 { get; set; } + public global::G.Chatv2Response12? Type341 { get; set; } /// /// /// - public global::G.GenerateResponse2? Type342 { get; set; } + public global::G.Chatv2Response13? Type342 { get; set; } /// /// /// - public global::G.GenerateResponse3? Type343 { get; set; } + public global::G.GenerateResponse? Type343 { get; set; } /// /// /// - public global::G.GenerateResponse4? Type344 { get; set; } + public global::G.GenerateResponse2? Type344 { get; set; } /// /// /// - public global::G.GenerateResponse5? Type345 { get; set; } + public global::G.GenerateResponse3? Type345 { get; set; } /// /// /// - public global::G.GenerateResponse6? Type346 { get; set; } + public global::G.GenerateResponse4? Type346 { get; set; } /// /// /// - public global::G.GenerateResponse7? Type347 { get; set; } + public global::G.GenerateResponse5? Type347 { get; set; } /// /// /// - public global::G.GenerateResponse8? Type348 { get; set; } + public global::G.GenerateResponse6? Type348 { get; set; } /// /// /// - public global::G.GenerateResponse9? Type349 { get; set; } + public global::G.GenerateResponse7? Type349 { get; set; } /// /// /// - public global::G.GenerateResponse10? Type350 { get; set; } + public global::G.GenerateResponse8? Type350 { get; set; } /// /// /// - public global::G.GenerateResponse11? Type351 { get; set; } + public global::G.GenerateResponse9? Type351 { get; set; } /// /// /// - public global::G.GenerateResponse12? Type352 { get; set; } + public global::G.GenerateResponse10? Type352 { get; set; } /// /// /// - public global::G.OneOf? Type353 { get; set; } + public global::G.GenerateResponse11? Type353 { get; set; } /// /// /// - public global::G.EmbedResponse2? Type354 { get; set; } + public global::G.GenerateResponse12? Type354 { get; set; } /// /// /// - public global::G.EmbedResponse3? Type355 { get; set; } + public global::G.OneOf? Type355 { get; set; } /// /// /// - public global::G.EmbedResponse4? Type356 { get; set; } + public global::G.EmbedResponse2? Type356 { get; set; } /// /// /// - public global::G.EmbedResponse5? Type357 { get; set; } + public global::G.EmbedResponse3? Type357 { get; set; } /// /// /// - public global::G.EmbedResponse6? Type358 { get; set; } + public global::G.EmbedResponse4? Type358 { get; set; } /// /// /// - public global::G.EmbedResponse7? Type359 { get; set; } + public global::G.EmbedResponse5? Type359 { get; set; } /// /// /// - public global::G.EmbedResponse8? Type360 { get; set; } + public global::G.EmbedResponse6? Type360 { get; set; } /// /// /// - public global::G.EmbedResponse9? Type361 { get; set; } + public global::G.EmbedResponse7? Type361 { get; set; } /// /// /// - public global::G.EmbedResponse10? Type362 { get; set; } + public global::G.EmbedResponse8? Type362 { get; set; } /// /// /// - public global::G.EmbedResponse11? Type363 { get; set; } + public global::G.EmbedResponse9? Type363 { get; set; } /// /// /// - public global::G.EmbedResponse12? Type364 { get; set; } + public global::G.EmbedResponse10? Type364 { get; set; } /// /// /// - public global::G.EmbedResponse13? Type365 { get; set; } + public global::G.EmbedResponse11? Type365 { get; set; } /// /// /// - public global::G.Embedv2Response? Type366 { get; set; } + public global::G.EmbedResponse12? Type366 { get; set; } /// /// /// - public global::G.Embedv2Response2? Type367 { get; set; } + public global::G.EmbedResponse13? Type367 { get; set; } /// /// /// - public global::G.Embedv2Response3? Type368 { get; set; } + public global::G.Embedv2Response? Type368 { get; set; } /// /// /// - public global::G.Embedv2Response4? Type369 { get; set; } + public global::G.Embedv2Response2? Type369 { get; set; } /// /// /// - public global::G.Embedv2Response5? Type370 { get; set; } + public global::G.Embedv2Response3? Type370 { get; set; } /// /// /// - public global::G.Embedv2Response6? Type371 { get; set; } + public global::G.Embedv2Response4? Type371 { get; set; } /// /// /// - public global::G.Embedv2Response7? Type372 { get; set; } + public global::G.Embedv2Response5? Type372 { get; set; } /// /// /// - public global::G.Embedv2Response8? Type373 { get; set; } + public global::G.Embedv2Response6? Type373 { get; set; } /// /// /// - public global::G.Embedv2Response9? Type374 { get; set; } + public global::G.Embedv2Response7? Type374 { get; set; } /// /// /// - public global::G.Embedv2Response10? Type375 { get; set; } + public global::G.Embedv2Response8? Type375 { get; set; } /// /// /// - public global::G.Embedv2Response11? Type376 { get; set; } + public global::G.Embedv2Response9? Type376 { get; set; } /// /// /// - public global::G.Embedv2Response12? Type377 { get; set; } + public global::G.Embedv2Response10? Type377 { get; set; } /// /// /// - public global::G.CreateEmbedJobResponse2? Type378 { get; set; } + public global::G.Embedv2Response11? Type378 { get; set; } /// /// /// - public global::G.CreateEmbedJobResponse3? Type379 { get; set; } + public global::G.Embedv2Response12? Type379 { get; set; } /// /// /// - public global::G.CreateEmbedJobResponse4? Type380 { get; set; } + public global::G.CreateEmbedJobResponse2? Type380 { get; set; } /// /// /// - public global::G.CreateEmbedJobResponse5? Type381 { get; set; } + public global::G.CreateEmbedJobResponse3? Type381 { get; set; } /// /// /// - public global::G.CreateEmbedJobResponse6? Type382 { get; set; } + public global::G.CreateEmbedJobResponse4? Type382 { get; set; } /// /// /// - public global::G.CreateEmbedJobResponse7? Type383 { get; set; } + public global::G.CreateEmbedJobResponse5? Type383 { get; set; } /// /// /// - public global::G.CreateEmbedJobResponse8? Type384 { get; set; } + public global::G.CreateEmbedJobResponse6? Type384 { get; set; } /// /// /// - public global::G.CreateEmbedJobResponse9? Type385 { get; set; } + public global::G.CreateEmbedJobResponse7? Type385 { get; set; } /// /// /// - public global::G.CreateEmbedJobResponse10? Type386 { get; set; } + public global::G.CreateEmbedJobResponse8? Type386 { get; set; } /// /// /// - public global::G.CreateEmbedJobResponse11? Type387 { get; set; } + public global::G.CreateEmbedJobResponse9? Type387 { get; set; } /// /// /// - public global::G.CreateEmbedJobResponse12? Type388 { get; set; } + public global::G.CreateEmbedJobResponse10? Type388 { get; set; } /// /// /// - public global::G.CreateEmbedJobResponse13? Type389 { get; set; } + public global::G.CreateEmbedJobResponse11? Type389 { get; set; } /// /// /// - public global::G.ListEmbedJobsResponse? Type390 { get; set; } + public global::G.CreateEmbedJobResponse12? Type390 { get; set; } /// /// /// - public global::G.ListEmbedJobsResponse2? Type391 { get; set; } + public global::G.CreateEmbedJobResponse13? Type391 { get; set; } /// /// /// - public global::G.ListEmbedJobsResponse3? Type392 { get; set; } + public global::G.ListEmbedJobsResponse? Type392 { get; set; } /// /// /// - public global::G.ListEmbedJobsResponse4? Type393 { get; set; } + public global::G.ListEmbedJobsResponse2? Type393 { get; set; } /// /// /// - public global::G.ListEmbedJobsResponse5? Type394 { get; set; } + public global::G.ListEmbedJobsResponse3? Type394 { get; set; } /// /// /// - public global::G.ListEmbedJobsResponse6? Type395 { get; set; } + public global::G.ListEmbedJobsResponse4? Type395 { get; set; } /// /// /// - public global::G.ListEmbedJobsResponse7? Type396 { get; set; } + public global::G.ListEmbedJobsResponse5? Type396 { get; set; } /// /// /// - public global::G.ListEmbedJobsResponse8? Type397 { get; set; } + public global::G.ListEmbedJobsResponse6? Type397 { get; set; } /// /// /// - public global::G.ListEmbedJobsResponse9? Type398 { get; set; } + public global::G.ListEmbedJobsResponse7? Type398 { get; set; } /// /// /// - public global::G.ListEmbedJobsResponse10? Type399 { get; set; } + public global::G.ListEmbedJobsResponse8? Type399 { get; set; } /// /// /// - public global::G.ListEmbedJobsResponse11? Type400 { get; set; } + public global::G.ListEmbedJobsResponse9? Type400 { get; set; } /// /// /// - public global::G.ListEmbedJobsResponse12? Type401 { get; set; } + public global::G.ListEmbedJobsResponse10? Type401 { get; set; } /// /// /// - public global::G.GetEmbedJobResponse? Type402 { get; set; } + public global::G.ListEmbedJobsResponse11? Type402 { get; set; } /// /// /// - public global::G.GetEmbedJobResponse2? Type403 { get; set; } + public global::G.ListEmbedJobsResponse12? Type403 { get; set; } /// /// /// - public global::G.GetEmbedJobResponse3? Type404 { get; set; } + public global::G.GetEmbedJobResponse? Type404 { get; set; } /// /// /// - public global::G.GetEmbedJobResponse4? Type405 { get; set; } + public global::G.GetEmbedJobResponse2? Type405 { get; set; } /// /// /// - public global::G.GetEmbedJobResponse5? Type406 { get; set; } + public global::G.GetEmbedJobResponse3? Type406 { get; set; } /// /// /// - public global::G.GetEmbedJobResponse6? Type407 { get; set; } + public global::G.GetEmbedJobResponse4? Type407 { get; set; } /// /// /// - public global::G.GetEmbedJobResponse7? Type408 { get; set; } + public global::G.GetEmbedJobResponse5? Type408 { get; set; } /// /// /// - public global::G.GetEmbedJobResponse8? Type409 { get; set; } + public global::G.GetEmbedJobResponse6? Type409 { get; set; } /// /// /// - public global::G.GetEmbedJobResponse9? Type410 { get; set; } + public global::G.GetEmbedJobResponse7? Type410 { get; set; } /// /// /// - public global::G.GetEmbedJobResponse10? Type411 { get; set; } + public global::G.GetEmbedJobResponse8? Type411 { get; set; } /// /// /// - public global::G.GetEmbedJobResponse11? Type412 { get; set; } + public global::G.GetEmbedJobResponse9? Type412 { get; set; } /// /// /// - public global::G.GetEmbedJobResponse12? Type413 { get; set; } + public global::G.GetEmbedJobResponse10? Type413 { get; set; } /// /// /// - public global::G.CancelEmbedJobResponse? Type414 { get; set; } + public global::G.GetEmbedJobResponse11? Type414 { get; set; } /// /// /// - public global::G.CancelEmbedJobResponse2? Type415 { get; set; } + public global::G.GetEmbedJobResponse12? Type415 { get; set; } /// /// /// - public global::G.CancelEmbedJobResponse3? Type416 { get; set; } + public global::G.CancelEmbedJobResponse? Type416 { get; set; } /// /// /// - public global::G.CancelEmbedJobResponse4? Type417 { get; set; } + public global::G.CancelEmbedJobResponse2? Type417 { get; set; } /// /// /// - public global::G.CancelEmbedJobResponse5? Type418 { get; set; } + public global::G.CancelEmbedJobResponse3? Type418 { get; set; } /// /// /// - public global::G.CancelEmbedJobResponse6? Type419 { get; set; } + public global::G.CancelEmbedJobResponse4? Type419 { get; set; } /// /// /// - public global::G.CancelEmbedJobResponse7? Type420 { get; set; } + public global::G.CancelEmbedJobResponse5? Type420 { get; set; } /// /// /// - public global::G.CancelEmbedJobResponse8? Type421 { get; set; } + public global::G.CancelEmbedJobResponse6? Type421 { get; set; } /// /// /// - public global::G.CancelEmbedJobResponse9? Type422 { get; set; } + public global::G.CancelEmbedJobResponse7? Type422 { get; set; } /// /// /// - public global::G.CancelEmbedJobResponse10? Type423 { get; set; } + public global::G.CancelEmbedJobResponse8? Type423 { get; set; } /// /// /// - public global::G.CancelEmbedJobResponse11? Type424 { get; set; } + public global::G.CancelEmbedJobResponse9? Type424 { get; set; } /// /// /// - public global::G.CancelEmbedJobResponse12? Type425 { get; set; } + public global::G.CancelEmbedJobResponse10? Type425 { get; set; } /// /// /// - public global::G.RerankResponse? Type426 { get; set; } + public global::G.CancelEmbedJobResponse11? Type426 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type427 { get; set; } + public global::G.CancelEmbedJobResponse12? Type427 { get; set; } /// /// /// - public global::G.RerankResponseResult? Type428 { get; set; } + public global::G.RerankResponse? Type428 { get; set; } /// /// /// - public global::G.RerankResponseResultDocument? Type429 { get; set; } + public global::System.Collections.Generic.IList? Type429 { get; set; } /// /// /// - public global::G.RerankResponse2? Type430 { get; set; } + public global::G.RerankResponseResult? Type430 { get; set; } /// /// /// - public global::G.RerankResponse3? Type431 { get; set; } + public global::G.RerankResponseResultDocument? Type431 { get; set; } /// /// /// - public global::G.RerankResponse4? Type432 { get; set; } + public global::G.RerankResponse2? Type432 { get; set; } /// /// /// - public global::G.RerankResponse5? Type433 { get; set; } + public global::G.RerankResponse3? Type433 { get; set; } /// /// /// - public global::G.RerankResponse6? Type434 { get; set; } + public global::G.RerankResponse4? Type434 { get; set; } /// /// /// - public global::G.RerankResponse7? Type435 { get; set; } + public global::G.RerankResponse5? Type435 { get; set; } /// /// /// - public global::G.RerankResponse8? Type436 { get; set; } + public global::G.RerankResponse6? Type436 { get; set; } /// /// /// - public global::G.RerankResponse9? Type437 { get; set; } + public global::G.RerankResponse7? Type437 { get; set; } /// /// /// - public global::G.RerankResponse10? Type438 { get; set; } + public global::G.RerankResponse8? Type438 { get; set; } /// /// /// - public global::G.RerankResponse11? Type439 { get; set; } + public global::G.RerankResponse9? Type439 { get; set; } /// /// /// - public global::G.RerankResponse12? Type440 { get; set; } + public global::G.RerankResponse10? Type440 { get; set; } /// /// /// - public global::G.RerankResponse13? Type441 { get; set; } + public global::G.RerankResponse11? Type441 { get; set; } /// /// /// - public global::G.Rerankv2Response? Type442 { get; set; } + public global::G.RerankResponse12? Type442 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type443 { get; set; } + public global::G.RerankResponse13? Type443 { get; set; } /// /// /// - public global::G.Rerankv2ResponseResult? Type444 { get; set; } + public global::G.Rerankv2Response? Type444 { get; set; } /// /// /// - public global::G.Rerankv2ResponseResultDocument? Type445 { get; set; } + public global::System.Collections.Generic.IList? Type445 { get; set; } /// /// /// - public global::G.Rerankv2Response2? Type446 { get; set; } + public global::G.Rerankv2ResponseResult? Type446 { get; set; } /// /// /// - public global::G.Rerankv2Response3? Type447 { get; set; } + public global::G.Rerankv2ResponseResultDocument? Type447 { get; set; } /// /// /// - public global::G.Rerankv2Response4? Type448 { get; set; } + public global::G.Rerankv2Response2? Type448 { get; set; } /// /// /// - public global::G.Rerankv2Response5? Type449 { get; set; } + public global::G.Rerankv2Response3? Type449 { get; set; } /// /// /// - public global::G.Rerankv2Response6? Type450 { get; set; } + public global::G.Rerankv2Response4? Type450 { get; set; } /// /// /// - public global::G.Rerankv2Response7? Type451 { get; set; } + public global::G.Rerankv2Response5? Type451 { get; set; } /// /// /// - public global::G.Rerankv2Response8? Type452 { get; set; } + public global::G.Rerankv2Response6? Type452 { get; set; } /// /// /// - public global::G.Rerankv2Response9? Type453 { get; set; } + public global::G.Rerankv2Response7? Type453 { get; set; } /// /// /// - public global::G.Rerankv2Response10? Type454 { get; set; } + public global::G.Rerankv2Response8? Type454 { get; set; } /// /// /// - public global::G.Rerankv2Response11? Type455 { get; set; } + public global::G.Rerankv2Response9? Type455 { get; set; } /// /// /// - public global::G.Rerankv2Response12? Type456 { get; set; } + public global::G.Rerankv2Response10? Type456 { get; set; } /// /// /// - public global::G.Rerankv2Response13? Type457 { get; set; } + public global::G.Rerankv2Response11? Type457 { get; set; } /// /// /// - public global::G.ClassifyResponse? Type458 { get; set; } + public global::G.Rerankv2Response12? Type458 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type459 { get; set; } + public global::G.Rerankv2Response13? Type459 { get; set; } /// /// /// - public global::G.ClassifyResponseClassification? Type460 { get; set; } + public global::G.ClassifyResponse? Type460 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type461 { get; set; } + public global::System.Collections.Generic.IList? Type461 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type462 { get; set; } + public global::G.ClassifyResponseClassification? Type462 { get; set; } /// /// /// - public global::G.ClassifyResponseClassificationLabels2? Type463 { get; set; } + public global::System.Collections.Generic.IList? Type463 { get; set; } /// /// /// - public global::G.ClassifyResponseClassificationClassificationType? Type464 { get; set; } + public global::System.Collections.Generic.Dictionary? Type464 { get; set; } /// /// /// - public global::G.ClassifyResponse2? Type465 { get; set; } + public global::G.ClassifyResponseClassificationLabels2? Type465 { get; set; } /// /// /// - public global::G.ClassifyResponse3? Type466 { get; set; } + public global::G.ClassifyResponseClassificationClassificationType? Type466 { get; set; } /// /// /// - public global::G.ClassifyResponse4? Type467 { get; set; } + public global::G.ClassifyResponse2? Type467 { get; set; } /// /// /// - public global::G.ClassifyResponse5? Type468 { get; set; } + public global::G.ClassifyResponse3? Type468 { get; set; } /// /// /// - public global::G.ClassifyResponse6? Type469 { get; set; } + public global::G.ClassifyResponse4? Type469 { get; set; } /// /// /// - public global::G.ClassifyResponse7? Type470 { get; set; } + public global::G.ClassifyResponse5? Type470 { get; set; } /// /// /// - public global::G.ClassifyResponse8? Type471 { get; set; } + public global::G.ClassifyResponse6? Type471 { get; set; } /// /// /// - public global::G.ClassifyResponse9? Type472 { get; set; } + public global::G.ClassifyResponse7? Type472 { get; set; } /// /// /// - public global::G.ClassifyResponse10? Type473 { get; set; } + public global::G.ClassifyResponse8? Type473 { get; set; } /// /// /// - public global::G.ClassifyResponse11? Type474 { get; set; } + public global::G.ClassifyResponse9? Type474 { get; set; } /// /// /// - public global::G.ClassifyResponse12? Type475 { get; set; } + public global::G.ClassifyResponse10? Type475 { get; set; } /// /// /// - public global::G.ClassifyResponse13? Type476 { get; set; } + public global::G.ClassifyResponse11? Type476 { get; set; } /// /// /// - public global::G.CreateDatasetResponse? Type477 { get; set; } + public global::G.ClassifyResponse12? Type477 { get; set; } /// /// /// - public global::G.CreateDatasetResponse2? Type478 { get; set; } + public global::G.ClassifyResponse13? Type478 { get; set; } /// /// /// - public global::G.CreateDatasetResponse3? Type479 { get; set; } + public global::G.CreateDatasetResponse? Type479 { get; set; } /// /// /// - public global::G.CreateDatasetResponse4? Type480 { get; set; } + public global::G.CreateDatasetResponse2? Type480 { get; set; } /// /// /// - public global::G.CreateDatasetResponse5? Type481 { get; set; } + public global::G.CreateDatasetResponse3? Type481 { get; set; } /// /// /// - public global::G.CreateDatasetResponse6? Type482 { get; set; } + public global::G.CreateDatasetResponse4? Type482 { get; set; } /// /// /// - public global::G.CreateDatasetResponse7? Type483 { get; set; } + public global::G.CreateDatasetResponse5? Type483 { get; set; } /// /// /// - public global::G.CreateDatasetResponse8? Type484 { get; set; } + public global::G.CreateDatasetResponse6? Type484 { get; set; } /// /// /// - public global::G.CreateDatasetResponse9? Type485 { get; set; } + public global::G.CreateDatasetResponse7? Type485 { get; set; } /// /// /// - public global::G.CreateDatasetResponse10? Type486 { get; set; } + public global::G.CreateDatasetResponse8? Type486 { get; set; } /// /// /// - public global::G.CreateDatasetResponse11? Type487 { get; set; } + public global::G.CreateDatasetResponse9? Type487 { get; set; } /// /// /// - public global::G.CreateDatasetResponse12? Type488 { get; set; } + public global::G.CreateDatasetResponse10? Type488 { get; set; } /// /// /// - public global::G.CreateDatasetResponse13? Type489 { get; set; } + public global::G.CreateDatasetResponse11? Type489 { get; set; } /// /// /// - public global::G.ListDatasetsResponse? Type490 { get; set; } + public global::G.CreateDatasetResponse12? Type490 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type491 { get; set; } + public global::G.CreateDatasetResponse13? Type491 { get; set; } /// /// /// - public global::G.ListDatasetsResponse2? Type492 { get; set; } + public global::G.ListDatasetsResponse? Type492 { get; set; } /// /// /// - public global::G.ListDatasetsResponse3? Type493 { get; set; } + public global::System.Collections.Generic.IList? Type493 { get; set; } /// /// /// - public global::G.ListDatasetsResponse4? Type494 { get; set; } + public global::G.ListDatasetsResponse2? Type494 { get; set; } /// /// /// - public global::G.ListDatasetsResponse5? Type495 { get; set; } + public global::G.ListDatasetsResponse3? Type495 { get; set; } /// /// /// - public global::G.ListDatasetsResponse6? Type496 { get; set; } + public global::G.ListDatasetsResponse4? Type496 { get; set; } /// /// /// - public global::G.ListDatasetsResponse7? Type497 { get; set; } + public global::G.ListDatasetsResponse5? Type497 { get; set; } /// /// /// - public global::G.ListDatasetsResponse8? Type498 { get; set; } + public global::G.ListDatasetsResponse6? Type498 { get; set; } /// /// /// - public global::G.ListDatasetsResponse9? Type499 { get; set; } + public global::G.ListDatasetsResponse7? Type499 { get; set; } /// /// /// - public global::G.ListDatasetsResponse10? Type500 { get; set; } + public global::G.ListDatasetsResponse8? Type500 { get; set; } /// /// /// - public global::G.ListDatasetsResponse11? Type501 { get; set; } + public global::G.ListDatasetsResponse9? Type501 { get; set; } /// /// /// - public global::G.ListDatasetsResponse12? Type502 { get; set; } + public global::G.ListDatasetsResponse10? Type502 { get; set; } /// /// /// - public global::G.ListDatasetsResponse13? Type503 { get; set; } + public global::G.ListDatasetsResponse11? Type503 { get; set; } /// /// /// - public global::G.GetDatasetUsageResponse? Type504 { get; set; } + public global::G.ListDatasetsResponse12? Type504 { get; set; } /// /// /// - public global::G.GetDatasetUsageResponse2? Type505 { get; set; } + public global::G.ListDatasetsResponse13? Type505 { get; set; } /// /// /// - public global::G.GetDatasetUsageResponse3? Type506 { get; set; } + public global::G.GetDatasetUsageResponse? Type506 { get; set; } /// /// /// - public global::G.GetDatasetUsageResponse4? Type507 { get; set; } + public global::G.GetDatasetUsageResponse2? Type507 { get; set; } /// /// /// - public global::G.GetDatasetUsageResponse5? Type508 { get; set; } + public global::G.GetDatasetUsageResponse3? Type508 { get; set; } /// /// /// - public global::G.GetDatasetUsageResponse6? Type509 { get; set; } + public global::G.GetDatasetUsageResponse4? Type509 { get; set; } /// /// /// - public global::G.GetDatasetUsageResponse7? Type510 { get; set; } + public global::G.GetDatasetUsageResponse5? Type510 { get; set; } /// /// /// - public global::G.GetDatasetUsageResponse8? Type511 { get; set; } + public global::G.GetDatasetUsageResponse6? Type511 { get; set; } /// /// /// - public global::G.GetDatasetUsageResponse9? Type512 { get; set; } + public global::G.GetDatasetUsageResponse7? Type512 { get; set; } /// /// /// - public global::G.GetDatasetUsageResponse10? Type513 { get; set; } + public global::G.GetDatasetUsageResponse8? Type513 { get; set; } /// /// /// - public global::G.GetDatasetUsageResponse11? Type514 { get; set; } + public global::G.GetDatasetUsageResponse9? Type514 { get; set; } /// /// /// - public global::G.GetDatasetUsageResponse12? Type515 { get; set; } + public global::G.GetDatasetUsageResponse10? Type515 { get; set; } /// /// /// - public global::G.GetDatasetUsageResponse13? Type516 { get; set; } + public global::G.GetDatasetUsageResponse11? Type516 { get; set; } /// /// /// - public global::G.GetDatasetResponse? Type517 { get; set; } + public global::G.GetDatasetUsageResponse12? Type517 { get; set; } /// /// /// - public global::G.GetDatasetResponse2? Type518 { get; set; } + public global::G.GetDatasetUsageResponse13? Type518 { get; set; } /// /// /// - public global::G.GetDatasetResponse3? Type519 { get; set; } + public global::G.GetDatasetResponse? Type519 { get; set; } /// /// /// - public global::G.GetDatasetResponse4? Type520 { get; set; } + public global::G.GetDatasetResponse2? Type520 { get; set; } /// /// /// - public global::G.GetDatasetResponse5? Type521 { get; set; } + public global::G.GetDatasetResponse3? Type521 { get; set; } /// /// /// - public global::G.GetDatasetResponse6? Type522 { get; set; } + public global::G.GetDatasetResponse4? Type522 { get; set; } /// /// /// - public global::G.GetDatasetResponse7? Type523 { get; set; } + public global::G.GetDatasetResponse5? Type523 { get; set; } /// /// /// - public global::G.GetDatasetResponse8? Type524 { get; set; } + public global::G.GetDatasetResponse6? Type524 { get; set; } /// /// /// - public global::G.GetDatasetResponse9? Type525 { get; set; } + public global::G.GetDatasetResponse7? Type525 { get; set; } /// /// /// - public global::G.GetDatasetResponse10? Type526 { get; set; } + public global::G.GetDatasetResponse8? Type526 { get; set; } /// /// /// - public global::G.GetDatasetResponse11? Type527 { get; set; } + public global::G.GetDatasetResponse9? Type527 { get; set; } /// /// /// - public global::G.GetDatasetResponse12? Type528 { get; set; } + public global::G.GetDatasetResponse10? Type528 { get; set; } /// /// /// - public global::G.GetDatasetResponse13? Type529 { get; set; } + public global::G.GetDatasetResponse11? Type529 { get; set; } /// /// /// - public global::G.DeleteDatasetResponse2? Type530 { get; set; } + public global::G.GetDatasetResponse12? Type530 { get; set; } /// /// /// - public global::G.DeleteDatasetResponse3? Type531 { get; set; } + public global::G.GetDatasetResponse13? Type531 { get; set; } /// /// /// - public global::G.DeleteDatasetResponse4? Type532 { get; set; } + public global::G.DeleteDatasetResponse2? Type532 { get; set; } /// /// /// - public global::G.DeleteDatasetResponse5? Type533 { get; set; } + public global::G.DeleteDatasetResponse3? Type533 { get; set; } /// /// /// - public global::G.DeleteDatasetResponse6? Type534 { get; set; } + public global::G.DeleteDatasetResponse4? Type534 { get; set; } /// /// /// - public global::G.DeleteDatasetResponse7? Type535 { get; set; } + public global::G.DeleteDatasetResponse5? Type535 { get; set; } /// /// /// - public global::G.DeleteDatasetResponse8? Type536 { get; set; } + public global::G.DeleteDatasetResponse6? Type536 { get; set; } /// /// /// - public global::G.DeleteDatasetResponse9? Type537 { get; set; } + public global::G.DeleteDatasetResponse7? Type537 { get; set; } /// /// /// - public global::G.DeleteDatasetResponse10? Type538 { get; set; } + public global::G.DeleteDatasetResponse8? Type538 { get; set; } /// /// /// - public global::G.DeleteDatasetResponse11? Type539 { get; set; } + public global::G.DeleteDatasetResponse9? Type539 { get; set; } /// /// /// - public global::G.DeleteDatasetResponse12? Type540 { get; set; } + public global::G.DeleteDatasetResponse10? Type540 { get; set; } /// /// /// - public global::G.DeleteDatasetResponse13? Type541 { get; set; } + public global::G.DeleteDatasetResponse11? Type541 { get; set; } /// /// /// - public global::G.SummarizeResponse? Type542 { get; set; } + public global::G.DeleteDatasetResponse12? Type542 { get; set; } /// /// /// - public global::G.SummarizeResponse2? Type543 { get; set; } + public global::G.DeleteDatasetResponse13? Type543 { get; set; } /// /// /// - public global::G.SummarizeResponse3? Type544 { get; set; } + public global::G.SummarizeResponse? Type544 { get; set; } /// /// /// - public global::G.SummarizeResponse4? Type545 { get; set; } + public global::G.SummarizeResponse2? Type545 { get; set; } /// /// /// - public global::G.SummarizeResponse5? Type546 { get; set; } + public global::G.SummarizeResponse3? Type546 { get; set; } /// /// /// - public global::G.SummarizeResponse6? Type547 { get; set; } + public global::G.SummarizeResponse4? Type547 { get; set; } /// /// /// - public global::G.SummarizeResponse7? Type548 { get; set; } + public global::G.SummarizeResponse5? Type548 { get; set; } /// /// /// - public global::G.SummarizeResponse8? Type549 { get; set; } + public global::G.SummarizeResponse6? Type549 { get; set; } /// /// /// - public global::G.SummarizeResponse9? Type550 { get; set; } + public global::G.SummarizeResponse7? Type550 { get; set; } /// /// /// - public global::G.SummarizeResponse10? Type551 { get; set; } + public global::G.SummarizeResponse8? Type551 { get; set; } /// /// /// - public global::G.SummarizeResponse11? Type552 { get; set; } + public global::G.SummarizeResponse9? Type552 { get; set; } /// /// /// - public global::G.SummarizeResponse12? Type553 { get; set; } + public global::G.SummarizeResponse10? Type553 { get; set; } /// /// /// - public global::G.SummarizeResponse13? Type554 { get; set; } + public global::G.SummarizeResponse11? Type554 { get; set; } /// /// /// - public global::G.TokenizeResponse? Type555 { get; set; } + public global::G.SummarizeResponse12? Type555 { get; set; } /// /// /// - public global::G.TokenizeResponse2? Type556 { get; set; } + public global::G.SummarizeResponse13? Type556 { get; set; } /// /// /// - public global::G.TokenizeResponse3? Type557 { get; set; } + public global::G.TokenizeResponse? Type557 { get; set; } /// /// /// - public global::G.TokenizeResponse4? Type558 { get; set; } + public global::G.TokenizeResponse2? Type558 { get; set; } /// /// /// - public global::G.TokenizeResponse5? Type559 { get; set; } + public global::G.TokenizeResponse3? Type559 { get; set; } /// /// /// - public global::G.TokenizeResponse6? Type560 { get; set; } + public global::G.TokenizeResponse4? Type560 { get; set; } /// /// /// - public global::G.TokenizeResponse7? Type561 { get; set; } + public global::G.TokenizeResponse5? Type561 { get; set; } /// /// /// - public global::G.TokenizeResponse8? Type562 { get; set; } + public global::G.TokenizeResponse6? Type562 { get; set; } /// /// /// - public global::G.TokenizeResponse9? Type563 { get; set; } + public global::G.TokenizeResponse7? Type563 { get; set; } /// /// /// - public global::G.TokenizeResponse10? Type564 { get; set; } + public global::G.TokenizeResponse8? Type564 { get; set; } /// /// /// - public global::G.TokenizeResponse11? Type565 { get; set; } + public global::G.TokenizeResponse9? Type565 { get; set; } /// /// /// - public global::G.TokenizeResponse12? Type566 { get; set; } + public global::G.TokenizeResponse10? Type566 { get; set; } /// /// /// - public global::G.TokenizeResponse13? Type567 { get; set; } + public global::G.TokenizeResponse11? Type567 { get; set; } /// /// /// - public global::G.DetokenizeResponse? Type568 { get; set; } + public global::G.TokenizeResponse12? Type568 { get; set; } /// /// /// - public global::G.DetokenizeResponse2? Type569 { get; set; } + public global::G.TokenizeResponse13? Type569 { get; set; } /// /// /// - public global::G.DetokenizeResponse3? Type570 { get; set; } + public global::G.DetokenizeResponse? Type570 { get; set; } /// /// /// - public global::G.DetokenizeResponse4? Type571 { get; set; } + public global::G.DetokenizeResponse2? Type571 { get; set; } /// /// /// - public global::G.DetokenizeResponse5? Type572 { get; set; } + public global::G.DetokenizeResponse3? Type572 { get; set; } /// /// /// - public global::G.DetokenizeResponse6? Type573 { get; set; } + public global::G.DetokenizeResponse4? Type573 { get; set; } /// /// /// - public global::G.DetokenizeResponse7? Type574 { get; set; } + public global::G.DetokenizeResponse5? Type574 { get; set; } /// /// /// - public global::G.DetokenizeResponse8? Type575 { get; set; } + public global::G.DetokenizeResponse6? Type575 { get; set; } /// /// /// - public global::G.DetokenizeResponse9? Type576 { get; set; } + public global::G.DetokenizeResponse7? Type576 { get; set; } /// /// /// - public global::G.DetokenizeResponse10? Type577 { get; set; } + public global::G.DetokenizeResponse8? Type577 { get; set; } /// /// /// - public global::G.DetokenizeResponse11? Type578 { get; set; } + public global::G.DetokenizeResponse9? Type578 { get; set; } /// /// /// - public global::G.DetokenizeResponse12? Type579 { get; set; } + public global::G.DetokenizeResponse10? Type579 { get; set; } /// /// /// - public global::G.DetokenizeResponse13? Type580 { get; set; } + public global::G.DetokenizeResponse11? Type580 { get; set; } /// /// /// - public global::G.ListConnectorsResponse2? Type581 { get; set; } + public global::G.DetokenizeResponse12? Type581 { get; set; } /// /// /// - public global::G.ListConnectorsResponse3? Type582 { get; set; } + public global::G.DetokenizeResponse13? Type582 { get; set; } /// /// /// - public global::G.ListConnectorsResponse4? Type583 { get; set; } + public global::G.ListConnectorsResponse2? Type583 { get; set; } /// /// /// - public global::G.ListConnectorsResponse5? Type584 { get; set; } + public global::G.ListConnectorsResponse3? Type584 { get; set; } /// /// /// - public global::G.ListConnectorsResponse6? Type585 { get; set; } + public global::G.ListConnectorsResponse4? Type585 { get; set; } /// /// /// - public global::G.ListConnectorsResponse7? Type586 { get; set; } + public global::G.ListConnectorsResponse5? Type586 { get; set; } /// /// /// - public global::G.ListConnectorsResponse8? Type587 { get; set; } + public global::G.ListConnectorsResponse6? Type587 { get; set; } /// /// /// - public global::G.ListConnectorsResponse9? Type588 { get; set; } + public global::G.ListConnectorsResponse7? Type588 { get; set; } /// /// /// - public global::G.ListConnectorsResponse10? Type589 { get; set; } + public global::G.ListConnectorsResponse8? Type589 { get; set; } /// /// /// - public global::G.ListConnectorsResponse11? Type590 { get; set; } + public global::G.ListConnectorsResponse9? Type590 { get; set; } /// /// /// - public global::G.ListConnectorsResponse12? Type591 { get; set; } + public global::G.ListConnectorsResponse10? Type591 { get; set; } /// /// /// - public global::G.ListConnectorsResponse13? Type592 { get; set; } + public global::G.ListConnectorsResponse11? Type592 { get; set; } /// /// /// - public global::G.CreateConnectorResponse2? Type593 { get; set; } + public global::G.ListConnectorsResponse12? Type593 { get; set; } /// /// /// - public global::G.CreateConnectorResponse3? Type594 { get; set; } + public global::G.ListConnectorsResponse13? Type594 { get; set; } /// /// /// - public global::G.CreateConnectorResponse4? Type595 { get; set; } + public global::G.CreateConnectorResponse2? Type595 { get; set; } /// /// /// - public global::G.CreateConnectorResponse5? Type596 { get; set; } + public global::G.CreateConnectorResponse3? Type596 { get; set; } /// /// /// - public global::G.CreateConnectorResponse6? Type597 { get; set; } + public global::G.CreateConnectorResponse4? Type597 { get; set; } /// /// /// - public global::G.CreateConnectorResponse7? Type598 { get; set; } + public global::G.CreateConnectorResponse5? Type598 { get; set; } /// /// /// - public global::G.CreateConnectorResponse8? Type599 { get; set; } + public global::G.CreateConnectorResponse6? Type599 { get; set; } /// /// /// - public global::G.CreateConnectorResponse9? Type600 { get; set; } + public global::G.CreateConnectorResponse7? Type600 { get; set; } /// /// /// - public global::G.CreateConnectorResponse10? Type601 { get; set; } + public global::G.CreateConnectorResponse8? Type601 { get; set; } /// /// /// - public global::G.CreateConnectorResponse11? Type602 { get; set; } + public global::G.CreateConnectorResponse9? Type602 { get; set; } /// /// /// - public global::G.CreateConnectorResponse12? Type603 { get; set; } + public global::G.CreateConnectorResponse10? Type603 { get; set; } /// /// /// - public global::G.CreateConnectorResponse13? Type604 { get; set; } + public global::G.CreateConnectorResponse11? Type604 { get; set; } /// /// /// - public global::G.GetConnectorResponse2? Type605 { get; set; } + public global::G.CreateConnectorResponse12? Type605 { get; set; } /// /// /// - public global::G.GetConnectorResponse3? Type606 { get; set; } + public global::G.CreateConnectorResponse13? Type606 { get; set; } /// /// /// - public global::G.GetConnectorResponse4? Type607 { get; set; } + public global::G.GetConnectorResponse2? Type607 { get; set; } /// /// /// - public global::G.GetConnectorResponse5? Type608 { get; set; } + public global::G.GetConnectorResponse3? Type608 { get; set; } /// /// /// - public global::G.GetConnectorResponse6? Type609 { get; set; } + public global::G.GetConnectorResponse4? Type609 { get; set; } /// /// /// - public global::G.GetConnectorResponse7? Type610 { get; set; } + public global::G.GetConnectorResponse5? Type610 { get; set; } /// /// /// - public global::G.GetConnectorResponse8? Type611 { get; set; } + public global::G.GetConnectorResponse6? Type611 { get; set; } /// /// /// - public global::G.GetConnectorResponse9? Type612 { get; set; } + public global::G.GetConnectorResponse7? Type612 { get; set; } /// /// /// - public global::G.GetConnectorResponse10? Type613 { get; set; } + public global::G.GetConnectorResponse8? Type613 { get; set; } /// /// /// - public global::G.GetConnectorResponse11? Type614 { get; set; } + public global::G.GetConnectorResponse9? Type614 { get; set; } /// /// /// - public global::G.GetConnectorResponse12? Type615 { get; set; } + public global::G.GetConnectorResponse10? Type615 { get; set; } /// /// /// - public global::G.GetConnectorResponse13? Type616 { get; set; } + public global::G.GetConnectorResponse11? Type616 { get; set; } /// /// /// - public global::G.UpdateConnectorResponse2? Type617 { get; set; } + public global::G.GetConnectorResponse12? Type617 { get; set; } /// /// /// - public global::G.UpdateConnectorResponse3? Type618 { get; set; } + public global::G.GetConnectorResponse13? Type618 { get; set; } /// /// /// - public global::G.UpdateConnectorResponse4? Type619 { get; set; } + public global::G.UpdateConnectorResponse2? Type619 { get; set; } /// /// /// - public global::G.UpdateConnectorResponse5? Type620 { get; set; } + public global::G.UpdateConnectorResponse3? Type620 { get; set; } /// /// /// - public global::G.UpdateConnectorResponse6? Type621 { get; set; } + public global::G.UpdateConnectorResponse4? Type621 { get; set; } /// /// /// - public global::G.UpdateConnectorResponse7? Type622 { get; set; } + public global::G.UpdateConnectorResponse5? Type622 { get; set; } /// /// /// - public global::G.UpdateConnectorResponse8? Type623 { get; set; } + public global::G.UpdateConnectorResponse6? Type623 { get; set; } /// /// /// - public global::G.UpdateConnectorResponse9? Type624 { get; set; } + public global::G.UpdateConnectorResponse7? Type624 { get; set; } /// /// /// - public global::G.UpdateConnectorResponse10? Type625 { get; set; } + public global::G.UpdateConnectorResponse8? Type625 { get; set; } /// /// /// - public global::G.UpdateConnectorResponse11? Type626 { get; set; } + public global::G.UpdateConnectorResponse9? Type626 { get; set; } /// /// /// - public global::G.UpdateConnectorResponse12? Type627 { get; set; } + public global::G.UpdateConnectorResponse10? Type627 { get; set; } /// /// /// - public global::G.UpdateConnectorResponse13? Type628 { get; set; } + public global::G.UpdateConnectorResponse11? Type628 { get; set; } /// /// /// - public global::G.DeleteConnectorResponse2? Type629 { get; set; } + public global::G.UpdateConnectorResponse12? Type629 { get; set; } /// /// /// - public global::G.DeleteConnectorResponse3? Type630 { get; set; } + public global::G.UpdateConnectorResponse13? Type630 { get; set; } /// /// /// - public global::G.DeleteConnectorResponse4? Type631 { get; set; } + public global::G.DeleteConnectorResponse2? Type631 { get; set; } /// /// /// - public global::G.DeleteConnectorResponse5? Type632 { get; set; } + public global::G.DeleteConnectorResponse3? Type632 { get; set; } /// /// /// - public global::G.DeleteConnectorResponse6? Type633 { get; set; } + public global::G.DeleteConnectorResponse4? Type633 { get; set; } /// /// /// - public global::G.DeleteConnectorResponse7? Type634 { get; set; } + public global::G.DeleteConnectorResponse5? Type634 { get; set; } /// /// /// - public global::G.DeleteConnectorResponse8? Type635 { get; set; } + public global::G.DeleteConnectorResponse6? Type635 { get; set; } /// /// /// - public global::G.DeleteConnectorResponse9? Type636 { get; set; } + public global::G.DeleteConnectorResponse7? Type636 { get; set; } /// /// /// - public global::G.DeleteConnectorResponse10? Type637 { get; set; } + public global::G.DeleteConnectorResponse8? Type637 { get; set; } /// /// /// - public global::G.DeleteConnectorResponse11? Type638 { get; set; } + public global::G.DeleteConnectorResponse9? Type638 { get; set; } /// /// /// - public global::G.DeleteConnectorResponse12? Type639 { get; set; } + public global::G.DeleteConnectorResponse10? Type639 { get; set; } /// /// /// - public global::G.DeleteConnectorResponse13? Type640 { get; set; } + public global::G.DeleteConnectorResponse11? Type640 { get; set; } /// /// /// - public global::G.OAuthAuthorizeConnectorResponse? Type641 { get; set; } + public global::G.DeleteConnectorResponse12? Type641 { get; set; } /// /// /// - public global::G.OAuthAuthorizeConnectorResponse2? Type642 { get; set; } + public global::G.DeleteConnectorResponse13? Type642 { get; set; } /// /// /// - public global::G.OAuthAuthorizeConnectorResponse3? Type643 { get; set; } + public global::G.OAuthAuthorizeConnectorResponse? Type643 { get; set; } /// /// /// - public global::G.OAuthAuthorizeConnectorResponse4? Type644 { get; set; } + public global::G.OAuthAuthorizeConnectorResponse2? Type644 { get; set; } /// /// /// - public global::G.OAuthAuthorizeConnectorResponse5? Type645 { get; set; } + public global::G.OAuthAuthorizeConnectorResponse3? Type645 { get; set; } /// /// /// - public global::G.OAuthAuthorizeConnectorResponse6? Type646 { get; set; } + public global::G.OAuthAuthorizeConnectorResponse4? Type646 { get; set; } /// /// /// - public global::G.OAuthAuthorizeConnectorResponse7? Type647 { get; set; } + public global::G.OAuthAuthorizeConnectorResponse5? Type647 { get; set; } /// /// /// - public global::G.OAuthAuthorizeConnectorResponse8? Type648 { get; set; } + public global::G.OAuthAuthorizeConnectorResponse6? Type648 { get; set; } /// /// /// - public global::G.OAuthAuthorizeConnectorResponse9? Type649 { get; set; } + public global::G.OAuthAuthorizeConnectorResponse7? Type649 { get; set; } /// /// /// - public global::G.OAuthAuthorizeConnectorResponse10? Type650 { get; set; } + public global::G.OAuthAuthorizeConnectorResponse8? Type650 { get; set; } /// /// /// - public global::G.OAuthAuthorizeConnectorResponse11? Type651 { get; set; } + public global::G.OAuthAuthorizeConnectorResponse9? Type651 { get; set; } /// /// /// - public global::G.OAuthAuthorizeConnectorResponse12? Type652 { get; set; } + public global::G.OAuthAuthorizeConnectorResponse10? Type652 { get; set; } /// /// /// - public global::G.GetModelResponse2? Type653 { get; set; } + public global::G.OAuthAuthorizeConnectorResponse11? Type653 { get; set; } /// /// /// - public global::G.GetModelResponse3? Type654 { get; set; } + public global::G.OAuthAuthorizeConnectorResponse12? Type654 { get; set; } /// /// /// - public global::G.GetModelResponse4? Type655 { get; set; } + public global::G.GetModelResponse2? Type655 { get; set; } /// /// /// - public global::G.GetModelResponse5? Type656 { get; set; } + public global::G.GetModelResponse3? Type656 { get; set; } /// /// /// - public global::G.GetModelResponse6? Type657 { get; set; } + public global::G.GetModelResponse4? Type657 { get; set; } /// /// /// - public global::G.GetModelResponse7? Type658 { get; set; } + public global::G.GetModelResponse5? Type658 { get; set; } /// /// /// - public global::G.GetModelResponse8? Type659 { get; set; } + public global::G.GetModelResponse6? Type659 { get; set; } /// /// /// - public global::G.GetModelResponse9? Type660 { get; set; } + public global::G.GetModelResponse7? Type660 { get; set; } /// /// /// - public global::G.GetModelResponse10? Type661 { get; set; } + public global::G.GetModelResponse8? Type661 { get; set; } /// /// /// - public global::G.GetModelResponse11? Type662 { get; set; } + public global::G.GetModelResponse9? Type662 { get; set; } /// /// /// - public global::G.GetModelResponse12? Type663 { get; set; } + public global::G.GetModelResponse10? Type663 { get; set; } /// /// /// - public global::G.GetModelResponse13? Type664 { get; set; } + public global::G.GetModelResponse11? Type664 { get; set; } /// /// /// - public global::G.ListModelsResponse2? Type665 { get; set; } + public global::G.GetModelResponse12? Type665 { get; set; } /// /// /// - public global::G.ListModelsResponse3? Type666 { get; set; } + public global::G.GetModelResponse13? Type666 { get; set; } /// /// /// - public global::G.ListModelsResponse4? Type667 { get; set; } + public global::G.ListModelsResponse2? Type667 { get; set; } /// /// /// - public global::G.ListModelsResponse5? Type668 { get; set; } + public global::G.ListModelsResponse3? Type668 { get; set; } /// /// /// - public global::G.ListModelsResponse6? Type669 { get; set; } + public global::G.ListModelsResponse4? Type669 { get; set; } /// /// /// - public global::G.ListModelsResponse7? Type670 { get; set; } + public global::G.ListModelsResponse5? Type670 { get; set; } /// /// /// - public global::G.ListModelsResponse8? Type671 { get; set; } + public global::G.ListModelsResponse6? Type671 { get; set; } /// /// /// - public global::G.ListModelsResponse9? Type672 { get; set; } + public global::G.ListModelsResponse7? Type672 { get; set; } /// /// /// - public global::G.ListModelsResponse10? Type673 { get; set; } + public global::G.ListModelsResponse8? Type673 { get; set; } /// /// /// - public global::G.ListModelsResponse11? Type674 { get; set; } + public global::G.ListModelsResponse9? Type674 { get; set; } /// /// /// - public global::G.ListModelsResponse12? Type675 { get; set; } + public global::G.ListModelsResponse10? Type675 { get; set; } /// /// /// - public global::G.ListModelsResponse13? Type676 { get; set; } + public global::G.ListModelsResponse11? Type676 { get; set; } /// /// /// - public global::G.CheckAPIKeyResponse? Type677 { get; set; } + public global::G.ListModelsResponse12? Type677 { get; set; } /// /// /// - public global::G.CheckAPIKeyResponse2? Type678 { get; set; } + public global::G.ListModelsResponse13? Type678 { get; set; } /// /// /// - public global::G.CheckAPIKeyResponse3? Type679 { get; set; } + public global::G.CheckAPIKeyResponse? Type679 { get; set; } /// /// /// - public global::G.CheckAPIKeyResponse4? Type680 { get; set; } + public global::G.CheckAPIKeyResponse2? Type680 { get; set; } /// /// /// - public global::G.CheckAPIKeyResponse5? Type681 { get; set; } + public global::G.CheckAPIKeyResponse3? Type681 { get; set; } /// /// /// - public global::G.CheckAPIKeyResponse6? Type682 { get; set; } + public global::G.CheckAPIKeyResponse4? Type682 { get; set; } /// /// /// - public global::G.CheckAPIKeyResponse7? Type683 { get; set; } + public global::G.CheckAPIKeyResponse5? Type683 { get; set; } /// /// /// - public global::G.CheckAPIKeyResponse8? Type684 { get; set; } + public global::G.CheckAPIKeyResponse6? Type684 { get; set; } /// /// /// - public global::G.CheckAPIKeyResponse9? Type685 { get; set; } + public global::G.CheckAPIKeyResponse7? Type685 { get; set; } /// /// /// - public global::G.CheckAPIKeyResponse10? Type686 { get; set; } + public global::G.CheckAPIKeyResponse8? Type686 { get; set; } /// /// /// - public global::G.CheckAPIKeyResponse11? Type687 { get; set; } + public global::G.CheckAPIKeyResponse9? Type687 { get; set; } /// /// /// - public global::G.CheckAPIKeyResponse12? Type688 { get; set; } + public global::G.CheckAPIKeyResponse10? Type688 { get; set; } /// /// /// - public global::G.CheckAPIKeyResponse13? Type689 { get; set; } + public global::G.CheckAPIKeyResponse11? Type689 { get; set; } + /// + /// + /// + public global::G.CheckAPIKeyResponse12? Type690 { get; set; } + /// + /// + /// + public global::G.CheckAPIKeyResponse13? Type691 { get; set; } } } \ No newline at end of file diff --git a/src/tests/AutoSDK.UnitTests/JsonTests.Polymorphism.cs b/src/tests/AutoSDK.UnitTests/JsonTests.Polymorphism.cs new file mode 100644 index 0000000000..07775d6121 --- /dev/null +++ b/src/tests/AutoSDK.UnitTests/JsonTests.Polymorphism.cs @@ -0,0 +1,61 @@ +using System.Text.Json.Serialization; +using G; + +namespace AutoSDK.UnitTests; + +/// +/// https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/polymorphism +/// +public partial class JsonTests +{ + [TestMethod] + public void Polymorphism_Cohere_ChatStreamEvent() + { + var @event = new ChatStreamStartEvent + { + //EventType = ChatStreamEventEventType.StreamStart, + GenerationId = Guid.Parse("ab1019d4-de22-471d-b31c-3066cae7d01c"), + }; + var json = @event.ToJson(PolymorphismCohereChatStreamEventContext.Default); + + Console.WriteLine(json); + + json.Should().Be(""" + { + "event_type": "stream-start", + "generation_id": "ab1019d4-de22-471d-b31c-3066cae7d01c" + } + """); + + var newEvent = ChatStreamEvent.FromJson(json, PolymorphismCohereChatStreamEventContext.Default); + + newEvent.Should().NotBeNull(); + newEvent!.GenerationId.Should().Be(@event.GenerationId); + + var newJson = newEvent!.ToJson(PolymorphismCohereChatStreamEventContext.Default); + + newJson.Should().Be(json); + } + + [TestMethod] + public void Polymorphism_Cohere_ChatStreamEvent_IncorrectOrder() + { + const string json = + """ + { + "generation_id": "ab1019d4-de22-471d-b31c-3066cae7d01c", + "event_type": "stream-start" + } + """; + + var newEvent = ChatStreamEvent.FromJson(json, PolymorphismCohereChatStreamEventContext.Default); + + newEvent.Should().NotBeNull(); + newEvent!.GenerationId.Should().Be(Guid.Parse("ab1019d4-de22-471d-b31c-3066cae7d01c")); + } +} + +[JsonSourceGenerationOptions(WriteIndented = true, AllowOutOfOrderMetadataProperties = true)] +[JsonSerializable(typeof(G.ChatStreamEvent))] +[JsonSerializable(typeof(G.ChatStreamStartEvent))] +internal partial class PolymorphismCohereChatStreamEventContext : JsonSerializerContext; \ No newline at end of file diff --git a/src/tests/AutoSDK.UnitTests/Polymorphism/Cohere-ChatStreamEvent/_#G.Models.ChatStreamEvent.Json.g.verified.cs b/src/tests/AutoSDK.UnitTests/Polymorphism/Cohere-ChatStreamEvent/_#G.Models.ChatStreamEvent.Json.g.verified.cs new file mode 100644 index 0000000000..7f20d53c53 --- /dev/null +++ b/src/tests/AutoSDK.UnitTests/Polymorphism/Cohere-ChatStreamEvent/_#G.Models.ChatStreamEvent.Json.g.verified.cs @@ -0,0 +1,97 @@ +//HintName: G.Models.ChatStreamEvent.Json.g.cs +#nullable enable + +namespace G +{ + public partial class ChatStreamEvent + { + /// + /// 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, + typeof(ChatStreamEvent), + jsonSerializerContext); + } + + /// + /// 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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + typeof(ChatStreamEvent), + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static T? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + where T : global::G.ChatStreamEvent + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(ChatStreamEvent), + jsonSerializerContext) as T; + } + + /// + /// 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 T? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + where T : global::G.ChatStreamEvent + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions) as T; + } + + /// + /// 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) + where T : global::G.ChatStreamEvent + { + return await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(ChatStreamEvent), + jsonSerializerContext).ConfigureAwait(false) as T; + } + + /// + /// 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 async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + where T : global::G.ChatStreamEvent + { + return await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions) as T; + } + } +} diff --git a/src/tests/AutoSDK.UnitTests/Polymorphism/Cohere-ChatStreamEvent/_#G.Models.ChatStreamEvent.g.verified.cs b/src/tests/AutoSDK.UnitTests/Polymorphism/Cohere-ChatStreamEvent/_#G.Models.ChatStreamEvent.g.verified.cs new file mode 100644 index 0000000000..c84e1b41a6 --- /dev/null +++ b/src/tests/AutoSDK.UnitTests/Polymorphism/Cohere-ChatStreamEvent/_#G.Models.ChatStreamEvent.g.verified.cs @@ -0,0 +1,30 @@ +//HintName: G.Models.ChatStreamEvent.g.cs + +#nullable enable + +namespace G +{ + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPolymorphic( + TypeDiscriminatorPropertyName = "event_type", + IgnoreUnrecognizedTypeDiscriminators = true, + UnknownDerivedTypeHandling = global::System.Text.Json.Serialization.JsonUnknownDerivedTypeHandling.FallBackToBaseType)] + [global::System.Text.Json.Serialization.JsonDerivedType(typeof(ChatStreamStartEvent), typeDiscriminator: "stream-start")] + public partial class ChatStreamEvent + { + /// + /// 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. + /// + public ChatStreamEvent() + { + } + } +} \ No newline at end of file diff --git a/src/tests/AutoSDK.UnitTests/Polymorphism/Cohere-ChatStreamEvent/_#G.Models.ChatStreamStartEvent.g.verified.cs b/src/tests/AutoSDK.UnitTests/Polymorphism/Cohere-ChatStreamEvent/_#G.Models.ChatStreamStartEvent.g.verified.cs new file mode 100644 index 0000000000..7a9e1ca76f --- /dev/null +++ b/src/tests/AutoSDK.UnitTests/Polymorphism/Cohere-ChatStreamEvent/_#G.Models.ChatStreamStartEvent.g.verified.cs @@ -0,0 +1,39 @@ +//HintName: G.Models.ChatStreamStartEvent.g.cs + +#nullable enable + +namespace G +{ + /// + /// + /// + public sealed partial class ChatStreamStartEvent : ChatStreamEvent + { + /// + /// Unique identifier for the generated reply. Useful for submitting feedback. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("generation_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid GenerationId { get; set; } + + /// + /// Initializes a new instance of the class. + /// + /// + /// Unique identifier for the generated reply. Useful for submitting feedback. + /// + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ChatStreamStartEvent( + global::System.Guid generationId) + { + this.GenerationId = generationId; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatStreamStartEvent() + { + } + } +} \ No newline at end of file diff --git a/src/tests/AutoSDK.UnitTests/Snapshots/Processing/DetectedDiscriminators/cohere.yaml/_.verified.txt b/src/tests/AutoSDK.UnitTests/Snapshots/Processing/DetectedDiscriminators/cohere.yaml/_.verified.txt index 8095d9dac2..e67fdc5605 100644 --- a/src/tests/AutoSDK.UnitTests/Snapshots/Processing/DetectedDiscriminators/cohere.yaml/_.verified.txt +++ b/src/tests/AutoSDK.UnitTests/Snapshots/Processing/DetectedDiscriminators/cohere.yaml/_.verified.txt @@ -7486,6 +7486,15 @@ components: type: string x-fern-audiences: - public + discriminator: + propertyName: event_type + mapping: + stream-start: '#/components/schemas/ChatStreamStartEvent' + search-queries-generation: '#/components/schemas/ChatSearchQueriesGenerationEvent' + search-results: '#/components/schemas/ChatSearchResultsEvent' + text-generation: '#/components/schemas/ChatTextGenerationEvent' + citation-generation: '#/components/schemas/ChatCitationGenerationEvent' + stream-end: '#/components/schemas/ChatStreamEndEvent' ChatStreamStartEvent: allOf: - $ref: '#/components/schemas/ChatStreamEvent'