diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.EmbeddingItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.EmbeddingItem.g.cs index 52a5b98..84b2845 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.EmbeddingItem.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.EmbeddingItem.g.cs @@ -66,9 +66,9 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - global::System.Collections.Generic.IList? value1 = default; - global::System.Collections.Generic.IList? value2 = default; - string? value3 = default; + global::System.Collections.Generic.IList? embeddingItemVariant1 = default; + global::System.Collections.Generic.IList? embeddingItemVariant2 = default; + string? embeddingItemVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -78,7 +78,7 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + embeddingItemVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -95,7 +95,7 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + embeddingItemVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -112,7 +112,7 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + embeddingItemVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -123,14 +123,14 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization } } - if (value1 == null && value2 == null && value3 == null) + if (embeddingItemVariant1 == null && embeddingItemVariant2 == null && embeddingItemVariant3 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + embeddingItemVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -144,7 +144,7 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + embeddingItemVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -158,7 +158,7 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + embeddingItemVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -169,11 +169,11 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization } var __value = new global::Mixedbread.EmbeddingItem( - value1, + embeddingItemVariant1, - value2, + embeddingItemVariant2, - value3 + embeddingItemVariant3 ); return __value; @@ -188,23 +188,23 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsEmbeddingItemVariant1) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EmbeddingItemVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsEmbeddingItemVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EmbeddingItemVariant2!, typeInfo); } - else if (value.IsValue3) + else if (value.IsEmbeddingItemVariant3) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EmbeddingItemVariant3!, typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.MultiModalQuery.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.MultiModalQuery.g.cs index cc5b85e..904a2f7 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.MultiModalQuery.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.MultiModalQuery.g.cs @@ -54,8 +54,8 @@ public class MultiModalQueryJsonConverter : global::System.Text.Json.Serializati if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - string? value1 = default; - global::Mixedbread.MultiModalQueryVariant2? value2 = default; + string? multiModalQueryVariant1 = default; + global::Mixedbread.MultiModalQueryVariant2? multiModalQueryVariant2 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -65,7 +65,7 @@ public class MultiModalQueryJsonConverter : global::System.Text.Json.Serializati var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + multiModalQueryVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -82,7 +82,7 @@ public class MultiModalQueryJsonConverter : global::System.Text.Json.Serializati var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MultiModalQueryVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MultiModalQueryVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + multiModalQueryVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -93,14 +93,14 @@ public class MultiModalQueryJsonConverter : global::System.Text.Json.Serializati } } - if (value1 == null && value2 == null) + if (multiModalQueryVariant1 == null && multiModalQueryVariant2 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + multiModalQueryVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -114,7 +114,7 @@ public class MultiModalQueryJsonConverter : global::System.Text.Json.Serializati var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MultiModalQueryVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MultiModalQueryVariant2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + multiModalQueryVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -125,9 +125,9 @@ public class MultiModalQueryJsonConverter : global::System.Text.Json.Serializati } var __value = new global::Mixedbread.MultiModalQuery( - value1, + multiModalQueryVariant1, - value2 + multiModalQueryVariant2 ); return __value; @@ -142,17 +142,17 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsValue1) + if (value.IsMultiModalQueryVariant1) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MultiModalQueryVariant1!, typeInfo); } - else if (value.IsValue2) + else if (value.IsMultiModalQueryVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MultiModalQueryVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MultiModalQueryVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.MultiModalQueryVariant2!.Value, typeInfo); } } } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingItem.g.cs index 48733cb..6f89468 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingItem.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.EmbeddingItem.g.cs @@ -13,52 +13,52 @@ namespace Mixedbread /// /// #if NET6_0_OR_GREATER - public global::System.Collections.Generic.IList? Value1 { get; init; } + public global::System.Collections.Generic.IList? EmbeddingItemVariant1 { get; init; } #else - public global::System.Collections.Generic.IList? Value1 { get; } + public global::System.Collections.Generic.IList? EmbeddingItemVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EmbeddingItemVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsEmbeddingItemVariant1 => EmbeddingItemVariant1 != null; /// /// /// #if NET6_0_OR_GREATER - public global::System.Collections.Generic.IList? Value2 { get; init; } + public global::System.Collections.Generic.IList? EmbeddingItemVariant2 { get; init; } #else - public global::System.Collections.Generic.IList? Value2 { get; } + public global::System.Collections.Generic.IList? EmbeddingItemVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EmbeddingItemVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsEmbeddingItemVariant2 => EmbeddingItemVariant2 != null; /// /// /// #if NET6_0_OR_GREATER - public string? Value3 { get; init; } + public string? EmbeddingItemVariant3 { get; init; } #else - public string? Value3 { get; } + public string? EmbeddingItemVariant3 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(EmbeddingItemVariant3))] #endif - public bool IsValue3 => Value3 != null; + public bool IsEmbeddingItemVariant3 => EmbeddingItemVariant3 != null; /// /// /// @@ -67,46 +67,46 @@ namespace Mixedbread /// /// /// - public static implicit operator string?(EmbeddingItem @this) => @this.Value3; + public static implicit operator string?(EmbeddingItem @this) => @this.EmbeddingItemVariant3; /// /// /// public EmbeddingItem(string? value) { - Value3 = value; + EmbeddingItemVariant3 = value; } /// /// /// public EmbeddingItem( - global::System.Collections.Generic.IList? value1, - global::System.Collections.Generic.IList? value2, - string? value3 + global::System.Collections.Generic.IList? embeddingItemVariant1, + global::System.Collections.Generic.IList? embeddingItemVariant2, + string? embeddingItemVariant3 ) { - Value1 = value1; - Value2 = value2; - Value3 = value3; + EmbeddingItemVariant1 = embeddingItemVariant1; + EmbeddingItemVariant2 = embeddingItemVariant2; + EmbeddingItemVariant3 = embeddingItemVariant3; } /// /// /// public object? Object => - Value3 as object ?? - Value2 as object ?? - Value1 as object + EmbeddingItemVariant3 as object ?? + EmbeddingItemVariant2 as object ?? + EmbeddingItemVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() ?? - Value3?.ToString() + EmbeddingItemVariant1?.ToString() ?? + EmbeddingItemVariant2?.ToString() ?? + EmbeddingItemVariant3?.ToString() ; /// @@ -114,16 +114,16 @@ Value1 as object /// public bool Validate() { - return IsValue1 || IsValue2 || IsValue3; + return IsEmbeddingItemVariant1 || IsEmbeddingItemVariant2 || IsEmbeddingItemVariant3; } /// /// /// public TResult? Match( - global::System.Func?, TResult>? value1 = null, - global::System.Func?, TResult>? value2 = null, - global::System.Func? value3 = null, + global::System.Func?, TResult>? embeddingItemVariant1 = null, + global::System.Func?, TResult>? embeddingItemVariant2 = null, + global::System.Func? embeddingItemVariant3 = null, bool validate = true) { if (validate) @@ -131,17 +131,17 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsEmbeddingItemVariant1 && embeddingItemVariant1 != null) { - return value1(Value1!); + return embeddingItemVariant1(EmbeddingItemVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsEmbeddingItemVariant2 && embeddingItemVariant2 != null) { - return value2(Value2!); + return embeddingItemVariant2(EmbeddingItemVariant2!); } - else if (IsValue3 && value3 != null) + else if (IsEmbeddingItemVariant3 && embeddingItemVariant3 != null) { - return value3(Value3!); + return embeddingItemVariant3(EmbeddingItemVariant3!); } return default(TResult); @@ -151,9 +151,9 @@ public bool Validate() /// /// public void Match( - global::System.Action?>? value1 = null, - global::System.Action?>? value2 = null, - global::System.Action? value3 = null, + global::System.Action?>? embeddingItemVariant1 = null, + global::System.Action?>? embeddingItemVariant2 = null, + global::System.Action? embeddingItemVariant3 = null, bool validate = true) { if (validate) @@ -161,17 +161,17 @@ public void Match( Validate(); } - if (IsValue1) + if (IsEmbeddingItemVariant1) { - value1?.Invoke(Value1!); + embeddingItemVariant1?.Invoke(EmbeddingItemVariant1!); } - else if (IsValue2) + else if (IsEmbeddingItemVariant2) { - value2?.Invoke(Value2!); + embeddingItemVariant2?.Invoke(EmbeddingItemVariant2!); } - else if (IsValue3) + else if (IsEmbeddingItemVariant3) { - value3?.Invoke(Value3!); + embeddingItemVariant3?.Invoke(EmbeddingItemVariant3!); } } @@ -182,11 +182,11 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + EmbeddingItemVariant1, typeof(global::System.Collections.Generic.IList), - Value2, + EmbeddingItemVariant2, typeof(global::System.Collections.Generic.IList), - Value3, + EmbeddingItemVariant3, typeof(string), }; const int offset = unchecked((int)2166136261); @@ -204,9 +204,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(EmbeddingItem other) { return - global::System.Collections.Generic.EqualityComparer?>.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer?>.Default.Equals(Value2, other.Value2) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value3, other.Value3) + global::System.Collections.Generic.EqualityComparer?>.Default.Equals(EmbeddingItemVariant1, other.EmbeddingItemVariant1) && + global::System.Collections.Generic.EqualityComparer?>.Default.Equals(EmbeddingItemVariant2, other.EmbeddingItemVariant2) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(EmbeddingItemVariant3, other.EmbeddingItemVariant3) ; } diff --git a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQuery.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQuery.g.cs index faf219a..ba47249 100644 --- a/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQuery.g.cs +++ b/src/libs/Mixedbread/Generated/Mixedbread.Models.MultiModalQuery.g.cs @@ -13,35 +13,35 @@ namespace Mixedbread /// The text input document to create embeddings for. /// #if NET6_0_OR_GREATER - public string? Value1 { get; init; } + public string? MultiModalQueryVariant1 { get; init; } #else - public string? Value1 { get; } + public string? MultiModalQueryVariant1 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value1))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MultiModalQueryVariant1))] #endif - public bool IsValue1 => Value1 != null; + public bool IsMultiModalQueryVariant1 => MultiModalQueryVariant1 != null; /// /// The input to create embeddings for. /// #if NET6_0_OR_GREATER - public global::Mixedbread.MultiModalQueryVariant2? Value2 { get; init; } + public global::Mixedbread.MultiModalQueryVariant2? MultiModalQueryVariant2 { get; init; } #else - public global::Mixedbread.MultiModalQueryVariant2? Value2 { get; } + public global::Mixedbread.MultiModalQueryVariant2? MultiModalQueryVariant2 { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(MultiModalQueryVariant2))] #endif - public bool IsValue2 => Value2 != null; + public bool IsMultiModalQueryVariant2 => MultiModalQueryVariant2 != null; /// /// /// @@ -50,14 +50,14 @@ namespace Mixedbread /// /// /// - public static implicit operator string?(MultiModalQuery @this) => @this.Value1; + public static implicit operator string?(MultiModalQuery @this) => @this.MultiModalQueryVariant1; /// /// /// public MultiModalQuery(string? value) { - Value1 = value; + MultiModalQueryVariant1 = value; } /// @@ -68,42 +68,42 @@ public MultiModalQuery(string? value) /// /// /// - public static implicit operator global::Mixedbread.MultiModalQueryVariant2?(MultiModalQuery @this) => @this.Value2; + public static implicit operator global::Mixedbread.MultiModalQueryVariant2?(MultiModalQuery @this) => @this.MultiModalQueryVariant2; /// /// /// public MultiModalQuery(global::Mixedbread.MultiModalQueryVariant2? value) { - Value2 = value; + MultiModalQueryVariant2 = value; } /// /// /// public MultiModalQuery( - string? value1, - global::Mixedbread.MultiModalQueryVariant2? value2 + string? multiModalQueryVariant1, + global::Mixedbread.MultiModalQueryVariant2? multiModalQueryVariant2 ) { - Value1 = value1; - Value2 = value2; + MultiModalQueryVariant1 = multiModalQueryVariant1; + MultiModalQueryVariant2 = multiModalQueryVariant2; } /// /// /// public object? Object => - Value2 as object ?? - Value1 as object + MultiModalQueryVariant2 as object ?? + MultiModalQueryVariant1 as object ; /// /// /// public override string? ToString() => - Value1?.ToString() ?? - Value2?.ToString() + MultiModalQueryVariant1?.ToString() ?? + MultiModalQueryVariant2?.ToString() ; /// @@ -111,15 +111,15 @@ Value1 as object /// public bool Validate() { - return IsValue1 || IsValue2; + return IsMultiModalQueryVariant1 || IsMultiModalQueryVariant2; } /// /// /// public TResult? Match( - global::System.Func? value1 = null, - global::System.Func? value2 = null, + global::System.Func? multiModalQueryVariant1 = null, + global::System.Func? multiModalQueryVariant2 = null, bool validate = true) { if (validate) @@ -127,13 +127,13 @@ public bool Validate() Validate(); } - if (IsValue1 && value1 != null) + if (IsMultiModalQueryVariant1 && multiModalQueryVariant1 != null) { - return value1(Value1!); + return multiModalQueryVariant1(MultiModalQueryVariant1!); } - else if (IsValue2 && value2 != null) + else if (IsMultiModalQueryVariant2 && multiModalQueryVariant2 != null) { - return value2(Value2!); + return multiModalQueryVariant2(MultiModalQueryVariant2!); } return default(TResult); @@ -143,8 +143,8 @@ public bool Validate() /// /// public void Match( - global::System.Action? value1 = null, - global::System.Action? value2 = null, + global::System.Action? multiModalQueryVariant1 = null, + global::System.Action? multiModalQueryVariant2 = null, bool validate = true) { if (validate) @@ -152,13 +152,13 @@ public void Match( Validate(); } - if (IsValue1) + if (IsMultiModalQueryVariant1) { - value1?.Invoke(Value1!); + multiModalQueryVariant1?.Invoke(MultiModalQueryVariant1!); } - else if (IsValue2) + else if (IsMultiModalQueryVariant2) { - value2?.Invoke(Value2!); + multiModalQueryVariant2?.Invoke(MultiModalQueryVariant2!); } } @@ -169,9 +169,9 @@ public override int GetHashCode() { var fields = new object?[] { - Value1, + MultiModalQueryVariant1, typeof(string), - Value2, + MultiModalQueryVariant2, typeof(global::Mixedbread.MultiModalQueryVariant2), }; const int offset = unchecked((int)2166136261); @@ -189,8 +189,8 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(MultiModalQuery other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value1, other.Value1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(Value2, other.Value2) + global::System.Collections.Generic.EqualityComparer.Default.Equals(MultiModalQueryVariant1, other.MultiModalQueryVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(MultiModalQueryVariant2, other.MultiModalQueryVariant2) ; }