diff --git a/src/libs/PlayHT/Generated/PlayHT.Models.ListVoicesResponse.g.cs b/src/libs/PlayHT/Generated/PlayHT.Models.ListVoicesResponse.g.cs
index 9e07d0f..8b5132f 100644
--- a/src/libs/PlayHT/Generated/PlayHT.Models.ListVoicesResponse.g.cs
+++ b/src/libs/PlayHT/Generated/PlayHT.Models.ListVoicesResponse.g.cs
@@ -26,6 +26,19 @@ namespace PlayHT
#endif
public bool IsListVoicesResponseVariant1 => ListVoicesResponseVariant1 != null;
+ ///
+ ///
+ ///
+ public bool TryPickListVoicesResponseVariant1(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::System.Collections.Generic.IList? value)
+ {
+ value = ListVoicesResponseVariant1;
+ return IsListVoicesResponseVariant1;
+ }
+
///
///
///
@@ -42,6 +55,19 @@ namespace PlayHT
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ListVoicesResponseVariant2))]
#endif
public bool IsListVoicesResponseVariant2 => ListVoicesResponseVariant2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickListVoicesResponseVariant2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::PlayHT.ListVoicesResponseVariant2? value)
+ {
+ value = ListVoicesResponseVariant2;
+ return IsListVoicesResponseVariant2;
+ }
///
///
///
@@ -100,8 +126,8 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func?, TResult>? listVoicesResponseVariant1 = null,
- global::System.Func? listVoicesResponseVariant2 = null,
+ global::System.Func, TResult>? listVoicesResponseVariant1 = null,
+ global::System.Func? listVoicesResponseVariant2 = null,
bool validate = true)
{
if (validate)
@@ -125,8 +151,32 @@ public bool Validate()
///
///
public void Match(
- global::System.Action?>? listVoicesResponseVariant1 = null,
- global::System.Action? listVoicesResponseVariant2 = null,
+ global::System.Action>? listVoicesResponseVariant1 = null,
+
+ global::System.Action? listVoicesResponseVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsListVoicesResponseVariant1)
+ {
+ listVoicesResponseVariant1?.Invoke(ListVoicesResponseVariant1!);
+ }
+ else if (IsListVoicesResponseVariant2)
+ {
+ listVoicesResponseVariant2?.Invoke(ListVoicesResponseVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action>? listVoicesResponseVariant1 = null,
+ global::System.Action? listVoicesResponseVariant2 = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/PlayHT/Generated/PlayHT.Models.StreamSpeechRequest.g.cs b/src/libs/PlayHT/Generated/PlayHT.Models.StreamSpeechRequest.g.cs
index ce341b5..59790b6 100644
--- a/src/libs/PlayHT/Generated/PlayHT.Models.StreamSpeechRequest.g.cs
+++ b/src/libs/PlayHT/Generated/PlayHT.Models.StreamSpeechRequest.g.cs
@@ -26,6 +26,19 @@ namespace PlayHT
#endif
public bool IsCreate => Create != null;
+ ///
+ ///
+ ///
+ public bool TryPickCreate(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::PlayHT.CreateSpeechRequest? value)
+ {
+ value = Create;
+ return IsCreate;
+ }
+
///
///
///
@@ -42,6 +55,19 @@ namespace PlayHT
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(StreamSpeechRequestVariant2))]
#endif
public bool IsStreamSpeechRequestVariant2 => StreamSpeechRequestVariant2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickStreamSpeechRequestVariant2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::PlayHT.StreamSpeechRequestVariant2? value)
+ {
+ value = StreamSpeechRequestVariant2;
+ return IsStreamSpeechRequestVariant2;
+ }
///
///
///
@@ -118,8 +144,8 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? create = null,
- global::System.Func? streamSpeechRequestVariant2 = null,
+ global::System.Func? create = null,
+ global::System.Func? streamSpeechRequestVariant2 = null,
bool validate = true)
{
if (validate)
@@ -143,8 +169,32 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? create = null,
- global::System.Action? streamSpeechRequestVariant2 = null,
+ global::System.Action? create = null,
+
+ global::System.Action? streamSpeechRequestVariant2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsCreate)
+ {
+ create?.Invoke(Create!);
+ }
+ else if (IsStreamSpeechRequestVariant2)
+ {
+ streamSpeechRequestVariant2?.Invoke(StreamSpeechRequestVariant2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? create = null,
+ global::System.Action? streamSpeechRequestVariant2 = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/PlayHT/Generated/PlayHT.PlayHTClient.Constructors.Bearer.g.cs b/src/libs/PlayHT/Generated/PlayHT.PlayHTClient.Constructors.Bearer.g.cs
index 042e003..e0d2748 100644
--- a/src/libs/PlayHT/Generated/PlayHT.PlayHTClient.Constructors.Bearer.g.cs
+++ b/src/libs/PlayHT/Generated/PlayHT.PlayHTClient.Constructors.Bearer.g.cs
@@ -26,5 +26,6 @@ partial void Authorizing(
ref string apiKey);
partial void Authorized(
global::System.Net.Http.HttpClient client);
+
}
}
\ No newline at end of file