diff --git a/src/libs/WorldLabs/Generated/WorldLabs.AnyOf.2.g.cs b/src/libs/WorldLabs/Generated/WorldLabs.AnyOf.2.g.cs
index 45486c4..5e60c80 100644
--- a/src/libs/WorldLabs/Generated/WorldLabs.AnyOf.2.g.cs
+++ b/src/libs/WorldLabs/Generated/WorldLabs.AnyOf.2.g.cs
@@ -25,6 +25,19 @@ namespace WorldLabs
#endif
public bool IsValue1 => Value1 != null;
+ ///
+ ///
+ ///
+ public bool TryPickValue1(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out T1? value)
+ {
+ value = Value1;
+ return IsValue1;
+ }
+
///
///
///
@@ -41,6 +54,19 @@ namespace WorldLabs
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value2))]
#endif
public bool IsValue2 => Value2 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickValue2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out T2? value)
+ {
+ value = Value2;
+ return IsValue2;
+ }
///
///
///
@@ -143,6 +169,30 @@ public bool Validate()
///
public void Match(
global::System.Action? value1 = null,
+
+ global::System.Action? value2 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsValue1)
+ {
+ value1?.Invoke(Value1!);
+ }
+ else if (IsValue2)
+ {
+ value2?.Invoke(Value2!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? value1 = null,
global::System.Action? value2 = null,
bool validate = true)
{
diff --git a/src/libs/WorldLabs/Generated/WorldLabs.AnyOf.3.g.cs b/src/libs/WorldLabs/Generated/WorldLabs.AnyOf.3.g.cs
index 85467c4..93810a0 100644
--- a/src/libs/WorldLabs/Generated/WorldLabs.AnyOf.3.g.cs
+++ b/src/libs/WorldLabs/Generated/WorldLabs.AnyOf.3.g.cs
@@ -25,6 +25,19 @@ namespace WorldLabs
#endif
public bool IsValue1 => Value1 != null;
+ ///
+ ///
+ ///
+ public bool TryPickValue1(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out T1? value)
+ {
+ value = Value1;
+ return IsValue1;
+ }
+
///
///
///
@@ -42,6 +55,19 @@ namespace WorldLabs
#endif
public bool IsValue2 => Value2 != null;
+ ///
+ ///
+ ///
+ public bool TryPickValue2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out T2? value)
+ {
+ value = Value2;
+ return IsValue2;
+ }
+
///
///
///
@@ -58,6 +84,19 @@ namespace WorldLabs
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Value3))]
#endif
public bool IsValue3 => Value3 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickValue3(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out T3? value)
+ {
+ value = Value3;
+ return IsValue3;
+ }
///
///
///
@@ -187,6 +226,36 @@ public bool Validate()
///
public void Match(
global::System.Action? value1 = null,
+
+ global::System.Action? value2 = null,
+
+ global::System.Action? value3 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsValue1)
+ {
+ value1?.Invoke(Value1!);
+ }
+ else if (IsValue2)
+ {
+ value2?.Invoke(Value2!);
+ }
+ else if (IsValue3)
+ {
+ value3?.Invoke(Value3!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? value1 = null,
global::System.Action? value2 = null,
global::System.Action? value3 = null,
bool validate = true)
diff --git a/src/libs/WorldLabs/Generated/WorldLabs.Models.Content2.g.cs b/src/libs/WorldLabs/Generated/WorldLabs.Models.Content2.g.cs
index 41cdaa2..d6968fa 100644
--- a/src/libs/WorldLabs/Generated/WorldLabs.Models.Content2.g.cs
+++ b/src/libs/WorldLabs/Generated/WorldLabs.Models.Content2.g.cs
@@ -31,6 +31,19 @@ namespace WorldLabs
#endif
public bool IsMediaAsset => MediaAsset != null;
+ ///
+ ///
+ ///
+ public bool TryPickMediaAsset(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.MediaAssetReference? value)
+ {
+ value = MediaAsset;
+ return IsMediaAsset;
+ }
+
///
/// Reference to content via a publicly accessible URL.
///
@@ -48,6 +61,19 @@ namespace WorldLabs
#endif
public bool IsUri => Uri != null;
+ ///
+ ///
+ ///
+ public bool TryPickUri(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.UriReference? value)
+ {
+ value = Uri;
+ return IsUri;
+ }
+
///
/// Reference to content via base64-encoded data.
///
@@ -64,6 +90,19 @@ namespace WorldLabs
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(DataBase64))]
#endif
public bool IsDataBase64 => DataBase64 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickDataBase64(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.DataBase64Reference? value)
+ {
+ value = DataBase64;
+ return IsDataBase64;
+ }
///
///
///
@@ -165,9 +204,9 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? mediaAsset = null,
- global::System.Func? uri = null,
- global::System.Func? dataBase64 = null,
+ global::System.Func? mediaAsset = null,
+ global::System.Func? uri = null,
+ global::System.Func? dataBase64 = null,
bool validate = true)
{
if (validate)
@@ -195,9 +234,39 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? mediaAsset = null,
- global::System.Action? uri = null,
- global::System.Action? dataBase64 = null,
+ global::System.Action? mediaAsset = null,
+
+ global::System.Action? uri = null,
+
+ global::System.Action? dataBase64 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsMediaAsset)
+ {
+ mediaAsset?.Invoke(MediaAsset!);
+ }
+ else if (IsUri)
+ {
+ uri?.Invoke(Uri!);
+ }
+ else if (IsDataBase64)
+ {
+ dataBase64?.Invoke(DataBase64!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? mediaAsset = null,
+ global::System.Action? uri = null,
+ global::System.Action? dataBase64 = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/WorldLabs/Generated/WorldLabs.Models.DepthPanoImage.g.cs b/src/libs/WorldLabs/Generated/WorldLabs.Models.DepthPanoImage.g.cs
index 36ba858..5705519 100644
--- a/src/libs/WorldLabs/Generated/WorldLabs.Models.DepthPanoImage.g.cs
+++ b/src/libs/WorldLabs/Generated/WorldLabs.Models.DepthPanoImage.g.cs
@@ -31,6 +31,19 @@ namespace WorldLabs
#endif
public bool IsMediaAsset => MediaAsset != null;
+ ///
+ ///
+ ///
+ public bool TryPickMediaAsset(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.MediaAssetReference? value)
+ {
+ value = MediaAsset;
+ return IsMediaAsset;
+ }
+
///
/// Reference to content via a publicly accessible URL.
///
@@ -48,6 +61,19 @@ namespace WorldLabs
#endif
public bool IsUri => Uri != null;
+ ///
+ ///
+ ///
+ public bool TryPickUri(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.UriReference? value)
+ {
+ value = Uri;
+ return IsUri;
+ }
+
///
/// Reference to content via base64-encoded data.
///
@@ -64,6 +90,19 @@ namespace WorldLabs
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(DataBase64))]
#endif
public bool IsDataBase64 => DataBase64 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickDataBase64(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.DataBase64Reference? value)
+ {
+ value = DataBase64;
+ return IsDataBase64;
+ }
///
///
///
@@ -165,9 +204,9 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? mediaAsset = null,
- global::System.Func? uri = null,
- global::System.Func? dataBase64 = null,
+ global::System.Func? mediaAsset = null,
+ global::System.Func? uri = null,
+ global::System.Func? dataBase64 = null,
bool validate = true)
{
if (validate)
@@ -195,9 +234,39 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? mediaAsset = null,
- global::System.Action? uri = null,
- global::System.Action? dataBase64 = null,
+ global::System.Action? mediaAsset = null,
+
+ global::System.Action? uri = null,
+
+ global::System.Action? dataBase64 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsMediaAsset)
+ {
+ mediaAsset?.Invoke(MediaAsset!);
+ }
+ else if (IsUri)
+ {
+ uri?.Invoke(Uri!);
+ }
+ else if (IsDataBase64)
+ {
+ dataBase64?.Invoke(DataBase64!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? mediaAsset = null,
+ global::System.Action? uri = null,
+ global::System.Action? dataBase64 = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/WorldLabs/Generated/WorldLabs.Models.ImagePrompt1.g.cs b/src/libs/WorldLabs/Generated/WorldLabs.Models.ImagePrompt1.g.cs
index 69e276d..dc1e81a 100644
--- a/src/libs/WorldLabs/Generated/WorldLabs.Models.ImagePrompt1.g.cs
+++ b/src/libs/WorldLabs/Generated/WorldLabs.Models.ImagePrompt1.g.cs
@@ -31,6 +31,19 @@ namespace WorldLabs
#endif
public bool IsMediaAsset => MediaAsset != null;
+ ///
+ ///
+ ///
+ public bool TryPickMediaAsset(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.MediaAssetReference? value)
+ {
+ value = MediaAsset;
+ return IsMediaAsset;
+ }
+
///
/// Reference to content via a publicly accessible URL.
///
@@ -48,6 +61,19 @@ namespace WorldLabs
#endif
public bool IsUri => Uri != null;
+ ///
+ ///
+ ///
+ public bool TryPickUri(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.UriReference? value)
+ {
+ value = Uri;
+ return IsUri;
+ }
+
///
/// Reference to content via base64-encoded data.
///
@@ -64,6 +90,19 @@ namespace WorldLabs
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(DataBase64))]
#endif
public bool IsDataBase64 => DataBase64 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickDataBase64(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.DataBase64Reference? value)
+ {
+ value = DataBase64;
+ return IsDataBase64;
+ }
///
///
///
@@ -165,9 +204,9 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? mediaAsset = null,
- global::System.Func? uri = null,
- global::System.Func? dataBase64 = null,
+ global::System.Func? mediaAsset = null,
+ global::System.Func? uri = null,
+ global::System.Func? dataBase64 = null,
bool validate = true)
{
if (validate)
@@ -195,9 +234,39 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? mediaAsset = null,
- global::System.Action? uri = null,
- global::System.Action? dataBase64 = null,
+ global::System.Action? mediaAsset = null,
+
+ global::System.Action? uri = null,
+
+ global::System.Action? dataBase64 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsMediaAsset)
+ {
+ mediaAsset?.Invoke(MediaAsset!);
+ }
+ else if (IsUri)
+ {
+ uri?.Invoke(Uri!);
+ }
+ else if (IsDataBase64)
+ {
+ dataBase64?.Invoke(DataBase64!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? mediaAsset = null,
+ global::System.Action? uri = null,
+ global::System.Action? dataBase64 = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/WorldLabs/Generated/WorldLabs.Models.VideoPrompt.g.cs b/src/libs/WorldLabs/Generated/WorldLabs.Models.VideoPrompt.g.cs
index 4823dfc..5e2bd79 100644
--- a/src/libs/WorldLabs/Generated/WorldLabs.Models.VideoPrompt.g.cs
+++ b/src/libs/WorldLabs/Generated/WorldLabs.Models.VideoPrompt.g.cs
@@ -31,6 +31,19 @@ namespace WorldLabs
#endif
public bool IsMediaAsset => MediaAsset != null;
+ ///
+ ///
+ ///
+ public bool TryPickMediaAsset(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.MediaAssetReference? value)
+ {
+ value = MediaAsset;
+ return IsMediaAsset;
+ }
+
///
/// Reference to content via a publicly accessible URL.
///
@@ -48,6 +61,19 @@ namespace WorldLabs
#endif
public bool IsUri => Uri != null;
+ ///
+ ///
+ ///
+ public bool TryPickUri(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.UriReference? value)
+ {
+ value = Uri;
+ return IsUri;
+ }
+
///
/// Reference to content via base64-encoded data.
///
@@ -64,6 +90,19 @@ namespace WorldLabs
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(DataBase64))]
#endif
public bool IsDataBase64 => DataBase64 != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickDataBase64(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.DataBase64Reference? value)
+ {
+ value = DataBase64;
+ return IsDataBase64;
+ }
///
///
///
@@ -165,9 +204,9 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? mediaAsset = null,
- global::System.Func? uri = null,
- global::System.Func? dataBase64 = null,
+ global::System.Func? mediaAsset = null,
+ global::System.Func? uri = null,
+ global::System.Func? dataBase64 = null,
bool validate = true)
{
if (validate)
@@ -195,9 +234,39 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? mediaAsset = null,
- global::System.Action? uri = null,
- global::System.Action? dataBase64 = null,
+ global::System.Action? mediaAsset = null,
+
+ global::System.Action? uri = null,
+
+ global::System.Action? dataBase64 = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsMediaAsset)
+ {
+ mediaAsset?.Invoke(MediaAsset!);
+ }
+ else if (IsUri)
+ {
+ uri?.Invoke(Uri!);
+ }
+ else if (IsDataBase64)
+ {
+ dataBase64?.Invoke(DataBase64!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? mediaAsset = null,
+ global::System.Action? uri = null,
+ global::System.Action? dataBase64 = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/WorldLabs/Generated/WorldLabs.Models.WorldPrompt.g.cs b/src/libs/WorldLabs/Generated/WorldLabs.Models.WorldPrompt.g.cs
index 53d87b7..9d92c40 100644
--- a/src/libs/WorldLabs/Generated/WorldLabs.Models.WorldPrompt.g.cs
+++ b/src/libs/WorldLabs/Generated/WorldLabs.Models.WorldPrompt.g.cs
@@ -32,6 +32,19 @@ namespace WorldLabs
#endif
public bool IsText => Text != null;
+ ///
+ ///
+ ///
+ public bool TryPickText(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.WorldTextPromptInput? value)
+ {
+ value = Text;
+ return IsText;
+ }
+
///
/// Image-to-world generation.
/// Generates a world from an image. text_prompt is optional - if not provided,
@@ -52,6 +65,19 @@ namespace WorldLabs
#endif
public bool IsImage => Image != null;
+ ///
+ ///
+ ///
+ public bool TryPickImage(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.ImagePrompt? value)
+ {
+ value = Image;
+ return IsImage;
+ }
+
///
/// Multi-image-to-world generation.
/// Generates a world from multiple images. text_prompt is optional.
@@ -71,6 +97,19 @@ namespace WorldLabs
#endif
public bool IsMultiImage => MultiImage != null;
+ ///
+ ///
+ ///
+ public bool TryPickMultiImage(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.MultiImagePromptInput? value)
+ {
+ value = MultiImage;
+ return IsMultiImage;
+ }
+
///
/// Video-to-world generation.
/// Generates a world from a video. text_prompt is optional.
@@ -90,6 +129,19 @@ namespace WorldLabs
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Video))]
#endif
public bool IsVideo => Video != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickVideo(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.VideoPromptInput? value)
+ {
+ value = Video;
+ return IsVideo;
+ }
///
///
///
@@ -213,10 +265,10 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? text = null,
- global::System.Func? image = null,
- global::System.Func? multiImage = null,
- global::System.Func? video = null,
+ global::System.Func? text = null,
+ global::System.Func? image = null,
+ global::System.Func? multiImage = null,
+ global::System.Func? video = null,
bool validate = true)
{
if (validate)
@@ -248,10 +300,46 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? text = null,
- global::System.Action? image = null,
- global::System.Action? multiImage = null,
- global::System.Action? video = null,
+ global::System.Action? text = null,
+
+ global::System.Action? image = null,
+
+ global::System.Action? multiImage = null,
+
+ global::System.Action? video = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsText)
+ {
+ text?.Invoke(Text!);
+ }
+ else if (IsImage)
+ {
+ image?.Invoke(Image!);
+ }
+ else if (IsMultiImage)
+ {
+ multiImage?.Invoke(MultiImage!);
+ }
+ else if (IsVideo)
+ {
+ video?.Invoke(Video!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? text = null,
+ global::System.Action? image = null,
+ global::System.Action? multiImage = null,
+ global::System.Action? video = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/WorldLabs/Generated/WorldLabs.Models.WorldPromptVariant1.g.cs b/src/libs/WorldLabs/Generated/WorldLabs.Models.WorldPromptVariant1.g.cs
index e5945a9..45b15e5 100644
--- a/src/libs/WorldLabs/Generated/WorldLabs.Models.WorldPromptVariant1.g.cs
+++ b/src/libs/WorldLabs/Generated/WorldLabs.Models.WorldPromptVariant1.g.cs
@@ -31,6 +31,19 @@ namespace WorldLabs
#endif
public bool IsText => Text != null;
+ ///
+ ///
+ ///
+ public bool TryPickText(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.WorldTextPromptOutput? value)
+ {
+ value = Text;
+ return IsText;
+ }
+
///
/// For world models generating a world from a single image (+ text).
/// Images can be generated using the :image-generation method.
@@ -50,6 +63,19 @@ namespace WorldLabs
#endif
public bool IsDepthPano1 => DepthPano1 != null;
+ ///
+ ///
+ ///
+ public bool TryPickDepthPano1(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.Prompt? value)
+ {
+ value = DepthPano1;
+ return IsDepthPano1;
+ }
+
///
/// For world models supporting multi-image (+ text) input.
///
@@ -67,6 +93,19 @@ namespace WorldLabs
#endif
public bool IsMultiImage => MultiImage != null;
+ ///
+ ///
+ ///
+ public bool TryPickMultiImage(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.MultiImagePromptOutput? value)
+ {
+ value = MultiImage;
+ return IsMultiImage;
+ }
+
///
/// For world models supporting video (+ text) input.
///
@@ -84,6 +123,19 @@ namespace WorldLabs
#endif
public bool IsVideo => Video != null;
+ ///
+ ///
+ ///
+ public bool TryPickVideo(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.VideoPromptOutput? value)
+ {
+ value = Video;
+ return IsVideo;
+ }
+
///
/// For models conditioned on a depth pano and text.
/// When depth_pano_image is a log-encoded PNG, z_min and z_max are required
@@ -105,6 +157,19 @@ namespace WorldLabs
#endif
public bool IsDepthPano2 => DepthPano2 != null;
+ ///
+ ///
+ ///
+ public bool TryPickDepthPano2(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.DepthPanoPrompt? value)
+ {
+ value = DepthPano2;
+ return IsDepthPano2;
+ }
+
///
/// For models that inpaint the masked portion of a pano image.
///
@@ -121,6 +186,19 @@ namespace WorldLabs
[global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(InpaintPano))]
#endif
public bool IsInpaintPano => InpaintPano != null;
+
+ ///
+ ///
+ ///
+ public bool TryPickInpaintPano(
+#if NET6_0_OR_GREATER
+ [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)]
+#endif
+ out global::WorldLabs.InpaintPanoPrompt? value)
+ {
+ value = InpaintPano;
+ return IsInpaintPano;
+ }
///
///
///
@@ -288,12 +366,12 @@ public bool Validate()
///
///
public TResult? Match(
- global::System.Func? text = null,
- global::System.Func? depthPano1 = null,
- global::System.Func? multiImage = null,
- global::System.Func? video = null,
- global::System.Func? depthPano2 = null,
- global::System.Func? inpaintPano = null,
+ global::System.Func? text = null,
+ global::System.Func? depthPano1 = null,
+ global::System.Func? multiImage = null,
+ global::System.Func? video = null,
+ global::System.Func? depthPano2 = null,
+ global::System.Func? inpaintPano = null,
bool validate = true)
{
if (validate)
@@ -333,12 +411,60 @@ public bool Validate()
///
///
public void Match(
- global::System.Action? text = null,
- global::System.Action? depthPano1 = null,
- global::System.Action? multiImage = null,
- global::System.Action? video = null,
- global::System.Action? depthPano2 = null,
- global::System.Action? inpaintPano = null,
+ global::System.Action? text = null,
+
+ global::System.Action? depthPano1 = null,
+
+ global::System.Action? multiImage = null,
+
+ global::System.Action? video = null,
+
+ global::System.Action? depthPano2 = null,
+
+ global::System.Action? inpaintPano = null,
+ bool validate = true)
+ {
+ if (validate)
+ {
+ Validate();
+ }
+
+ if (IsText)
+ {
+ text?.Invoke(Text!);
+ }
+ else if (IsDepthPano1)
+ {
+ depthPano1?.Invoke(DepthPano1!);
+ }
+ else if (IsMultiImage)
+ {
+ multiImage?.Invoke(MultiImage!);
+ }
+ else if (IsVideo)
+ {
+ video?.Invoke(Video!);
+ }
+ else if (IsDepthPano2)
+ {
+ depthPano2?.Invoke(DepthPano2!);
+ }
+ else if (IsInpaintPano)
+ {
+ inpaintPano?.Invoke(InpaintPano!);
+ }
+ }
+
+ ///
+ ///
+ ///
+ public void Switch(
+ global::System.Action? text = null,
+ global::System.Action? depthPano1 = null,
+ global::System.Action? multiImage = null,
+ global::System.Action? video = null,
+ global::System.Action? depthPano2 = null,
+ global::System.Action? inpaintPano = null,
bool validate = true)
{
if (validate)
diff --git a/src/libs/WorldLabs/Generated/WorldLabs.WorldLabsClient.Constructors.ApiKeyInHeader.g.cs b/src/libs/WorldLabs/Generated/WorldLabs.WorldLabsClient.Constructors.ApiKeyInHeader.g.cs
index 64e3e47..bd59f91 100644
--- a/src/libs/WorldLabs/Generated/WorldLabs.WorldLabsClient.Constructors.ApiKeyInHeader.g.cs
+++ b/src/libs/WorldLabs/Generated/WorldLabs.WorldLabsClient.Constructors.ApiKeyInHeader.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