diff --git a/src/libs/Murf/Generated/Murf.SubpackageAuthClient.GenerateToken.g.cs b/src/libs/Murf/Generated/Murf.SubpackageAuthClient.GenerateToken.g.cs index 0574ba2..ce65e1b 100644 --- a/src/libs/Murf/Generated/Murf.SubpackageAuthClient.GenerateToken.g.cs +++ b/src/libs/Murf/Generated/Murf.SubpackageAuthClient.GenerateToken.g.cs @@ -328,13 +328,13 @@ partial void ProcessGenerateTokenResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.GenerateTokenResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.GenerateTokenResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.GenerateTokenResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.GenerateTokenResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -345,7 +345,7 @@ partial void ProcessGenerateTokenResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -365,13 +365,13 @@ partial void ProcessGenerateTokenResponseContent( if (__effectiveReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Murf.GenerateTokenResponse.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Murf.GenerateTokenResponse.FromJson(__content_401, JsonSerializerContext); } else { __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_401 = global::Murf.GenerateTokenResponse.FromJson(__content_401, JsonSerializerContext); + __value_401 = __content_401 is not { Length: > 0 } ? null : global::Murf.GenerateTokenResponse.FromJson(__content_401, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -382,7 +382,7 @@ partial void ProcessGenerateTokenResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_401 is { Length: > 0 } ? __content_401 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_401, responseBody: __content_401, responseObject: __value_401, @@ -402,13 +402,13 @@ partial void ProcessGenerateTokenResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.GenerateTokenResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.GenerateTokenResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.GenerateTokenResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.GenerateTokenResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -419,7 +419,7 @@ partial void ProcessGenerateTokenResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -462,7 +462,7 @@ partial void ProcessGenerateTokenResponseContent( { throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -507,7 +507,7 @@ partial void ProcessGenerateTokenResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingJobsClient.CreateDubbingJob.g.cs b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingJobsClient.CreateDubbingJob.g.cs index c12f30b..0abb272 100644 --- a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingJobsClient.CreateDubbingJob.g.cs +++ b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingJobsClient.CreateDubbingJob.g.cs @@ -439,13 +439,13 @@ request.FileName is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.CreateDubbingJobResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.CreateDubbingJobResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -456,7 +456,7 @@ request.FileName is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -476,13 +476,13 @@ request.FileName is null if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.CreateDubbingJobResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.CreateDubbingJobResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -493,7 +493,7 @@ request.FileName is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -513,13 +513,13 @@ request.FileName is null if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.CreateDubbingJobResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.CreateDubbingJobResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -530,7 +530,7 @@ request.FileName is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -550,13 +550,13 @@ request.FileName is null if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.CreateDubbingJobResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.CreateDubbingJobResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -567,7 +567,7 @@ request.FileName is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -610,7 +610,7 @@ request.FileName is null { throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -655,7 +655,7 @@ request.FileName is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingJobsClient.CreateDubbingJobWithProjectId.g.cs b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingJobsClient.CreateDubbingJobWithProjectId.g.cs index 6702ff7..0e5853a 100644 --- a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingJobsClient.CreateDubbingJobWithProjectId.g.cs +++ b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingJobsClient.CreateDubbingJobWithProjectId.g.cs @@ -431,13 +431,13 @@ request.FileName is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -448,7 +448,7 @@ request.FileName is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -468,13 +468,13 @@ request.FileName is null if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -485,7 +485,7 @@ request.FileName is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -505,13 +505,13 @@ request.FileName is null if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -522,7 +522,7 @@ request.FileName is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -542,13 +542,13 @@ request.FileName is null if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.CreateDubbingJobWithProjectIdResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -559,7 +559,7 @@ request.FileName is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -602,7 +602,7 @@ request.FileName is null { throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -647,7 +647,7 @@ request.FileName is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingJobsClient.GetStatus.g.cs b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingJobsClient.GetStatus.g.cs index 0d2d63e..fa315fb 100644 --- a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingJobsClient.GetStatus.g.cs +++ b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingJobsClient.GetStatus.g.cs @@ -335,13 +335,13 @@ partial void ProcessGetStatusResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.GetStatusResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.GetStatusResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.GetStatusResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.GetStatusResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -352,7 +352,7 @@ partial void ProcessGetStatusResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -372,13 +372,13 @@ partial void ProcessGetStatusResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.GetStatusResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.GetStatusResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.GetStatusResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.GetStatusResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessGetStatusResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -409,13 +409,13 @@ partial void ProcessGetStatusResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.GetStatusResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.GetStatusResponse.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.GetStatusResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.GetStatusResponse.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -426,7 +426,7 @@ partial void ProcessGetStatusResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -446,13 +446,13 @@ partial void ProcessGetStatusResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.GetStatusResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.GetStatusResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.GetStatusResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.GetStatusResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -463,7 +463,7 @@ partial void ProcessGetStatusResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -506,7 +506,7 @@ partial void ProcessGetStatusResponseContent( { throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -551,7 +551,7 @@ partial void ProcessGetStatusResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingLanguagesClient.ListDestinationLanguages.g.cs b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingLanguagesClient.ListDestinationLanguages.g.cs index 930285b..1226e48 100644 --- a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingLanguagesClient.ListDestinationLanguages.g.cs +++ b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingLanguagesClient.ListDestinationLanguages.g.cs @@ -326,13 +326,13 @@ partial void ProcessListDestinationLanguagesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.ListDestinationLanguagesResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.ListDestinationLanguagesResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.ListDestinationLanguagesResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.ListDestinationLanguagesResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -343,7 +343,7 @@ partial void ProcessListDestinationLanguagesResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -363,13 +363,13 @@ partial void ProcessListDestinationLanguagesResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.ListDestinationLanguagesResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.ListDestinationLanguagesResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.ListDestinationLanguagesResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.ListDestinationLanguagesResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -380,7 +380,7 @@ partial void ProcessListDestinationLanguagesResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -400,13 +400,13 @@ partial void ProcessListDestinationLanguagesResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.ListDestinationLanguagesResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.ListDestinationLanguagesResponse.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.ListDestinationLanguagesResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.ListDestinationLanguagesResponse.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -417,7 +417,7 @@ partial void ProcessListDestinationLanguagesResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -437,13 +437,13 @@ partial void ProcessListDestinationLanguagesResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.ListDestinationLanguagesResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.ListDestinationLanguagesResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.ListDestinationLanguagesResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.ListDestinationLanguagesResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -454,7 +454,7 @@ partial void ProcessListDestinationLanguagesResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -497,7 +497,7 @@ partial void ProcessListDestinationLanguagesResponseContent( { throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -542,7 +542,7 @@ partial void ProcessListDestinationLanguagesResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingLanguagesClient.ListSourceLanguages.g.cs b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingLanguagesClient.ListSourceLanguages.g.cs index 0df46ca..26fdedb 100644 --- a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingLanguagesClient.ListSourceLanguages.g.cs +++ b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingLanguagesClient.ListSourceLanguages.g.cs @@ -326,13 +326,13 @@ partial void ProcessListSourceLanguagesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.ListSourceLanguagesResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.ListSourceLanguagesResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.ListSourceLanguagesResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.ListSourceLanguagesResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -343,7 +343,7 @@ partial void ProcessListSourceLanguagesResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -363,13 +363,13 @@ partial void ProcessListSourceLanguagesResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.ListSourceLanguagesResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.ListSourceLanguagesResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.ListSourceLanguagesResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.ListSourceLanguagesResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -380,7 +380,7 @@ partial void ProcessListSourceLanguagesResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -400,13 +400,13 @@ partial void ProcessListSourceLanguagesResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.ListSourceLanguagesResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.ListSourceLanguagesResponse.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.ListSourceLanguagesResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.ListSourceLanguagesResponse.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -417,7 +417,7 @@ partial void ProcessListSourceLanguagesResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -437,13 +437,13 @@ partial void ProcessListSourceLanguagesResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.ListSourceLanguagesResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.ListSourceLanguagesResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.ListSourceLanguagesResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.ListSourceLanguagesResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -454,7 +454,7 @@ partial void ProcessListSourceLanguagesResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -497,7 +497,7 @@ partial void ProcessListSourceLanguagesResponseContent( { throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -542,7 +542,7 @@ partial void ProcessListSourceLanguagesResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingProjectsClient.CreateDubbingProject.g.cs b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingProjectsClient.CreateDubbingProject.g.cs index 28cdac4..3fbfc45 100644 --- a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingProjectsClient.CreateDubbingProject.g.cs +++ b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingProjectsClient.CreateDubbingProject.g.cs @@ -346,13 +346,13 @@ partial void ProcessCreateDubbingProjectResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.CreateDubbingProjectResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.CreateDubbingProjectResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.CreateDubbingProjectResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.CreateDubbingProjectResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -363,7 +363,7 @@ partial void ProcessCreateDubbingProjectResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -383,13 +383,13 @@ partial void ProcessCreateDubbingProjectResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.CreateDubbingProjectResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.CreateDubbingProjectResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.CreateDubbingProjectResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.CreateDubbingProjectResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -400,7 +400,7 @@ partial void ProcessCreateDubbingProjectResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -420,13 +420,13 @@ partial void ProcessCreateDubbingProjectResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.CreateDubbingProjectResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.CreateDubbingProjectResponse.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.CreateDubbingProjectResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.CreateDubbingProjectResponse.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -437,7 +437,7 @@ partial void ProcessCreateDubbingProjectResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -457,13 +457,13 @@ partial void ProcessCreateDubbingProjectResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.CreateDubbingProjectResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.CreateDubbingProjectResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.CreateDubbingProjectResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.CreateDubbingProjectResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -474,7 +474,7 @@ partial void ProcessCreateDubbingProjectResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -517,7 +517,7 @@ partial void ProcessCreateDubbingProjectResponseContent( { throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -562,7 +562,7 @@ partial void ProcessCreateDubbingProjectResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingProjectsClient.List.g.cs b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingProjectsClient.List.g.cs index 51ccc66..cefc3a7 100644 --- a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingProjectsClient.List.g.cs +++ b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingProjectsClient.List.g.cs @@ -348,13 +348,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.ListResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.ListResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.ListResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.ListResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -365,7 +365,7 @@ partial void ProcessListResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -385,13 +385,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.ListResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.ListResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.ListResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.ListResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -402,7 +402,7 @@ partial void ProcessListResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -422,13 +422,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.ListResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.ListResponse.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.ListResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.ListResponse.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -439,7 +439,7 @@ partial void ProcessListResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -459,13 +459,13 @@ partial void ProcessListResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.ListResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.ListResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.ListResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.ListResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -476,7 +476,7 @@ partial void ProcessListResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -519,7 +519,7 @@ partial void ProcessListResponseContent( { throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -564,7 +564,7 @@ partial void ProcessListResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingProjectsClient.Update.g.cs b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingProjectsClient.Update.g.cs index c93068e..a2587ec 100644 --- a/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingProjectsClient.Update.g.cs +++ b/src/libs/Murf/Generated/Murf.SubpackageDubbingSubpackageDubbingProjectsClient.Update.g.cs @@ -355,13 +355,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.UpdateResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.UpdateResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.UpdateResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.UpdateResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -372,7 +372,7 @@ partial void ProcessUpdateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -392,13 +392,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.UpdateResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.UpdateResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.UpdateResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.UpdateResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -409,7 +409,7 @@ partial void ProcessUpdateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -429,13 +429,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.UpdateResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.UpdateResponse.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.UpdateResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.UpdateResponse.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -446,7 +446,7 @@ partial void ProcessUpdateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -466,13 +466,13 @@ partial void ProcessUpdateResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.UpdateResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.UpdateResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.UpdateResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.UpdateResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -483,7 +483,7 @@ partial void ProcessUpdateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -526,7 +526,7 @@ partial void ProcessUpdateResponseContent( { throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -571,7 +571,7 @@ partial void ProcessUpdateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Murf/Generated/Murf.SubpackageTextClient.Translate.g.cs b/src/libs/Murf/Generated/Murf.SubpackageTextClient.Translate.g.cs index 37a41e6..ed833c1 100644 --- a/src/libs/Murf/Generated/Murf.SubpackageTextClient.Translate.g.cs +++ b/src/libs/Murf/Generated/Murf.SubpackageTextClient.Translate.g.cs @@ -346,13 +346,13 @@ partial void ProcessTranslateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.TranslateResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.TranslateResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.TranslateResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.TranslateResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -363,7 +363,7 @@ partial void ProcessTranslateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -383,13 +383,13 @@ partial void ProcessTranslateResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Murf.TranslateResponse.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Murf.TranslateResponse.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Murf.TranslateResponse.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Murf.TranslateResponse.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -400,7 +400,7 @@ partial void ProcessTranslateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -420,13 +420,13 @@ partial void ProcessTranslateResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.TranslateResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.TranslateResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.TranslateResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.TranslateResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -437,7 +437,7 @@ partial void ProcessTranslateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -457,13 +457,13 @@ partial void ProcessTranslateResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.TranslateResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.TranslateResponse.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.TranslateResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.TranslateResponse.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -474,7 +474,7 @@ partial void ProcessTranslateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -494,13 +494,13 @@ partial void ProcessTranslateResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.TranslateResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.TranslateResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.TranslateResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.TranslateResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -511,7 +511,7 @@ partial void ProcessTranslateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -554,7 +554,7 @@ partial void ProcessTranslateResponseContent( { throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -599,7 +599,7 @@ partial void ProcessTranslateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Murf/Generated/Murf.SubpackageTextToSpeechClient.Generate.g.cs b/src/libs/Murf/Generated/Murf.SubpackageTextToSpeechClient.Generate.g.cs index 1c272fe..03a788a 100644 --- a/src/libs/Murf/Generated/Murf.SubpackageTextToSpeechClient.Generate.g.cs +++ b/src/libs/Murf/Generated/Murf.SubpackageTextToSpeechClient.Generate.g.cs @@ -348,13 +348,13 @@ partial void ProcessGenerateResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.GenerateResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.GenerateResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.GenerateResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.GenerateResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -365,7 +365,7 @@ partial void ProcessGenerateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -385,13 +385,13 @@ partial void ProcessGenerateResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Murf.GenerateResponse.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Murf.GenerateResponse.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Murf.GenerateResponse.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Murf.GenerateResponse.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -402,7 +402,7 @@ partial void ProcessGenerateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -422,13 +422,13 @@ partial void ProcessGenerateResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.GenerateResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.GenerateResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.GenerateResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.GenerateResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -439,7 +439,7 @@ partial void ProcessGenerateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -459,13 +459,13 @@ partial void ProcessGenerateResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.GenerateResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.GenerateResponse.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.GenerateResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.GenerateResponse.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -476,7 +476,7 @@ partial void ProcessGenerateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -496,13 +496,13 @@ partial void ProcessGenerateResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.GenerateResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.GenerateResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.GenerateResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.GenerateResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -513,7 +513,7 @@ partial void ProcessGenerateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -556,7 +556,7 @@ partial void ProcessGenerateResponseContent( { throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -601,7 +601,7 @@ partial void ProcessGenerateResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Murf/Generated/Murf.SubpackageTextToSpeechClient.GetVoices.g.cs b/src/libs/Murf/Generated/Murf.SubpackageTextToSpeechClient.GetVoices.g.cs index e9d7b70..65ca4ca 100644 --- a/src/libs/Murf/Generated/Murf.SubpackageTextToSpeechClient.GetVoices.g.cs +++ b/src/libs/Murf/Generated/Murf.SubpackageTextToSpeechClient.GetVoices.g.cs @@ -359,13 +359,13 @@ partial void ProcessGetVoicesResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.GetVoicesResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.GetVoicesResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.GetVoicesResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.GetVoicesResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -376,7 +376,7 @@ partial void ProcessGetVoicesResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -396,13 +396,13 @@ partial void ProcessGetVoicesResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.GetVoicesResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.GetVoicesResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.GetVoicesResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.GetVoicesResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -413,7 +413,7 @@ partial void ProcessGetVoicesResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -433,13 +433,13 @@ partial void ProcessGetVoicesResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.GetVoicesResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.GetVoicesResponse.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.GetVoicesResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.GetVoicesResponse.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -450,7 +450,7 @@ partial void ProcessGetVoicesResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -470,13 +470,13 @@ partial void ProcessGetVoicesResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.GetVoicesResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.GetVoicesResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.GetVoicesResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.GetVoicesResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -487,7 +487,7 @@ partial void ProcessGetVoicesResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -530,7 +530,7 @@ partial void ProcessGetVoicesResponseContent( { throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -575,7 +575,7 @@ partial void ProcessGetVoicesResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Murf/Generated/Murf.SubpackageTextToSpeechClient.Stream.g.cs b/src/libs/Murf/Generated/Murf.SubpackageTextToSpeechClient.Stream.g.cs index c107779..39f06c9 100644 --- a/src/libs/Murf/Generated/Murf.SubpackageTextToSpeechClient.Stream.g.cs +++ b/src/libs/Murf/Generated/Murf.SubpackageTextToSpeechClient.Stream.g.cs @@ -380,13 +380,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.StreamResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.StreamResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -397,7 +397,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -417,13 +417,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Murf.StreamResponse.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Murf.StreamResponse.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -434,7 +434,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -454,13 +454,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.StreamResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.StreamResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -471,7 +471,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -491,13 +491,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.StreamResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.StreamResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -508,7 +508,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -528,13 +528,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.StreamResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.StreamResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -545,7 +545,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -588,7 +588,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -910,13 +910,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.StreamResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.StreamResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -927,7 +927,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -947,13 +947,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Murf.StreamResponse.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Murf.StreamResponse.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -964,7 +964,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -984,13 +984,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.StreamResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.StreamResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1001,7 +1001,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -1021,13 +1021,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.StreamResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.StreamResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1038,7 +1038,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -1058,13 +1058,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.StreamResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.StreamResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1075,7 +1075,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -1122,7 +1122,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -1443,13 +1443,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.StreamResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.StreamResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1460,7 +1460,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -1480,13 +1480,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Murf.StreamResponse.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Murf.StreamResponse.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1497,7 +1497,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -1517,13 +1517,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.StreamResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.StreamResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1534,7 +1534,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -1554,13 +1554,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.StreamResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.StreamResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1571,7 +1571,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -1591,13 +1591,13 @@ partial void ProcessStreamResponseContent( if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.StreamResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.StreamResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.StreamResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -1608,7 +1608,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -1688,7 +1688,7 @@ partial void ProcessStreamResponseContent( throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Murf/Generated/Murf.SubpackageVoiceChangerClient.Convert.g.cs b/src/libs/Murf/Generated/Murf.SubpackageVoiceChangerClient.Convert.g.cs index 8910620..8e651eb 100644 --- a/src/libs/Murf/Generated/Murf.SubpackageVoiceChangerClient.Convert.g.cs +++ b/src/libs/Murf/Generated/Murf.SubpackageVoiceChangerClient.Convert.g.cs @@ -520,13 +520,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.ConvertResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.ConvertResponse.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = global::Murf.ConvertResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = __content_400 is not { Length: > 0 } ? null : global::Murf.ConvertResponse.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -537,7 +537,7 @@ request.Filename is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_400 is { Length: > 0 } ? __content_400 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, responseBody: __content_400, responseObject: __value_400, @@ -557,13 +557,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Murf.ConvertResponse.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Murf.ConvertResponse.FromJson(__content_402, JsonSerializerContext); } else { __content_402 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_402 = global::Murf.ConvertResponse.FromJson(__content_402, JsonSerializerContext); + __value_402 = __content_402 is not { Length: > 0 } ? null : global::Murf.ConvertResponse.FromJson(__content_402, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -574,7 +574,7 @@ request.Filename is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_402 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_402 is { Length: > 0 } ? __content_402 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_402, responseBody: __content_402, responseObject: __value_402, @@ -594,13 +594,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.ConvertResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.ConvertResponse.FromJson(__content_403, JsonSerializerContext); } else { __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_403 = global::Murf.ConvertResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = __content_403 is not { Length: > 0 } ? null : global::Murf.ConvertResponse.FromJson(__content_403, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -611,7 +611,7 @@ request.Filename is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_403 is { Length: > 0 } ? __content_403 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_403, responseBody: __content_403, responseObject: __value_403, @@ -631,13 +631,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.ConvertResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.ConvertResponse.FromJson(__content_500, JsonSerializerContext); } else { __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_500 = global::Murf.ConvertResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = __content_500 is not { Length: > 0 } ? null : global::Murf.ConvertResponse.FromJson(__content_500, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -648,7 +648,7 @@ request.Filename is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_500 is { Length: > 0 } ? __content_500 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_500, responseBody: __content_500, responseObject: __value_500, @@ -668,13 +668,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.ConvertResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.ConvertResponse.FromJson(__content_503, JsonSerializerContext); } else { __content_503 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_503 = global::Murf.ConvertResponse.FromJson(__content_503, JsonSerializerContext); + __value_503 = __content_503 is not { Length: > 0 } ? null : global::Murf.ConvertResponse.FromJson(__content_503, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -685,7 +685,7 @@ request.Filename is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content_503 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_503 is { Length: > 0 } ? __content_503 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_503, responseBody: __content_503, responseObject: __value_503, @@ -728,7 +728,7 @@ request.Filename is null { throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -773,7 +773,7 @@ request.Filename is null throw global::Murf.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary(